[PyQt] segfault creating an empty QGraphicsScene

Russell Warren russ at perspexis.com
Tue Sep 22 21:18:14 BST 2015


Was anyone able to reproduce this problem with the attached tiny test case?
This is a bit of a mystery and a bit of a deal breaker.  I really don't
understand what is causing the segfault.

The only next step I can think of doing here is to try and convert the
little test case to C++ to see if it is a Qt problem vs a PyQt problem.

Does anyone have any alternative suggestions?


On Fri, Sep 18, 2015 at 10:49 AM, Russell Warren <russ at perspexis.com> wrote:

> I'm creating a QGraphicsScene with the intent to render to a
> QQuickPaintedItem and I'm having segfault issues.
>
> I've stripped the problem down to a very small script pair and attached
> them.  Note that the QGraphicsScene.render() call is not even present since
> it didn't have anything to do with the segfault.
>
> The segfault happens on the creation of the QGraphicsScene.  Remove the
> line and the (bogus) application works.
>
> fwiw, even when you remove the line and it works, this program segfaults
> on me when I close the window.  I don't know why.  Also fwiw, at some point
> I did have similar code working and the QGraphicsScene was rendering
> properly to the QQuickPaintedItem.  I'm not sure what the difference is.
>
> My environment is Qt5.5.0 and PyQt 5.5,  Running on Debian 7.8 (wheezy)
> 64-bit.  This was also happening to me on Qt 5.4.1 and I upgraded in hopes
> of the problem disappearing.  It has also been confirmed to fail on Windows.
>
> Am I doing something wrong that is causing the segfaults, or is this a
> Qt/PyQt bug?
>
> Thanks,
> Russ
>
>


-- 
Russell Warren
Perspexis Technologies Inc.

This information is confidential and intended solely for the use of the
individual or entity to whom it is addressed.
If you have received this email in error, please notify the sender
immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150922/4b1d34f7/attachment-0001.html>


More information about the PyQt mailing list