News for hackers. Stuff that matters.
Re:Scientific Breakthrough Lets SnappyCam App Take 20 Full-R... by Hopka on Thursday August 01, 2013 @04:57AM (#6139293)
It crashes for me every time I take somewhere between 60 and 75 frames with the main camera. With the front-facing camera, I can shoot forever. In the iPhone Settings (somewhere called Diagnosis & Usage), I have a bunch of LowMemory warnings. I'm using an iPhone 4S.
Re:Scientific Breakthrough Lets SnappyCam App Take 20 Full-R... by jpap on Thursday August 01, 2013 @05:32AM (#6139349)
Thanks for reporting it in!

It seems I enthusiastically chose a larger buffer size that appears to be having some issues on some devices that have a lot of memory pressure.

If you reboot your phone, as awful as that sounds, it will likely fix the issue.

EDIT: I've just submitted an update to Apple that uses a more conservative buffer size.

This aspect is hard to get right: I once used an adaptive buffer size that heeded to memory warnings, but that meant that the buffer filled to lower levels than a conservatively sized buffer.

If only iOS had an opt-in for an *alloc returning 0 instead of these warnings, or at least notifying us of how much space left before we're SIGKILL'ed.

Re:Scientific Breakthrough Lets SnappyCam App Take 20 Full-R... by Hopka on Thursday August 01, 2013 @08:01AM (#6139649)
Thank you, I'll try rebooting the phone.

I recently read an article here on HN that briefly touched on memory management under iOS and especially the problem of apps getting killed, maybe it is interesting for you: http://sealedabstract.com/rants/why-mobile-web-apps-are-slow... (scroll down to "How much memory is available on iOS?")