[GRASS-dev] [GRASS GIS] #3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-------------------------+-------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Keywords: | CPU: x86-64
Platform: MSWindows 7 |
-------------------------+-------------------------
error message:

{{{
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
   File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1200
, in <module>
     GRASSStartUp = StartUp(0)
   File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_core.
py", line 7981, in __init__
     self._BootstrapApp()
   File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_core.
py", line 7555, in _BootstrapApp
     return _core_.PyApp__BootstrapApp(*args, **kwargs)
   File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1175
, in OnInit
     StartUp = GRASSStartup()
   File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 230,
  in __init__
     self._set_properties(grassVersion, grassRevisionStr)
   File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 282,
  in _set_properties
     self.OnSetDatabase(None)
   File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 929,
  in OnSetDatabase
     self.UpdateLocations(self.gisdbase)
   File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 796,
  in UpdateLocations
     self.lblocations.InsertItems(self.listOfLocations, 0)
   File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1152
, in InsertItems
     self._LoadData(choices, disabled)
   File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1141
, in _LoadData
     index = self.InsertStringItem(sys.maxsize, item)
   File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_contr
ols.py", line 4761, in InsertStringItem
     return _controls_.ListCtrl_InsertStringItem(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "m_count ==
ListView_GetItemCount(GetHw
nd())" failed at ..\..\src\msw\listctrl.cpp(1629) in
wxListCtrl::InsertItem(): m
_count should match ListView_GetItemCount
ERROR: Error in GUI startup. See messages above (if any) and if necessary,
pleas
e report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package,
proba
bly named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
Drücken Sie eine beliebige Taste . . .
}}}

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

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by hellik):

Replying to [ticket:3011 hellik]:
> error message:
>
> {{{
> Cleaning up temporary files...
> Starting GRASS GIS...
> Traceback (most recent call last):
> File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1200
> , in <module>
> GRASSStartUp = StartUp(0)
> File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_core.
> py", line 7981, in __init__
> self._BootstrapApp()
> File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_core.
> py", line 7555, in _BootstrapApp
> return _core_.PyApp__BootstrapApp(*args, **kwargs)
> File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1175
> , in OnInit
> StartUp = GRASSStartup()
> File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 230,
> in __init__
> self._set_properties(grassVersion, grassRevisionStr)
> File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 282,
> in _set_properties
> self.OnSetDatabase(None)
> File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 929,
> in OnSetDatabase
> self.UpdateLocations(self.gisdbase)
> File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 796,
> in UpdateLocations
> self.lblocations.InsertItems(self.listOfLocations, 0)
> File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1152
> , in InsertItems
> self._LoadData(choices, disabled)
> File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1141
> , in _LoadData
> index = self.InsertStringItem(sys.maxsize, item)
> File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_contr
> ols.py", line 4761, in InsertStringItem
> return _controls_.ListCtrl_InsertStringItem(*args, **kwargs)
> wx._core.PyAssertionError: C++ assertion "m_count ==
ListView_GetItemCount(GetHw
> nd())" failed at ..\..\src\msw\listctrl.cpp(1629) in
wxListCtrl::InsertItem(): m
> _count should match ListView_GetItemCount
> ERROR: Error in GUI startup. See messages above (if any) and if
necessary, pleas
> e report this error to the GRASS developers.
> On systems with package manager, make sure you have the right GUI
package, proba
> bly named grass-gui, installed.
> To run GRASS GIS in text mode use the -text flag.
> Exiting...
> Drücken Sie eine beliebige Taste . . .
> }}}
>

Tested with osgeo4w winGRASS 7.1svn from today, still an issue

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

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by veroandreo):

Hi Helli,

I just updated grass71 from osgeo4w, so I have r68380, and no issues here.
This is also a MSWindows 7 system. It all started normally. Also 7.0.4
works fine.

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

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by hellik):

