[GRASS-dev] [GRASS GIS] #1868: g.mapset now broken

#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

}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1868&gt;
GRASS GIS <http://grass.osgeo.org>

#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 |
-------------------------+--------------------------------------------------

Comment(by hellik):

Replying to [ticket:1868 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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1868#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#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 |
-------------------------+--------------------------------------------------

Comment(by 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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1868#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#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 |
-------------------------+--------------------------------------------------

Comment(by hellik):

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.

helmut

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1868#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#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 |
-------------------------+--------------------------------------------------

Comment(by cmbarton):

Thanks Helmut. Is this the version compiled today?

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1868#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#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 |
-------------------------+--------------------------------------------------

Comment(by hellik):

Replying to [comment:4 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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1868#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#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 |
-------------------------+--------------------------------------------------

Comment(by lucadelu):

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

Ciao
Luca

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1868#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#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 |
-------------------------+--------------------------------------------------

Comment(by annakrat):

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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1868#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#1868: g.mapset now broken
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: g.mapset
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by cmbarton):

  * status: new => closed
  * resolution: => fixed

Comment:

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

Thanks much
Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1868#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>