Opened 2 years ago

Last modified 2 years ago

#749 new defect

Launch Grass GUI problem — at Version 3

Reported by: migtab Owned by: osgeo4w-dev@…
Priority: major Component: Package
Version: Keywords: Grass GUI, Launch, setlocale, wxLocale
Cc: migtab

Description (last modified by jef)

I cant launch Grass GUI. Console message:

 "Iniciando GRASS GIS...
ADVERTENCIA: El bloqueo simultáneo de Directorio de mapas no está soportado
             en Windows
Limpiando archivos temporales...

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

Bienvenido a GRASS GIS 7.8.7
Página web de GRASS GIS:                 https://grass.osgeo.org
Esta versión corriendo a través de:      Command Prompt (C:\Windows\system32\cmd.exe)
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 <wxpython> en el fondo, por favor espere...
Microsoft Windows [Versión 10.0.19043.1766]
(c) Microsoft Corporation. Todos los derechos reservados.

D:\mfts-\Documentos>Traceback (most recent call last):
  File "C:\OSGeo4W\apps\Python39\lib\site-packages\wx\core.py", line 3407, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\wxgui.py", line 83, in show_main_gui
    mainframe = GMFrame(parent=None, id=wx.ID_ANY, workspace=self.workspaceFile)
  File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\lmgr\frame.py", line 141, in __init__
    self._createMenuBar()
  File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\lmgr\frame.py", line 268, in _createMenuBar
    self.menubar = GMenu(
  File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\gui_core\menu.py", line 47, in __init__
    self.Append(self._createMenu(child), child.label)
  File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\gui_core\menu.py", line 61, in _createMenu
    self._createMenuItem(menu, label=child.label, **data)
  File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\gui_core\menu.py", line 88, in _createMenuItem
    menuItem.SetBitmap(MetaIcon(img=icon).GetBitmap(self.bmpsize))
  File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\icons\icon.py", line 96, in GetBitmap
    image = wx.Image(name=self.imagepath)
wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(0, 0), "C") == 0" failed at D:\src\osgeo4w\src\wxwidgets\wxwidgets-3.1.5-0df1d81acd6f1be8624022f8eecb51679008ca40\src\common\intl.cpp(1694) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!"

My OS is Windows 10 64bits. The Grass installation was made with OSGeo4w. The Grass v is 7.8.7. I tried reinstalling Grass but still dont work. Also i tried installing other grass versions but they don't work either.

Change History (3)

comment:1 by migtab, 2 years ago

Description: modified (diff)

comment:2 by andreaerdna, 2 years ago

Not reproducible on my system (Windows 10 64 bit) with the latest grass 7.8.7-4 package (installed as a dependency of the qgis-full and qgis-ltr-full packages).

comment:3 by jef, 2 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.