Joshua, I am already doing all that.
As I said, it is not only my game, but the Corona Photo Picker Sample app.
So, what you are saying is that Photo Picker app cannot be used more than 10 times, what does not make sense at all…
Imagine I am telling you that your Instagram app can only post 10 photos and after that it will restart… actually, it would only work only 2-3 times since Instagram has a lot more assets than the Photo Picker…
In addition, I don’t think that this is a out-of-memory issue since:
-
There is not memory warning being shown
-
I am printing here the textureMemoryUsed before going to the Album and it always prints “textureMemoryUsed= 0” (I made a simpler version of the Photo Picker without any assets, just touch to open the Album and show the image on screen)
But being honest with you, I am not even wanting a whole fix for that… I only want a work-around to make this works…
UPDATE: Since the system is killing the app, it is expected to be an out-of-memory issue. But all current indicators are not showing any sign of out-of-memory, so I only see 2 options:
-
It is not out-of-memory problem
-
There is some memory leak that is not being captured by available indicators (memoryWarning event, textureMemoryUsed,…)
UPDATE 2: I forgot to mention a important info. One of my users said that the game was working fine before and after an update it started the problem (he can only open 1 image per session). And I also was only able to reproduce this error recently. So, I conclude that this bug may be introduced in some daily build…