> /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/frame.py(2505)OnDeleteLayer() 2504 ipdb.set_trace() -> 2505 for layer in self.GetLayerTree().GetSelections(): 2506 if self.GetLayerTree().GetLayerInfo(layer, key='type') == 'group': ipdb> n > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/frame.py(2506)OnDeleteLayer() 2505 for layer in self.GetLayerTree().GetSelections(): -> 2506 if self.GetLayerTree().GetLayerInfo(layer, key='type') == 'group': 2507 self.GetLayerTree().DeleteChildren(layer) ipdb> n > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/frame.py(2508)OnDeleteLayer() 2507 self.GetLayerTree().DeleteChildren(layer) -> 2508 self.GetLayerTree().Delete(layer) 2509 ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1600)OnDeleteLayer() 1599 # unselect item -> 1600 self.Unselect() 1601 ipdb> n > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1602)OnDeleteLayer() 1601 -> 1602 try: 1603 if self.GetLayerInfo(item, key='type') != 'group': ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1603)OnDeleteLayer() 1602 try: -> 1603 if self.GetLayerInfo(item, key='type') != 'group': 1604 self.Map.DeleteLayer(self.GetLayerInfo(item, key='maplayer')) ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1604)OnDeleteLayer() 1603 if self.GetLayerInfo(item, key='type') != 'group': -> 1604 self.Map.DeleteLayer(self.GetLayerInfo(item, key='maplayer')) 1605 except: ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1609)OnDeleteLayer() 1608 # redraw map if auto-rendering is enabled -> 1609 self.rerender = True 1610 nlayers = self.GetVisibleLayers() ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1610)OnDeleteLayer() 1609 self.rerender = True -> 1610 nlayers = self.GetVisibleLayers() 1611 if not nlayers: ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1611)OnDeleteLayer() 1610 nlayers = self.GetVisibleLayers() -> 1611 if not nlayers: 1612 self.first = True # layer tree is empty ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1612)OnDeleteLayer() 1611 if not nlayers: -> 1612 self.first = True # layer tree is empty 1613 self.Map.SetLayers(nlayers) ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1613)OnDeleteLayer() 1612 self.first = True # layer tree is empty -> 1613 self.Map.SetLayers(nlayers) 1614 ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1615)OnDeleteLayer() 1614 -> 1615 if self.mapdisplay.GetToolbar('vdigit'): 1616 self.mapdisplay.toolbars[ ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1625)OnDeleteLayer() 1624 -> 1625 event.Skip() 1626 ipdb> --Return-- None > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(1625)OnDeleteLayer() 1624 -> 1625 event.Skip() 1626 ipdb> --Return-- None > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/customtreectrl.py(5284)SendDeleteEvent() 5283 event.SetEventObject(self) -> 5284 self.GetEventHandler().ProcessEvent(event) 5285 ipdb> > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/customtreectrl.py(5402)Delete() 5401 -> 5402 if item == self._select_me: 5403 self._select_me = None ipdb> > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/customtreectrl.py(5406)Delete() 5405 # Remove the item with window -> 5406 if item in self._itemWithWindow: 5407 wnd = item.GetWindow() ipdb> > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/customtreectrl.py(5407)Delete() 5406 if item in self._itemWithWindow: -> 5407 wnd = item.GetWindow() 5408 wnd.Hide() ipdb> > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/customtreectrl.py(5408)Delete() 5407 wnd = item.GetWindow() -> 5408 wnd.Hide() 5409 wnd.Destroy() ipdb> > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/customtreectrl.py(5409)Delete() 5408 wnd.Hide() -> 5409 wnd.Destroy() 5410 item._wnd = None ipdb> > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/customtreectrl.py(5410)Delete() 5409 wnd.Destroy() -> 5410 item._wnd = None 5411 self._itemWithWindow.remove(item) ipdb> > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/customtreectrl.py(5411)Delete() 5410 item._wnd = None -> 5411 self._itemWithWindow.remove(item) 5412 ipdb> > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/customtreectrl.py(5413)Delete() 5412 -> 5413 del item 5414 ipdb> --Return-- None > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/agw/customtreectrl.py(5413)Delete() 5412 -> 5413 del item 5414 ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/frame.py(2505)OnDeleteLayer() 2504 ipdb.set_trace() -> 2505 for layer in self.GetLayerTree().GetSelections(): 2506 if self.GetLayerTree().GetLayerInfo(layer, key='type') == 'group': ipdb> --Return-- None > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/frame.py(2505)OnDeleteLayer() 2504 ipdb.set_trace() -> 2505 for layer in self.GetLayerTree().GetSelections(): 2506 if self.GetLayerTree().GetLayerInfo(layer, key='type') == 'group': ipdb> > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(887)OnLayerContextMenu() 886 self.PopupMenu(self.popupMenu) --> 887 self.popupMenu.Destroy() 888 ipdb> --Return-- None > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(887)OnLayerContextMenu() 886 self.PopupMenu(self.popupMenu) --> 887 self.popupMenu.Destroy() 888 ipdb> --Return-- None > /Applications/GRASS-7.9.app/Contents/MacOS/gui/wxpython/lmgr/layertree.py(425)OnLayerContextMenuButton() 424 self.DoSelectItem(layer, True, False) --> 425 self.OnLayerContextMenu(event) 426 ipdb> --Return-- None > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/buttons.py(419)Notify() 418 evt.SetEventObject(self) --> 419 self.GetEventHandler().ProcessEvent(evt) 420 ipdb> > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/buttons.py(571)OnLeftUp() 570 self.Notify() --> 571 self.up = True 572 if self: # in case the button was destroyed in the eventhandler ipdb> > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/buttons.py(572)OnLeftUp() 571 self.up = True --> 572 if self: # in case the button was destroyed in the eventhandler 573 self.Refresh() ipdb> p self ipdb> p self.Refresh() *** RuntimeError: wrapped C/C++ object of type GenBitmapButton has been deleted ipdb> n --Return-- None > /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/lib/buttons.py(572)OnLeftUp() 571 self.up = True --> 572 if self: # in case the button was destroyed in the eventhandler 573 self.Refresh() ipdb> n Segmentation fault: 11