Need help to find origin of a memory leakage
David Tremouilles
david.trem at gmail.com
Sun Oct 7 15:58:21 EDT 2007
Finaly catch the memory leak I was fighting with !!!!
Was a tricky one, but the solution was simple:
I had to include the contents of the notebook tab in a frame.
Otherwise the memory is not released when you remove the tab.
Any idea why is it like that??? Could it be kind of pygtk bug?
I attach the corrected example for the records.
Davic
2007/10/4, David Tremouilles <david.trem at gmail.com>:
> hello,
>
> I'm struggling with a memory leakage of my app for quite some
> time. Could somebody help?
>
> I join a demo program in attachment.
> The problem is that the memory consumption keeps on increasing while
> opening and closing tabs.
> In the demo attached a click on "button" will open a new tab. If, for
> example, you open ten new tabs, then close ten tabs, and open again
> ten tab, and repeat this many times you will see the memory
> consumption increases after each 10 close-10 open cycles.
> Could somebody help me on finding the origin of this leak?
>
> Note: I already post on pygtk list and did not get any useful help at
> this point in time.
> I use
> Python 2.5.1
> GTK: (2, 12, 0)
> pyGTK: (2, 12, 0)
> I already observed the same issue with older versions...
> It's been a long time I try to solve it...
>
> Thanks in advance,
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mem_leak.py
Type: application/octet-stream
Size: 2842 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20071007/e2f92867/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fenetre.glade
Type: application/octet-stream
Size: 1956 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20071007/e2f92867/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: element.glade
Type: application/octet-stream
Size: 1798 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20071007/e2f92867/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mem_leak_solved.py
Type: application/octet-stream
Size: 2916 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20071007/e2f92867/attachment-0003.obj>
More information about the Python-list
mailing list