Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰][iOS] - Remote config - Crash app when launching app #7795

Closed
vinhtruong93 opened this issue May 17, 2024 · 3 comments
Closed

[馃悰][iOS] - Remote config - Crash app when launching app #7795

vinhtruong93 opened this issue May 17, 2024 · 3 comments
Labels
Help: Needs Triage Issue needs additional investigation/triaging. Impact: Bug New bug report

Comments

@vinhtruong93
Copy link

vinhtruong93 commented May 17, 2024

I have an issue that is causing the app to crash on iOS, and I suspect the cause is the remote-config library.
This issue only recently appeared even though I haven't changed the version of the library.

Crashlytics mention: 100% of crash events for this issue happened in the first 5 seconds of a user's session.

RN version: 0.71.3

Firebase libs i using in project:

"@react-native-firebase/analytics": "18.7.3",
    "@react-native-firebase/app": "18.7.3",
    "@react-native-firebase/crashlytics": "18.7.3",
    "@react-native-firebase/messaging": "18.7.3",
    "@react-native-firebase/remote-config": "18.7.3",
    "@react-native-masked-view/masked-view": "^0.2.8",

Crashlytics - Stack trace

Fatal Exception: NSGenericException
0  CoreFoundation                 0xecb28 __exceptionPreprocess
1  libobjc.A.dylib                0x2af78 objc_exception_throw
2  CFNetwork                      0xf040 _CFNetworkSetHSTSStoragePath
3  Vietcap                        0x5ce6e8 -[RCNConfigFetch URLSessionDataTaskWithContent:fetchTypeHeader:completionHandler:] + 677 (RCNConfigFetch.m:677)
4  Vietcap                        0x5cd630 -[RCNConfigFetch fetchWithUserProperties:fetchTypeHeader:completionHandler:updateCompletionHandler:] + 609 (RCNConfigFetch.m:609)
5  libdispatch.dylib              0x213c _dispatch_call_block_and_release
6  libdispatch.dylib              0x3dd4 _dispatch_client_callout
7  libdispatch.dylib              0xb400 _dispatch_lane_serial_drain
8  libdispatch.dylib              0xbf30 _dispatch_lane_invoke
9  libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh
10 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread
11 libsystem_pthread.dylib        0x1f20 _pthread_wqthread
12 libsystem_pthread.dylib        0x1fc0 start_wqthread

com.apple.main-thread
0  libsystem_kernel.dylib         0x1af8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x1890 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x17a8 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x15e8 mach_msg + 24
4  CoreFoundation                 0x3601c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33f04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
7  GraphicsServices               0x34e0 GSEventRunModal + 164
8  UIKitCore                      0x22aedc -[UIApplication _run] + 888
9  UIKitCore                      0x22a518 UIApplicationMain + 340
10 Vietcap                        0x4050 main + 8 (main.m:8)
11 ???                            0x1b0b36d84 (Missing)

Thread
0  libsystem_kernel.dylib         0xa084 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1f6c _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0xa084 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1f6c _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

com.apple.root.utility-qos
0  libsystem_kernel.dylib         0x254c kevent_id + 8
1  libdispatch.dylib              0x267d4 _dispatch_kq_poll + 228
2  libdispatch.dylib              0x271bc _dispatch_event_loop_wait_for_ownership + 436
3  libdispatch.dylib              0x13594 __DISPATCH_WAIT_FOR_QUEUE__ + 340
4  libdispatch.dylib              0x1315c _dispatch_sync_f_slow + 148
5  Vietcap                        0x5c3748 -[FIRRemoteConfig keysWithPrefix:] + 509 (FIRRemoteConfig.m:509)
6  Vietcap                        0x8333bc -[RNFBConfigModule getConstantsForApp:] + 329 (RNFBConfigModule.m:329)
7  Vietcap                        0x833200 -[RNFBConfigModule resultWithConstants:firebaseApp:] + 314 (RNFBConfigModule.m:314)
8  Vietcap                        0x831f0c __40-[RNFBConfigModule ensureInitialized:::]_block_invoke + 139 (RNFBConfigModule.m:139)
9  Vietcap                        0x5c1d98 __58-[FIRRemoteConfig ensureInitializedWithCompletionHandler:]_block_invoke + 215 (FIRRemoteConfig.m:215)
10 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
11 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
12 libdispatch.dylib              0x15a6c _dispatch_root_queue_drain + 864
13 libdispatch.dylib              0x1609c _dispatch_worker_thread2 + 156
14 libsystem_pthread.dylib        0x1ee4 _pthread_wqthread + 228
15 libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0xa084 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1f6c _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x1af8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x1890 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x17a8 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x15e8 mach_msg + 24
4  CoreFoundation                 0x3601c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33f04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
7  Foundation                     0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x554e8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x18dac8 -[UIEventFetcher threadMain] + 420
10 Foundation                     0x9ca9c __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x2a90 _pthread_start + 136
12 libsystem_pthread.dylib        0x1fcc thread_start + 8

