Memory Full causing crash

My last two apps have crashed when I am changing scenes. It usually takes a while but it will crash after 20-30 different scenes, only in my device.

The warnings i get from the Xcode console log are: 

<Warning>: low memory session log

<Warning>: Received memory warning.

<Notice>: jetsam: kernel termination snapshot being created

<Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)

But basically the low memory session log and memory warning over and over again until the app finally crashes. 

I am making the app with Kwik and Corona, so needless to say my coding/programming skills are not great. 

I saw on this thread https://forums.coronalabs.com/topic/22091-guide-findingsolving-memory-leaks/ it talks about memory leaks, but I can’t seem to find where in my code any of those things are. Again I am not really a coder. 

What should I do to keep the device from building up/storing all that memory? I do seem to understand what is happening but I just don’t know how to fix it. 

help please :slight_smile:

Hi @maria8,

Unfortunately, finding memory leaks (and plugging them) can be tricky. I would suggest, however, that you inspect usage of audio (if you’re using it). Audio is often a prime culprit for memory leaks, because the sound files and handles need to be properly cleaned up, or else they will stay in memory and cause all sorts of problems.

Brent

Brent, 

I don’t have any audio files in the project, which makes it harder to pinpoint. 

I did hear back from Kwik that is indeed was an issue on their end. I just took them a few days to respond. 

Thanks for your help Brent! You guys are really great !!

Hi @maria8,

Unfortunately, finding memory leaks (and plugging them) can be tricky. I would suggest, however, that you inspect usage of audio (if you’re using it). Audio is often a prime culprit for memory leaks, because the sound files and handles need to be properly cleaned up, or else they will stay in memory and cause all sorts of problems.

Brent

Brent, 

I don’t have any audio files in the project, which makes it harder to pinpoint. 

I did hear back from Kwik that is indeed was an issue on their end. I just took them a few days to respond. 

Thanks for your help Brent! You guys are really great !!