PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 160 - Random segfault when re-opening dialogs
: Random segfault when re-opening dialogs
Status: CLOSED WORKSFORME
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-02-23 07:34 EET by gt6
Modified: 2010-05-04 18:42 EEST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gt6 2010-02-23 07:34:19 EET
Reproduce:
Do this on an n900 or in scratchbox preferably:
1. Download this sample app: http://stuff.moritzg.ch/dialogcrash.py
2. When running it, hit "remove" and a warning dialog will pop up
3. Close the dialog
4. Repeat Steps 2 and 3 one to five times
5. Segfault

Comments:
- Someone on #pyside confirmed the problem with this sample file
- PyQt doesn't crash with this same code
Comment 1 gt6 2010-03-08 09:12:19 EET
I made a better, shorter test case of this:
http://stuff.moritzg.ch/dialogcrash2.py

It's really short and very clear. Commenting the two lines which set a Layout
on the Dialog stops it from segfaulting. Like this, a couple of tries segfault
it.
PyQt does not segfault with the same script, although in my app, which is
bigger and has more stuff in the dialogs, PyQt also crashes, but seemingly less
frequently. The segfault occurs when the dialog is opened, starting from the
3rd opening upwards.
Comment 2 Hugo Parente Lima 2010-04-08 17:40:34 EEST
I tried some times with pyside-shiboken from git HEAD, on desktop, and it
didn't crashed.

Need to test if this bug still valid.