Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] wx._core.wxAssertionError: C++ assertion ""node"" failed at /tmp/pip-install-u096cwqt/wxpython_dc2f9072538a4405aa1b3547e540e5c1/ext/wxWidgets/src/common/menucmn.cpp(886) in GetMenu(): bad index in wxMenuBar::GetMenu() #2485

Closed
krcabrer opened this issue Jul 20, 2022 · 1 comment · Fixed by #2488
Labels
bug Something isn't working GUI wxGUI related

Comments

@krcabrer
Copy link

Iniciando GRASS GIS...
Limpiando archivos temporales...

      __________  ___   __________    _______________
     / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/
    / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
   / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
   \____/_/ |_/_/  |_/____/____/   \____/___//____/

Bienvenido a GRASS GIS 8.3.dev (adc9118)
Página web de GRASS GIS: https://grass.osgeo.org
Esta versión corriendo a través de: Bash Shell (/bin/bash)
La ayuda está disponible con el comando: g.manual -i
Vea los términos de la licencia con: g.version -c
Leer opciones para citar con: g.version -x
Si lo necesita, reinicie la GUI con: g.gui wxpython
En cuanto esté listo para salir escriba: exit

Lanzando GUI en el fondo, por favor espere...
To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.

GRASS world_latlong_wgs84/PERMANENT:~ > Traceback (most recent call last):
File "/home/kenneth/.local/lib/python3.10/site-packages/wx/core.py", line 3407, in
lambda event: event.callable(*event.args, **event.kw) )
File "/usr/local/grass83/gui/wxpython/wxgui.py", line 95, in show_main_gui
mainframe = GMFrame(parent=None, id=wx.ID_ANY, workspace=self.workspaceFile)
File "/usr/local/grass83/gui/wxpython/lmgr/frame.py", line 156, in init
self.workspace_manager.CreateRecentFilesMenu(
File "/usr/local/grass83/gui/wxpython/lmgr/workspace.py", line 507, in CreateRecentFilesMenu
file_menu = menu.GetMenu(
wx._core.wxAssertionError: C++ assertion ""node"" failed at /tmp/pip-install-u096cwqt/wxpython_dc2f9072538a4405aa1b3547e540e5c1/ext/wxWidgets/src/common/menucmn.cpp(886) in GetMenu(): bad index in wxMenuBar::GetMenu()

To Reproduce
Download the latest git code.
git clone https://github.com/OSGeo/grass.git
Complile
Install

On console:
grass

Expected behavior
Normal execution

System description (please complete the following information):

  • Linux
  • GRASS GIS version 8.3-dev

version=8.3.dev
date=2022
revision=adc9118a7
build_date=2022-07-20
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8

@krcabrer krcabrer added the bug Something isn't working label Jul 20, 2022
@tmszi
Copy link
Member

tmszi commented Jul 20, 2022

Could @krcabrer post output of this command python3 -c "import sys, wx; print(sys.version); print(wx.version())" and what kind of GNU/Linux distribution do you use, please?

Seems you are using Python 3.10 and bug is related with specific wxPython version.

With Python 3.9.13 and wxPython 4.0.7.post2 gtk3 (phoenix) wxWidgets 3.0.5 works wxGUI correctly tested on the Gentoo GNU/Linux distribution.

@tmszi tmszi added the GUI wxGUI related label Jul 20, 2022
@tmszi tmszi linked a pull request Jul 21, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI wxGUI related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants