[PyKDE] Re: memleak with QMovie

Russell Valentine russ at coldstonelabs.org
Wed Oct 5 02:00:31 BST 2005


David Cuthbert said the following on 10/02/05 19:06:
> Russell Valentine wrote:
> 
>> More info I upgraded to Python 2.4.1 still same issue. I am using "gcc
>> version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)". I'll keep
>> trying different stuff, or perhaps actually see how PyQt works
>> internally to see if I could get a hint out of that.
> 
> 
> Have you tried valgrind-ing it to see if the leak is something easily
> detected?
> 

Good tip, I've never used valgrind before, ran it for about a minute:

==15136== 32768 bytes in 1 blocks are possibly lost in loss record 474
of 483
==15136==    at 0x1B902D7A: calloc (in
/usr/lib/valgrind/vgpreload_memcheck.so)
==15136==    by 0x1C93F1C6: (within /usr/qt/3/lib/libqt-mt.so.3.3.4)
==15136==    by 0x1CC65C24: mngzlib_alloc (in /usr/lib/libmng.so.1.0.0)
==15136==
==15136==
==15136== 603742 (144990 direct, 458752 indirect) bytes in 60 blocks are
definitely lost in loss record 482 of 483
==15136==    at 0x1B902D7A: calloc (in
/usr/lib/valgrind/vgpreload_memcheck.so)
==15136==    by 0x1C93F1C6: (within /usr/qt/3/lib/libqt-mt.so.3.3.4)
==15136==    by 0x1CC5CABD: mng_init_rowproc (in /usr/lib/libmng.so.1.0.0)
==15136==    by 0x1CC2C20F: (within /usr/lib/libmng.so.1.0.0)

So it has something to do with libmng, the c++ version doesn't lose
anything to while and valgrind shows there is no loss to libmng.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20051005/bb9a5d71/signature.bin


More information about the PyQt mailing list