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 407 - Crash while multiple inheriting with QObject and native python class
: Crash while multiple inheriting with QObject and native python class
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 0.6.1
: All MS Windows XP/Vista/7
: P1 major
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-10-10 06:01 EEST by Alexey
Modified: 2011-07-22 22:12 EEST (History)
8 users (show)

See Also:


Attachments
Test case for this bug (403 bytes, application/octet-stream)
2010-10-10 06:01 EEST, Alexey
Details
new example code (320 bytes, text/x-python)
2011-06-28 22:28 EEST, renato filho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2010-10-10 06:01:55 EEST
Created attachment 115 [details]
Test case for this bug

Crash occurs when native parent constructor is called before qobject's-one.

This one will crash:

class Worker(threading.Thread,QObject):
    def __init__(self):
        threading.Thread.__init__(self)
        QObject.__init__(self)

But this one will not crash:

class Worker(threading.Thread,QObject):
    def __init__(self):
        QObject.__init__(self)
        threading.Thread.__init__(self)

Test case attached to this issue.
Comment 1 Hugo Parente Lima 2010-10-18 14:59:19 EEST
Works for me on Linux, I'm going to test it on Windows.
Comment 2 Hugo Parente Lima 2010-10-20 11:25:54 EEST
Also works on Windows using git HEAD, so changing status to invalid.
Comment 3 Hugo Parente Lima 2010-11-25 17:53:38 EET
Released on version 1.0.0~beta1
Comment 4 renato filho 2011-06-28 22:28:21 EEST
I found the same problem, you can check on my example code
Comment 5 renato filho 2011-06-28 22:28:47 EEST
Created attachment 356 [details]
new example code
Comment 6 renato filho 2011-06-29 01:27:14 EEST
fixed on shiboken commit:

commit fd78564e3a436e6bdd430d244e0fa9a6d5c20676
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Tue Jun 28 17:14:19 2011 -0300
Comment 7 renato filho 2011-07-22 22:12:46 EEST
release 1.0.5