HaishinKit.swift icon indicating copy to clipboard operation
HaishinKit.swift copied to clipboard

NetStream.lock crash

Open Goule opened this issue 2 years ago • 6 comments

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 !

Goule avatar Apr 24 '22 14:04 Goule

I'm not sure. I can't reproduce it. Could you provide me of reproducible short sample code?

shogo4405 avatar May 04 '22 10:05 shogo4405

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.

Goule avatar May 05 '22 08:05 Goule

+1, same problem.

nonocast avatar May 14 '22 13:05 nonocast

Hello,

Same issue : Screenshot 2022-07-05 at 13 32 35

I can't reproduce it, seems to be a random crash.

floriangbh avatar Jul 05 '22 11:07 floriangbh

Could you provide me your UIViewController?

shogo4405 avatar Jul 05 '22 12:07 shogo4405

Sorry for the late reply, I can try but this is a complex application which can't work with sample project

floriangbh avatar Jul 18 '22 09:07 floriangbh

Hello,

Look like there was an extra DispatchQueue in my code : Screenshot 2022-09-21 at 16 58 24

After removing, no more crash at this time !

Goule avatar Sep 21 '22 15:09 Goule