Replying to [comment:1 hellik]:
> Replying to [ticket:3011 hellik]:
> > error message:
> >
> > {{{
> > Cleaning up temporary files...
> > Starting GRASS GIS...
> > Traceback (most recent call last):
> > File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1200
> > , in <module>
> > GRASSStartUp = StartUp(0)
> > File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_core.
> > py", line 7981, in __init__
> > self._BootstrapApp()
> > File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_core.
> > py", line 7555, in _BootstrapApp
> > return _core_.PyApp__BootstrapApp(*args, **kwargs)
> > File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1175
> > , in OnInit
> > StartUp = GRASSStartup()
> > File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 230,
> > in __init__
> > self._set_properties(grassVersion, grassRevisionStr)
> > File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 282,
> > in _set_properties
> > self.OnSetDatabase(None)
> > File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 929,
> > in OnSetDatabase
> > self.UpdateLocations(self.gisdbase)
> > File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 796,
> > in UpdateLocations
> > self.lblocations.InsertItems(self.listOfLocations, 0)
> > File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1152
> > , in InsertItems
> > self._LoadData(choices, disabled)
> > File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\gis_set.py",
line 1141
> > , in _LoadData
> > index = self.InsertStringItem(sys.maxsize, item)
> > File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-
unicode\wx\_contr
> > ols.py", line 4761, in InsertStringItem
> > return _controls_.ListCtrl_InsertStringItem(*args, **kwargs)
> > wx._core.PyAssertionError: C++ assertion "m_count ==
ListView_GetItemCount(GetHw
> > nd())" failed at ..\..\src\msw\listctrl.cpp(1629) in
wxListCtrl::InsertItem(): m
> > _count should match ListView_GetItemCount
> > ERROR: Error in GUI startup. See messages above (if any) and if
necessary, pleas
> > e report this error to the GRASS developers.
> > On systems with package manager, make sure you have the right GUI
package, proba
> > bly named grass-gui, installed.
> > To run GRASS GIS in text mode use the -text flag.
> > Exiting...
> > Drücken Sie eine beliebige Taste . . .
> > }}}
> >
>
> Tested with osgeo4w winGRASS 7.1svn from today, still an issue
>

Another user reported the same issue, see

https://lists.osgeo.org/pipermail/grass-dev/2016-May/080213.html

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

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by hellik):

Replying to [comment:2 veroandreo]:
> Hi Helli,
>
> I just updated grass71 from osgeo4w, so I have r68380, and no issues
here. This is also a MSWindows 7 system. It all started normally. Also
7.0.4 works fine.

thanks for testing.

tested here again: OSGeo4W-GRASS GIS 7.1.svn (r68418) still fails with the
above mentioned error.

OSGeo4W-GRASS GIS 7.0.4 works also fine here.

another test in the OSGeo4W-console:

{{{
C:\>grass71svn.bat --text
}}}

it starts in the text mode without any error, then:

{{{
C:\>g.gui wxpython
}}}

and the GUI starts also without any error.

any idea?

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

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by martinl):

The error seems to be connected to the startup screen. It's strange both
versions (7.0.4 and 7.1svn are build against the same version of wxPython)

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

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by dnewcomb):

OK, I just took the gis_set.py and gis_set.pyc from c:\program files\Grass
GIS 7.0.3\gui\wxpython and copied to c:\program files\GRASS GIS
7.1svn\gui\wxpython and started grass GIS 7.1svn without the error. It
looks like some cleanup has been done on the gis_set.py between the 7.0.x
version and the 7.1 version.

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

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.2.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
-----------------------+-------------------------
Changes (by neteler):

* milestone: 7.0.5 => 7.2.0

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

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.2.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by annakrat):

In [changeset:"68477" 68477]:
{{{
#!CommitTicketReference repository="" revision="68477"
wxGUI: don't use sys.maxsize with wx.ListCtrl - breaks GUI on 64bit
Windows, see #3011
}}}

--
Ticket URL: </ticket/3011#comment:8>
GRASS GIS <https://grass.osgeo.org>

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.2.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
-----------------------+-------------------------

Comment (by annakrat):

Can someone confirm the fix and close this?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3011#comment:9&gt;
GRASS GIS <https://grass.osgeo.org>

#3011: OSGeo4W-winGRASS71 r68376: starting wxgui fails
-----------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.2.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
-----------------------+-------------------------
Changes (by annakrat):

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

Comment:

I assume this works now.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3011#comment:10&gt;
GRASS GIS <https://grass.osgeo.org>