incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Terman (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-1403) camera.getPicture crashes moto Droid X with large images using DATA_URL
Date Sat, 08 Sep 2012 10:54:07 GMT

     [ https://issues.apache.org/jira/browse/CB-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Philip Terman updated CB-1403:
------------------------------

    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.




  was:
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,
            targetWidth: 2048,
            targetHeight: 1536
        }
    );

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).

Also, scaling down the image size or removing the image size and lowering the quality to 20
will allow the program to process correctly.



    
> camera.getPicture crashes moto Droid X with large images using DATA_URL
> -----------------------------------------------------------------------
>
>                 Key: CB-1403
>                 URL: https://issues.apache.org/jira/browse/CB-1403
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.7.0, 2.0.0
>         Environment: Android 2.3.4, Kernel 2.6.32.9-?
>            Reporter: Philip Terman
>            Assignee: Joe Bowser
>
> 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.

--
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

Mime
View raw message