[PyQt] ANN: PyQt v4.9.2 and SIP v4.13.3 Released

Kovid Goyal kovid at kovidgoyal.net
Sun Jun 24 03:10:17 BST 2012


On Sat, Jun 23, 2012 at 10:26:08PM +0100, Phil Thompson wrote:
> On Sat, 23 Jun 2012 21:53:48 +0530, Kovid Goyal <kovid at kovidgoyal.net>
> wrote:
> > On Sat, Jun 23, 2012 at 01:36:42PM +0100, Phil Thompson wrote:
> >> Hmm, hardly anything has changed in PyQt4. Can you try using the...
> >> 
> >> qpy/QtCore/qpycore_pyqtproxy.cpp
> >> 
> >> ...from 4.9.1 in 4.9.2?
> > 
> > Still hangs.
> 
> I'm struggling to think what might have changed. Do you know the line at
> which it hangs? Does it look like a deadlock?

This line: 
http://bazaar.launchpad.net/~kovid/calibre/trunk/view/head:/src/calibre/gui2/viewer/main.py#L367

I figured out the problem. It is a conversion from QByteArray to
bytearray. The following code causes a hang:

bytearray(self.saveState(1))

This does not:

self.saveState(1)

Attached test case.

Kovid.

-- 
_____________________________________

Dr. Kovid Goyal 
http://www.kovidgoyal.net
http://calibre-ebook.com
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 1070 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120624/eeb6cef1/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120624/eeb6cef1/attachment.pgp>


More information about the PyQt mailing list