incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Commented) (JIRA)" <>
Subject [jira] [Commented] (CB-264) camera.getPicture() CRASH when repeatedly called on iOS
Date Mon, 12 Mar 2012 19:50:38 GMT


Shazron Abdullah commented on CB-264:

Hmm, that looks like a WebKit crash. Can you check whether you get any memory warnings in
your console log?

Fundamentally, this is a WebKit bug that cannot be worked around currently (it does not release
memory of images that a not used anymore). I did extensive measurements by loading huge images
in a previous project, and it consistently crashes because of this bug. 
I believe it has been reported to the WebKit project, with no resolution:
Usually, setting the image src to null I think would flag the gc to recycle the memory, but
I don't think it will work because of this bug.
Others have the same problem, from the Apple Dev Forums (login needed):
There are purported "workarounds" in some of the posts (I don't remember which) and I've tried
them all – with no success.

I however, haven't tried the workarounds or re-tested this bug with iOS 5.1.

> camera.getPicture() CRASH when repeatedly called on iOS
> -------------------------------------------------------
>                 Key: CB-264
>                 URL:
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: PG 1.4.1 on iOS
> Crash on iPhone4S, iPad2 and iPod Touch
>            Reporter: Phil Haeusler
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.6.0
> We are experiencing an intermittent crash when calling camera.getPicture() on multiple
devices.  The crash can occur either as the pickerController is popped in from the bottom,
or after you tap the Use button to accept the picture.  The app requires the taking and review
of pictures in a fairly fast manner.  We've found the crash can occur anytime after we've
capture only 1 or 2 photos.  Sometimes we go for quite a while without crashing.
> We see that the images captured are stored in tmp/photo_nnn.jpg, but we do not believe
we've reached any storage limits here.  
> We are taking the image and displaying it in a <img> - so possibly there is an
issue with UIWebView retaining references to previously loaded images, and exhausting it's
memory.  But not really sure if that could be an issue.
> We've created a small app that we can crash by repeated taking and viewing images.  There
doesn't seem to be anything special about it.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message