Ticket #14752 (closed defect: fixed)
Crash in wxWindowGTK::GTKHandleUnrealize() after opening wxChoice
| Reported by: | vadz | Owned by: | pcor |
|---|---|---|---|
| Priority: | high | Milestone: | 2.9.5 |
| Component: | wxGTK | Version: | 2.9-svn |
| Keywords: | Cc: | ||
| Blocked By: | Patch: | no | |
| Blocking: |
Description
Steps to reproduce:
- Run the widgets sample.
- Go to the wxChoice page.
- Click the button to insert a few items in wxChoice.
- Open wxChoice and close it.
- Click on the "Close" top level window button.
The sample crashes with
#0 wxWindow::GTKHandleUnrealize (this=0x7c6100) at /home/zeitlin/src/wx/HEAD/src/gtk/window.cpp:2055
#1 0x00007ffff73c56e7 in unrealize (win=0x7c6100) at /home/zeitlin/src/wx/HEAD/src/gtk/window.cpp:1978
#2 0x00007ffff569d47e in IA__g_closure_invoke (closure=0x7c99a0, return_value=0x0, n_param_values=1, param_values=0x96a2a0, invocation_hint=0x7fffffffcea0)
at /scratch/build-area/glib2.0-2.24.2/gobject/gclosure.c:767
...
#21 0x00007ffff569f850 in IA__g_object_run_dispose (object=0x77a490) at /scratch/build-area/glib2.0-2.24.2/gobject/gobject.c:820
#22 0x00007ffff73c6aac in wxWindow::~wxWindow (this=0x798760, __in_chrg=<value optimized out>) at /home/zeitlin/src/wx/HEAD/src/gtk/window.cpp:2398
#23 0x00007ffff73b1604 in wxNonOwnedWindowBase::~wxNonOwnedWindowBase (this=0x798760, __in_chrg=<value optimized out>) at /home/zeitlin/src/wx/HEAD/include/wx/nonownedwnd.h:27
#24 0x00007ffff73b0b89 in wxNonOwnedWindow::~wxNonOwnedWindow (this=0x798760, __in_chrg=<value optimized out>) at /home/zeitlin/src/wx/HEAD/src/gtk/nonownedwnd.cpp:233
...
Debugging seems to show that it crashes when unrealizing the menu bar which is already destroyed by then. I have no idea why does this only happen after wxChoice had been opened though.
Paul, any ideas?
Change History
Note: See
TracTickets for help on using
tickets.
