Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6E101200CB0 for ; Thu, 8 Jun 2017 20:06:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6CB91160BD5; Thu, 8 Jun 2017 18:06:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BDC6C160BE7 for ; Thu, 8 Jun 2017 20:06:22 +0200 (CEST) Received: (qmail 70907 invoked by uid 500); 8 Jun 2017 18:06:22 -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 70894 invoked by uid 99); 8 Jun 2017 18:06:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2017 18:06:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 62C1ECA741 for ; Thu, 8 Jun 2017 18:06:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.01 X-Spam-Level: X-Spam-Status: No, score=-100.01 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id pfTmeu0rZ_xe for ; Thu, 8 Jun 2017 18:06:20 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1DA805F6CB for ; Thu, 8 Jun 2017 18:06:20 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3B1A5E0D96 for ; Thu, 8 Jun 2017 18:06:19 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6A7D921E14 for ; Thu, 8 Jun 2017 18:06:18 +0000 (UTC) Date: Thu, 8 Jun 2017 18:06:18 +0000 (UTC) From: "Jeremy B (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-11784) Memory leak on iOS when opening and closing camera MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 08 Jun 2017 18:06:23 -0000 [ https://issues.apache.org/jira/browse/CB-11784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16043161#comment-16043161 ] Jeremy B commented on CB-11784: ------------------------------- Awesome, it worked. Amazing what one little incorrect word can do. Thank you! > Memory leak on iOS when opening and closing camera > -------------------------------------------------- > > Key: CB-11784 > URL: https://issues.apache.org/jira/browse/CB-11784 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Affects Versions: 2.2.0 > Environment: Cordova CLI version 6.3.0 > cordova-plugin-camera 2.2.0 > cordova-ios 4.2.0 > iOS 9.3.5 > iPad Mini 1 > Reporter: Christopher McCabe > > When opening and closing the camera plugin without taking an image, the memory allocated under 'Other Resources' grows without ever being cleaned up. > Testing on an iPad mini 1, when I open and close the camera plugin without taking a picture I can crash the app. This usually takes about 130-150 times opening and closing the camera to cause a crash. The leak is present on newer devices but the app is harder to crash due to the much larger device memory. > Steps to reproduce: > 1. create an app with the camera plugin > 2. run the app on an iPad mini 1 > 3. open the camera plugin to take a picture, not from the gallery > 4. click cancel > 5. repeat 3 + 4 until the app crashes > It appears that Jetsam kills the app for not being a good memory citizen. > EDIT: I've tested this further and it appears on my iPad mini 3 as well although it's harder to trigger. I've included a sample app that can be used to view the problem > https://github.com/modohash/cordova-camera-leak > By clicking the 'trigger camera' button and then clicking cancel and repeating the process you can see that while the app memory usage stays steady, the other processes accumulate memory. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org