AVCaptureSession startRunning triggers AVFoundationError -11800 with unknown error -10851

Hello,

One of our customers is encountering an issue with video capture. The error is occurring when calling startRunning on an AVCaptureSession.

A NSNotification.Name.AVCaptureSessionRuntimeError is triggered as soon as startRunning is called on the AVCaptureSession. The error returned is cryptic as found below. Can someone please tell me why this might be happening?

Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-10851), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x283ababb0 {Error Domain-NSOSStatusErrorDomain Code=-10851 "(null)"}}

This is happening every time the user tries to capture video. It's a rare issue in that 99.99% of our customers don't face this issue but this customer is facing this problem every time.

Thanks

AVCaptureSession startRunning triggers AVFoundationError -11800 with unknown error -10851
 
 
Q