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 3C117187B8 for ; Wed, 2 Mar 2016 19:48:19 +0000 (UTC) Received: (qmail 86170 invoked by uid 500); 2 Mar 2016 19:48:18 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 86113 invoked by uid 500); 2 Mar 2016 19:48:18 -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 85579 invoked by uid 99); 2 Mar 2016 19:48:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2016 19:48:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AB5F22C1F6A for ; Wed, 2 Mar 2016 19:48:18 +0000 (UTC) Date: Wed, 2 Mar 2016 19:48:18 +0000 (UTC) From: "Nikhil Khandelwal (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-10554) Media Capture: Null reference in low memory conditions 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-10554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nikhil Khandelwal updated CB-10554: ----------------------------------- Assignee: Richard B Knoll > Media Capture: Null reference in low memory conditions > ------------------------------------------------------ > > Key: CB-10554 > URL: https://issues.apache.org/jira/browse/CB-10554 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Media Capture > Environment: android > Reporter: Adam Duren > Assignee: Richard B Knoll > Priority: Critical > Labels: PR, android, pendingPR, triaged > > I have been testing my app in low memory conditions by setting the android developer setting of "Don't keep Activities" which simulates low memory conditions. Every time I use the capture plugin for video when returning from the capture activity the app crashes. It appears that the state is not saved and on resume there are now null references such as the callbackContext and results array. It is fixed by using the onRestoreStateForActivityResult and onSaveInstanceState methods. > *Related Exception* > {quote} > 7 14:30:31.181 23432-24842/com.ionicframework.alto442183 E/AndroidRuntime: FATAL EXCEPTION: pool-3-thread-2 > Process: com.ionicframework.alto442183, PID: 23432 > java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.sendPluginResult(org.apache.cordova.PluginResult)' on a null object reference > at org.apache.cordova.mediacapture.Capture$3.run(Capture.java:396) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) > at java.lang.Thread.run(Thread.java:818) > {quote} -- 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