Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

[ios] Crash when app reloads #164

@jayshah123

Description

@jayshah123

With following versions

react-native: 0.70.7
react-native-vision-camera: 2.15.6
vision-camera-code-scanner: 0.2.0
react-native-reanimated: 2.14.4
react-native-screens: 3.25.0

Whenever any API that causes app/bridge to restart e.g. Codepush.restart or RNRestart.restart, app crashes with below stack trace.

Following is the crash log:

Signal 11

com.facebook.react.JavaScript (16)#0	0x0000000102f1a038 in facebook::jsi::Pointer::~Pointer() at /Users/auser/Documents/Projects/temp-kiosk/MyApp/ios/Pods/Headers/Public/React-jsi/jsi/jsi.h:371
#1	0x0000000102f19fe8 in facebook::jsi::Object::~Object() at /Users/auser/Documents/Projects/temp-kiosk/MyApp/ios/Pods/Headers/Public/React-jsi/jsi/jsi.h:562
#2	0x0000000102f1a334 in facebook::jsi::Function::~Function() at /Users/auser/Documents/Projects/temp-kiosk/MyApp/ios/Pods/Headers/Public/React-jsi/jsi/jsi.h:854
#3	0x0000000102f181b8 in facebook::jsi::Function::~Function() at /Users/auser/Documents/Projects/temp-kiosk/MyApp/ios/Pods/Headers/Public/React-jsi/jsi/jsi.h:854
#4	0x00000001034f1708 in std::__1::__shared_ptr_emplace<facebook::jsi::Function, std::__1::allocator<facebook::jsi::Function> >::__on_zero_shared() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:311
#5	0x0000000102f19ed0 in std::__1::__shared_count::__release_shared[abi:v15006]() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:174
#6	0x0000000102f19e70 in std::__1::__shared_weak_count::__release_shared[abi:v15006]() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:215
#7	0x0000000102f205fc in std::__1::shared_ptr<facebook::jsi::Function>::~shared_ptr[abi:v15006]() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:702
#8	0x0000000102f17314 in std::__1::shared_ptr<facebook::jsi::Function>::~shared_ptr[abi:v15006]() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:700
#9	0x00000001034f24c4 in reanimated::HostFunctionHandler::~HostFunctionHandler() at /Users/auser/Documents/Projects/temp-kiosk/MyApp/node_modules/react-native-reanimated/Common/cpp/SharedItems/HostFunctionHandler.h:11
#10	0x00000001034f23bc in reanimated::HostFunctionHandler::~HostFunctionHandler() at /Users/auser/Documents/Projects/temp-kiosk/MyApp/node_modules/react-native-reanimated/Common/cpp/SharedItems/HostFunctionHandler.h:11
#11	0x00000001034f2084 in std::__1::__shared_ptr_emplace<reanimated::HostFunctionHandler, std::__1::allocator<reanimated::HostFunctionHandler> >::__on_zero_shared() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:311
#12	0x000000012a09e3fc in ___lldb_unnamed_symbol716 ()
#13	0x000000012a1a45e0 in ___lldb_unnamed_symbol3900 ()
#14	0x000000012a1162dc in ___lldb_unnamed_symbol2390 ()
#15	0x000000012a116824 in ___lldb_unnamed_symbol2393 ()
#16	0x000000012a09bdbc in ___lldb_unnamed_symbol665 ()
#17	0x000000012a099cd4 in ___lldb_unnamed_symbol600 ()
#18	0x00000001039fe558 in std::__1::default_delete<facebook::jsi::Runtime>::operator()[abi:v15006](facebook::jsi::Runtime*) const at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:48
#19	0x00000001039ffe74 in std::__1::__shared_ptr_pointer<facebook::jsi::Runtime*, std::__1::default_delete<facebook::jsi::Runtime>, std::__1::allocator<facebook::jsi::Runtime> >::__on_zero_shared() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:263
#20	0x0000000102f19ed0 in std::__1::__shared_count::__release_shared[abi:v15006]() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:174
#21	0x0000000102f19e70 in std::__1::__shared_weak_count::__release_shared[abi:v15006]() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:215
#22	0x0000000102f1b540 in std::__1::shared_ptr<facebook::jsi::Runtime>::~shared_ptr[abi:v15006]() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:702
#23	0x0000000102f1605c in std::__1::shared_ptr<facebook::jsi::Runtime>::~shared_ptr[abi:v15006]() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/shared_ptr.h:700
#24	0x0000000103a033ac in reanimated::RuntimeManager::~RuntimeManager() at /Users/auser/Documents/Projects/temp-kiosk/MyApp/ios/Pods/Headers/Private/RNReanimated/RuntimeManager.h:36
#25	0x0000000103a005a4 in reanimated::RuntimeManager::~RuntimeManager() at /Users/auser/Documents/Projects/temp-kiosk/MyApp/ios/Pods/Headers/Private/RNReanimated/RuntimeManager.h:34
#26	0x0000000103a005d0 in reanimated::RuntimeManager::~RuntimeManager() at /Users/auser/Documents/Projects/temp-kiosk/MyApp/ios/Pods/Headers/Private/RNReanimated/RuntimeManager.h:34
#27	0x0000000103a039fc in std::__1::default_delete<reanimated::RuntimeManager>::operator()[abi:v15006](reanimated::RuntimeManager*) const at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:48
#28	0x0000000103a03968 in std::__1::unique_ptr<reanimated::RuntimeManager, std::__1::default_delete<reanimated::RuntimeManager> >::reset[abi:v15006](reanimated::RuntimeManager*) at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:305
#29	0x0000000103a038f0 in std::__1::unique_ptr<reanimated::RuntimeManager, std::__1::default_delete<reanimated::RuntimeManager> >::~unique_ptr[abi:v15006]() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:259
#30	0x00000001039fd988 in std::__1::unique_ptr<reanimated::RuntimeManager, std::__1::default_delete<reanimated::RuntimeManager> >::~unique_ptr[abi:v15006]() at /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:259
#31	0x00000001039fe05c in -[FrameProcessorRuntimeManager .cxx_destruct] at /Users/auser/Documents/Projects/temp-kiosk/MyApp/node_modules/react-native-vision-camera/ios/Frame Processor/FrameProcessorRuntimeManager.mm:53
#32	0x000000019d8ce0a4 in object_cxxDestructFromClass(objc_object*, objc_class*) ()
#33	0x000000019d8d2e00 in objc_destructInstance ()
#34	0x000000019d8dc4fc in _objc_rootDealloc ()
#35	0x0000000103a7577c in outlined destroy of FrameProcessorRuntimeManager? ()
#36	0x0000000103a75758 in @objc CameraViewManager.__ivar_destroyer ()
#37	0x000000019d8ce0a4 in object_cxxDestructFromClass(objc_object*, objc_class*) ()
#38	0x000000019d8d2e00 in objc_destructInstance ()
#39	0x000000019d8dc4fc in _objc_rootDealloc ()
#40	0x000000019d8ce1d4 in AutoreleasePoolPage::releaseUntil(objc_object**) ()
#41	0x000000019d8d1bdc in objc_autoreleasePoolPop ()
#42	0x00000001a483fca8 in _CFAutoreleasePoolPop ()
#43	0x000000019eb347c0 in __NSThreadPerformPerform ()
#44	0x00000001a4896128 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#45	0x00000001a48a27b4 in __CFRunLoopDoSource0 ()
#46	0x00000001a48275e8 in __CFRunLoopDoSources0 ()
#47	0x00000001a483d0d4 in __CFRunLoopRun ()
#48	0x00000001a48423ec in CFRunLoopRunSpecific ()
#49	0x00000001035b74ec in +[RCTCxxBridge runRunLoop] at /Users/auser/Documents/Projects/temp-kiosk/MyApp/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm:335
#50	0x000000019eb54524 in __NSThread__start__ ()
#51	0x0000000203b7f6b8 in _pthread_start ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions