Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C7A7B10FCE for ; Thu, 23 Jan 2014 16:48:38 +0000 (UTC) Received: (qmail 97217 invoked by uid 500); 23 Jan 2014 16:48:38 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 97196 invoked by uid 500); 23 Jan 2014 16:48:38 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 97185 invoked by uid 99); 23 Jan 2014 16:48:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jan 2014 16:48:38 +0000 Date: Thu, 23 Jan 2014 16:48:37 +0000 (UTC) From: "Matthew Keable (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CB-5734) Android - Correct Orientation OutOfMemoryError MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)