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

2017-07-12 Thread Sander Knopper (JIRA)

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

Sander Knopper commented on CB-11784:
-

Just a quick note that we were also able to resolve the issue using the 
simplecam-cordova plugin.

One thing that might be interesting though is that we were having this issue 
while using uiwebview. A development version of our application, which is a 
complete rewrite, uses wkwebview and doesn't seem to suffer from this memory 
issue.

> 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.4.14#64029)

-
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=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 Christopher McCabe (JIRA)

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

Christopher McCabe commented on CB-11784:
-

There's no trick, you'd use it like this:

navigator.simplecam.getPicture(
  function success(imgPath) {
// Do something with the file path
  },
  function failure(error) {
// Handle the failure case
  },
  {
quality: 50, // image quality 0 - 100
encodingType: 'jpeg', // jpeg or png
targetWidth: 800, // optional width constraint
targetHeight: 800 // optional height constraint
  }
);

The final parameter to getPicture is an options object which is a subset of the 
options available in the cordova camera plugin. More options could be added 
easily enough.

> 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=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-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 Armando Ruiz (JIRA)

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

Armando Ruiz commented on CB-11784:
---

I have the profiler logs, if you need it, please let me know.

Regards!


> 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] [Commented] (CB-11784) Memory leak on iOS when opening and closing camera

2017-05-30 Thread Armando Ruiz (JIRA)

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

Armando Ruiz commented on CB-11784:
---

I'm having the same error, every time that I take a picture and display as 
thumbnail in my application, the profiler tool from Xcode shows a memory leak 
error, When I inspect it it shows the memory leak on VTImageRotationSession and 
VTPixelTransferSession, and after 30 pictures the application crash. Android 
works perfectly 

Using:
cordovan-plugin-camera 2.4.1
Cordova 7.0.1
iOS: 10.x, 9.x


> 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-04-05 Thread Christopher McCabe (JIRA)

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

Christopher McCabe commented on CB-11784:
-

[~lasse] Unfortunately I don't have the plugin with the nicer UI, I no longer 
work for the company where I developed it so I've lost access to that repo. 
SimpleCam actually comes with a completely different UI, the UI that you see in 
the plugin is one that I hacked together to test if I could at least somewhat 
mimic the native camera UI on iPad (which I could). It's been a while since I 
looked at it, but loadControls in 
simplecam-cordova/src/ios/SimpleCam/SimpleCam.m is where the UI is built. It 
should be possible to implement whatever UI you like over the top of the core 
SimpleCam functionality by replacing/editing that one function.

P.S. To the best of my knowledge it works back to iOS 8 at least, maybe further.

> 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: 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-04-05 Thread Lasse (JIRA)

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

Lasse commented on CB-11784:


[~modohash] That is good to hear that SimpleCam has worked for you. I need to 
also support iPhones so I will still be testing the plugin on iPhones and other 
iOS versions. I also just noticed that the customer feedback that got me to try 
figure out what is going on, was related to a iPad Mini 1st gen. I haven't yet 
been able to confirm that SimpleCam fixes the issue on that specific device, 
but I'm very hopeful for now. Have you only made changes to the UI of the 
plugin that has been in use? Would it be possible for you to release that 
plugin as well? Anyways, thank you for the plugin, since I have zero experience 
with Objective-C/native iOS dev it is already a huge help.

> 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: 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-04-04 Thread Christopher McCabe (JIRA)

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

Christopher McCabe commented on CB-11784:
-

[~lasse] A version of this plugin with a slightly different UI (more like the 
native UI) has been in a iPad only production application for about the last 8 
months with no issues at all, in terms of stability it's been very solid 
although I would encourage you to do your own testing as well. Before that we 
were getting a lot of issues, especially with older iPad minis (Gen 1!). The 
migration path is very simple and you could modify the plugin for whatever 
purpose you need.

[~QGangler] One quick note is that the plugin currently relies on having the 
cordova camera plugin installed. I may remove this dependency but haven't 
needed to yet.

> 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: 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-04-04 Thread Quentin Gangler (JIRA)

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

Quentin Gangler commented on CB-11784:
--

