react-native-jw-media-player icon indicating copy to clipboard operation
react-native-jw-media-player copied to clipboard

Casting crash in native code on iOS when disabling and re-enabling casting

Open jmurth1234 opened this issue 1 year ago • 4 comments

We're experiencing a crashing bug that happens periodically if the user stops and then starts casting within the same app session

output.webm

I'm able to reproduce this with the sample app casting to the default chromecast reciever i.e. CC1AD845

jmurth1234 avatar Mar 28 '23 08:03 jmurth1234

Did you fix the issue @rymate1234 ? Please help me out

lakshvel avatar Jun 07 '23 12:06 lakshvel

@lakshvel I have not

jmurth1234 avatar Aug 09 '23 17:08 jmurth1234

Hi @rymate1234

Can you please paste the full stack trace.

Thanks

chaimPaneth avatar Aug 27 '23 18:08 chaimPaneth

@chaimPaneth apologies for the delay

from bt

* thread #43, queue = 'com.eventmanager.serialqueue', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
  * frame #0: 0x000000010acb382e JWPlayerKit`___lldb_unnamed_symbol12813 + 1294
    frame #1: 0x000000010acb3c99 JWPlayerKit`___lldb_unnamed_symbol12815 + 473
    frame #2: 0x000000010ac82e70 JWPlayerKit`___lldb_unnamed_symbol11728 + 496
    frame #3: 0x000000010ac135d1 JWPlayerKit`___lldb_unnamed_symbol8857 + 81
    frame #4: 0x000000010acf3e39 JWPlayerKit`___lldb_unnamed_symbol14083 + 25
    frame #5: 0x000000010a5fb54f libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #6: 0x000000010a5fc7ec libdispatch.dylib`_dispatch_client_callout + 8
    frame #7: 0x000000010a6046ae libdispatch.dylib`_dispatch_lane_serial_drain + 1115
    frame #8: 0x000000010a6054a6 libdispatch.dylib`_dispatch_lane_invoke + 428
    frame #9: 0x000000010a613982 libdispatch.dylib`_dispatch_workloop_worker_thread + 962
    frame #10: 0x00007ff837749c55 libsystem_pthread.dylib`_pthread_wqthread + 327
    frame #11: 0x00007ff837748bbf libsystem_pthread.dylib`start_wqthread + 15

from the xcode sidebar:

