Opened 4 years ago

Closed 4 years ago

#60994 closed defect (invalid)

grass7 @7.8.3_2: crashes on start with wxWidgets 3.2

Reported by: nilason (Nicklas Larsson) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: grass7

Description

With the upgrade of wxWidgets to version 3.2, grass7 is failing already at start:

grass78
Starting GRASS GIS...
Traceback (most recent call last):
  File "/opt/local/share/grass78/gui/wxpython/gis_set.py", line 1146, in OnInit
    StartUp = GRASSStartup()
  File "/opt/local/share/grass78/gui/wxpython/gis_set.py", line 224, in __init__
    self._do_layout()
  File "/opt/local/share/grass78/gui/wxpython/gis_set.py", line 399, in _do_layout
    description=self.llocation)
  File "/opt/local/share/grass78/gui/wxpython/gis_set.py", line 376, in layout_list_box
    border=1)
wx._core.wxAssertionError: C++ assertion "!(flags & wxALIGN_CENTRE_HORIZONTAL)" failed at /Users/robind/projects/bb2/dist-osx-py37/build/ext/wxWidgets/src/common/sizer.cpp(2106) in DoInsert(): Horizontal alignment flags are ignored in horizontal sizers
OnInit returned false, exiting...
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the --text flag.
Use '--help' for further options
     grass78 --help
See also: https://grass.osgeo.org/grass78/manuals/helptext.html
Exiting...

wxWidgets 3.2 typically follows a wxPython 4.1.0 installation (via pip). This move is premature for GRASS, which version 7.8.3 isn't ready for either. GRASS 7.8.4, soon to be released, will be.

Change History (3)

comment:1 Changed 4 years ago by nilason (Nicklas Larsson)

wxWidgets 3.2 typically follows a wxPython 4.1.0 installation (via pip).

Correction: wxWidgets 3.1.4 follows wxPython 4.1.0

Working combo for GRASS 7.8.3 is: 4.0.7.post2 and wxWidgets 3.0.5.

comment:2 Changed 4 years ago by nilason (Nicklas Larsson)

Turned out I had GRASS_PYTHON set, which interfered and run GRASS with a non-macports python version. That might be an issue in itself, but this ticket may be closed. Sorry for the noise.

comment:3 Changed 4 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

Glad you got it working!

Note: See TracTickets for help on using tickets.