facebookincubator / SocketRocket

A conforming Objective-C WebSocket client library.
Other
9.53k stars 2.01k forks source link

-[AVCaptureSession startRunning] startRunning may not be called between calls to beginConfiguration and commitConfiguration #679

Open nastasiupta opened 1 month ago

nastasiupta commented 1 month ago

Sometimes when I move the app from background to foreground, the app crashes with the following exception:

*** Terminating app due to uncaught exception 'NSGenericException', reason: '*** -[AVCaptureSession startRunning] startRunning may not be called between calls to beginConfiguration and commitConfiguration' *** First throw call stack: (0x19d566b28 0x1953baf78 0x1ba394e1c 0x10566cb58 0x105c25608 0x105f54b98 0x105f567bc 0x105f5930c 0x105f6aae4 0x105f6b4d8 0x1f945cee4 0x1f945cfc0) libc++abi: terminating due to uncaught exception of type NSException