[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] segfault creating an empty QGraphicsScene
From:       Russell Warren <russ () perspexis ! com>
Date:       2015-09-22 20:18:14
Message-ID: CAD91c16DcjbAvHpuDRNRhrp1fKGiGRyc8271fmq9P_hGNmbPxQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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.

[Attachment #5 (text/html)]

<div dir="ltr">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&#39;t understand what is \
causing the segfault.<div><br></div><div>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.</div><div><br>Does anyone have any alternative \
suggestions?</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On \
Fri, Sep 18, 2015 at 10:49 AM, Russell Warren <span dir="ltr">&lt;<a \
href="mailto:russ@perspexis.com" target="_blank">russ@perspexis.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">I&#39;m creating a QGraphicsScene with the intent to \
render to a QQuickPaintedItem and I&#39;m having segfault issues.<div><br></div><div>I&#39;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&#39;t have anything to do with \
the segfault.</div><div><br></div><div>The segfault happens on the creation of the \
QGraphicsScene.   Remove the line and the (bogus) application \
works.</div><div><br></div><div>fwiw, even when you remove the line and it works, this program \
segfaults on me when I close the window.   I don&#39;t know why.   Also fwiw, at some point I \
did have similar code working and the QGraphicsScene was rendering properly to the \
QQuickPaintedItem.   I&#39;m not sure what the difference is.</div><div><br></div><div>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.</div><div><br></div><div>Am I doing something wrong that is \
causing the segfaults, or is this a Qt/PyQt \
bug?</div><div><br></div><div>Thanks,</div><div>Russ</div><div><br></div><div> </div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div \
dir="ltr"><div><font color="#000099">Russell Warren</font></div><div><font \
color="#000099">Perspexis Technologies Inc.</font></div><div><font \
color="#000099"><br></font></div><div><font color="#000099">This information is confidential \
and intended solely for the use of the individual or entity to whom it is \
addressed.</font></div><div><span style="color:rgb(0,0,153)">If you have received this email in \
error, please notify the sender immediately.</span></div></div></div> </div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic