Closed jariwalabhavesh closed 3 years ago
I'm not 100% sure this is the same issue, but there has been recent work to address issues with certain URL formats.
In certain cases this will fix some crashes that were previously possible.
This has not been included in a release yet.
See https://github.com/react-native-kit/react-native-track-player/pull/950 for more info.
@curiousdustin : Thanks for the update and providing direction. I will do changes in mediaURL file and make fix as mention in 5efe26c. And release new version of my app and see it reduce crashes in next couple of week or not.
I will get back to you with a result.
Thanks,
@jariwalabhavesh - Did you end up solving this? I'm facing the same issue. See logs below
Thread 7 name:
Thread 7 Crashed:
0 A Life Lived 0x000000010315492c MediaURL.init(object:) + 1512 (MediaURL.swift:28)
1 A Life Lived 0x0000000103154794 MediaURL.init(object:) + 1104 (MediaURL.swift:28)
2 A Life Lived 0x000000010316d65c Track.init(dictionary:) + 668 (Track.swift:38)
3 A Life Lived 0x0000000103162038 Track.__allocating_init(dictionary:) + 8 (<compiler-generated>:0)
4 A Life Lived 0x0000000103162038 RNTrackPlayer.add(trackDicts:before:resolve:reject:) + 688
5 A Life Lived 0x0000000103162038 0x102f4c000 + 2187320 (RNTrackPlayer.swift:290)
6 A Life Lived 0x0000000103162be0 @objc RNTrackPlayer.add(trackDicts:before:resolve:reject:) + 220 (<compiler-generated>:0)
7 CoreFoundation 0x00000001ad5235d4 __invoking___ + 148
8 CoreFoundation 0x00000001ad3fe9e8 -[NSInvocation invoke] + 448 (NSForwarding.m:3389)
9 CoreFoundation 0x00000001ad3fefa4 -[NSInvocation invokeWithTarget:] + 80 (NSForwarding.m:3495)
10 A Life Lived 0x0000000103057670 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 460 (RCTModuleMethod.mm:569)
11 A Life Lived 0x000000010305975c facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&) + 244 (RCTNativeModule.mm:108)
12 A Life Lived 0x00000001030594c0 facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const + 44 (RCTNativeModule.mm:73)
13 A Life Lived 0x00000001030594c0 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 88 (RCTNativeModule.mm:65)
14 libdispatch.dylib 0x00000001ad11afd0 _dispatch_call_block_and_release + 32 (init.c:1454)
15 libdispatch.dylib 0x00000001ad11cac8 _dispatch_client_callout + 20 (object.m:559)
16 libdispatch.dylib 0x00000001ad123c08 _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
17 libdispatch.dylib 0x00000001ad124734 _dispatch_lane_invoke + 408 (queue.c:3862)
18 libdispatch.dylib 0x00000001ad12e528 _dispatch_workloop_worker_thread + 708 (queue.c:6590)
19 libsystem_pthread.dylib 0x00000001f4a70908 _pthread_wqthread + 276 (pthread.c:2193)
20 libsystem_pthread.dylib 0x00000001f4a7777c start_wqthread + 8
Describe the bug Started getting more crashes in ios after updating to latest version v1.2.3.
To Reproduce I am not able to regenerate and not able to figure out why it is happening. I had figure out a crash from firebase.
Environment (please complete the following information): react-native-info
react-native-track-player
version v1.2.3The issue was occurring on actual devices. Here is the error stack from firebase
Does anyone have an idea why it is happening or how to regenerate it?