[jira] [Comment Edited] (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&focusedCommentId=16043044#comment-16043044
 ] 

Christopher McCabe edited comment on CB-11784 at 6/8/17 5:07 PM:
-

[~jeremyb] There's no trick, you'd use it like this:

{code}
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
  }
);
{code}

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.


was (Author: modohash):
There's no trick, you'd use it like this:

{code}
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
  }
);
{code}

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] [Comment Edited] (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&focusedCommentId=16043044#comment-16043044
 ] 

Christopher McCabe edited comment on CB-11784 at 6/8/17 5:06 PM:
-

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

{code}
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
  }
);
{code}

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.


was (Author: modohash):
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 Christopher McCabe (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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-04-05 Thread Christopher McCabe (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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-04 Thread Christopher McCabe (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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 Christopher McCabe (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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] [Comment Edited] (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&focusedCommentId=15954863#comment-15954863
 ] 

Christopher McCabe edited comment on CB-11784 at 4/4/17 9:06 AM:
-

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


was (Author: modohash):
[~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

2016-09-19 Thread Christopher McCabe (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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 Christopher McCabe (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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



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

2016-08-30 Thread Christopher McCabe (JIRA)

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

Christopher McCabe updated CB-11784:

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

  was:
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 repeatedly you 
can see that while the app memory usage stays steady, the other processes 
accumulate memory.


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

2016-08-30 Thread Christopher McCabe (JIRA)

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

Christopher McCabe updated CB-11784:

Description: 
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 repeatedly you 
can see that while the app memory usage stays steady, the other processes 
accumulate memory.

  was:
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. 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 repeatedly you 
can see that while the app memory usage stays steady, the other processes 
accumulate memory.


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

2016-08-30 Thread Christopher McCabe (JIRA)

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

Christopher McCabe updated CB-11784:

Description: 
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. 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 repeatedly you 
can see that while the app memory usage stays steady, the other processes 
accumulate memory.

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


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

2016-08-30 Thread Christopher McCabe (JIRA)
Christopher McCabe created CB-11784:
---

 Summary: 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 galleray
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.



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

2016-08-30 Thread Christopher McCabe (JIRA)

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

Christopher McCabe updated CB-11784:

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

  was:
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 galleray
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.


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



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