[jira] [Commented] (CB-11784) Memory leak on iOS when opening and closing camera

2017-06-06 Thread Cody Becker (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16039907#comment-16039907
 ] 

Cody Becker commented on CB-11784:
--

FYI - This is fixed on iOS 11 !!!

> 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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11784) Memory leak on iOS when opening and closing camera

2017-06-02 Thread Cody Becker (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16035321#comment-16035321
 ] 

Cody Becker commented on CB-11784:
--

issue happens reliably on iPhone 6 (non-s model), I believe the high resolution 
photo and relatively low ram makes it so reproducible.  Between 40-50 pictures 
it will crash, usually around 44 for me.

Cody

> 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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-12876) Memory Leak

2017-06-02 Thread Cody Becker (JIRA)
Cody Becker created CB-12876:


 Summary: Memory Leak 
 Key: CB-12876
 URL: https://issues.apache.org/jira/browse/CB-12876
 Project: Apache Cordova
  Issue Type: Bug
  Components: cordova-plugin-camera
Affects Versions: Master
 Environment: iOS
Reporter: Cody Becker
Priority: Critical


Memory Leak & Crash, especially prevalent on iPhone 6 (non-s model), due to the 
high resolution of the camera.

To reproduce create an app which takes a photo and displays the image to a 
 box on the screen, take 40-45 successive photos and the app should crash.

Issue not present in alternative implementations such as:

https://github.com/LoganWright/SimpleCam




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org