react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

App crashes in iOS each time new code push is released

Open karthinidc opened this issue 1 year ago • 50 comments

The issue happened after the RN version update from 0.59.9 to 0.63.4 Previous version (0.59.9) working fine

Steps to Reproduce

1. Release the app 
2. send some code push
3. kill the app
4. open the app again and install the code push
5. see app crashes(if not happened - reproduce steps 3 and 4)

Expected Behavior

The app works correctly, and updates content with code push

Actual Behavior

App crashes each time a new code push is released

Environment

  • react-native-code-push version: 7.0.4
  • react-native version: 0.63.4
  • iOS version: 16.6
  • Reproduce on a release build
  • Reproduce only on a physical device

Used code::::

AppDelegate.m

#import <CodePush/CodePush.h>

...

  • (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; #else return [CodePush bundleURL]; #endif }

Info.plist

<key>CodePushDeploymentKey</key>
<string>OUR_PRODUCTION_KEY</string>

karthinidc avatar Aug 17 '23 10:08 karthinidc

Hey @karthinidc 👋🏼 I think this might be coming from the restartApp() API. Are you able to reproduce this crash by running a restart through Codepush ? Codepush.restartApp()

anthlasserre avatar Aug 18 '23 10:08 anthlasserre

Yes @anthlasserre -- This function crashes the App

karthinidc avatar Aug 18 '23 10:08 karthinidc

@karthinidc Fine. So the original issue is there 👇🏼 https://github.com/microsoft/react-native-code-push/issues/2539

anthlasserre avatar Aug 18 '23 10:08 anthlasserre

Any fix for this?

karthinidc avatar Aug 18 '23 10:08 karthinidc

Any fix for this?

@karthinidc Not yet, unfortunately... We don't really know what is causing this crash. Do you have react-native-reanimated set for your project? If yes, which version?

anthlasserre avatar Aug 18 '23 11:08 anthlasserre

Not using react-native-reanimated package in our project.

karthinidc avatar Aug 18 '23 11:08 karthinidc

Not using react-native-reanimated package in our project.

Ok, thanks. So nothing to do with it.

anthlasserre avatar Aug 18 '23 11:08 anthlasserre

@karthinidc Are you able to reproduce the crash locally on a release build ?

anthlasserre avatar Aug 18 '23 11:08 anthlasserre

@anthlasserre Only in the release build

karthinidc avatar Aug 18 '23 11:08 karthinidc

@anthlasserre Only in the release build

Fine. But a release build locally through your XCode? Or through any other distribution pipeline (Bitrise, AppCenter, TestFlight)?

anthlasserre avatar Aug 18 '23 11:08 anthlasserre

release build like - XCode, AppCenter, TestFlight - Tested

karthinidc avatar Aug 18 '23 11:08 karthinidc

release build like - XCode, AppCenter, TestFlight - Tested

So the crash happens on all these release builds?

anthlasserre avatar Aug 18 '23 11:08 anthlasserre

Yes --All the builds

karthinidc avatar Aug 18 '23 11:08 karthinidc

release build like - XCode, AppCenter, TestFlight - Tested

So the crash happens on all these release builds?

karthinidc avatar Aug 18 '23 11:08 karthinidc

@karthinidc Honestly, I'd recommend moving to a newer React Native version first, at least 0.71.1. Your RN version 0.63.4 has been released 3 years ago now. And after all upgrading your react-native-code-push as well.

anthlasserre avatar Aug 18 '23 11:08 anthlasserre

Hi There i am having the same issue, i am running the latest RN version. RN : 0.72.4 react-native-code-push : 8.0.2 react-native-reanimated : 3.4.2

cheikhsidi avatar Aug 19 '23 23:08 cheikhsidi

Same issue, but 100% related to reanimated: https://github.com/software-mansion/react-native-reanimated/issues/4783 Happens only on ios in prod and dev builds. Maybe smth can be done from codepush side? Already tried setting different installMode for applying codepush. Doesn't help. Crashes on reload anyway. cc @anthlasserre "react-native": "0.72.3" (Hermes disabled), "react-native-code-push": "8.0.2", "react-native-reanimated": "3.3.0"

Btw, @karthinidc if you use 3rd party lib that relies on reanimated, it's also causing this crash, e.g. "@gorhom/bottom-sheet"

Stack trace:

Crashed Thread: 2

Application Specific Information:
~JSCRuntime > Assertion failed: (objectCounter_ == 0 && "JSCRuntime destroyed with a dangling API object"), function ~JSCRuntime, file JSCRuntime.cpp, line 414.
 > JSCRuntime.cpp > objectCounter_ == 0 && "JSCRuntime destroyed with a dangling API object"

Thread 2 Crashed:
0   libsystem_kernel.dylib          0x3706bd964         __pthread_kill
1   libsystem_pthread.dylib         0x3e2ff3374         pthread_kill
2   libsystem_c.dylib               0x3178a1f4c         abort
3   libsystem_c.dylib               0x3178f8968         __assert_rtn
4   dev                    0x2006bc5ac         facebook::jsc::JSCRuntime::~JSCRuntime
5   dev                    0x2006bc618         [inlined] facebook::jsc::JSCRuntime::~JSCRuntime (JSCRuntime.cpp:403)
6   dev                    0x2006bc618         facebook::jsc::JSCRuntime::~JSCRuntime (JSCRuntime.cpp:403)
7   dev                    0x2005deda4         [inlined] std::__1::__shared_count::__release_shared[abi:v15006] (shared_ptr.h:174)
8   dev                    0x2005deda4         [inlined] std::__1::__shared_weak_count::__release_shared[abi:v15006] (shared_ptr.h:215)
9   dev                    0x2005deda4         [inlined] std::__1::shared_ptr<T>::~shared_ptr[abi:v15006] (shared_ptr.h:702)
10  dev                    0x2005deda4         [inlined] std::__1::shared_ptr<T>::~shared_ptr[abi:v15006] (shared_ptr.h:700)
11  dev                    0x2005deda4         std::__1::shared_ptr<T>::reset[abi:v15006] (shared_ptr.h:768)
12  dev                    0x2005deb34         reanimated::NativeReanimatedModule::~NativeReanimatedModule (NativeReanimatedModule.cpp:202)
13  dev                    0x2005ed8a4         [inlined] std::__1::__shared_count::__release_shared[abi:v15006] (shared_ptr.h:174)
14  dev                    0x2005ed8a4         [inlined] std::__1::__shared_weak_count::__release_shared[abi:v15006] (shared_ptr.h:215)
15  dev                    0x2005ed8a4         std::__1::shared_ptr<T>::~shared_ptr[abi:v15006] (shared_ptr.h:702)
16  dev                    0x2006bf1f8         [inlined] std::__1::shared_ptr<T>::~shared_ptr[abi:v15006] (shared_ptr.h:700)
17  dev                    0x2006bf1f8         [inlined] facebook::jsc::detail::HostObjectProxyBase::~HostObjectProxyBase (JSCRuntime.cpp:751)
18  dev                    0x2006bf1f8         [inlined] facebook::jsc::JSCRuntime::createObject::HostObjectProxy::~HostObjectProxy (JSCRuntime.cpp:768)
19  dev                    0x2006bf1f8         [inlined] facebook::jsc::JSCRuntime::createObject::HostObjectProxy::~HostObjectProxy (JSCRuntime.cpp:768)
20  dev                    0x2006bf1f8         facebook::jsc::JSCRuntime::createObject::HostObjectProxy::finalize (JSCRuntime.cpp:873)
21  JavaScriptCore                  0x317d8ee18         JSC::JSCallbackObject<T>::destroy
22  JavaScriptCore                  0x3183231d0         JSC::MarkedBlock::Handle::specializedSweep<T>
23  JavaScriptCore                  0x31831fba0         JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType<T>
24  JavaScriptCore                  0x318326c8c         JSC::MarkedBlock::Handle::sweep
25  JavaScriptCore                  0x3182f8d98         JSC::BlockDirectory::lastChanceToFinalize
26  JavaScriptCore                  0x318328ed8         JSC::MarkedSpace::lastChanceToFinalize
27  JavaScriptCore                  0x3182ff514         JSC::Heap::lastChanceToFinalize
28  JavaScriptCore                  0x3188e443c         JSC::VM::~VM
29  JavaScriptCore                  0x3187ac6c8         JSC::JSLockHolder::~JSLockHolder
30  JavaScriptCore                  0x317da0d7c         JSGlobalContextRelease
31  dev                    0x2006bc544         facebook::jsc::JSCRuntime::~JSCRuntime (JSCRuntime.cpp:411)
32  dev                    0x2006bc618         [inlined] facebook::jsc::JSCRuntime::~JSCRuntime (JSCRuntime.cpp:403)
33  dev                    0x2006bc618         facebook::jsc::JSCRuntime::~JSCRuntime (JSCRuntime.cpp:403)
34  dev                    0x2005d9f64         [inlined] std::__1::__shared_count::__release_shared[abi:v15006] (shared_ptr.h:174)
35  dev                    0x2005d9f64         [inlined] std::__1::__shared_weak_count::__release_shared[abi:v15006] (shared_ptr.h:215)
36  dev                    0x2005d9f64         std::__1::shared_ptr<T>::~shared_ptr[abi:v15006] (shared_ptr.h:702)
37  dev                    0x20079887c         [inlined] std::__1::shared_ptr<T>::~shared_ptr[abi:v15006] (shared_ptr.h:700)
38  dev                    0x20079887c         facebook::react::JSIExecutor::~JSIExecutor (JSIExecutor.h:72)
39  dev                    0x200798278         [inlined] facebook::react::JSIExecutor::~JSIExecutor (JSIExecutor.h:72)
40  dev                    0x200798278         facebook::react::JSIExecutor::~JSIExecutor (JSIExecutor.h:72)
41  dev                    0x200656180         [inlined] std::__1::__function::__value_func<T>::operator()[abi:v15006] (function.h:512)
42  dev                    0x200656180         [inlined] std::__1::function<T>::operator() (function.h:1197)
43  dev                    0x200656180         facebook::react::tryAndReturnError (RCTCxxUtils.mm:74)
44  dev                    0x2006612d8         facebook::react::RCTMessageThread::tryFunc (RCTMessageThread.mm:69)
45  dev                    0x2006615a0         facebook::react::RCTMessageThread::runOnQueueSync (RCTMessageThread.mm:92)
46  dev                    0x200776144         facebook::react::NativeToJsBridge::destroy (NativeToJsBridge.cpp:285)
47  dev                    0x20076c2e8         facebook::react::Instance::~Instance (Instance.cpp:39)
48  dev                    0x2006531ec         [inlined] std::__1::default_delete<T>::operator()[abi:v15006] (unique_ptr.h:48)
49  dev                    0x2006531ec         std::__1::__shared_ptr_pointer<T>::__on_zero_shared (shared_ptr.h:263)
50  dev                    0x20064fb84         [inlined] std::__1::__shared_count::__release_shared[abi:v15006] (shared_ptr.h:174)
51  dev                    0x20064fb84         [inlined] std::__1::__shared_weak_count::__release_shared[abi:v15006] (shared_ptr.h:215)
52  dev                    0x20064fb84         [inlined] std::__1::shared_ptr<T>::~shared_ptr[abi:v15006] (shared_ptr.h:702)
53  dev                    0x20064fb84         [inlined] std::__1::shared_ptr<T>::~shared_ptr[abi:v15006] (shared_ptr.h:700)
54  dev                    0x20064fb84         std::__1::shared_ptr<T>::reset[abi:v15006] (shared_ptr.h:768)
55  dev                    0x200650448         __26-[RCTCxxBridge invalidate]_block_invoke (RCTCxxBridge.mm:1309)
56  dev                    0x200656180         [inlined] std::__1::__function::__value_func<T>::operator()[abi:v15006] (function.h:512)
57  dev                    0x200656180         [inlined] std::__1::function<T>::operator() (function.h:1197)
58  dev                    0x200656180         facebook::react::tryAndReturnError (RCTCxxUtils.mm:74)
59  dev                    0x20064bca8         -[RCTCxxBridge _tryAndHandleError:] (RCTCxxBridge.mm:346)
60  Foundation                      0x304a8b454         __NSThreadPerformPerform
61  CoreFoundation                  0x301ac30cc         __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
62  CoreFoundation                  0x301ad3d8c         __CFRunLoopDoSource0
63  CoreFoundation                  0x301a0e094         __CFRunLoopDoSources0
64  CoreFoundation                  0x301a138a0         __CFRunLoopRun
65  CoreFoundation                  0x301a27464         CFRunLoopRunSpecific
66  dev                    0x20064bbd8         +[RCTCxxBridge runRunLoop] (RCTCxxBridge.mm:337)
67  Foundation                      0x304ab6408         __NSThread__start__
68  libsystem_pthread.dylib         0x3e2fed9a0         _pthread_start

Thread 0
0   libsystem_kernel.dylib          0x3706b7504         mach_msg_trap
1   libsystem_kernel.dylib          0x3706b7b98         mach_msg
2   CoreFoundation                  0x301a0f734         __CFRunLoopServiceMachPort
3   CoreFoundation                  0x301a13a28         __CFRunLoopRun
4   CoreFoundation                  0x301a27464         CFRunLoopRunSpecific
5   GraphicsServices                0x33915b388         GSEventRunModal
6   UIKitCore                       0x306870084         -[UIApplication _run]
7   UIKitCore                       0x3065ee954         UIApplicationMain
8   dev                    0x200176ae0         main (main.m:8)
9   <unknown>                       0x1010b5aa4         <redacted>

DaniyarJakupov avatar Aug 25 '23 07:08 DaniyarJakupov

Any solutions for this

karthinidc avatar Aug 25 '23 12:08 karthinidc

We are experiencing something similar i think. The report we get comes through Sentry in the shape of;

RCTFatalException: Error opening bundle /var/mobile/Containers/Data/Application/.../Library/Application Support/CodePush/.../CodePush/main.jsbundle

It's reported as a Fatal crash.

Interestingly, we only started to experience this when we switched to install mode of ON_NEXT_SUSPEND, with a minimum timeout duration.

alexborton avatar Sep 01 '23 09:09 alexborton

Is everyone not using codepush until it's resolved?

littlehongkong avatar Sep 20 '23 23:09 littlehongkong

its working just fine for me and im on version 8.0.2 for codepush and version 71.11 on react native

griffinshuth avatar Oct 02 '23 14:10 griffinshuth

Sometimes I get this issue too but I could fix it after a few tries. Right now it just rolls back after closing the app.

mhatami-ecotrak avatar Oct 06 '23 01:10 mhatami-ecotrak

Same here, app with codepush always crashes only on release build on iOS (16.7, 17.7) with no rollback. On Android i have at least rollback. codepush: 8.0.1 RN: 0.71.7

radekzz avatar Oct 12 '23 14:10 radekzz

@radekzz and anyone else still experiencing the issue (and haven't shared the crash log yet), could you please gather the app logs and share the crash call stack if possible? CodePush logs might also help in troubleshooting.

DmitriyKirakosyan avatar Oct 13 '23 07:10 DmitriyKirakosyan

This issue is persisting, we decided to not make OTA updates until this is resolved.

Here is my stacktrace from Datadog.

SIGTRAP (#0): Application crash: SIGTRAP (Trace/BPT trap)
Thread 9 Crashed:
0   Tila                                0x0000000104f9a754 0x104bfc000 + 3794772
1   Tila                                0x0000000104d34488 0x104bfc000 + 1279112
2   libdispatch.dylib                   0x0000000197fe2320 _dispatch_call_block_and_release + 32
3   libdispatch.dylib                   0x0000000197fe3eac _dispatch_client_callout + 20
4   libdispatch.dylib                   0x0000000197feb534 _dispatch_lane_serial_drain + 668
5   libdispatch.dylib                   0x0000000197fec0a4 _dispatch_lane_invoke + 384
6   libdispatch.dylib                   0x0000000197ff6cdc _dispatch_workloop_worker_thread + 648
7   libsystem_pthread.dylib             0x00000001f094dddc _pthread_wqthread + 288
8   libsystem_pthread.dylib             0x00000001f094db7c start_wqthread + 8

jorgerojas26 avatar Oct 20 '23 15:10 jorgerojas26

Thanks @jorgerojas26 for sharing the crash log. However, it doesn't give clear insight into the root cause. Do you use react-native-reanimated or any packages that rely on it?

DmitriyKirakosyan avatar Oct 26 '23 07:10 DmitriyKirakosyan

@DmitriyKirakosyan actually it suddenly started crashing without any big change in the app (no native code update, no libraries change). Is it possible, that Apple store did some update, that doesn't allow codepush to be working? Do you know if some app works in App store?

Sentry logs Snímek obrazovky 2023-10-17 v 11 49 26-1

device logs

Oct 12 15:55:34 Myapp(UIKitCore)[583] <Notice>: <private>: Reusing assertion <BKSProcessAssertion: 0x2825edea0>
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: nw_flow_disconnected [C21.1.1 IPv4#e05f922c:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] Output protocol disconnected
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: nw_flow_disconnected [C21.1.1 IPv4#e05f922c:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] Output protocol disconnected
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: nw_flow_disconnected [C21.1.1 IPv4#e05f922c:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] Output protocol disconnected
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: nw_flow_disconnected [C21.1.1 IPv4#e05f922c:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] Output protocol disconnected
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: nw_flow_disconnected [C21.1.1 IPv4#e05f922c:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] Output protocol disconnected
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: nw_flow_disconnected [C24 IPv4#e05f922c:443 cancelled channel-flow ((null))] Output protocol disconnected
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: nw_flow_disconnected [C21.1.1 IPv4#e05f922c:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] Output protocol disconnected
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: nw_flow_disconnected [C21.1.1 IPv4#e05f922c:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] Output protocol disconnected
Oct 12 15:55:34 Myapp(CFNetwork)[583] <Notice>: Connection 21: cleaning up
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: [C21 EC06A552-4C91-4880-AAAC-65F1635DEB54 Hostname#abb0aec1:443 quic-connection, url hash: c8151546, definite, attribution: developer] cancel
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: [C21 EC06A552-4C91-4880-AAAC-65F1635DEB54 Hostname#abb0aec1:443 quic-connection, url hash: c8151546, definite, attribution: developer] cancelled
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: nw_flow_disconnected [C21.1.1 IPv4#e05f922c:443 cancelled channel-flow ((null))] Output protocol disconnected
Oct 12 15:55:34 Myapp(libnetwork.dylib)[583] <Notice>: nw_connection_report_state_with_handler_on_nw_queue [C21] reporting state cancelled
Oct 12 15:55:34 Myapp(CFNetwork)[583] <Notice>: Connection 21: done
Oct 12 15:55:34 Myapp(UIKitCore)[583] <Notice>: <private>: Ending background task with UIBackgroundTaskIdentifier: 46
Oct 12 15:55:34 Myapp(UIKitCore)[583] <Notice>: <private>: Ending task with identifier 46 and description: <private>, _expireHandler: <__NSMallocBlock__: 0x280a6c360>
Oct 12 15:55:34 Myapp(UIKitCore)[583] <Notice>: <private>: Decrementing reference count for assertion used by background task with identifier 46: <private>
Oct 12 15:55:34 Myapp(UIKitCore)[583] <Notice>: <private>: Ending background task with UIBackgroundTaskIdentifier: 47
Oct 12 15:55:34 Myapp(UIKitCore)[583] <Notice>: <private>: Ending task with identifier 47 and description: <private>, _expireHandler: <__NSMallocBlock__: 0x280a49050>
Oct 12 15:55:34 Myapp(UIKitCore)[583] <Notice>: <private>: Decrementing reference count for assertion used by background task with identifier 47: <private>
Oct 12 15:55:34 Myapp(UIKitCore)[583] <Notice>: <private>: Will invalidate assertion: <BKSProcessAssertion: 0x2825edea0> for task identifier: 47
Oct 12 15:55:35 Myapp(libnetwork.dylib)[583] <Error>: nw_resolver_start_query_timer_block_invoke [C17.1] Query fired: did not receive all answers in time for Hostname#abb0aec1:443
Oct 12 15:55:35 mDNSResponder[133] <Notice>: [R2088] getaddrinfo stop -- hostname: <mask.hash: '50Ad10t90odFT3avIOSWaA=='>, client pid: 583 (Myapp)
Oct 12 15:55:35 mDNSResponder[133] <Notice>: [R2089] getaddrinfo stop -- hostname: <mask.hash: 'yEsYh09eVvWKx+JCQJu7bw=='>, client pid: 583 (Myapp)
Oct 12 15:55:35 Myapp(libnetwork.dylib)[583] <Error>: nw_resolver_start_query_timer_block_invoke [C17.2] Query fired: did not receive all answers in time for Hostname#abb0aec1:443
Oct 12 15:55:35 mDNSResponder[133] <Notice>: [R2090] getaddrinfo stop -- hostname: <mask.hash: '50Ad10t90odFT3avIOSWaA=='>, client pid: 583 (Myapp)
Oct 12 15:55:35 mDNSResponder[133] <Notice>: [R2091] getaddrinfo stop -- hostname: <mask.hash: 'yEsYh09eVvWKx+JCQJu7bw=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 Myapp(libnetwork.dylib)[583] <Error>: nw_resolver_start_query_timer_block_invoke [C19.1] Query fired: did not receive all answers in time for Hostname#abb0aec1:443
Oct 12 15:55:36 Myapp(libnetwork.dylib)[583] <Error>: nw_resolver_start_query_timer_block_invoke [C20.1] Query fired: did not receive all answers in time for Hostname#abb0aec1:443
Oct 12 15:55:36 Myapp(libnetwork.dylib)[583] <Error>: nw_resolver_start_query_timer_block_invoke [C21.1] Query fired: did not receive all answers in time for Hostname#abb0aec1:443
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2092] getaddrinfo stop -- hostname: <mask.hash: '50Ad10t90odFT3avIOSWaA=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2095] getaddrinfo stop -- hostname: <mask.hash: 'yEsYh09eVvWKx+JCQJu7bw=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2093] getaddrinfo stop -- hostname: <mask.hash: '50Ad10t90odFT3avIOSWaA=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2096] getaddrinfo stop -- hostname: <mask.hash: 'yEsYh09eVvWKx+JCQJu7bw=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2094] getaddrinfo stop -- hostname: <mask.hash: '50Ad10t90odFT3avIOSWaA=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2097] getaddrinfo stop -- hostname: <mask.hash: 'yEsYh09eVvWKx+JCQJu7bw=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 Myapp(libnetwork.dylib)[583] <Error>: nw_resolver_start_query_timer_block_invoke [C19.2] Query fired: did not receive all answers in time for Hostname#abb0aec1:443
Oct 12 15:55:36 Myapp(libnetwork.dylib)[583] <Error>: nw_resolver_start_query_timer_block_invoke [C20.2] Query fired: did not receive all answers in time for Hostname#abb0aec1:443
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2098] getaddrinfo stop -- hostname: <mask.hash: '50Ad10t90odFT3avIOSWaA=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2100] getaddrinfo stop -- hostname: <mask.hash: 'yEsYh09eVvWKx+JCQJu7bw=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2099] getaddrinfo stop -- hostname: <mask.hash: '50Ad10t90odFT3avIOSWaA=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2101] getaddrinfo stop -- hostname: <mask.hash: 'yEsYh09eVvWKx+JCQJu7bw=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 Myapp(libnetwork.dylib)[583] <Error>: nw_resolver_start_query_timer_block_invoke [C21.2] Query fired: did not receive all answers in time for Hostname#abb0aec1:443
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2102] getaddrinfo stop -- hostname: <mask.hash: '50Ad10t90odFT3avIOSWaA=='>, client pid: 583 (Myapp)
Oct 12 15:55:36 mDNSResponder[133] <Notice>: [R2103] getaddrinfo stop -- hostname: <mask.hash: 'yEsYh09eVvWKx+JCQJu7bw=='>, client pid: 583 (Myapp)
Oct 12 15:55:39 backboardd(IOKit)[65] <Notice>: Connection removed: IOHIDEventSystemConnection uuid:E6657189-E850-425E-B2E0-9EF9E90EE951 pid:583 process:Myapp type:Passive entitlements:0x0 caller:BackBoardServices: <redacted> + 336 attributes:{
Oct 12 15:55:39 backboardd(BackBoardHIDEventFoundation)[65] <Notice>: Removing client connection <BKHIDClientConnection: 0x10b3d0cb0; IOHIDEventSystemConnectionRef: 0x10b340e10; vpid: 583(v66D); taskPort: 0x7D23B; bundleID: cz.Myapp> for client: IOHIDEventSystemConnection uuid:E6657189-E850-425E-B2E0-9EF9E90EE951 pid:583 process:Myapp type:Passive entitlements:0x0 caller:BackBoardServices: <redacted> + 336 attributes:{
Oct 12 15:55:39 mediaserverd(AudioToolbox)[36] <Notice>: AudioSession_SubServer.cpp:132   { "action":"client_died", "session":{"ID":"0x242a9","PID":583,"name":"Myapp"}, "details":null }
Oct 12 15:55:39 mediaserverd(MediaExperience)[36] <Notice>: -MXSession- -[MXSession(InterfaceImpl) _dealloc]: Deallocating <MXSessionID: 416, CoreSessionID = 82 Name = sid:0x242a9, Myapp(583), 'prim', Muted = NO, Playing = NO, MutePriority = MutePriority_Two, PiP = NO, DoesntActuallyPlayAudio = NO, clientType = 2. Current MXSessions count for CoreSession = 0
Oct 12 15:55:39 appstored[155] <Notice>: StoreKitServiceListener: Connection to Myapp invalidated
Oct 12 15:55:39 appstored[155] <Notice>: Purging impressions from Myapp
Oct 12 15:55:39 ReportCrash[337] <Notice>: Formulating fatal 309 report for corpse[583] Myapp
Oct 12 15:55:39 ReportCrash[337] <Notice>: loadStoreInfo [platform 2] cz.Myapp from file:///private/var/containers/Bundle/Application/E992C9DD-8C1F-4BCB-8F63-56A517D94391/Myapp.app/
Oct 12 15:55:39 osanalyticshelper(OSAnalytics)[161] <Notice>: creating type 309 as /private/var/mobile/Library/Logs/CrashReporter/.Myapp-2023-10-12-155539.ips
Oct 12 15:55:39 osanalyticshelper(OSAnalytics)[161] <Notice>: Saved type '309(<private>)' report (5 of max 25) at /private/var/mobile/Library/Logs/CrashReporter/Myapp-2023-10-12-155539.ips
Oct 12 15:55:39 osanalyticshelper[161] <Notice>: xpc log creation type 309 result success: /private/var/mobile/Library/Logs/CrashReporter/Myapp-2023-10-12-155539.ips
Oct 12 15:55:39 ReportCrash(OSAnalytics)[337] <Notice>: client log create type 309 result success: /private/var/mobile/Library/Logs/CrashReporter/Myapp-2023-10-12-155539.ips
Oct 12 15:55:39 ReportCrash(CoreAnalytics)[337] <Notice>: Sending event: com.apple.stability.crash {"bundleID":"cz.Myapp","bundleVersion":"2220","exceptionCodes":"0x0000000000000000, 0x0000000000000000(\134n    0,\134n    0\134n)EXC_CRASHSIGKILL","incidentID":"C1A47B94-F749-47A0-87E4-B03D5E86D333","logwritten":1,"process":"Myapp","terminationReasonExceptionCode":"0x8badf00d","terminationReasonNamespace":"FRONTBOARD"}
Oct 12 15:55:39 analyticsd[99] <Notice>: Received event: com.apple.stability.crash {"bundleID":"cz.Myapp","bundleVersion":"2220","exceptionCodes":"0x0000000000000000, 0x0000000000000000(\134n    0,\134n    0\134n)EXC_CRASHSIGKILL","incidentID":"C1A47B94-F749-47A0-87E4-B03D5E86D333","logwritten":1,"process":"Myapp","terminationReasonExceptionCode":"0x8badf00d","terminationReasonNamespace":"FRONTBOARD"}
Oct 12 15:55:39 analyticsd[99] <Notice>: Aggregated. Transform: StabilityCrashNumerator3WithBundleVersion Dirty: 1 Event: com.apple.stability.crash {"bundleID":"cz.Myapp","bundleVersion":"2220","exceptionCodes":"0x0000000000000000, 0x0000000000000000(\134n    0,\134n    0\134n)EXC_CRASHSIGKILL","incidentID":"C1A47B94-F749-47A0-87E4-B03D5E86D333","logwritten":1,"process":"Myapp","terminationReasonExceptionCode":"0x8badf00d","terminationReasonNamespace":"FRONTBOARD","timestamp":1697118939960556}
Oct 12 15:55:39 analyticsd[99] <Notice>: Aggregated. Transform: StabilityCrashNumerator3WithIncidentID Dirty: 1 Event: com.apple.stability.crash {"bundleID":"cz.Myapp","bundleVersion":"2220","exceptionCodes":"0x0000000000000000, 0x0000000000000000(\134n    0,\134n    0\134n)EXC_CRASHSIGKILL","incidentID":"C1A47B94-F749-47A0-87E4-B03D5E86D333","logwritten":1,"process":"Myapp","terminationReasonExceptionCode":"0x8badf00d","terminationReasonNamespace":"FRONTBOARD","timestamp":1697118939960556}
Oct 12 15:55:39 analyticsd[99] <Notice>: Aggregated. Transform: StabilityCrashNumerator3 Dirty: 1 Event: com.apple.stability.crash {"bundleID":"cz.Myapp","bundleVersion":"2220","exceptionCodes":"0x0000000000000000, 0x0000000000000000(\134n    0,\134n    0\134n)EXC_CRASHSIGKILL","incidentID":"C1A47B94-F749-47A0-87E4-B03D5E86D333","logwritten":1,"process":"Myapp","terminationReasonExceptionCode":"0x8badf00d","terminationReasonNamespace":"FRONTBOARD","timestamp":1697118939960556}

radekzz avatar Oct 26 '23 07:10 radekzz

Thanks @jorgerojas26 for sharing the crash log. However, it doesn't give clear insight into the root cause. Do you use react-native-reanimated or any packages that rely on it?

Yes, we are using:

"react-native-reanimated": "2.14.4" "react-native": "0.71.1" "react-native-code-push": "8.0.1"

jorgerojas26 avatar Oct 26 '23 13:10 jorgerojas26

@radekzz, intriguing. I'm not currently aware of any recent problems associated with iOS or App Store updates that might cause this.

However, I did observe some logs linked to background tasks that could potentially be a factor in the issue.

DmitriyKirakosyan avatar Oct 27 '23 08:10 DmitriyKirakosyan

Hi @DmitriyKirakosyan!

Is it impossible to use react-native-code-push with the reanimated library? I'm also currently experiencing this issue.

"react-native": "0.71.13",
"react-native-code-push": "^8.1.0",
"react-native-reanimated": "^3.5.2",

artpersona avatar Oct 27 '23 18:10 artpersona