#1868: g.mapset now broken
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: g.mapset | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
g.mapset is now broken in the newest release of trunk (GRASS 7). It was
not broken in earlier revisions. Here is the error.
{{{
Traceback (most recent call last):
File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS
-7.0.app/Contents/MacOS/etc/gui/wxpython/lmgr/frame.py",
line 820, in OnChangeLocation
dlg = LocationDialog(parent = self)
File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS
-7.0.app/Contents/MacOS/etc/gui/wxpython/gui_core/dialogs.py
", line 160, in __init__
self.PostInit()
File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS
-7.0.app/Contents/MacOS/etc/gui/wxpython/gui_core/dialogs.py
", line 94, in PostInit
if not self.element.GetValue():
File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS
-7.0.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
Replying to [comment:2 cmbarton]:
> I should clarify. g.mapset is broken when called from the wxGUI menu. I
think this is actually calling a g.mapset wrapper that is not running.
>
> The basic g.mapset module works fine when called from the terminal.
>
> Michael
works also here in osgeo4-wingrass7 when called from the wxGUI.
I have just made a few changes in the dialog but I think the error will
just move elsewhere. If so, I would just catch the error and ignore
because it might be a wx problem.