Ticket #1320 (new enhancement)

Opened 14 months ago

Last modified 7 days ago

Implement error window on OS X

Reported by: historic_bruno Owned by: historic_bruno
Priority: Should Have Milestone: Backlog
Component: Core engine Keywords: osx design
Cc:

Description

Currently when the game encounters an assertion failure, the OS X crash report window is displayed instead of a message window as on other OSes. This comment in try_gui_display_error() in unix.cpp explains the reason:

// TODO: implement this, in a way that doesn't rely on X11
// and doesn't occasionally cause crazy errors like
// "The process has forked and you cannot use this
// CoreFoundation functionality safely. You MUST exec()."

One possible solution is to use NSAlert which is the preferred method of alterting the user with a modal dialog, being careful about thread-safety issues presented by using the AppKit framework.

Change History

comment:1 Changed 14 months ago by historic_bruno

Example of what I've got so far: http://i.imgur.com/c6IjJ.png

comment:2 Changed 3 months ago by historic_bruno

On second thought, the OS X error report window is far more informative and useful than anything we could hack up, so it would be nice to keep that if possible (though it does currently interfere with debugging by forcing the game close).

comment:3 Changed 7 days ago by Markus

  • Keywords osc design added

comment:4 Changed 7 days ago by Markus

  • Keywords osx added; osc removed
Note: See TracTickets for help on using tickets.