[PyQt] Freezes and crashes with signal autoconnection
Christian Roche
christian.roche.fr at gmail.com
Tue Dec 8 22:10:50 GMT 2009
Hi Phil,
thanks for the detailed explanation, although I have to admit I have a bit
of a hard time following through.. Anyway...
Phil Thompson-5 wrote:
>
> I've already suggested that you should simplify your ImageLink class so
> that it does not derive from QObject.
>
Okay but there must be something else here, I did just what you suggested
http://old.nabble.com/file/p26701730/main.py here (I had to replace
ImageLink arguments in signal definition with 'PyQt_PyObject', not sure why
exactly)
Still I get the same crash, after a few get_param iterations though, which
makes me believe it's not a pure GC'ed object issue :
>>python main.py
> get_param(http://abcdef.net/st/st.php?id=6630&script=1&url=http://g.ftv.com/4/17/377889&p=60,
> url)
> get_param(http://g.ftv.com/4/17/377889, url)
> [1] 3510 segmentation fault (core dumped) python main.py
>
>>gdb /usr/bin/python core.3510
> Program terminated with signal 11, Segmentation fault.
> #0 0x00247ef9 in qpycore_PyObject_FromQString (qstr=@0x9346a5c) at
> qpycore_qstring.cpp:49
> 49 if ((obj = PyUnicode_FromUnicode(NULL, qstr.length())) ==
> NULL)
>
> (gdb) bt
> #0 0x00247ef9 in qpycore_PyObject_FromQString (qstr=@0x9346a5c) at
> qpycore_qstring.cpp:49
> #1 0x001964b9 in slot_QString___str__ (sipSelf=0xb747450c) at
> sip/QtCore/qstring.sip:449
> #2 0x03644edf in _PyObject_Str (v=0xb747450c) at Objects/object.c:415
> #3 0x03654c16 in PyString_Format (format=0xb77df320, args=0xb77e306c) at
> Objects/stringobject.c:4839
> #4 0x03655e1f in string_mod (v=0x2b2a2928, w=0xb77e306c) at
> Objects/stringobject.c:4116
> [blah blah blah]
>
Thanks,
Chris
--
View this message in context: http://old.nabble.com/Freezes-and-crashes-with-signal-autoconnection-tp25716493p26701730.html
Sent from the PyQt mailing list archive at Nabble.com.
More information about the PyQt
mailing list