Memory Leak for each onSuspended and onResumed action

Hi,

I find that the app will have memory leak issue after I do suspend and resume action.

I know that PhotoPicker also has this memory leak issue.

Reference post:

http://forums.coronalabs.com/topic/27207-resolved-problems-savingloading-photos-from-album-on-android/page-2

When can Corona side fix this issue ?

I must need to do suspend and resume action frequently and must have a app release this week.

Thanks.

Sam

The photo picker issue is a bug in the Google libraries.  The engineers are trying to figure out a word around but its proving difficult.  As for the memory leak on suspending and resuming, this is the first I’ve heard of this (of course I may have missed previous forum discussions).  If you can provide a sample app showing the leak, then engineering could try and solve it.  Please file a bug report and post the bug number back here when you get the acknowledgment in email.    Please make sure to have a build.settings and config.lua with the project.

Thanks

Rob

Hi Rob,

Bug report submitted (Case 33402)

The sample code is built by CoronaEnterprise.2014.2189. (SimpleLuaExtension) for Android device only.

There is a background service running in the app.

Every 2 seconds, it gets the memory usage of the current app (SimpleLuaExtension) and print out.

For testing,

  1. Run the app

  2. Press Home to suspend the app

  3. Go to Setting->Apps->Running  to see the RAM usage

  4. Resume the app

  5. Repeat suspend and resume of the app by pressing “Recent app” in the android device

  6. Finally, in Setting->Apps->Running, the RAM usage of the app is increasing.

The sample code link:

http://www.sendspace.com/file/t2ur70

Free feel to ask question about the sample code.

Thanks.

Sam

Engineering is reporting they have a fix for this and will be in the next daily build or so.

Rob

Thanks Rob.

I think it fixed the memory leak issue.

Sam

The photo picker issue is a bug in the Google libraries.  The engineers are trying to figure out a word around but its proving difficult.  As for the memory leak on suspending and resuming, this is the first I’ve heard of this (of course I may have missed previous forum discussions).  If you can provide a sample app showing the leak, then engineering could try and solve it.  Please file a bug report and post the bug number back here when you get the acknowledgment in email.    Please make sure to have a build.settings and config.lua with the project.

Thanks

Rob

Hi Rob,

Bug report submitted (Case 33402)

The sample code is built by CoronaEnterprise.2014.2189. (SimpleLuaExtension) for Android device only.

There is a background service running in the app.

Every 2 seconds, it gets the memory usage of the current app (SimpleLuaExtension) and print out.

For testing,

  1. Run the app

  2. Press Home to suspend the app

  3. Go to Setting->Apps->Running  to see the RAM usage

  4. Resume the app

  5. Repeat suspend and resume of the app by pressing “Recent app” in the android device

  6. Finally, in Setting->Apps->Running, the RAM usage of the app is increasing.

The sample code link:

http://www.sendspace.com/file/t2ur70

Free feel to ask question about the sample code.

Thanks.

Sam

Engineering is reporting they have a fix for this and will be in the next daily build or so.

Rob

Thanks Rob.

I think it fixed the memory leak issue.

Sam