Memory leak in [camera start] / [camera stop] methods iOS7

asked 2014-01-12 17:34:59 -0600

sfr gravatar image

Repeatedly calling [camera start] and [camera stop] leads to a much greater than linear memory increase over time, and what looks to be a linear increase in CPU usage. By the 5th time you restart the camera, the application becomes almost unusable. This issue is independent of whether you release and reallocate the CvVideoCamera *camera each time you restart it, and also independent of whether you supply a parent view in the initializer. This has been tested in iOS 7 on an iphone 5s with opencv version 2.4.8.

I wanted to post this here before I file a bug report to see if anyone has any ideas about what might be going on.

edit retag flag offensive close merge delete

Comments

Hi, I have the same issue, as you say more or lest the 5th time is when it changes and is start being unusable due to the CPU usage which starts being 99% and the memory usage. There is another thread talking about the same thing in: http://answers.opencv.org/question/22880/cvvideocamera-on-ios7/ but I am not sure if there is a solution already

mccpower gravatar imagemccpower ( 2014-01-20 12:01:56 -0600 )edit