HaishinKit.swift
HaishinKit.swift copied to clipboard
NetStream.lock crash
Describe the bug I have some new crash in my Crashytics dashboard
Crashed: com.haishinkit.HaishinKit.NetStream.lock 0 MyApp 0x73abac closure # 1 in MTHKView.currentStream.didset + 23 (AVVideoIOUnit.swift:23) 1 MyApp 0x6fafb0 thunk for @ escaping @callee_guaranteed () -> () + 4221632 (
:4221632) 2 libdispatch.dylib 0x63094 _dispatch_call_block_and_release + 24 3 libdispatch.dylib 0x64094 _dispatch_client_callout + 16 4 libdispatch.dylib 0x3f4a4 _dispatch_lane_serial_drain$VARIANT$armv81 + 600 5 libdispatch.dylib 0x3ff44 _dispatch_lane_invoke$VARIANT$armv81 + 388 6 libdispatch.dylib 0x498e0 _dispatch_workloop_worker_thread + 608 7 libsystem_pthread.dylib 0x1e10 _pthread_wqthread + 284 8 libsystem_pthread.dylib 0x193c start_wqthread + 8 `
To Reproduce I can reproduce the error, I only see it in my crashlytics logs.
It appear on various OS and Device (iOS 14 >).
Running on HaishinKit.swift 1.2.1.
Have you any idea how to fix it ? :)
Thanks !
I'm not sure. I can't reproduce it. Could you provide me of reproducible short sample code?
Hello @shogo4405
Unfortunately, I can't reproduce it... It happened at 2% of our users since we've compiled the app with the latest Xcode (13.3). It looks like the latest SDK has broke something, we didn't touch the streaming part of the app.
+1, same problem.
Hello,
Same issue :
I can't reproduce it, seems to be a random crash.
Could you provide me your UIViewController?
Sorry for the late reply, I can try but this is a complex application which can't work with sample project
Hello,
Look like there was an extra DispatchQueue in my code :
After removing, no more crash at this time !