Project

Profile

Help

Bug #105

CocoMUD crashes on Linux when clicking connect

Added by Vincent Le Goff almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
High
Category:
User interface
Sprint/Milestone:
% Done:

100%

Company:
-
Contact person:
-
Additional contact persons:
-

Description

On Linux with wxGTK3, when CocoMUD starts and displays the connection screen with the list of choices, if clicking on the Connect button, CocoMUD crashes and the window is closed with a few critical errors in the console, no clear traceback.

After some debugging, the problem has been identified: for some reason, when the Connect button is clicked, CocoMUD sends the Cancel/Close signal to the application. This signal is intercepted just after the call to ShowModal(). It can "naturally" happen in two situations:

  • When the updater finds new updates, if we ask to install them, CocoMUD asks every window to close. This includes the connection screen, if it is still open.
  • When pressing escape on the connection screen, or forcing it to close another way, CocoMUD should react by closing the window. This is a desired behavior.

What IS NOT a desired behavior is that the Connect button would send the Cancel/Close signal (5101). Very simple tests with custom dialogs, using ShowModal() and understanding why this specific signal is sent at this moment would maybe lead to some solution. It also explains why, once opened on a world, if a user selects File -> Open and chooses a new world, this world is never opened: the Cancel/Close signal is still sent.

Associated revisions

Revision e43bc209 (diff) View on GitHub
Added by Vincent Le Goff almost 2 years ago

Fix #105: CocoMUD crashes when connecting to a world on Linux

History

#1 Updated by Vincent Le Goff almost 2 years ago

  • Status changed from Open to Closed
  • Assignee set to Vincent Le Goff
  • % Done changed from 0 to 100

Please register to edit this issue

Also available in: Atom PDF Tracking page