You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (Created) (JIRA)" <ji...@apache.org> on 2012/03/30 16:26:28 UTC

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

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

        

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

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-415:
--------------------------

    Fix Version/s:     (was: 1.9.0)
                   1.8.0
    
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> 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

        

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

Posted by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256890#comment-13256890 ] 

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

Apparently SF does not have the tablet. I need a Transformer Prime.
                
> 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
>             Fix For: 1.7.0
>
>
> 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

        

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

Posted by "Klaus Schmidt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449712#comment-13449712 ] 

Klaus Schmidt commented on CB-415:
----------------------------------

Hi Simon,

thank you for you quick response! Then we have to do some work for getting our app run with 2.0.0.
                
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Joe Bowser (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser reassigned CB-415:
-----------------------------

    Assignee: Joe Bowser  (was: Anis Kadri)
    
> 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
>             Fix For: 1.7.0
>
>
> 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

        

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

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald updated CB-415:
-------------------------------

    Fix Version/s:     (was: 1.8.0)
                   2.0.0

Sorry the fix version should be 2.0.0 wherein I put a lot of fixes in for Camera.
                
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Klaus Schmidt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449641#comment-13449641 ] 

Klaus Schmidt commented on CB-415:
----------------------------------

Hi!
I run Cordova 1.9.0 but with Transformer Prime I get exactly the same Crash log mentioned in the description of kzusy.
What can I do?
                
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Joe Bowser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-415:
--------------------------

    Fix Version/s: 1.7.0
    
> 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: Anis Kadri
>             Fix For: 1.7.0
>
>
> 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

        

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

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-415:
--------------------------

    Fix Version/s: 1.8.0

There is a weird memory issue here when we get the image. The weird thing is that we're recycling the image once we're done processing it.  We should optimize the code, but since this is confined to only the Transformer Prime, I'm going to assume that it's both an issue with our code and an issue with their implementation of the Android API.
                
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.8.0
>
>
> 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

        

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

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-415:
--------------------------

    Fix Version/s:     (was: 1.8.0)
                   1.9.0
    
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 1.9.0
>
>
> 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

        

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

Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-415:
-------------------------

    Fix Version/s:     (was: 1.7.0)

Removing the 1.7.0 fix version for this issue. As soon as we get a Transformer Prime in our hands we can test, identify the issue, and hopefully resolve, we'll tag into the appropriate version the fix will go into.
                
> 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

        

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

Posted by "Joe Bowser (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser reassigned CB-415:
-----------------------------

    Assignee: Anis Kadri  (was: Joe Bowser)

I need you to test this on a Transformer Prime.  You should have access to one.
                
> 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: Anis Kadri
>
> 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

        

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

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-415.
---------------------------

    Resolution: Fixed

Apparently Simon fixed this issue with another Bitmap recycle fix in the Camera.  Closing
                
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 1.9.0
>
>
> 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

        

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

Posted by "Glenn Lap (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473753#comment-13473753 ] 

Glenn Lap commented on CB-415:
------------------------------

Hello,
I can't seem to get around this problem with my app.  I have the exact error and description of this issue.  It seems to work fine on my Galaxy Nexus (jelly bean), Galaxy Tab, and an older phone running gingerbeard (Samsung Charge), but the company I am working for has deployed the Moto Razr MAXX (ICS 4.0.4) and it just wont cooperate.  It gives that memory error (Out of memory on a 31961104-byte allocation) after about 3 photo uploads using Cordova 2.1.  I am thinking the Razr MAXX is the issue, but I don't have a work around.
thanks for any help you can spare,
G
                
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "George Hamilton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274559#comment-13274559 ] 

George Hamilton commented on CB-415:
------------------------------------

I have the same problem on my Asus Transformer Prime TF201 running Android 4.0.3, with phonegap 1.7.0.
                
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 1.9.0
>
>
> 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

        

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

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270789#comment-13270789 ] 

Joe Bowser edited comment on CB-415 at 5/8/12 8:14 PM:
-------------------------------------------------------

There is a weird memory issue here when we get the image. The weird thing is that we're recycling the image once we're done processing it.  We should optimize the code, but since this is confined to only the Transformer Prime, I'm going to assume that it's both an issue with our code and an issue with their implementation of the Android API.

I can reproduce ONLY on the Transformer Prime, BTW.  Not on the Galaxy Nexus or any other device.  I'm running an update to see if it resolves itself on 4.0.4
                
      was (Author: bowserj):
    There is a weird memory issue here when we get the image. The weird thing is that we're recycling the image once we're done processing it.  We should optimize the code, but since this is confined to only the Transformer Prime, I'm going to assume that it's both an issue with our code and an issue with their implementation of the Android API.
                  
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> 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

        

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

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-415:
--------------------------

    Priority: Minor  (was: Major)
    
> 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 Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> 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