[PyQt] Deallocate QPaintDevice and descendants when worker thread ends

2012-01-29 Thread Jack Cosgrove
Hi all, I have an application in which I embed a Python interpreter in a worker thread, and execute PyQT code using that interpreter. I was having some issues with memory leaks, so I want to deallocate all PyQT objects created by the worker thread when the worker thread ends. Using the Qt memory m

Re: [PyQt] Help understanding a backtrace

2012-01-29 Thread Phil Thompson
On Sun, 29 Jan 2012 22:20:26 +0530, Kovid Goyal wrote: > Got another crash, with the addition of SIP_ALIAS. The backtrace is a > little > different, now the crash happens in PyObject__GcUntrack called from > removeParent (backtrace attached). > > To be clear this is running off sip 4.13.1 release

Re: [PyQt] Help understanding a backtrace

2012-01-29 Thread Kovid Goyal
On Sun, Jan 29, 2012 at 11:05:39AM +, Phil Thompson wrote: > Yes, or the 4.13-maint branch... > > hg update 4.13-maint > > ...which (at the moment) are the same. OK, done. You'll hear from me in a week if there are no crashes, sooner otherwise. Kovid. -- __

Re: [PyQt] PyQt4 fails to build dbus.mainloop.qt extension with Python 3

2012-01-29 Thread Phil Thompson
On Sun, 29 Jan 2012 05:00:44 +0100, Arfrever Frehtes Taifersar Arahesis wrote: > 2012-01-27 11:42:04 Phil Thompson napisał(a): >> Try tonight's PyQt snapshot - completely untested. > > dbus.cpp: In function ‘dbus_bool_t add_watch(DBusWatch*, void*)’: > dbus.cpp:39:14: warning: ‘int dbus_watch_get

Re: [PyQt] Help understanding a backtrace

2012-01-29 Thread Phil Thompson
On Sun, 29 Jan 2012 12:42:13 +0530, Kovid Goyal wrote: > I did, specifically to a checkout with hg: > > hg clone http://www.riverbankcomputing.com/hg/sip/ && grep -r SIP_ALIAS > sip/ > destination directory: sip > requesting all changes > adding changesets > adding manifests > adding file changes