Posts

Post not yet marked as solved
1 Replies
744 Views
Users are reporting unrecoverable app crashes when using the AVCaptureDevice camera in our app. At minimum we want to fail gracefully. How can we capture this error? Is there an update or different AVCaptureDevice Camera that would prevent the problem? CameraUI -[CAMPriorityNotificationCenter _removeObserver:fromObserversByName:] Fatal Exception: NSGenericException *** Collection <__NSArrayM: 0x2838a3e10> was mutated while being enumerated. This rolls all the way back up to main.m so we cannot error handle in the thread that it occurs in. Fatal Exception: NSGenericException 0 CoreFoundation 0x18a967754 __exceptionPreprocess 1 libobjc.A.dylib 0x19f42e7a8 objc_exception_throw 2 CoreFoundation 0x18a967058 -[__NSSingleObjectEnumerator initWithObject:collection:] 3 CameraUI 0x1b4bcb1b0 -[CAMPriorityNotificationCenter _removeObserver:fromObserversByName:] 4 CameraUI 0x1b4bcb4f4 -[CAMPriorityNotificationCenter removeObserver:] 5 CameraUI 0x1b4b8b474 -[CAMViewfinderViewController dealloc] 6 CameraUI 0x1b4cdd030 -[CAMCameraViewController .cxx_destruct] 7 libobjc.A.dylib 0x19f40bcd8 object_cxxDestructFromClass(objc_object*, objc_class*) 8 libobjc.A.dylib 0x19f423148 objc_destructInstance 9 libobjc.A.dylib 0x19f42a5c4 _objc_rootDealloc 10 UIKitCore 0x18d38b96c -[UIResponder dealloc] 11 UIKitCore 0x18cc28f84 -[UIViewController dealloc] 12 CameraUI 0x1b4cd4114 -[CAMCameraViewController dealloc] 13 libobjc.A.dylib 0x19f42d57c AutoreleasePoolPage::releaseUntil(objc_object**) 14 libobjc.A.dylib 0x19f42d41c objc_autoreleasePoolPop 15 CoreFoundation 0x18a973f3c _CFAutoreleasePoolPop 16 CoreFoundation 0x18a8e061c __CFRunLoopPerCalloutARPEnd 17 CoreFoundation 0x18a8db2b4 __CFRunLoopRun 18 CoreFoundation 0x18a8da360 CFRunLoopRunSpecific 19 GraphicsServices 0x1a1f18734 GSEventRunModal 20 UIKitCore 0x18d355584 -[UIApplication _run] 21 UIKitCore 0x18d35adf4 UIApplicationMain 22 [OUR APP DISPLAY NAME] 0x104314454 main + 18 (main.m:18) 23 libdyld.dylib 0x18a596cf8 start
Posted Last updated
.