Question

I'm facing a strange problem, the app I'm working on it's constantly killed due to Memory Pressure but it's not really using much as you can see in the screenshoot.
So I'm started to look for "other" issues like memory leaks, implicit casting, but I don't really know how to debug this kind of things, so... does anyone know how to get out of this problem ? :)

enter image description here

Was it helpful?

Solution

Typically termination due to memory pressure occurs when the app is suspended by the iOS itself. It happens when your device doesn't have a lot of free memory and it is often a good sign (meaning that this will happen to your app sooner or later when the user closes it).

I would offer you to use Instruments and to find where exactly does your app terminate (if this is the case). The good Instruments tutorial can be found here - http://www.raywenderlich.com/23037/how-to-use-instruments-in-xcode

OTHER TIPS

Memory allocated for the GPU (e.g. with glGenFramebuffers) will not show up in any memory instrumentation I can find, but using too much of this memory will count against you for memory pressure.

In my case, I was leaking by having a code path that missed glDeleteFramebuffers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top