[PyQt] Freezes and crashes with signal autoconnection

Christian Roche christian.roche.fr at gmail.com
Sat Nov 14 13:25:17 GMT 2009


Hi again;


Phil Thompson-5 wrote:
> 
> I can't remember if you are using snapshots or not, but there are some
> issues fixed related to looking up Python reimplementations of virtual
> methods.
> 

forget about Windows. The whole thing crashes so quick on Windows XP that I
can't even get a glimpse of the main window. I'm using the latest build
(PyQt-Py2.6-gpl-4.6.1-1.exe) but not snapshots as I can't compile there. I'd
be willing to compile a build there and also get debugger feedback but I
would need a pointer on some resource on how to do that on Windows.

Back on Linux I also get crashes although much less frequently. The
difference is that I'm able to get some feedback from the system in that
case so it might prove a bit more useful! Here is the backtrace of a random
crash that appears to occur when a thread calls the QUrl.resolved() method.
This is with PyQt4-4.5.4-1 and sip-4.8.2.
-----------------------------------------
Program terminated with signal 11, Segmentation fault.                                                        
#0  0x082c0f23 in qpycore_PyObject_FromQString (qstr=@0xb5bd21b8) at
qpycore_qstring.cpp:55                   
55              *pyu++ = (qstr.at(i)).unicode();                                               
(gdb) bt
#0  0x082c0f23 in qpycore_PyObject_FromQString (qstr=@0xb5bd21b8) at
qpycore_qstring.cpp:55
#1  0x0820f4b9 in slot_QString___str__ (sipSelf=0xb2f21f2c) at
sip/QtCore/qstring.sip:449
#2  0x03644e04 in PyObject_Unicode (v=0xb2f21f2c) at Objects/object.c:522
#3  0x036791eb in PyUnicodeUCS4_Format (format=0x901dda0, args=0xb2f21f2c)
at Objects/unicodeobject.c:8649
#4  0x03655a92 in PyString_Format (format=0x901dda0, args=0xb2f21f2c) at
Objects/stringobject.c:5090
#5  0x03655e1f in string_mod (v=0x901dc68, w=0xb2f21f2c) at
Objects/stringobject.c:4116
#6  0x03602d03 in binary_op1 (v=0xb7487b20, w=0xb2f21f2c, op_slot=16) at
Objects/abstract.c:914
#7  0x0360382b in binary_op (v=0xb7487b20, w=0x0, op_slot=16,
op_name=0x36e02c2 "%")
    at Objects/abstract.c:966
#8  0x03699afe in PyEval_EvalFrameEx (f=0xb5bd2364, throwflag=0) at
Python/ceval.c:1152
#9  0x0369df0d in fast_function (nk=<value optimized out>, na=<value
optimized out>,
    n=<value optimized out>, pp_stack=<value optimized out>, func=<value
optimized out>)
    at Python/ceval.c:3765
#10 call_function (nk=<value optimized out>, na=<value optimized out>,
n=<value optimized out>,
    pp_stack=<value optimized out>, func=<value optimized out>) at
Python/ceval.c:3700
#11 PyEval_EvalFrameEx (nk=<value optimized out>, na=<value optimized out>,
n=<value optimized out>,
    pp_stack=<value optimized out>, func=<value optimized out>) at
Python/ceval.c:2370
#12 0x0369ed79 in PyEval_EvalCodeEx (co=0x8e2eec0, globals=0x8ec52d4,
locals=0x0, args=0x91b6e78,
    argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at
Python/ceval.c:2942
#13 0x0362db87 in function_call (func=0x912ffb4, arg=0x91b6e6c, kw=0x0) at
Objects/funcobject.c:524
#14 0x0360172c in PyObject_Call (func=0x912ffb4, arg=0x91b6e6c, kw=0x0) at
Objects/abstract.c:2487
#15 0x03617284 in instancemethod_call (func=0xb6783af4, arg=0x91b6e6c,
kw=0x0) at Objects/classobject.c:2579
#16 0x0360172c in PyObject_Call (func=0xb6783af4, arg=0xb784f02c, kw=0x0) at
Objects/abstract.c:2487
#17 0x03697f14 in PyEval_CallObjectWithKeywords (func=0xb6783af4,
arg=0xb784f02c, kw=0x0)
    at Python/ceval.c:3548
#18 0x00603963 in PyDict_New () at Objects/dictobject.c:224
#19 0x081c7860 in sipVH_QtCore_5 (sipGILState=PyGILState_LOCKED,
sipMethod=0xb6783af4)
    at sipQtCorecmodule.cpp:3763
#20 0x081f233c in sipQThread::run (this=0x9503a28) at
sipQtCoreQThread.cpp:215
#21 0x001af2c2 in QThreadPrivate::start (arg=0x9503a28) at
thread/qthread_unix.cpp:188
#22 0x00984935 in start_thread (arg=0xb1afdb70) at pthread_create.c:297
#23 0x008b994e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
---------------------------------------

Unfortunately I'm afraid it would be quite difficult to extract a use case
from the application, specially since this crash appears rather
infrequently.

Chris

-- 
View this message in context: http://old.nabble.com/Freezes-and-crashes-with-signal-autoconnection-tp25716493p26349989.html
Sent from the PyQt mailing list archive at Nabble.com.



More information about the PyQt mailing list