[PyQt] Segfault in PyQt 4.6.1

Phil Thompson phil at riverbankcomputing.com
Thu Oct 29 18:49:27 GMT 2009


On Thu, 29 Oct 2009 11:47:44 -0600, Kovid Goyal <kovid at kovidgoyal.net>
wrote:
> I should add that the segfault is present in the current snapshot as
well:
> 
> python2.6 -c "from PyQt4.Qt import QApplication, PYQT_VERSION_STR;
> QApplication([]); print PYQT_VERSION_STR; from PyQt4.QtWebKit import
> QWebPage; QWebPage()"
> 
> 4.7-snapshot-20091028
> Segmentation fault

The QApplication instance is being garbage collected before the QWebPage is
created.

It worked in earlier versions because of a PyQt bug which meant that the
QApplication dtor was never called - but it is now.

Phil


More information about the PyQt mailing list