#90 closed defect (fixed)
Error when exiting with command-q
Reported by: | Tom Goddard | Owned by: | Eric Pettersen |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | chimera |
Description
Exiting with key press command-q on Mac gives an error to the shell (below) while exiting by clicking the window close button does not produce this error.
$ ~/ucsf/chimera2/Chimera2.app/Contents/MacOS/Chimera2
Using 24-bit OpenGL depth buffer
Stereo mode is not supported by OpenGL driver
Error in atexit._run_exitfuncs:
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at /Users/goddard/ucsf/chimera2/build/tmp/wxPython_Phoenix-3.0.3.dev1719+62a2221/ext/wxWidgets/src/common/wincmn.cpp(478) in ~wxWindowBase(): any pushed event handlers must have been removed
Change History (3)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
On Mac, wasn't making the binding to the callback that in turn calls UnInit() [probably because I didn't know how to make the binding show clover-Q at the time]
comment:3 by , 10 years ago
Component: | User Interface → Core |
---|
This wxWidgets ticket
http://trac.wxwidgets.org/ticket/14145
indicates that the problem is AuiManager.UnInit() is not being called. The Chimera 2 MainWindow code calls UnInit() in its close method, but apparently the wx.EVT_CLOSE binding that calls that close method is not fired with a command-q close.