[Qgis-developer] Crash Loading Python Plugins Using Qt 4.4.2

Tom Elwertowski telwertowski at comcast.net
Fri Sep 19 12:20:41 EDT 2008


QGIS Python Developers,

After upgrading to Qt 4.4.2, I crash when loading a Python plugin.

The message is:
QPixmap: Must construct a QApplication before a QPaintDevice

An abbreviated version (details below) of the crash path is:

QgisApp::loadPythonPlugin >
QgsPythonUtilsImpl::runStringUnsafe >
PyQt > QPixmap constructor

I don't know if a change is required in all QGIS Python plugins or 
whether there is an incompatibility between Qt 4.4.2 and PyQt.

Tom


--- Crash log ---
Process:         qgis [59747]
Path: 
/Users/tce/developer/qgis/trunk/build442/qgis1.0.0.app/Contents/MacOS/qgis
Identifier:      org.qgis.qgis
Version:         1.0.0-Kore (9358M) (1.0.0-Kore (9358M))
Code Type:       X86 (Native)
Parent Process:  bash [208]

Date/Time:       2008-09-19 11:57:01.282 -0400
OS Version:      Mac OS X 10.5.5 (9F33)
Report Version:  6

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib             	0x904e3b9e __kill + 10
1   libSystem.B.dylib             	0x9055aec2 raise + 26
2   libSystem.B.dylib             	0x9056a47f abort + 73
3   QtCore                        	0x197b8fa5 
qt_message_output(QtMsgType, char const*) + 149
4   QtCore                        	0x197b9079 qFatal(char const*, ...) + 73
5   QtGui                         	0x1a2c0a5e qt_pixmap_thread_test() + 94
6   QtGui                         	0x1a2c0d5d QPixmap::QPixmap() + 45
7   QtGui                         	0x1a29bcb5 
QPixmapIconEngine::addFile(QString const&, QSize const&, QIcon::Mode, 
QIcon::State) + 69
8   QtGui                         	0x1a29c313 QIcon::addFile(QString 
const&, QSize const&, QIcon::Mode, QIcon::State) + 99
9   QtGui                         	0x1a29c593 QIcon::QIcon(QString 
const&) + 67
10  QtGui.so                      	0x19c4ef9a init_QIcon + 482
11  sip.so                        	0x192255d6 sipWrapper_init + 147
12  org.python.python             	0x194efbe6 PyType_IsSubtype + 1288
13  org.python.python             	0x194b2d3d PyObject_Call + 50
14  org.python.python             	0x19520b1a PyEval_EvalFrameEx + 17904
15  org.python.python             	0x195209e8 PyEval_EvalFrameEx + 17598
16  org.python.python             	0x1952245b PyEval_EvalCodeEx + 1638
17  org.python.python             	0x19522548 PyEval_EvalCode + 87
18  org.python.python             	0x195399ec PyErr_Display + 1896
19  org.python.python             	0x1953a24b PyRun_StringFlags + 108
20  libqgispython.dylib           	0x1866d93b 
QgsPythonUtilsImpl::runStringUnsafe(QString const&) + 95 
(qgspythonutilsimpl.cpp:167)
21  libqgispython.dylib           	0x1866de28 
QgsPythonUtilsImpl::runString(QString const&, QString) + 42 
(qgspythonutilsimpl.cpp:173)
22  libqgispython.dylib           	0x186712ea 
QgsPythonUtilsImpl::startPlugin(QString) + 722 (qgspythonutilsimpl.cpp:486)
23  org.qgis.qgis                 	0x00013563 
QgisApp::loadPythonPlugin(QString, QString) + 451 (qgisapp.cpp:4216)
24  org.qgis.qgis                 	0x0003851a 
QgisApp::showPluginManager() + 350 (qgisapp.cpp:4142)


More information about the Qgis-developer mailing list