Opened 4 years ago

Closed 4 years ago

#3237 closed defect (fixed)

GetEventHandler assertation after loading workspace twice

Reported by: wenzeslaus Owned by: grass-dev@…
Priority: minor Milestone: 7.4.0
Component: wxGUI Version: svn-trunk
Keywords: workspace, wxPython, wxWidgets, destructors Cc:
CPU: Unspecified Platform: Linux

Description

A ~wxWindowBase(): any pushed event handlers must have been removed error is generated using the following steps:

  1. Start GUI
  2. Add layers
  3. Save workspace file
  4. Start new GUI
  5. Open workspace
  6. Open workspace (again)

I get the following traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-
packages/wx-3.0-gtk2/wx/lib/buttons.py", line 140, in
AcceptsFocus

return self.IsShown() and self.IsEnabled()
  File "/usr/lib/python2.7/dist-
packages/wx-3.0-gtk2/wx/_core.py", line 9984, in IsShown

return _core_.Window_IsShown(*args, **kwargs)
wx._core
.
PyAssertionError
:
C++ assertion "GetEventHandler() == this" failed at
../src/common/wincmn.cpp(478) in ~wxWindowBase(): any pushed
event handlers must have been removed

This happens in trunk r70231 but not in 7.2.0.

Change History (1)

comment:1 Changed 4 years ago by annakrat

Resolution: fixed
Status: newclosed

In 70296:

wxGUI: uninitialize aui manager when destroying map display to fix #3237

Note: See TracTickets for help on using tickets.