#0	0x000000010acb382e in ___lldb_unnamed_symbol12813 ()
#1	0x000000010acb3c99 in ___lldb_unnamed_symbol12815 ()
#2	0x000000010ac82e70 in ___lldb_unnamed_symbol11728 ()
#3	0x000000010ac135d1 in ___lldb_unnamed_symbol8857 ()
#4	0x000000010acf3e39 in ___lldb_unnamed_symbol14083 ()
#5	0x000000010a5fb54f in _dispatch_call_block_and_release ()
#6	0x000000010a5fc7ec in _dispatch_client_callout ()
#7	0x000000010a6046ae in _dispatch_lane_serial_drain ()
#8	0x000000010a6054a6 in _dispatch_lane_invoke ()
#9	0x000000010a613982 in _dispatch_workloop_worker_thread ()
#10	0x00007ff837749c55 in _pthread_wqthread ()
#11	0x00007ff837748bbf in start_wqthread ()
Enqueued from com.apple.main-thread (Thread 1) Queue : com.apple.main-thread (serial)
#0	0x000000010a6018b8 in dispatch_async ()
#1	0x00007ff826f821c7 in _swift_dispatch_async ()
#2	0x00007ff826f81026 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3	0x000000010ac12f27 in ___lldb_unnamed_symbol8856 ()
#4	0x000000010acd6d92 in ___lldb_unnamed_symbol13454 ()
#5	0x000000010ad86958 in ___lldb_unnamed_symbol17284 ()
#6	0x000000010acf3e39 in ___lldb_unnamed_symbol14083 ()
#7	0x000000010a5fb54f in _dispatch_call_block_and_release ()
#8	0x000000010a5fc7ec in _dispatch_client_callout ()
#9	0x000000010a60d6e2 in _dispatch_main_queue_drain ()
#10	0x000000010a60d11e in _dispatch_main_queue_callback_4CF ()
#11	0x00007ff8003b26cc in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#12	0x00007ff8003acfbe in __CFRunLoopRun ()
#13	0x00007ff8003ac264 in CFRunLoopRunSpecific ()
#14	0x00007ff809b4024e in GSEventRunModal ()
#15	0x00000001175da7bf in -[UIApplication _run] ()
#16	0x00000001175df5de in UIApplicationMain ()
#17	0x00000001078b6008 in main at /Users/murthick/Projects/react-native-jw-media-player/Example/ios/RNJWPlayer/main.m:7
#18	0x000000010a4e0384 in start_sim ()
#19	0x000000010a69a41f in start ()
Enqueued from com.apple.main-thread (Thread 1) Queue : com.apple.main-thread (serial)
#0	0x000000010a6018b8 in dispatch_async ()
#1	0x00007ff826f821c7 in _swift_dispatch_async ()
#2	0x00007ff826f81026 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3	0x000000010ad09b2c in ___lldb_unnamed_symbol14417 ()
#4	0x000000010ad0a247 in ___lldb_unnamed_symbol14431 ()
#5	0x000000010ac1c476 in ___lldb_unnamed_symbol9143 ()
#6	0x000000010acad248 in ___lldb_unnamed_symbol12561 ()
#7	0x000000010acace89 in ___lldb_unnamed_symbol12558 ()
#8	0x000000010acab0fe in ___lldb_unnamed_symbol12531 ()
#9	0x000000010a5fb54f in _dispatch_call_block_and_release ()
#10	0x000000010a5fc7ec in _dispatch_client_callout ()
#11	0x000000010a60d6e2 in _dispatch_main_queue_drain ()
#12	0x000000010a60d11e in _dispatch_main_queue_callback_4CF ()
#13	0x00007ff8003b26cc in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#14	0x00007ff8003acfbe in __CFRunLoopRun ()
#15	0x00007ff8003ac264 in CFRunLoopRunSpecific ()
#16	0x00007ff809b4024e in GSEventRunModal ()
#17	0x00000001175da7bf in -[UIApplication _run] ()
#18	0x00000001175df5de in UIApplicationMain ()
#19	0x00000001078b6008 in main at /Users/murthick/Projects/react-native-jw-media-player/Example/ios/RNJWPlayer/main.m:7
#20	0x000000010a4e0384 in start_sim ()
#21	0x000000010a69a41f in start ()
Enqueued from com.apple.main-thread (Thread 1) Queue : com.apple.main-thread (serial)
#0	0x000000010a6018b8 in dispatch_async ()
#1	0x000000010817d7c3 in -[GCKSessionManager notifyDidStartSession:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKSessionManager.m:1236
#2	0x000000010817b8eb in -[GCKSessionManager sessionDidStart:] ()
#3	0x0000000108176793 in -[GCKSession(Protected) notifyDidStartWithSessionID:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKSession.m:153
#4	0x0000000108113b7e in -[GCKCastSession notifyDidStartWithSessionID:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKCastSession.m:794
#5	0x00000001081170b1 in -[GCKCastSession deviceController:didConnectToApplication:sessionID:launchedApplication:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKCastSession.m:1346
#6	0x000000010810125d in -[GCKCastDeviceController notifyDidConnectToApplication:withSessionID:launchedApplication:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKCastDeviceController.m:1766
#7	0x00000001080fb947 in -[GCKCastDeviceController connectAndNotifyDidConnectToApplication:launchedApplication:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKCastDeviceController.m:531
#8	0x00000001080fe91c in -[GCKCastDeviceController receiverControlChannel:didLaunchApplication:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKCastDeviceController.m:1215
#9	0x000000010816d5c8 in -[GCKReceiverControlChannel notifyDidLaunchApplication:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKReceiverControlChannel.m:556
#10	0x000000010816cf7f in -[GCKReceiverControlChannel didReceiveTextMessage:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKReceiverControlChannel.m:434
#11	0x00000001080f80fb in -[GCKCastDeviceConnector castMessageDesegmenter:didProduceTextMessage:withNamespace:destinationID:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKCastDeviceConnector.m:685
#12	0x000000010810bf60 in -[GCKCastMessageDesegmenter notifyDidProduceTextMessage:withNamespace:destinationID:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKCastMessageDesegmenter.m:182
#13	0x000000010810ba68 in -[GCKCastMessageDesegmenter consumeChunk:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKCastMessageDesegmenter.m:106
#14	0x00000001080f8690 in -[GCKCastDeviceConnector castSocket:didReceiveMessage:] at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKCastDeviceConnector.m:763
#15	0x000000010811b4c8 in __41-[GCKCastSocket notifyDidReceiveMessage:]_block_invoke at /googlemac/iPhone/Chromecast/SDK/Framework/Release/Core/Classes/GCKCastSocket.m:478
#16	0x000000010a5fb54f in _dispatch_call_block_and_release ()
#17	0x000000010a5fc7ec in _dispatch_client_callout ()
#18	0x000000010a60d6e2 in _dispatch_main_queue_drain ()
#19	0x000000010a60d11e in _dispatch_main_queue_callback_4CF ()
#20	0x00007ff8003b26cc in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#21	0x00007ff8003acfbe in __CFRunLoopRun ()
#22	0x00007ff8003ac264 in CFRunLoopRunSpecific ()
#23	0x00007ff809b4024e in GSEventRunModal ()
#24	0x00000001175da7bf in -[UIApplication _run] ()
#25	0x00000001175df5de in UIApplicationMain ()

jmurth1234 avatar Sep 06 '23 14:09 jmurth1234