Thread
0  libsystem_kernel.dylib         0xa084 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1f6c _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

Crashed: com.google.firebase.crashlytics.ios.exception
0  Vietcap                        0x58cfc8 FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1  Vietcap                        0x58d3a8 FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2  Vietcap                        0x5847c8 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3  Vietcap                        0x57f780 __FIRCLSExceptionRecord_block_invoke + 232 (FIRCLSException.mm:232)
4  libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
5  libdispatch.dylib              0x132c4 _dispatch_lane_barrier_sync_invoke_and_complete + 56
6  Vietcap                        0x57e7b8 FIRCLSExceptionRecord + 234 (FIRCLSException.mm:234)
7  Vietcap                        0x57f2a0 FIRCLSExceptionRecordNSException + 126 (FIRCLSException.mm:126)
8  Vietcap                        0x57e410 FIRCLSTerminateHandler() + 398 (FIRCLSException.mm:398)
9  libc++abi.dylib                0x14090 std::__terminate(void (*)()) + 16
10 libc++abi.dylib                0x14034 std::terminate() + 108
11 libobjc.A.dylib                0x3c88c objc_terminate + 16
12 libdispatch.dylib              0x3de8 _dispatch_client_callout + 40
13 libdispatch.dylib              0xb400 _dispatch_lane_serial_drain + 748
14 libdispatch.dylib              0xbf30 _dispatch_lane_invoke + 380
15 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
16 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
17 libsystem_pthread.dylib        0x1f20 _pthread_wqthread + 288
18 libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

com.facebook.react.ShadowQueue
0  Vietcap                        0x8ebe48 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 595 (RCTModuleMethod.mm:595)
1  Vietcap                        0x8ed96c invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 419 (Optional.h:419)
2  libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
3  libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
4  libdispatch.dylib              0xb400 _dispatch_lane_serial_drain + 748
5  libdispatch.dylib              0xbf30 _dispatch_lane_invoke + 380
6  libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
7  libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
8  libsystem_pthread.dylib        0x1f20 _pthread_wqthread + 288
9  libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0x1fb8 start_wqthread + 438

com.google.firebase.crashlytics.MachExceptionServer
0  libsystem_kernel.dylib         0x1af8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x1890 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x17a8 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x15e8 mach_msg + 24
4  Vietcap                        0x586de0 FIRCLSMachExceptionServer + 192 (FIRCLSMachException.c:192)
5  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
6  libsystem_pthread.dylib        0x1fcc thread_start + 8

