[PyQt] Disturbing evidence of garbage collection error
Erik.Janssens at conceptive.be
Sat Apr 28 13:30:07 BST 2012
and are you sure the query is being garbage collected, and
not something else ?
I've noticed in the past that the garbage collector often
kicks in right after a query or so. Probably because of
some time that has passed or something like that.
On Sat, 2012-04-28 at 12:14 +0100, Andrew Suffield wrote:
> On Sat, Apr 28, 2012 at 01:05:37PM +0200, Erik Janssens wrote:
> > which version of PyQt are you using ?
> > When in older versions (I think something like 2 releases ago),
> > the garbage collection kicks in in a thread and it deletes
> > a QObject from another thread, this object was deleted
> > immediately, while in recent versions those are deleted later
> > on in the event loop of the thread to which they belong.
> This is on 4.9.1, but that's a different sort of bug. This is
> happening while query.prepare is executing - there's no way that query
> should be considered garbage and get collected at this point. The bug
> is not that it's being collecting improperly, but rather that it's
> being collected at all while still in use.
More information about the PyQt