cordova-plugin-camera-preview icon indicating copy to clipboard operation
cordova-plugin-camera-preview copied to clipboard

Multiple instances warning on iOS.

Open okanseremet opened this issue 6 years ago • 1 comments

Hello thanks for the great plugin. I am developing continuous OCR feature on iOS. I start a camera session and take pics/snaphots multiple times. After the first shot XCode gives this warnings for every shot.

[lvl=3] +[GMVx_CCTClearcutUploader crashIfNecessary] Multiple instances of CCTClearcutUploader were instantiated. Multiple uploaders function correctly but have an adverse affect on battery performance due to lock contention.

I set an interval for every 2 secs to take pics and analyze the text. It works perfectly for 2 mins 45 secs and then camera stops working suddenly with this log: [shim] BKSProcessAssertion "ConnectionTerminationWatchdog" initialized with invalid pid Sometimes I see logs like the below. Received memory pressure event 4 vm pressure 1 Received memory pressure event 1 vm pressure 0

I am open to suggesstions for another camera plugins to achieve continous image processing. I tried cameracanvas plugin but it didnt work.

ionic 3.20.0 cordova 9.0.0 cordova-ios 5.0.1 ios 13.1.2 storeToFile:false

okanseremet avatar Oct 28 '19 11:10 okanseremet

I have the same a pending project with the same use case. Have you tried the following plugin (using the frames) ? https://github.com/VirtuoWorks/CanvasCameraPlugin

It seems to lack the function of auto-focus on some devices. If you find a suitable solution/plugin, please share it with us.

seme1 avatar Nov 05 '19 16:11 seme1