[PyQt] Re: PyQt4 gc problems

Phil Thompson phil at riverbankcomputing.co.uk
Tue Nov 6 14:34:36 GMT 2007


On Tuesday 06 November 2007, Tim Blechmann wrote:
> >> i've upgraded to the latest debian packages of pyqt and sip (4.7.1).
> >> however i still experience the problem, described above ...
> >>
> >> is this issue known to be completely fixed?
> >
> > No bug is ever known to be fixed, only that it cannot be reproduced with
> > current test cases. Have you got a small, complete test case?
> >
> > Phil
>
> hm ... i don't have a test case for the issue, as i am using a small pyqt
> gui, with a c++ python module, that itself calls python code from a
> different thread.
> the assertion failure (posted in my first mail) is triggered from the
> python gc, which is executed from this thread, which is launched from the
> c++ code (and thus is not a qthread)
>
> maybe the backtrace is more helpful for you than for me:
>
> d2.1> dwhere
>
> >  0 __kernel_vsyscall PC=0xffffe410, FP=0xb2d64248 [@syscall_library at -32]
>
>    1 raise            PC=0xb7d997ef, FP=0xb2d6425c
> [/lib/i686/cmov/libc.so.6] 2 abort            PC=0xb7d9b17c, FP=0xb2d64388
> [/lib/i686/cmov/libc.so.6] 3 _Z17qt_message_output9QtMsgTypePKc
> PC=0xb77d1fd8, FP=0xb2d643b8 [/usr/lib/libQtCore.so.4.3.1.debug] 4
> _Z6qFatalPKcz    PC=0xb77d203c, FP=0xb2d663e8
> [/usr/lib/libQtCore.so.4.3.1.debug] 5 _Z11qt_assert_xPKcS0_S0_i
> PC=0xb77d2081, FP=0xb2d66408 [/usr/lib/libQtCore.so.4.3.1.debug] 6
> _ZN23QCoreApplicationPrivate19checkReceiverThreadEP7QObject PC=0xb7890b42,
> FP=0xb2d66478 [/usr/lib/libQtCore.so.4.3.1.debug] 7
> _ZN12QApplication6notifyEP7QObjectP6QEvent PC=0xb682fb89, FP=0xb2d667e8
> [/usr/lib/libQtGui.so.4.3.1.debug] 8 initQtGui        PC=0xb7349676,
> FP=0xb2d66828 [/usr/lib/python2.4/site-packages/PyQt4/QtGui.so] 9
> _ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent PC=0xb788f88c,
> FP=0xb2d66858 [/usr/lib/libQtCore.so.4.3.1.debug] 10
> _ZN16QCoreApplication9sendEventEP7QObjectP6QEvent PC=0xb7892c52,
> FP=0xb2d66878 [/usr/lib/libQtCore.so.4.3.1.debug] 11
> _ZN14QObjectPrivate16setParent_helperEP7QObject PC=0xb789f077,
> FP=0xb2d668c8 [/usr/lib/libQtCore.so.4.3.1.debug] 12 _ZN7QObjectD2Ev 
> PC=0xb78a4872, FP=0xb2d668f8 [/usr/lib/libQtCore.so.4.3.1.debug] 13
> _ZN7QLayoutD2Ev  PC=0xb685a411, FP=0xb2d66928
> [/usr/lib/libQtGui.so.4.3.1.debug] 14 _ZN17QMainWindowLayoutD0Ev
> PC=0xb6be61ee, FP=0xb2d66938 [/usr/lib/libQtGui.so.4.3.1.debug] 15
> _ZN7QWidgetD2Ev  PC=0xb688403e, FP=0xb2d66998
> [/usr/lib/libQtGui.so.4.3.1.debug] 16 _ZN11QMainWindowD2Ev PC=0xb6be2edc,
> FP=0xb2d669a8 [/usr/lib/libQtGui.so.4.3.1.debug] 17 initQtGui       
> PC=0xb71dff2e, FP=0xb2d669d8
> [/usr/lib/python2.4/site-packages/PyQt4/QtGui.so] 18 initQtGui       
> PC=0xb71acecf, FP=0xb2d669f8
> [/usr/lib/python2.4/site-packages/PyQt4/QtGui.so] 19 initQtGui       
> PC=0xb71acf22, FP=0xb2d66a08
> [/usr/lib/python2.4/site-packages/PyQt4/QtGui.so] 20 sip_api_free    
> PC=0xb7931dec, FP=0xb2d66a38 [/usr/lib/python2.4/site-packages/sip.so] 21
> PyType_GenericAlloc PC=0x0808d0ff, FP=0xb2d66a68 [/usr/bin/python2.4] 22
> _PyObject_GC_UnTrack PC=0x080e4849, FP=0xb2d66ae8 [/usr/bin/python2.4] 23
> _PyObject_GC_New PC=0x080e4e7e, FP=0xb2d66b08 [/usr/bin/python2.4] 24
> PyDict_New       PC=0x0807dbe6, FP=0xb2d66b28 [/usr/bin/python2.4] 25
> PyFrame_New      PC=0x08100fc0, FP=0xb2d66b58 [/usr/bin/python2.4] 26
> PyEval_EvalCodeEx PC=0x080ba954, FP=0xb2d66bf8 [/usr/bin/python2.4] 27
> PyEval_EvalFrame PC=0x080b948d, FP=0xb2d66d68 [/usr/bin/python2.4] 28
> PyEval_EvalCodeEx PC=0x080bb120, FP=0xb2d66e08 [/usr/bin/python2.4] 29
> PyClassMethod_New PC=0x08101a0c, FP=0xb2d66e68 [/usr/bin/python2.4] 30
> PyObject_Call    PC=0x0805a4f5, FP=0xb2d66e88 [/usr/bin/python2.4] 31
> PyClass_IsSubclass PC=0x0805fd92, FP=0xb2d670c8 [/usr/bin/python2.4] 32
> PyObject_Call    PC=0x0805a4f5, FP=0xb2d670e8 [/usr/bin/python2.4] 33
> PyEval_CallObjectWithKeywords PC=0x080b4577, FP=0xb2d67108
> [/usr/bin/python2.4] 34 PyEval_CallFunction PC=0x080db127, FP=0xb2d67138
> [/usr/bin/python2.4] 35 boost::python::override::operator
> ()<boost::python::handle<_object> > PC=0xb5ddca8a, FP=0xb2d67168
> [/home/tim/workspace/nova-stable/libs/boost/boost/python/override.hpp#138]
> 36 py_nova::py_interpreter::new_connection_callback PC=0xb5ddd0ca,
> FP=0xb2d671a8
> [/home/tim/workspace/nova-stable/source/gui/py_gui_wrapper.cpp#122]
>
>
> thanks, tim

I'm afraid you are on your own - or prove the problem exists without boost 
being in the picture.

Phil


More information about the PyQt mailing list