[android-developers] Google Maps v2 causes memory leak
Hi,
I have switched to the new Google Maps v2, it works quite well, but after some time I discovered growing memory consumption of my app. After investigation it turns out that the sample application demonstrating Google Maps v2 bundled in android sdk also suffers with growing memory consumption. The worst part is, that after several orientation changes on sample application the app crashes with OOM. The log from example crash is available here, but crashes occur on different places. The fastest way to reproduce this behavior is with the Multiple Maps sample, but I get it with Basic Map sample as well, it just takes longer. After getting heap dump and analyzing it in MAT I found that some object from map library holds the memory and is considered as GC root. The hprof file is available here. I found this problem on Galaxy Nexus with android 4.2 and HTC Desire with android 2.3.
I have found nothing regarding this issue on the internet so I'm asking here.
Have anybody else detected memory problems and was able to somehow prevent them?
Thanks in advance,
Tomas
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home