Huge memory leak each time set_menu is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
indicator-application (Ubuntu) |
Incomplete
|
Low
|
Unassigned |
Bug Description
Binary package hint: indicator-
It seems that there is a memory leak whenever set_menu() is called to generate an indicator menu. I have written an RSS feed reading program that re-creates the menu at a timed interval. Memory usage increases by up to 3-4Mb whenever set_menu() is called. I have run the script with just set_menu() commented out, and there is no increase in memory usage.
I have python-appindicator version 0.0.19-0ubuntu4 in Lucid although I believe it applies to newer versions too, such as the one in Maverick.
Further discussion of the issue here:
http://
One commenter submitted a test script which demonstrates the memory increasing over time:
# MEMORY LEAK TEST SCRIPT
#!/usr/bin/env python
import gtk, gobject, appindicator, time, glib
def refresh():
global ind
global menu
for menu_item in menu.get_
for i in range(0,20):
return 1
ind = appindicator.
ind.set_status (appindicator.
menu = gtk.Menu()
ind.set_menu(menu)
glib.timeout_
gtk.main()
description: | updated |
Changed in indicator-application (Ubuntu): | |
status: | New → Incomplete |
status: | Incomplete → New |
Ops, sorry for that, press the wrong button :)
I am the commenter that submitted the test case above.
The problem effect both Lucid and Maverick, and is real annoying, as it cripples programs that need a constant updating menu.
I've tried many different things to bypass this memory leak, but even removing the app indicator doesn't free the memory.
So I would really appreciate it if someone would find a solution to this problem :)
Thanks,
Jim