[Qgis-user] GRASS 6.4.2 GUI broken in OS X Lion

William Kyngesburye woklist at kyngchaos.com
Fri Mar 9 12:39:52 PST 2012


On Mar 9, 2012, at 12:06 PM, Sergio Zárate wrote:

> Hi all.
>  
> Using Qgis Master in Lion, updating to GRASS 6.4.2 caused it to be unable to open the GUI, apparently due to incapacity for location setting problems:
> 
> Starting GRASS ...
> 
> Traceback (most recent call last):
> 
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 894, in <module>
> 
>     GRASSStartUp = StartUp(0)
> 
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/wx/_core.py", line 7981, in __init__
> 
>     self._BootstrapApp()
> 
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/wx/_core.py", line 7555, in _BootstrapApp
> 
>     return _core_.PyApp__BootstrapApp(*args, **kwargs)
> 
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 865, in OnInit
> 
>     StartUp = GRASSStartup()
> 
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 57, in __init__
> 
>     self.grassrc  = self._readGisRC()
> 
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 393, in _readGisRC
> 
>     grassrc[key.strip()] = utils.DecodeString(val.strip())
> 
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/utils.py", line 667, in DecodeString
> 
>     enc = locale.getdefaultlocale()[1]
> 
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 478, in getdefaultlocale
> 
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 410, in _parse_localename
> 
> ValueError: unknown locale: UTF-8
> 
> Error in GUI startup. If necessary, please
> 
> report this error to the GRASS developers.
> 
> Switching to text mode now.
> 
> Hit RETURN to continue...
> 
That looks like a problem I've seen in GRASS alone - the user's shell language setting has only the UTF-8 encoding but wxpython expects language.encoding.  I haven't heard back from the user if any of my suggestions have helped.


>  Before that, GRASS worked through Qgis, but if used alone the GUI crashed when pointing to grassdata folder.
> The system is located in Spanish, Mexico). In text mode, one is unable to change to the grassdata directory the pointed directory being home, thus unusable.
> 
> To make things totally wrong, after GRASS failure, Qgis 1.9.90-Alpha (8ccaef7) crashes as do 1.9.90-Alpha (8ccaef7) and 1.7.0-3:
> 
> Process:         QGIS [282]
> Path:            /Applications/QGIS-1.9.app/Contents/MacOS/QGIS
> Identifier:      org.qgis.qgis-dev
> Version:         1.9.90 (1.9.90 [8ccaef7])
> Code Type:       X86-64 (Native)
> Parent Process:  launchd [140]
> 
> Date/Time:       2012-03-09 11:21:20.803 -0600
> OS Version:      Mac OS X 10.7.2 (11C74)
> Report Version:  9
> 
> Interval Since Last Report:          53780 sec
> Crashes Since Last Report:           58
> Per-App Interval Since Last Report:  11994 sec
> Per-App Crashes Since Last Report:   3
> Anonymous UUID:                      EB8BF461-7E5D-483E-8A68-6C8025318E99
> 
> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
> 
> Exception Type:  EXC_CRASH (SIGABRT)
> Exception Codes: 0x0000000000000000, 0x0000000000000000
> 
> Application Specific Information:
> objc[282]: garbage collection is OFF
> abort() called
> terminate called throwing an exception
> 
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0   libsystem_kernel.dylib        	0x00007fff8d5e7ce2 __pthread_kill + 10
> 1   libsystem_c.dylib             	0x00007fff872aa7d2 pthread_kill + 95
> 2   libsystem_c.dylib             	0x00007fff8729ba7a abort + 143
> 3   libc++abi.dylib               	0x00007fff879b27bc abort_message + 214
> 4   libc++abi.dylib               	0x00007fff879affcf default_terminate() + 28
> 5   libobjc.A.dylib               	0x00007fff856241cd _objc_terminate + 114
> 6   libc++abi.dylib               	0x00007fff879b0001 safe_handler_caller(void (*)()) + 11
> 7   libc++abi.dylib               	0x00007fff879b005c std::terminate() + 16
> 8   libc++abi.dylib               	0x00007fff879b1152 __cxa_throw + 114
> 9   org.qgis.qgisgrass            	0x000000010d51defb QgsGrass::error_routine(char const*, int) + 127
> 10  libgrass_gis.dylib            	0x000000010d53d43b vfprint_error + 170
> 11  libgrass_gis.dylib            	0x000000010d53daf0 G_fatal_error + 141
> 12  libgrass_gis.dylib            	0x000000010d54348b G__no_gisinit + 53
> 13  org.qgis.qgisgrass            	0x000000010d513828 QgsGrass::init() + 174
> 14  libgrassplugin.so             	0x000000010d31641b QgsGrassPlugin::initGui() + 79
> 15  org.qgis.qgis-dev             	0x0000000100141604 QgsPluginRegistry::loadCppPlugin(QString) + 1042
> 16  org.qgis.qgis-dev             	0x000000010014286b QgsPluginRegistry::restoreSessionPlugins(QString) + 699
> 17  org.qgis.qgis-dev             	0x0000000100035c9f QgisApp::QgisApp(QSplashScreen*, bool, QWidget*, QFlags<Qt::WindowType>) + 3447
> 18  org.qgis.qgis-dev             	0x0000000100007efd main + 5194
> 19  org.qgis.qgis-dev             	0x00000001000067a4 start + 52
> 
...
> Reinstalling did not solve the issue ¿any suggestions, please?
> 
> Thanks,
> 
> Sergio
> 
I don't know about this one.  Does QGIS crash at startup, or when loading a GRASS layer?

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history."

- Hitchhiker's Guide to the Galaxy





More information about the Qgis-user mailing list