Monkey Runtime Error :(Heap Size=65571KB......

Monkey Targets Forums/Android/Monkey Runtime Error :(Heap Size=65571KB......

Amon(Posted 2012) [#1]
Monkey Runtime Error :(Heap Size=65571kb, Allocated=62473KB)

C:/MonkeyPro65/modules/diddy/framework.monkey<1208>



This is what happens when I press the home button on my HTX One X during gameplay and try to resume the game by tapping its icon.

Unless I kill the process I cannot get the game to work again.

Any suggestions?


dragon(Posted 2012) [#2]
i did some tests on Galaxy Tab 7 / Android 2.3.3
with my unfinished game


Case 1:
i start every time my app from menu,
then i press home menu,
and go to task manager

#1 - 13 MB
#2 - 17,6 MB
#3 - 21,9 MB
#4 - 26,8 MB
#5 - 14,2 MB
#6 - 19,4 MB
#7 - 23,7 MB
#8 - 15,7 MB


Case 2:
i start it only one time from menu
then i press home button,
then i go to task manager
and i resume my game

#1 - 17,8 MB
#2 - 18 MB
#3 - 18 MB
#4 - 18 MB
#5 - 18 MB
#6 - 18 MB


after that i did again CASE 1 test - and i get never higher values than 18 MB...

i load my gfx only once - i never free gfx (texture 1024 x 1024)
i use only mojo-functions, no extras

strange?
i think here is some "java-magic" behind the scene


Amon(Posted 2012) [#3]
I think I sussed the problem.

When testing the game by running it in the ide and sending to the phone it only crashes like that if I press the home button then click the icon to start the game again from the phone.

i.e. if I sent it to the phone, ended it properly then started it up by using the phone installed version it doesn't crash like that no matter what I do.

Anyway, that didn't even make sense to me so........