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 904 - Repeatedly opening a QDialog with Qt.WA_DeleteOnClose set crashes PySide
: Repeatedly opening a QDialog with Qt.WA_DeleteOnClose set crashes PySide
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: 1.0.4
: PC MS Windows XP/Vista/7
: P2 major
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-06-29 14:51 EEST by Simon Hibbs
Modified: 2011-07-22 22:12 EEST (History)
8 users (show)

See Also:


Attachments
Demonstration of non-modal dialog crash (1.65 KB, text/plain)
2011-06-29 14:51 EEST, Simon Hibbs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Hibbs 2011-06-29 14:51:50 EEST
Created attachment 358 [details]
Demonstration of non-modal dialog crash

I have attached a sample script that demonstrates the problem, which does not
occur under PyQt4. The problem affects non-modal dialog boxes created with the
Qt.WA_DeleteOnClose attribute set as follows:

self.setAttribute(Qt.WA_DeleteOnClose)

The dialog can be opened once ok, and sometimes can be opened several times,
but eventually opening the dialog causes the the application to crash.

Commenting out the setAttribute line prevents the crash, but means that dialogs
are not cleaned up when they are finished with, so that memory usage increases
every time the dialog is opened.
Comment 1 Simon Hibbs 2011-06-29 15:26:30 EEST
More information - here are the Windows crash report details.

Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    python.exe
  Application Version:    0.0.0.0
  Application Timestamp:    4cf14060
  Fault Module Name:    shiboken-python2.7.dll
  Fault Module Version:    0.0.0.0
  Fault Module Timestamp:    4de33f9c
  Exception Code:    c0000005
  Exception Offset:    00001f14
  OS Version:    6.1.7600.2.0.0.256.48
  Locale ID:    2057
  Additional Information 1:    0a9e
  Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:    0a9e
  Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
Comment 2 renato filho 2011-06-29 17:07:22 EEST
I can reproduce that. Thanks for the reporter.
Comment 3 renato filho 2011-07-01 23:56:04 EEST
fixed on shiboken commit:

ommit b55e12af2014f16a10a9df4ae4ac472e8170df9d
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Fri Jul 1 16:00:09 2011 -0300
Comment 4 renato filho 2011-07-22 22:12:59 EEST
release 1.0.5