Memory Leak - Phonegap + Google Maps + iOS

343 views
Skip to first unread message

Dan

unread,
Dec 18, 2013, 5:47:21 AM12/18/13
to phon...@googlegroups.com
I'm having memory issues with the Google Maps API on iOS. 

Whilst panning or zooming the map through user input, memory usage rises. When interaction stops the memory usage drops but never to the same level as it was before. After a few minutes of use the memory usage is high and the app has crashed a number of times.

I can reproduce this with a very simple Phonegap app that does nothing more than load a google map. The increase is not as extreme as when using markers but you can definitely see memory usage rising with time through the Xcode Debug Navigator.

Not sure how to monitor memory usage on Android so I'm not sure if the problem exists there too.

Has anyone else come across this? I'm completely stumped as to how to deal with it and I'm not even sure if this is an issue Phonegap, UIWebView, iOS or Google Maps. but it's making my app completely releasable.

The index.html from my test app is attached if anyone would like to reproduce.




index.html

Ayman Mostafa

unread,
Feb 7, 2015, 7:24:08 AM2/7/15
to phon...@googlegroups.com
Hi Dan ,

Did you fix the issue? because I have the same.
And if not, did Apple reject the app because of this?

Thanks

Kim Hansen

unread,
Feb 12, 2015, 10:56:56 AM2/12/15
to phon...@googlegroups.com
All:

This memory leak is due to a bug in the Cordova 3.7.0 platform for iOS, details as well as instructions to use the fixed but unreleased version are here:


As near as I can tell, Android does not leak the way iOS does!


Reply all
Reply to author
Forward
0 new messages