[GRASS-dev] [GRASS GIS] #3237: GetEventHandler assertation after loading workspace twice

#3237: GetEventHandler assertation after loading workspace twice
-------------------------------------------------+-------------------------
Reporter: wenzeslaus | Owner: grass-dev@…
     Type: defect | Status: new
Priority: minor | Milestone: 7.4.0
Component: wxGUI | Version: svn-trunk
Keywords: workspace, wxPython, wxWidgets, | CPU: Unspecified
  destructors |
Platform: Linux |
-------------------------------------------------+-------------------------
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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3237&gt;
GRASS GIS <https://grass.osgeo.org>

#3237: GetEventHandler assertation after loading workspace twice
-------------------------+-------------------------------------------------
  Reporter: wenzeslaus | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: minor | Milestone: 7.4.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: workspace, wxPython, wxWidgets,
       CPU: | destructors
  Unspecified | Platform: Linux
-------------------------+-------------------------------------------------
Changes (by annakrat):

* status: new => closed
* resolution: => fixed

Comment:

In [changeset:"70296" 70296]:
{{{
#!CommitTicketReference repository="" revision="70296"
wxGUI: uninitialize aui manager when destroying map display to fix #3237
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3237#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>