opentok / opentok-ios-sdk-samples

Example applications that use the OpenTok iOS SDK
https://tokbox.com/developer/sdks/ios
MIT License
200 stars 117 forks source link

[AVCaptureSession startRunning] startRunning crash #279

Closed badarovska closed 1 year ago

badarovska commented 1 year ago

Sometimes when publishing a stream, I am getting the following error:

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

I have not found specific steps to reproduce it. It is not often, but it is happening on my production app as well. In the live app I am using Opentok 2.24.1, but I upgraded to 2.24.2 locally and the issue remains.

Logs from Firebase:

Screenshot 2023-03-24 at 10 14 38
v-kpheng commented 1 year ago

Thanks, @badarovska, for letting us know about this issue.

We've been able to reproduce. We're working on a fix now: https://jira.vonage.com/browse/VIDCS-13.

v-kpheng commented 1 year ago

Just wanted to share another update. We hope this will be fixed in the upcoming 2.25.0 release.

beHaze commented 1 year ago

Fixed 2.25.0 release

egarni commented 1 year ago

Hello, I updated to 2.25.0 but I got now the following crash:

Fatal Exception: NSGenericException
*** -[AVCaptureSession stopRunning] stopRunning may not be called between calls to beginConfiguration and commitConfiguration

Fatal Exception: NSGenericException
0  CoreFoundation                 0x9e38 __exceptionPreprocess
1  libobjc.A.dylib                0x178d8 objc_exception_throw
2  AVFCapture                     0x3f918 -[AVCaptureSession stopRunning]
3  libdispatch.dylib              0x2460 _dispatch_call_block_and_release
4  libdispatch.dylib              0x3f88 _dispatch_client_callout
5  libdispatch.dylib              0x15b8c _dispatch_root_queue_drain
6  libdispatch.dylib              0x16284 _dispatch_worker_thread2
7  libsystem_pthread.dylib        0xdbc _pthread_wqthread
8  libsystem_pthread.dylib        0xb98 start_wqthread