[pygtk] memory leak !?

Adrian Immler pygtk at dedicated.12mm.net
Wed Jun 14 04:02:30 WST 2006


hello list,

today i wrote a small script for viewing images (similar to "eye of gnome").
i noticed that when looking through an image archive of large images (one image between 2 and 3 mb) that the script consumes more and more memory with each image. with images at that size it takes not more than 20 images until the program terminates and outputs a "killed" to the console. this happens on my system with only 512mb ram at about 80mb ram usage for the script.

i have no idea why this happens and would like to know if you guys out there got any idea. i also need to mention that on my system at work i could not reproduce this error (but i use an older version of gtk and pygtk at work)
i have attached the script to this email. start it like "imageviewer /path/to/image" where also enough other images reside in the same folder und use the back and forward buttons.

the script is less than 150 lines of code and very readable.

i have these versions installed:

pkg-config --modversion gtk+-2.0
2.8.18
pkg-config --modversion pygtk-2.0
2.8.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imageviewer.py
Type: application/octet-stream
Size: 4772 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060613/c7e9deaa/imageviewer.obj


More information about the pygtk mailing list