I'm having the same issue as Lasse here. On a iPhone 6+ iOS 10.2.1, our app 
crashes after taking 50 photos (seems to be happening only on iOS 10).
I'll try Christopher's plugin, but I have the same concern as Lasse about the 
plugin reliability.
I have access to an iPad with iOS 9.3.5 and the previously mentioned iPhone 6+ 
with iOS 10.2.1 so I'll do some tests on those with the SimpleCam plugin.


> 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: 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-04-04 Thread Lasse (JIRA)

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

Lasse commented on CB-11784:


Using the simplecam-cordova plugin fixes the crashing issue on my iPad Air 
A1475 + iOS 10.3 beta (10.3.1 and 10.3.2) + Cordova 6.5.0 setup. XCode Memory 
report also shows that "Other processes" are not using more and more memory 
until the app crashes (= is closed by iOS).

With iPad 4th gen A1460 + iOS 10.2.1 the memory usage of "Other processes" 
seemed also to be lower with the simplecam-cordova plugin vs 
cordova-plugin-camera, but that device never ran out of memory with the amount 
of photos I tested with.

[~modohash] has your plugin been in use in any apps since September 2016? Do 
you have any idea if SimpleCam works well enough to be used in production?

Maybe it would be possible to switch to SimpleCam for taking photos on iOS. I 
would still need to test with iPhones and other versions of iOS, I only have 
iPads with iOS 10 for now.


> 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: 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-04-04 Thread Christopher McCabe (JIRA)

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

Christopher McCabe commented on CB-11784:
-

[~svaret] I've put it on Github, it's only tested on iPad: 
https://github.com/modohash/simplecam-cordova

> 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: 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-04-04 Thread Lasse (JIRA)

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

Lasse commented on CB-11784:


I am not running in to the exact same issue (although I haven't tried opening 
and canceling the camera hundreds of times in a row), but I think it is a 
similar issue.

The app is crashing after taking tens of photos in a row, so the crash is 
similar to this https://issues.apache.org/jira/browse/CB-10988, but when 
debugging with XCode I can see that the crash is probably related to the same 
as in this issue:

bq. the memory allocated under 'Other Resources' grows without ever being 
cleaned up

I can reproduce the issue currently with iPad Air A1475 + iOS 10.3 beta (10.3.1 
and 10.3.2) + Cordova 6.5.0 + cordova-plugin-camera 2.4.0 by:

1. Opening a Cordova HelloWorld app
2. Running navigator.camera.getPicture(function() {}, function () {}, {})
3. Taking the photo and approving the photo

Then repeating 2. and  3. until the app crashes, which on that device is very 
reliably around 40 photos. The Cordova app is not continuously reserving more 
memory, but the "Other processes" are.

I could not reproduce the issue in the same way on iPad 4th gen A1460 + iOS 
10.2.1. It seems the "Other resources" are freed faster and I didn't keep on 
clicking new photos for ever (I tried maybe 80-100 photos successively).

[~modohash] Do you have your own camera plugin on Github or somewhere, so I 
could test it out?

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

2016-09-19 Thread Christopher McCabe (JIRA)

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

Christopher McCabe commented on CB-11784:
-

I'll clean it up a little then fire it on Github. It's only tested on iPad and 
uses a forked version of SimpleCam which you can already see at: 
https://github.com/modohash/SimpleCam

> 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: 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.4#6332)

-
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

2016-09-14 Thread Michael Schmidt (JIRA)

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

Michael Schmidt commented on CB-11784:
--

Is it possible that you can share this? It could serve as basis for refactoring 
the existing camera plugin.

> 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
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: 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.4#6332)

-
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

2016-09-14 Thread Christopher McCabe (JIRA)

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

Christopher McCabe commented on CB-11784:
-

A quick update on this, I ended up writing a custom camera plugin that mimics 
the pieces of functionality in the cordova camera plugin that I'm using, but 
used AVFoundation rather than the built in camera picker. I think this is still 
an issue that needs to be addressed, and I think the fault probably lies with 
Apple on this one. Saying that, there's nothing to stop you guys implementing 
an AVFoundation camera plugin which looks/feels like the native picker which 
would solve the issue for users of the cordova camera plugin.

> 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
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: 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.4#6332)

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