[PyQt] Re: PyQt4 gc problems

Phil Thompson phil at riverbankcomputing.co.uk
Tue Nov 6 12:10:45 GMT 2007


On Tuesday 06 November 2007, Tim Blechmann wrote:
> hi all,
>
> >>> > so, i had quite a number of crashes, with messages like:
> >>> >
> >>> > ASSERT failure in QCoreApplication::sendEvent: "Cannot send events
> >>> > to objects owned by a different thread. Current thread b022db50.
> >>> > Receiver 'mainWindow' (of type 'QWidget') was created in thread
> >>> > 83ffd10", file kernel/qcoreapplication.cpp, line 269
> >>> >
> >>> > from what i can tell, these events are sent from the python garbage
> >>> > collector, which is called from an arbitrary thread, that is
> >>> > accessing python. after disabling the automatic gc and running
> >>> > gc.collect() from the QApplication loop manually, it seems to work
> >>> > flawless.
> >>> >
> >>> > is this a known bug/feature?
> >>> >
> >>> > thanks, tim
> >>>
> >>> Try the current snapshot.
> >>
> >> ...and I should have said - and the current SIP snapshot.
> >>
> >> Phil
> >
> > ah, i just saw in the sip changelog, that a bug with similar symptoms
> > has been fixed a few weeks ago ...
>
> i've upgraded to the latest debian packages of pyqt and sip (4.7.1).
> however i still experience the problem, described above ...
>
> is this issue known to be completely fixed?

No bug is ever known to be fixed, only that it cannot be reproduced with 
current test cases. Have you got a small, complete test case?

Phil


More information about the PyQt mailing list