com.facebook.react.JavaScript
0  libobjc.A.dylib                0x5458 objc_autorelease + 360
1  Vietcap                        0x915eb8 RCTDropReactPrefixes + 1035 (RCTUtils.m:1035)
2  Vietcap                        0x8be40c RCTBridgeModuleNameForClass + 98 (RCTBridge.m:98)
3  Vietcap                        0x8ed58c facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 76 (RCTNativeModule.mm:76)
4  Vietcap                        0x9e7f10 facebook::react::JsToNativeBridge::callNativeModules(facebook::react::JSExecutor&, folly::dynamic&&, bool) + 159 (wrap_iter.h:159)
5  Vietcap                        0xa11a68 facebook::react::JSIExecutor::callNativeModules(facebook::jsi::Value const&, bool) + 365 (dynamic-inl.h:365)
6  Vietcap                        0xa13e40 std::__1::__function::__func<facebook::react::JSIExecutor::initializeRuntime()::$_0, std::__1::allocator<facebook::react::JSIExecutor::initializeRuntime()::$_0>, facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*&&, unsigned long&&) + 1235 (jsi.h:1235)
7  Vietcap                        0x8852c4 std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) const + 1156 (function.h:1156)
8  hermes                         0x1429c facebook::hermes::debugger::Debugger::jsiValueFromHermesValue(hermes::vm::HermesValue) + 26080
9  hermes                         0x282f4 facebook::jsi::JSError::~JSError() + 35316
10 hermes                         0x46c70 facebook::jsi::JSError::~JSError() + 160624
11 hermes                         0x4618c facebook::jsi::JSError::~JSError() + 157836
12 hermes                         0x2859c facebook::jsi::JSError::~JSError() + 35996
13 hermes                         0x27e04 facebook::jsi::JSError::~JSError() + 34052
14 hermes                         0x46c94 facebook::jsi::JSError::~JSError() + 160660
15 hermes                         0x4618c facebook::jsi::JSError::~JSError() + 157836
16 hermes                         0x2859c facebook::jsi::JSError::~JSError() + 35996
17 hermes                         0x26eb0 facebook::jsi::JSError::~JSError() + 30128
18 hermes                         0xf8704 facebook::jsi::JSError::~JSError() + 888324
19 hermes                         0x282f4 facebook::jsi::JSError::~JSError() + 35316
20 hermes                         0x46c70 facebook::jsi::JSError::~JSError() + 160624
21 hermes                         0x4618c facebook::jsi::JSError::~JSError() + 157836
22 hermes                         0x2859c facebook::jsi::JSError::~JSError() + 35996
23 hermes                         0x27e04 facebook::jsi::JSError::~JSError() + 34052
24 hermes                         0x46c94 facebook::jsi::JSError::~JSError() + 160660
25 hermes                         0x4618c facebook::jsi::JSError::~JSError() + 157836
26 hermes                         0x2859c facebook::jsi::JSError::~JSError() + 35996
27 hermes                         0x27e04 facebook::jsi::JSError::~JSError() + 34052
28 hermes                         0xcd58 facebook::hermes::HermesRuntime::rootsListLength() const + 12660
29 Vietcap                        0xb6e32c facebook::jsi::WithRuntimeDecorator<facebook::react::(anonymous namespace)::ReentrancyCheck, facebook::jsi::Runtime, facebook::jsi::Runtime>::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) + 710 (decorator.h:710)
30 Vietcap                        0xa1448c facebook::jsi::Value facebook::jsi::Function::call<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, facebook::jsi::Value>(facebook::jsi::Runtime&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, facebook::jsi::Value&&) const + 234 (jsi-inl.h:234)
31 Vietcap                        0xa142f4 std::__1::__function::__func<facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, folly::dynamic const&)::$_4, std::__1::allocator<facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, folly::dynamic const&)::$_4>, void ()>::operator()() + 255 (JSIExecutor.cpp:255)
32 Vietcap                        0x8d5b38 void std::__1::__invoke_void_return_wrapper<void, true>::__call<void (*&)(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> ()>), std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> ()>>(void (*&)(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> ()>), std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> ()>&&) + 468 (function.h:468)
33 Vietcap                        0xa115a4 facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, folly::dynamic const&) + 468 (function.h:468)
34 Vietcap                        0x9e920c std::__1::__function::__func<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8, std::__1::allocator<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8>, void ()>::operator()() + 356 (function.h:356)
35 Vietcap                        0x8d8db8 facebook::react::tryAndReturnError(std::__1::function<void ()> const&) + 510 (function.h:510)
36 Vietcap                        0x8e4850 facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) + 69 (RCTMessageThread.mm:69)
37 Vietcap                        0x8e461c invocation function for block in facebook::react::RCTMessageThread::runAsync(std::__1::function<void ()>) + 46 (RCTMessageThread.mm:46)
38 CoreFoundation                 0x376b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
39 CoreFoundation                 0x35eac __CFRunLoopDoBlocks + 356
40 CoreFoundation                 0x33d78 __CFRunLoopRun + 812
41 CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
42 Vietcap                        0x8ce13c +[RCTCxxBridge runRunLoop] + 335 (RCTCxxBridge.mm:335)
43 Foundation                     0x9ca9c __NSThread__start__ + 732
44 libsystem_pthread.dylib        0x2a90 _pthread_start + 136
45 libsystem_pthread.dylib        0x1fcc thread_start + 8

hades
0  libsystem_kernel.dylib         0x249c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1590 _pthread_cond_wait + 1228
2  libc++.1.dylib                 0xd504 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  hermes                         0x11d5ac facebook::jsi::JSError::~JSError() + 1039532
4  hermes                         0x11d360 facebook::jsi::JSError::~JSError() + 1038944
5  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
6  libsystem_pthread.dylib        0x1fcc thread_start + 8

hermes-chrome-inspector-conn
0  libsystem_kernel.dylib         0x249c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1590 _pthread_cond_wait + 1228
2  libc++.1.dylib                 0xd504 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Vietcap                        0xb9a620 facebook::hermes::inspector::detail::SerialExecutor::runLoop() + 400 (__mutex_base:400)
4  Vietcap                        0xb530a8 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>>>(void*) + 468 (function.h:468)
5  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
6  libsystem_pthread.dylib        0x1fcc thread_start + 8

hermes-inspector
0  libsystem_kernel.dylib         0x249c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1590 _pthread_cond_wait + 1228
2  libc++.1.dylib                 0xd504 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Vietcap                        0xb9a620 facebook::hermes::inspector::detail::SerialExecutor::runLoop() + 400 (__mutex_base:400)
4  Vietcap                        0xb530a8 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>>>(void*) + 468 (function.h:468)
5  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
6  libsystem_pthread.dylib        0x1fcc thread_start + 8

