You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*** -[AVCaptureSession startRunning] startRunning may not be called between calls to beginConfiguration and commitConfiguration
Stack trace:
HaishinKit IOCaptureSession.startRunningIfNeeded (IOCaptureSession.swift:182)
HaishinKit IOCaptureSession.sessionRuntimeError (IOCaptureSession.swift:243)
...
App main (AppDelegate.swift:9)
From my understanding this happens because there is a race condition between startRunningIfNeeded and configuration or sessionPreset in IOCaptureSession. There was a fix #1239 for the similar issue before. Maybe wrapping beginConfiguration into a serial queue would solve the problem entirely?
To Reproduce
.mediaServicesWereReset notification is very rare so I don't have exact steps to reproduce it. I saw some people suggest:
Now I'm finally able to reproduce the problem by simply repeating the normal operations of the app thousands of times in an automatic test
Expected behavior
No crash
Version
1.8.1
Smartphone info.
No response
Additional context
No response
Screenshots
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
shogo4405
changed the title
AVCaptureSession startRunning crash
When mediaServicesWereReset occurs, a crash happens with AVCaptureSession during startRunning.
Jul 29, 2024
Describe the bug
We have a popular crash that looks like this:
Stack trace:
From my understanding this happens because there is a race condition between
startRunningIfNeeded
andconfiguration
orsessionPreset
in IOCaptureSession. There was a fix #1239 for the similar issue before. Maybe wrappingbeginConfiguration
into a serial queue would solve the problem entirely?To Reproduce
.mediaServicesWereReset
notification is very rare so I don't have exact steps to reproduce it. I saw some people suggest:Expected behavior
No crash
Version
1.8.1
Smartphone info.
No response
Additional context
No response
Screenshots
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: