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 0891DD351 for ; Sat, 8 Sep 2012 10:56:10 +0000 (UTC) Received: (qmail 9970 invoked by uid 500); 8 Sep 2012 10:56:09 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 9942 invoked by uid 500); 8 Sep 2012 10:56:09 -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 9905 invoked by uid 99); 8 Sep 2012 10:56:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Sep 2012 10:56:07 +0000 Date: Sat, 8 Sep 2012 21:56:07 +1100 (NCT) From: "Philip Terman (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <325368867.54049.1347101767741.JavaMail.jiratomcat@arcas> In-Reply-To: <2079342245.54045.1347101407593.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (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 ] Philip Terman updated CB-1403: ------------------------------ Environment: Moto Droid X, Android 2.3.4, Kernel 2.6.32.9-? (was: Android 2.3.4, Kernel 2.6.32.9-?) > 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: 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