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 1060 - Subclassing of QUiLoader leads to "Internal C++ object already deleted" exception
: Subclassing of QUiLoader leads to "Internal C++ object already deleted" excep...
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtUiTools
: HEAD
: PC MS Windows XP/Vista/7
: P2 normal
Assigned To: Paulo Alcantara
:
:
:
  Show dependency treegraph
 
Reported: 2011-11-16 13:46 EET by Vladimir Rutsky
Modified: 2012-02-09 16:29 EET (History)
11 users (show)

See Also:


Attachments
example that reproduces bug (487 bytes, text/x-python)
2011-11-16 13:46 EET, Vladimir Rutsky
Details
UI file for reproducing bug example (empty QDialog) (398 bytes, application/x-designer)
2011-11-16 13:48 EET, Vladimir Rutsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Rutsky 2011-11-16 13:46:45 EET
Created attachment 448 [details]
example that reproduces bug

After subclassing QUiLoader and loading with it some UI, access to resulting
widget leads to "Internal C++ object (...) already deleted" exception.

Please see attached example that reproduce this bug.

I tried different versions of PySide and found that this bug introduced in
version 1.0.6 of PySide (in 1.0.5 example works).
Comment 1 Vladimir Rutsky 2011-11-16 13:48:08 EET
Created attachment 449 [details]
UI file for reproducing bug example (empty QDialog)
Comment 2 Tyler W. Wilson 2011-12-20 17:34:52 EET
I am not sure this is appropriate, but I did not see a voting mechanism here. I
wanted to vote for this bug as well. I use some source online that uses a
custom UILoader to emulate the PyQt loadUi function, and it stopped working in
recent builds for me as well.

I know 1.0.8 and above have this issue, but that 1.0.4 does work (I downgraded
to this version since it is the only one I had handy).

Thank you,
Tyler
Comment 3 Paulo Alcantara 2011-12-22 00:25:00 EET
Hi,

Thanks for the report!

This bug has been fixed on PySide commit
ace1372c1a091faabdc6cfb00f187a993d31b2c4.
Comment 4 Vladimir Rutsky 2012-02-09 12:40:41 EET
Thanks, Paulo, for fixing this issue!

Please see bug #1138 which is almost same as this but arises when I override
other methods in QUiLoader, I think fix for that bug should be trivial.
Comment 5 Paulo Alcantara 2012-02-09 16:29:55 EET
Hi Vladimir,

(In reply to comment #4)
> Thanks, Paulo, for fixing this issue!
> 
> Please see bug #1138 which is almost same as this but arises when I override
> other methods in QUiLoader, I think fix for that bug should be trivial.

No problem. I'll take a look at it.


           - Paulo Alcantara