You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Matthew Keable (JIRA)" <ji...@apache.org> on 2014/01/23 17:48:37 UTC

[jira] [Closed] (CB-5734) Android - Correct Orientation OutOfMemoryError

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

Matthew Keable closed CB-5734.
------------------------------

    Resolution: Duplicate

Duplicate of: https://issues.apache.org/jira/browse/CB-5599

> Android - Correct Orientation OutOfMemoryError
> ----------------------------------------------
>
>                 Key: CB-5734
>                 URL: https://issues.apache.org/jira/browse/CB-5734
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 3.2.0
>         Environment: Android 4.1
>            Reporter: Matthew Keable
>
> The Samsung Galaxy S3 takes very very large photographs, but seemingly does not have enough memory to effectively process them. 
> Unfortunately this can cause the camera code to throw an OutOfMemory Error when trying to correct the orientation of the image.
> Because the OutOfMemory error is not caught, the app will crash.
> This happens both from the Camera itself or retrieving camera images from the Gallery.
> Suggest either catching the OutOfMemory error on calls to bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true); or attempting to optimise the code such that the app can handle the rotations of larger images.
> Whilst we have only been able to confirm the existence of this bug on a Galaxy S3 running Android 4.1, given the fragmentation of the Android market it is likely that this might occur on other devices.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)