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

"GRASS GIS" <[email protected]>
Newsgroups gmane.comp.gis.grass.devel
Message-ID <[email protected]>
#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>

_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.