[PyQt] segfault when using qml (probably reference counting error)

Rex Dieter rdieter at math.unl.edu
Fri Mar 18 15:54:16 GMT 2011


Quoting downstream bug report,
https://bugzilla.redhat.com/show_bug.cgi?id=676042

(Using PyQt-4.8.3)...

When running some simple PyQt4 + QML apps, a segfault can be produced when 
the QML tries to make use of an object that is exposed to it by the PyQt 
code. Changing the code very slightly so that the PyQt4 code has an extra 
reference to the object removes the segfault.  This likely means that a 
reference to the object is not being created in the PyQt4 declarative code.

the downstream bug also includes some sample code as a test-case.

-- Rex



More information about the PyQt mailing list