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 24B7B182E7 for ; Sat, 9 Jan 2016 01:19:40 +0000 (UTC) Received: (qmail 62180 invoked by uid 500); 9 Jan 2016 01:19:40 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 62147 invoked by uid 500); 9 Jan 2016 01:19:40 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 62115 invoked by uid 99); 9 Jan 2016 01:19:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jan 2016 01:19:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D0E372C1F57 for ; Sat, 9 Jan 2016 01:19:39 +0000 (UTC) Date: Sat, 9 Jan 2016 01:19:39 +0000 (UTC) From: "Nikhil Khandelwal (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-10309) App crash when using camera plugin to access gallery on Android Moto E 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-10309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nikhil Khandelwal updated CB-10309: ----------------------------------- Priority: Major (was: Critical) > App crash when using camera plugin to access gallery on Android Moto E > ---------------------------------------------------------------------- > > Key: CB-10309 > URL: https://issues.apache.org/jira/browse/CB-10309 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Affects Versions: 5.1.1 > Environment: Using Cordova 5.1.1, cordova-plugin-camera 2.0.0 and CrossWalk > Reporter: Mikle > Assignee: Richard B Knoll > > Currently i am using cordova-plugin-camera 2.0.0 and trying to add some photos from gallery. On almost all android and iOS devices it works great but on Motorola Moto E it crashes app. I am also using crosswalk for higher performance. I searched for this problem using logs i have found this branch of plugin https://github.com/apache/cordova-plugin-camera/compare/CB-8438cordova-plugin-camera. It seems that this fixes are already merged to plugin but it still crashes my app on that specific device. > Here are logs > ERROR: AndroidRuntime : FATAL EXCEPTION: pool-4-thread-2 > undefined ERROR: AndroidRuntime : Process: com.ionicframework.withionic734372, PID: 22807 > undefined ERROR: AndroidRuntime : java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference > undefined ERROR: AndroidRuntime : at org.apache.cordova.camera.CameraLauncher.failPicture(CameraLauncher.java:1165) > undefined ERROR: AndroidRuntime : at org.apache.cordova.camera.CameraLauncher.processPicture(CameraLauncher.java:1154) > undefined ERROR: AndroidRuntime : at org.apache.cordova.camera.CameraLauncher.processResultFromGallery(CameraLauncher.java:681) > undefined ERROR: AndroidRuntime : at org.apache.cordova.camera.CameraLauncher.access$000(CameraLauncher.java:66) > undefined ERROR: AndroidRuntime : at org.apache.cordova.camera.CameraLauncher$1.run(CameraLauncher.java:787) > undefined ERROR: AndroidRuntime : at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) > undefined ERROR: AndroidRuntime : at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) > undefined ERROR: AndroidRuntime : at java.lang.Thread.run(Thread.java:818) > undefined WARN: ActivityManager : Force finishing activity 1 com.ionicframework.withionic734372/.MainActivity > undefined INFO: OpenGLRenderer : Initialized EGL, version 1.4 > Here is my code > navigator.camera.getPicture(cameraSuccess, cameraError, { > quality: 50, > encodingType: 0, > targetWidth: 800, > targetHeight: 600, > destinationType: Camera.DestinationType.DATA_URL, > sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM > }); -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org