Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267012 - dev-python/PyQt4-4.4.4-r3: infinite loop when triggering certain events on QGraphicsProxyWidget
Summary: dev-python/PyQt4-4.4.4-r3: infinite loop when triggering certain events on QG...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-21 20:30 UTC by Fabio Erculiani (RETIRED)
Modified: 2009-04-27 13:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
QGraphicsProxyWidget patch that fixes the segfault (PyQt4-4.4.4-qgraphicsproxywidget-avoid-event-callback-loop.patch,1004 bytes, patch)
2009-04-21 20:31 UTC, Fabio Erculiani (RETIRED)
Details | Diff
patched ebuild (PyQt4-4.4.4-r3.ebuild.patch,336 bytes, patch)
2009-04-21 20:33 UTC, Fabio Erculiani (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Erculiani (RETIRED) gentoo-dev 2009-04-21 20:30:34 UTC
Hi,
we've been able to reproduce and fix a bug in PyQt 4.4.4 which causes a segfault when using QGraphicsProxyWidget's drag/drop events. The issue is that in QGPW sip file they aren't declared and thus the superclass ones are called (QGraphicsItem) which call back the subclass ones causing an infinite loop.

The attached patch fixes it.

Reproducible: Always

Steps to Reproduce:
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2009-04-21 20:31:11 UTC
Created attachment 189083 [details, diff]
QGraphicsProxyWidget patch that fixes the segfault
Comment 2 Fabio Erculiani (RETIRED) gentoo-dev 2009-04-21 20:33:37 UTC
Created attachment 189084 [details, diff]
patched ebuild
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2009-04-23 22:08:34 UTC
Thanks for reporting this bug and providing a patch as well

Did you contact upstream to inform them about this issue in order to include your patch ( as long as it is valid ) on future PyQt4 releases ? :)

It is always good to push our patches upstream as well  :)
Comment 4 Fabio Erculiani (RETIRED) gentoo-dev 2009-04-23 22:19:25 UTC
You're welcome.
Of course I did, don't know if in the right way btw.
Just mailed info@riverbankcomputing.com atm.

Without that patch, drag and drop on QGPW causes segmentation faults due to infinite loop.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2009-04-26 21:38:47 UTC
+*PyQt4-4.4.4-r4 (26 Apr 2009)
+
+  26 Apr 2009; Markos Chandras <hwoarang@gentoo.org>
+  +files/PyQt4-4.4.4-qgraphicsproxywidget-avoid-event-callback-loop.patch,
+  +PyQt4-4.4.4-r4.ebuild:
+  Adding qt-xmlpatterns as dependency. Add patch for QGraphicsProxyWidget (
+  thanks to Fabio Erculiani <lxnay@sabayonlinux.org> for providing the patch
+  ). Fixes bug #267012
+

Thanks for reporting. Re-open if needed

Please let us know if upstream responds to you about your proposed patch :)
Comment 6 Fabio Erculiani (RETIRED) gentoo-dev 2009-04-27 13:42:17 UTC
Thanks to you too.
Allright, will inform here if they'll decide to reply back.