[Qgis-developer] qgis.gui crash on mac os x 10.4

William Kyngesburye woklist at kyngchaos.com
Tue Sep 11 12:45:15 EDT 2007


Hmm, have you installed Qt and PyQt/SIP yourself?  Which versions?   
It's loading some Qt stuff from the Qgis bundle and some from / 
Library/Frameworks.  It should all load from the Qgis bundle.  If the  
versions don't match, there will likely be problems.

It's a bit of an experiment, for now.  Trying to get the bundling  
thing working - I tested it withOUT an installed PyQt/SIP and  
frameworks, but didn't think there might be issues WITH an installed  
PyQt/SIP.

Probably Python is looking in it's own site-packes before any user- 
added paths.  I wonder if there is a way to change the sys.path  
search order?  I don't know THAT much about python, yet.


On Sep 11, 2007, at 11:16 AM, Luca Mandolesi wrote:

> Hi William,
> the path it's right beacause I can import succesfully qgis.core.
>
> The problem is only with qgis.gui. This is my crashlog:
>
> Command: Python
> Path:    /Library/Frameworks/Python.framework/Versions/2.5/ 
> Resources/Python.app/Contents/MacOS/Python
> Parent:  Python [738]
>
> Version: 2.5a0 (2.5alpha0)
>
> PID:    748
> Thread: 0
>
> Exception:  EXC_BAD_ACCESS (0x0001)
> Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
>
> Thread 0 Crashed:
> 0   sip.so            	0x0407bec4 sip_api_export_module + 644
> 1   gui.so            	0x011fd53d initgui + 189
> 2   org.python.python 	0x002b3bef _PyImport_LoadDynamicModule + 153
> (importdl.c:54)
> 3   org.python.python 	0x002b18d1 load_module + 201 (import.c:1752)
> 4   org.python.python 	0x002b1d9b import_submodule + 293 (import.c: 
> 2394)
> 5   org.python.python 	0x002b1fe9 load_next + 195 (import.c:2214)
> 6   org.python.python 	0x002b24dd import_module_level + 213  
> (import.c:2002)
> 7   org.python.python 	0x002b298d PyImport_ImportModuleLevel + 45
> (import.c:2066)
> 8   org.python.python 	0x0028d917 builtin___import__ + 156  
> (bltinmodule.c:49)
> 9   org.python.python 	0x0020e278 PyObject_Call + 45 (abstract.c:1860)
> 10  org.python.python 	0x002925b2 PyEval_CallObjectWithKeywords + 112
> (ceval.c:3433)
> 11  org.python.python 	0x00296464 PyEval_EvalFrameEx + 12333  
> (ceval.c:2063)
> 12  org.python.python 	0x00299cdc PyEval_EvalCodeEx + 1819 (ceval.c: 
> 2831)
> 13  org.python.python 	0x00297f4b PyEval_EvalFrameEx + 19220  
> (ceval.c:494)
> 14  org.python.python 	0x00299cdc PyEval_EvalCodeEx + 1819 (ceval.c: 
> 2831)
> 15  org.python.python 	0x0022f537 function_call + 320 (funcobject.c: 
> 517)
> 16  org.python.python 	0x0020e278 PyObject_Call + 45 (abstract.c:1860)
> 17  org.python.python 	0x00296cad PyEval_EvalFrameEx + 14454  
> (ceval.c:3844)
> 18  org.python.python 	0x00299cdc PyEval_EvalCodeEx + 1819 (ceval.c: 
> 2831)
> 19  org.python.python 	0x002975b1 PyEval_EvalFrameEx + 16762  
> (ceval.c:3660)
> 20  org.python.python 	0x00299cdc PyEval_EvalCodeEx + 1819 (ceval.c: 
> 2831)
> 21  org.python.python 	0x00299e90 PyEval_EvalCode + 87 (ceval.c:500)
> 22  org.python.python 	0x002bd8cb PyRun_StringFlags + 243  
> (pythonrun.c:1271)
> 23  org.python.python 	0x002bd992 PyRun_SimpleStringFlags + 72  
> (pythonrun.c:898)
> 24  org.python.python 	0x002ca4c1 Py_Main + 1296 (main.c:512)
> 25  org.python.python 	0x00001f8e 0x1000 + 3982
> 26  org.python.python 	0x00001eb5 0x1000 + 3765
>
...
>
> Binary Images Description:
...
> 	/Applications/qgis0.9.0.app/Contents/MacOS/lib/QtCore.framework/ 
> Versions/4/QtCore
>  0x167f000 -  0x170cfff QtNetwork
> 	/Applications/qgis0.9.0.app/Contents/MacOS/lib/QtNetwork.framework/ 
> Versions/4/QtNetwork
>  0x1757000 -  0x1796fff QtSvg
> 	/Applications/qgis0.9.0.app/Contents/MacOS/lib/QtSvg.framework/ 
> Versions/4/QtSvg
>  0x17c2000 -  0x17eefff org.maptools.proj 4.5.0 (PROJ
> 4.5.0-4)	/Library/Frameworks/PROJ.framework/Versions/4.5/PROJ
>  0x2008000 -  0x264bfff QtGui
> 	/Applications/qgis0.9.0.app/Contents/MacOS/lib/QtGui.framework/ 
> Versions/4/QtGui
>  0x29a5000 -  0x29f5fff QtXml
> 	/Applications/qgis0.9.0.app/Contents/MacOS/lib/QtXml.framework/ 
> Versions/4/QtXml
>  0x2a2a000 -  0x2c3efff Qt3Support
> 	/Applications/qgis0.9.0.app/Contents/MacOS/lib/ 
> Qt3Support.framework/Versions/4/Qt3Support
>  0x2d9e000 -  0x2dc5fff QtSql
> 	/Applications/qgis0.9.0.app/Contents/MacOS/lib/QtSql.framework/ 
> Versions/4/QtSql
...
>  0x4077000 -  0x4082fff sip.so
> 	/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
> site-packages/sip.so
>  0x4089000 -  0x4180fff QtCore.so
> 	/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
> site-packages/PyQt4/QtCore.so
>  0x4255000 -  0x4362fff QtCore
> 	/Library/Frameworks/QtCore.framework/Versions/4/QtCore
>  0x4419000 -  0x4447fff QtXml.so
> 	/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
> site-packages/PyQt4/QtXml.so
>  0x446f000 -  0x449bfff QtXml
> 	/Library/Frameworks/QtXml.framework/Versions/4/QtXml
>  0x44c7000 -  0x4913fff QtGui.so
> 	/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
> site-packages/PyQt4/QtGui.so
>  0x4ce7000 -  0x519dfff QtGui
> 	/Library/Frameworks/QtGui.framework/Versions/4/QtGui
>  0x5595000 -  0x5606fff core.so
> 	/Applications/qgis0.9.0.app/Contents/MacOS/share/qgis/python/qgis/ 
> core.so

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

"We are at war with them. Neither in hatred nor revenge and with no  
particular pleasure I shall kill every ___ I can until the war is  
over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people  
of the allied nations devoted an entire year exclusively to hating  
the ____ it wouldn't kill one ___ nor shorten the war one day."

<Ha, ha> "And it might give 'em all stomach ulcers."

- Tarzan, on war




More information about the Qgis-developer mailing list