Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#3151 closed defect (fixed)

raster digitizer crashes GUI in trunk

Reported by: cmbarton Owned by: grass-dev@…
Priority: normal Milestone: 7.4.1
Component: wxGUI Version: unspecified
Keywords: raster digitizer Cc:
CPU: Unspecified Platform: MacOSX

Description

When the raster digitizer is selected, it generates the error below and then locks ups the GUI so that you can't even quit it without killing Python from the OS.

error:

Traceback (most recent call last):
  File "/Users/cmbarton/Dropbox (ASU)/GRASS_dropbox/GRASS-7.
3.app/Contents/MacOS/gui/wxpython/mapdisp/toolbars.py", line
255, in OnSelectTool

self.parent.AddRDigit()
  File "/Users/cmbarton/Dropbox (ASU)/GRASS_dropbox/GRASS-7.
3.app/Contents/MacOS/gui/wxpython/mapdisp/frame.py", line
1507, in AddRDigit

toolSwitcher=self._toolSwitcher)
  File "/Users/cmbarton/Dropbox (ASU)/GRASS_dropbox/GRASS-7.
3.app/Contents/MacOS/gui/wxpython/rdigit/toolbars.py", line
56, in __init__

self._previousMap = self._mapSelectionCombo.GetValue()
  File "/Users/cmbarton/Dropbox (ASU)/GRASS_dropbox/GRASS-7.
3.app/Contents/MacOS/etc/python/wx/_controls.py", line 610,
in GetValue

return _controls_.ComboBox_GetValue(*args, **kwargs)
wx._core
.
PyAssertionError
:
C++ assertion "IsValid(n)" failed at /BUILD/wxPython-
src-2.8.12.1/src/mac/carbon/choice.cpp(242) in GetString():
wxChoice::GetString(): invalid index

I don't know if this is just a Mac issue or more general.

Change History (10)

comment:1 Changed 5 years ago by cmbarton

Forgot to add: compiled from trunk a few hours ago, version: 69469

comment:2 Changed 5 years ago by annakrat

Keywords: raster digitizer added
Platform: UnspecifiedMacOSX

comment:3 Changed 4 years ago by neteler

Can MacOSX please try the raster digitizer again?

comment:4 Changed 4 years ago by annakrat

Hmm, I haven't found time to fix this yet, so testing won't help I am afraid...

comment:5 Changed 3 years ago by neteler

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:6 Changed 3 years ago by annakrat

I didn't get this error anymore, but I had other problems with the digitizer toolbar, which should be fixed in r72793.

comment:7 Changed 3 years ago by cmbarton

Resolution: fixed
Status: newclosed

Just recompiled. This is fixed. Thanks much.

comment:8 Changed 3 years ago by annakrat

In 72854:

wxGUI/rdigit: fix raster digitizer toolbar on mac (merge from trunk, see #3151)

comment:9 Changed 3 years ago by annakrat

In 72855:

wxGUI: replace deprecated checkbox event method (merge from trunk, see #3151)

comment:10 Changed 3 years ago by cmbarton

Thanks. I am traveling the next couple weeks but will test these as soon as I can.

Note: See TracTickets for help on using tickets.