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

2017-06-08 Thread Jeremy B (JIRA)

[ 
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-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-08 Thread Jeremy B (JIRA)

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

Jeremy B commented on CB-11784:
---

The fix comes this Fall?
We are attempting to use the simplecam-cordova plugin but it doesn't seem to 
get called, it skips right to using the cordova camera.  I've added the 
simplecam-cordova plugin via CLI to the project.  What's the trick to get it to 
work?

> 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-12852) [iOS] App crash after taking 30+ photos (possible memory leak)

2017-06-02 Thread Jeremy B (JIRA)

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

Jeremy B commented on CB-12852:
---

Are there any suggestions for work arounds?
We're having the same issue.  On an iPad 3rd gen, version 10.3.1, we can take 
about 42 pictures and crash the app every time.

> [iOS] App crash after taking 30+ photos (possible memory leak)
> --
>
> Key: CB-12852
> URL: https://issues.apache.org/jira/browse/CB-12852
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-camera
>Affects Versions: 2.4.1
> Environment: Devices tested:
> iPhone 6+ (A1522) - iOS 10.3.1
> iPad 3rd Gen (A1430) - iOS 9.3.5
> Apple iPad Air 2 (A1566) - iOS 10.3.1
> Versions:
> Xcode: 7.3.1 & 8.3.2
> cordova: 6.5.0
> cordova-ios: 4.1.1 & 4.4.0
> cordova-camera-plugin: 2.1.0 & 2.4.1 
>Reporter: Quentin Gangler
>  Labels: crash, ios, memory-leak
>
> To get that out of the way, I know there is already an issue for this bug 
> (CB-11784), but since the author found a workaround using his own plugin (and 
> the issue is on an older version of the plugin), I thought I would recreate 
> it here and give more details on my situation.
> Taking photos is a really important part of our app and our clients usually 
> need to take 100+ photos in one session. Unfortunately, the app seems to 
> crash after 20-50 photos taken. Looking at the memory usage, I can clearly 
> see the usage of "other processes" grow like [~modohash] noticed before (even 
> on the latest version of the plugin).
> My team doesn't really want to use his custom plugin because it's not an 
> official one and neither can we develop our own plugin since we are not 
> Objective-C developers.
> h3. Recreate the issue
> *0.* _(Optional)_ Modify [~modohash] [camera leak demo 
> app|https://github.com/modohash/cordova-camera-leak] to open the camera again 
> after a successful photo (cancel a photo to get out of the loop)
> {code:javascript|title=index.js (onDeviceReady)|borderStyle=solid}
> var button = document.getElementById('trigger-camera');
> button.addEventListener('click', function () {
> takePicture();
> }, false);
> function takePicture() {
> navigator.camera.getPicture(function () {
> navigator.camea.cleanup();
> takePicture();
> }, function () {
> console.log('failure');
> }
> }
> {code}
> *1.* Build the app with the latest cordova-ios and camera-plugin
> *2.* Click on *Trigger Camera*
> *3.* Take photo (+ use photo)
> *4.* Go to *2.* if *0.* is not implemented and wait for the crash (around 30 
> photos in on iPhone 6)
> h3. Questions
> Is there any workaround on this issue using the official plugin or do we 
> *have* to use another plugin custom to fix it?
> Is this really an Apple related issue like [~modohash] suggests?
> Thanks in advance for your anwsers



--
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