| Reply | « Previous Thread | Next Thread » |
|
Consider this:
Code:
import appuifw
import e32
if __name__ == '__main__':
items = [u'test'] * 100
while True:
listbox = appuifw.Listbox(items)
appuifw.app.body = listbox
e32.ao_yield()
This is just a test case. I have a real life application that suffers from this sort of memory leaks. The same happens on Python 1.4.5 and Python 1.9.5 and 1.9.6, tested on Nokia E75. If there's a different control instead of a Listbox there's no leak. Please share any information you can (but keep in mind that I've googled a bit so I've heard about Listbox + icons problem, this is not my case - I'm not using any icons). |
|
Weird! You found a memory leak
![]() I confirm the leak on 1.9.6 SDK, it works for me atleast for a minute before crashing. I wonder if it happens with standalone applications too? Would if help if the heap size was increased? I tried this similar code and it worked for sometime more, Code:
import appuifw
import e32
if __name__ == '__main__':
items = [u'test'] * 100
while True:
listbox = appuifw.Listbox(items)
appuifw.app.body = listbox
e32.ao_sleep(0.1)
![]() --NirpSis http://sites.google.com/site/nirpsis/ http://nirpsis.blogspot.com/ |
|
Where should I report this?
|
|
Bug reports for
1.9.x: https://garage.maemo.org/tracker/?at...54&func=browse 1.4.x: http://sourceforge.net/tracker/?grou...55&atid=790646 -- Aapo Rista http://code.google.com/p/pys60gps/ http://opennetmap.org/ |
|
I have run into this on 1.4.5. I believe what worked for me is something like this:
Code:
import appuifw
import e32
if __name__ == '__main__':
items = [u'test'] * 100
while True:
listbox = appuifw.Listbox(items)
appuifw.app.body = listbox
del listbox
listbox = None
e32.ao_yield()
Btw, I'm not justifying the bug just trying to give you a workaround until the bug is fixed ;-)
Last edited by raf1hh : 2009-07-08 at 01:40.
Reason: Fix
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Detecting Memory Leaks | amalshah73 | Mobile Java General | 9 | 2009-05-21 16:10 |
| Leaks in the CSmlDmAdapter. | dr_rost | General Symbian C++ | 1 | 2009-05-01 21:56 |
| Just wanted to share the info about memory leaks | yajuvendra | General Symbian C++ | 0 | 2006-03-29 14:45 |
| Memory leaks | ManishPatil | General Symbian C++ | 0 | 2004-12-09 12:55 |
| Memory Leaks | abhishekmishra | General Symbian C++ | 1 | 2002-08-21 16:44 |