manindra86 opened a new issue #678:
URL: https://github.com/apache/cordova-plugin-camera/issues/678


   # Bug Report
   
   ## Problem
   After taking the picture app crashing randomly in iOS 14. Sometimes it 
allows to take picture more than 40-50 but sometimes it get crash after taking 
4-5 images. 
   
   
   ### What is expected to happen?
   Crash should not happen.
   
   
   ### What does actually happen?
   While taking picture app is crashing randomly.
   Log:
   
   
   2020-10-15 16:58:38.407845+0530 MyApp[1853:107942] [Camera] Failed to read 
exposureBiasesByMode dictionary: Error Domain=NSCocoaErrorDomain Code=4864 "*** 
-[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data 
is NULL" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver 
_initForReadingFromData:error:throwLegacyExceptions:]: data is NULL}
   2020-10-15 16:58:41.897670+0530 MyApp[1853:107942] [Camera] Failed to read 
exposureBiasesByMode dictionary: Error Domain=NSCocoaErrorDomain Code=4864 "*** 
-[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data 
is NULL" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver 
_initForReadingFromData:error:throwLegacyExceptions:]: data is NULL}
   2020-10-15 16:58:44.499771+0530 MyApp[1853:107942] [Camera] Failed to read 
exposureBiasesByMode dictionary: Error Domain=NSCocoaErrorDomain Code=4864 "*** 
-[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data 
is NULL" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver 
_initForReadingFromData:error:throwLegacyExceptions:]: data is NULL}
   2020-10-15 16:58:48.525883+0530 MyApp[1853:107942] [Camera] Failed to read 
exposureBiasesByMode dictionary: Error Domain=NSCocoaErrorDomain Code=4864 "*** 
-[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data 
is NULL" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver 
_initForReadingFromData:error:throwLegacyExceptions:]: data is NULL}
   2020-10-15 16:58:50.795885+0530 MyApp[1853:111849] *** Terminating app due 
to uncaught exception 'NSGenericException', reason: '*** Collection 
<__NSArrayM: 0x281798900> was mutated while being enumerated.'
   *** First throw call stack:
   (0x1860a25ac 0x19a11c42c 0x1860a1f04 0x1ae8faa28 0x1ae8fad60 0x1ae9adae4 
0x1cd588794 0x102ca20f8 0x102ca0f50 0x102c90dd4 0x102c91cb4 0x102c9de38 
0x1cd5f4908 0x1cd5fb77c)
   libc++abi.dylib: terminating with uncaught exception of type NSException
   *** Terminating app due to uncaught exception 'NSGenericException', reason: 
'*** Collection <__NSArrayM: 0x281798900> was mutated while being enumerated.'
   terminating with uncaught exception of type NSException
   2020-10-15 17:06:47.634387+0530 MyApp[1853:109314] [Camera] 
[CAMCaptureEngine] Received a session runtime error notification : Error 
Domain=AVFoundationErrorDomain Code=-11819 "Cannot Complete Action" 
UserInfo={NSLocalizedDescription=Cannot Complete Action, 
NSLocalizedRecoverySuggestion=Try again later.}
   2020-10-15 17:06:47.634549+0530 MyApp[1853:109314] [Camera] 
[CAMCaptureEngine] Performing recovery from error: Error 
Domain=AVFoundationErrorDomain Code=-11819 "Cannot Complete Action" 
UserInfo={NSLocalizedDescription=Cannot Complete Action, 
NSLocalizedRecoverySuggestion=Try again later.}
   2020-10-15 17:06:47.634730+0530 MyApp[1853:109314] [Camera] 
[CAMCaptureEngine] Attempting to recover from a session runtime error by 
restarting the AVCaptureSession...
   *** Terminating app due to uncaught exception 'NSGenericException', reason: 
'*** Collection <__NSArrayM: 0x281798900> was mutated while being enumerated.'
   terminating with uncaught exception of type NSException
   
   
   ## Information
   Since this issue is random , So try taking lot of images continuously approx 
50 to 60. Sometimes app crash only with 4-5 images. This issue I am facing only 
with iOS 14 or iOS14.0.1.
   
   
   ### Environment, Platform, Device
   iPhone XR
   iOS. 14.0
   Xcode 12.0
   Camera plugin 5.0.0
   Cordova iOS 5.1.1
   
   
   
   I have added sample app and crash log.
   
[Camera-Plugin-Demo.zip](https://github.com/apache/cordova-plugin-camera/files/5386495/Camera-Plugin-Demo.zip)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to