Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 468F5D212 for ; Mon, 10 Sep 2012 02:24:08 +0000 (UTC) Received: (qmail 18857 invoked by uid 500); 10 Sep 2012 02:24:08 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 18828 invoked by uid 500); 10 Sep 2012 02:24:08 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 18629 invoked by uid 99); 10 Sep 2012 02:24:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2012 02:24:07 +0000 Date: Mon, 10 Sep 2012 13:24:07 +1100 (NCT) From: "Simon MacDonald (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <45997641.56362.1347243847847.JavaMail.jiratomcat@arcas> In-Reply-To: <2079342245.54045.1347101407593.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (CB-1403) camera.getPicture crashes moto Droid X with large images using DATA_URL 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-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simon MacDonald resolved CB-1403. --------------------------------- Resolution: Won't Fix Sadly there is nothing we can do about this one. When your Base64 encode an image that big the string data gets too big causing an out of memory exception in the JVM. OOM exceptions should never be caught since the JVM is in an unusable state once it is thrown so we are toast. > 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: Moto Droid X, Android 2.3.4, Kernel 2.6.32.9-? > Reporter: Phil T. > 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