[GRASS-dev] [GRASS GIS] #3607: Removing map layer crashes wxGUI

GRASS GIS trac at osgeo.org
Thu Mar 12 12:42:36 PDT 2020


#3607: Removing map layer crashes wxGUI
------------------------+-----------------------------------------
  Reporter:  cmbarton   |      Owner:  grass-dev@…
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  7.4.5
 Component:  wxGUI      |    Version:  7.4.0
Resolution:             |   Keywords:  remove layer, layer manager
       CPU:  OSX/Intel  |   Platform:  MacOSX
------------------------+-----------------------------------------

Comment (by nila):

 I managed to find the cause of this bug (see attachment above). In short:
 1. clicking the button triggers an event with the `GenBitmapButton`
 embedded
 2. the layer (`TreeItem`) is deleted (`GMFrame::OnDeleteLayer()`) and with
 it the included button (the same as in the event)
 3. further event handling (in `wx.lib.buttons.GenButton::OnLeftUp()`)
 deals with a still living python object with a
          "wrapped C/C++ object of type `GenBitmapButton` has been deleted"


 I couldn't find a quick fix for this, but I'll try to come up with a
 solution.
 Still, if someone more experienced is up to the challenge to address this
 I'd be more than happy.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3607#comment:10>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list