Opened 12 years ago

Closed 12 years ago

#1868 closed defect (fixed)

g.mapset now broken

Reported by: cmbarton Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: wxGUI Version: unspecified
Keywords: g.mapset Cc:
CPU: Unspecified Platform: Unspecified

Description

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

Change History (8)

in reply to:  description comment:1 by hellik, 12 years ago

Replying to cmbarton:

g.mapset is now broken in the newest release of trunk (GRASS 7). It was not broken in earlier revisions.

tested here in osgeo4w-wingrass, g.mapset works here. maybe change platform?

Helmut

comment:2 by cmbarton, 12 years ago

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

in reply to:  2 comment:3 by hellik, 12 years ago

Replying to 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.

helmut

comment:4 by cmbarton, 12 years ago

Thanks Helmut. Is this the version compiled today?

Michael

in reply to:  4 comment:5 by hellik, 12 years ago

Replying to cmbarton:

Thanks Helmut. Is this the version compiled today?

Michael

yes

GRASS version: 7.0.svn                                                          
GRASS SVN Revision: 54829                                                       
Build Date: 2013-02-1                                                           
GIS Library Revision: 52468 (2012-07-27)                                        
GDAL/OGR: 1.9.2                                                                 
PROJ.4: 4.8.0                                                                   
GEOS: 3.3.6dev                                                                  
SQLite: 3.7.10                                                                  
Python: 2.7.2                                                                   
wxPython: 2.8.12.1                                                              
Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)

Helmut

comment:6 by lucadelu, 12 years ago

It works also for me with the last version (r54829) in a Debian wheezy machine.

Ciao Luca

comment:7 by annakrat, 12 years ago

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.

comment:8 by cmbarton, 12 years ago

Resolution: fixed
Status: newclosed

This seems to be fixed now for g.mapset. I don't yet know if the error is cropping up elsewhere.

Thanks much Michael

Note: See TracTickets for help on using tickets.