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 921 - Signals not automatically disconnected on object destruction
: Signals not automatically disconnected on object destruction
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.3
: PC Linux
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-07-07 03:59 EEST by Ed Page
Modified: 2011-07-22 22:12 EEST (History)
8 users (show)

See Also:


Attachments
Example script for both PyQt4 and PySide (1.32 KB, text/x-python)
2011-07-07 03:59 EEST, Ed Page
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Page 2011-07-07 03:59:06 EEST
Created attachment 371 [details]
Example script for both PyQt4 and PySide

(sorry if fixed already, PPA has not been updated)

The attached script has two main variables to tweak: PYSIDE and
DISCONNECT_ON_DELETE.

Expected behavior:
PYSIDE = False # Runs PyQt4 version
DISCONNECT_ON_DELETE = False
Result? slot is disconnected automatically and never executed

Actual behavior:
PYSIDE = True
DISCONNECT_ON_DELETE = False
Result? slot is executed, causing exceptions to be propagated through my code
and depending on root cause, very subtle behavioral changes

"DISCONNECT_ON_DELETE = True" is to demonstrate the work around I am having to
implement in my code.  This is messy because it is hard to determine if I hit
every code path.  I also worry that if the root cause deals with keeping
references around then I could have some subtle bugs.
Comment 1 Hugo Parente Lima 2011-07-11 21:41:50 EEST
Thanks for reporting, this bug certain need further investigation.
Comment 2 renato filho 2011-07-19 16:06:00 EEST
fixed on pyside commit:

commit b10a254814f3021489ade6ab626f5b6675f86858
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Fri Jul 15 19:00:33 2011 -0300
Comment 3 renato filho 2011-07-22 22:12:53 EEST
release 1.0.5