Memory Warning but Small Live Bytes
Posted
by Kamchatka
on Stack Overflow
See other posts from Stack Overflow
or by Kamchatka
Published on 2010-05-27T15:56:12Z
Indexed on
2010/05/27
16:01 UTC
Read the original article
Hit count: 293
Hi everyone,
In my application, I get a memory warning of level 1 and then 2 after repeating some action (choosing a picture + processing) several times and then a crash.
The leak tool doesn't show any leak. I'm also following the Allocations tool in Instruments and my Live Bytes are roughly 4 MB, overall I allocate 113 MB. At maximum I have maybe 20 MB in memory when the picture is loaded.
Since I have to repeat an action to get to the crash, it is very likely to be a memory leak. However, I don't know how to locate it since my live bytes are 4 MB and things supposed to be allocated (apart a small leak of ~100 KB in the UIImagePickerController).
How much can I trust the memory leak/allocation tools? Would you have an advice to help me locate the reason of the problem?
© Stack Overflow or respective owner