crash in serial queue capture.input.FigCaptureSessionSyncQueue
Application is crashing when capturing video using UIImagePickerController on a Airwatch managed iPhone 5s, iOS 8.1.3.
Following are the steps
1. Present UIImagePickerController and start capturing video.
2. While capturing video disable the camera usage option in the EMM server.
3. Stop the video and click on use video
4. The application crashes when picker controller is dismissed.
It seems the serial queue capture.input.FigCaptureSessionSyncQueue is crashing.
Following is the error:
-[UIWindow endDisablingInterfaceAutorotationAnimated:] called on <UIWindow: 0x14fd08e50; frame = (0 0; 320 568); gestureRecognizers = <NSArray: 0x17005a430>; layer = <UIWindowLayer: 0x170225ae0>> without matching -beginDisablingInterfaceAutorotation. Ignoring.
Assertion failed: (figCaptureSession == _inputInternal->figCaptureSession), function __46-[AVCaptureInput detachFromFigCaptureSession:]_block_invoke, file /SourceCache/EmbeddedAVFoundation/EmbeddedAVFoundation-887.52/Aspen/AVCaptureIn put.m, line 145.
I even tried removing the inputs from AVCaptureSession instance that is received by observing the notification: AVCaptureSessionDidStopRunningNotification but in vain. Has anyone come across similar crash?
iPhone 5s, iOS 8.1.3