You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org> on 2012/03/31 01:09:27 UTC

[jira] [Commented] (CB-415) Taking multiple pictures with the camera causes the app to crash

    [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242836#comment-13242836 ] 

Joe Bowser commented on CB-415:
-------------------------------

I can't reproduce on a Galaxy Nexus or on a Acer tablet.  I suspect this is device specific, since the prefs are almost identical to the MobileSpec tests.  I need to get a ASIS Transformer Prime to fully test this.
                
> Taking multiple pictures with the camera causes the app to crash
> ----------------------------------------------------------------
>
>                 Key: CB-415
>                 URL: https://issues.apache.org/jira/browse/CB-415
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> kzusy kevin.zusy@lmnsolutions.com
> Hey,
> I've been working on an app that uses the camera.  After taking
> several pictures, 1 at a time (several calls to
> navigator.camera.getPicture(), the app crashes with a dalvikvm error
> "Out of memory on a 31961104-byte allocation".  This happens with
> android, but not iOS.  I have been testing with an iPad2 and an Asus
> Transformer Prime TF201 running Android 4.0.3.
> getPicture is called with the following options:
> {
>    quality : 50,
>    targetWidth : 100,
>    targetHeight : 100,
>    destinationType : Camera.DestinationType.FILE_URI,
>    sourceType : Camera.PictureSourceType.CAMERA,
>    allowEdit : false
> }
> I've tried lowering the quality to 5, but the app still crashes.  This
> also only happens with either getPicture or captureImage.  It doesn't
> happen with captureVideo or captureAudio.
> Any idea why this might be happening/how to fix it?
> Crash log: https://gist.github.com/2238512
> Thanks,
> kzusy

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira