cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5599) Rotating images within Camera can cause OutOfMemoryException
Date Fri, 06 Dec 2013 19:51:36 GMT

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

ASF subversion and git services commented on CB-5599:
-----------------------------------------------------

Commit 6f4fef8479d690b9037baa05ab4269f9279e1d80 in branch refs/heads/dev from [~kworam]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-camera.git;h=6f4fef8 ]

CB-5599 Android: Catch and ignore OutOfMemoryError in getRotatedBitmap()

getRotatedBitmap() can run out of memory if the image is very large:

http://simonmacdonald.blogspot.ca/2012/07/change-to-camera-code-in-phonegap-190.html

If this happens, simply do not rotate the image and return it unmodified.  If you do not catch
the OutOfMemoryError, the Android app crashes.


> Rotating images within Camera can cause OutOfMemoryException
> ------------------------------------------------------------
>
>                 Key: CB-5599
>                 URL: https://issues.apache.org/jira/browse/CB-5599
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Camera
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>            Priority: Minor
>
> Report via pull request:
> https://github.com/apache/cordova-plugin-camera/pull/3
> Proposed fix is to just not rotate the image in this case (seems reasonable)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message