Thread
0  libsystem_kernel.dylib         0xa084 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1f6c _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0xa084 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1f6c _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x1af8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x1890 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x17a8 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x15e8 mach_msg + 24
4  CoreFoundation                 0x3601c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33f04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
7  CFNetwork                      0x25ac48 estimatedPropertyListSize + 38228
8  Foundation                     0x9ca9c __NSThread__start__ + 732
9  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
10 libsystem_pthread.dylib        0x1fcc thread_start + 8

hades
0  libsystem_kernel.dylib         0x249c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1590 _pthread_cond_wait + 1228
2  libc++.1.dylib                 0xd504 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  hermes                         0x11d5ac facebook::jsi::JSError::~JSError() + 1039532
4  hermes                         0x11d360 facebook::jsi::JSError::~JSError() + 1038944
5  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
6  libsystem_pthread.dylib        0x1fcc thread_start + 8

hermes-chrome-inspector-conn
0  libsystem_kernel.dylib         0x249c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1590 _pthread_cond_wait + 1228
2  libc++.1.dylib                 0xd504 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Vietcap                        0xb9a620 facebook::hermes::inspector::detail::SerialExecutor::runLoop() + 400 (__mutex_base:400)
4  Vietcap                        0xb530a8 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>>>(void*) + 468 (function.h:468)
5  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
6  libsystem_pthread.dylib        0x1fcc thread_start + 8

hermes-inspector
0  libsystem_kernel.dylib         0x249c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1590 _pthread_cond_wait + 1228
2  libc++.1.dylib                 0xd504 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  Vietcap                        0xb9a620 facebook::hermes::inspector::detail::SerialExecutor::runLoop() + 400 (__mutex_base:400)
4  Vietcap                        0xb530a8 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>), std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::function<void ()>>>(void*) + 468 (function.h:468)
5  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
6  libsystem_pthread.dylib        0x1fcc thread_start + 8

com.squareup.SocketRocket.NetworkThread
0  libsystem_kernel.dylib         0x1af8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x1890 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x17a8 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x15e8 mach_msg + 24
4  CoreFoundation                 0x3601c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33f04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
7  Foundation                     0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Vietcap                        0x904670 -[_RCTSRRunLoopThread main] + 1624 (RCTSRWebSocket.m:1624)
9  Foundation                     0x9ca9c __NSThread__start__ + 732
10 libsystem_pthread.dylib        0x2a90 _pthread_start + 136
11 libsystem_pthread.dylib        0x1fcc thread_start + 8

com.apple.CFSocket.private
0  libsystem_kernel.dylib         0xe220 __select + 8
1  libsystem_kernel.dylib         0xe220 select$DARWIN_EXTSN + 8
2  CoreFoundation                 0xdfbf0 __CFSocketManager + 640
3  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
4  libsystem_pthread.dylib        0x1fcc thread_start + 8

Does anyone know how to fix this issue? Please suggest a solution for this issue.
Thank you very much.

@vinhtruong93 vinhtruong93 added Help: Needs Triage Issue needs additional investigation/triaging. Impact: Bug New bug report labels May 17, 2024
@mikehardy
Copy link
Collaborator

mikehardy commented May 17, 2024

Hi there!
No need to suspect as you've included the stack traces.
There is no react-native-firebase method in any of the stack traces (it's upstream from us)

Appears to be something about this which may be in firebase-ios-sdk

0  CoreFoundation                 0xecb28 __exceptionPreprocess
1  libobjc.A.dylib                0x2af78 objc_exception_throw
2  CFNetwork                      0xf040 _CFNetworkSetHSTSStoragePath
3  Vietcap                        0x5ce6e8 -[RCNConfigFetch URLSessionDataTaskWithContent:fetchTypeHeader:completionHandler:] + 677 (RCNConfigFetch.m:677)
4  Vietcap                        0x5cd630 -[RCNConfigFetch fetchWithUserProperties:fetchTypeHeader:completionHandler:updateCompletionHandler:] + 609 (RCNConfigFetch.m:609)
5  libdispatch.dylib              0x213c _dispatch_call_block_and_release

https://github.com/search?q=repo%3Afirebase%2Ffirebase-ios-sdk%20RCNConfigFetch%20URLSessionDataTaskWithContent&type=code

@mikehardy
Copy link
Collaborator

(note you are not on the most recent version - you might try upgrading to the most recent version here prior to logging an issue - they may have fixed it already in a version that we include here)

@mikehardy
Copy link
Collaborator

Would be useful to know what the device context is, makes and models and iOS versions where this crashes. Also whether you can reproduce it on your own real test devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help: Needs Triage Issue needs additional investigation/triaging. Impact: Bug New bug report
Projects
None yet
Development

No branches or pull requests

2 participants