From callback-dev-return-12505-apmail-incubator-callback-dev-archive=incubator.apache.org@incubator.apache.org Mon Sep 3 03:17:14 2012 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 23FC9DC93 for ; Mon, 3 Sep 2012 03:17:14 +0000 (UTC) Received: (qmail 32023 invoked by uid 500); 3 Sep 2012 03:17:12 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 31677 invoked by uid 500); 3 Sep 2012 03:17:10 -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 31612 invoked by uid 99); 3 Sep 2012 03:17:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 03:17:08 +0000 Date: Mon, 3 Sep 2012 14:17:08 +1100 (NCT) From: "Quek Seng Siong (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <166946072.29429.1346642228313.JavaMail.jiratomcat@arcas> In-Reply-To: <52584370.10142.1346213167721.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CB-1293) Camera.getPicture crashes when selecting from a Picasa album on Android 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-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447101#comment-13447101 ] Quek Seng Siong commented on CB-1293: ------------------------------------- Is this temp fix available for download? My app is going live in 3 weeks. I can't seem to find the main android repository mentioned. > Camera.getPicture crashes when selecting from a Picasa album on Android > ----------------------------------------------------------------------- > > Key: CB-1293 > URL: https://issues.apache.org/jira/browse/CB-1293 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 2.0.0 > Environment: Crash found with 2.0.0 on Galaxy Nexus running Android 4.0.4 > Reporter: Brion Vibber > Assignee: Simon MacDonald > Fix For: 2.2.0 > > > When using camera.getPicture with options: > destinationType: Camera.DestinationType.FILE_URI, > sourceType: Camera.PictureSourceType.PHOTOLIBRARY > and selecting a photo from a Picasa-synced album, the application crashes immediately upon trying to return the data. > Here's our downstream bug with some analysis: https://bugzilla.wikimedia.org/show_bug.cgi?id=39604 > FileUtils.getRealPathFromURI() cannot read the "_data" column from the content provider database, so imagePath and bitmap in CameraLauncher.onActivityResult are null. The crash occurs when trying to run bitmap.recycle(). > I can avoid the crash by adding a guard check for bitmap != null and the content: URI is usable in the app to load the image, but doesn't appear to work with FileTransfer. -- 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