Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1403

camera.getPicture crashes moto Droid X with large images using DATA_URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0, 2.0.0
    • 2.1.0
    • None
    • None
    • Moto Droid X, Android 2.3.4, Kernel 2.6.32.9-?

    Description

      When using navigator.camera.getPicture on Moto Droid X and the DATA_URL option, large return buffers will crash the app at the point of getPicture (generating a toast with force close). Here's a sample of the code:

      navigator.camera.getPicture(onPhotoDataSuccess, onFail,

      { quality: 100, destinationType: Camera.DestinationType.DATA_URL }

      );

      This code appears to function correctly on other devices we have tested that are running Android 2.3.4. The issue is only seen on our Droid X devices (we have tried two different Droid X's).

      Reducing the image size by lowering the quality to 20 or below will allow the program to process correctly. This can also be accomplished by shrinking the image size using the targetHeight/targetWidth options.

      Attachments

        Activity

          People

            macdonst Simon MacDonald
            pterman Phil T.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: