realm-core icon indicating copy to clipboard operation
realm-core copied to clipboard

Random Crash with "please report this issue in github realm realm core"

Open cristianoccazinsp opened this issue 2 years ago • 4 comments

Description

I'm unable to get the actual code that crashed from XCode, so the following is all I've got. However, the message is interesting. There seems to be a user having consistent crashes with Realm and the following (see next section) is some of the info I'm able to get.

Stacktrace & log output

#0	(null) in __pthread_kill ()
realm/realm-js#1	(null) in pthread_kill ()
realm/realm-js#2	(null) in abort ()
realm/realm-js#3	(null) in please_report_this_issue_in_github_realm_realm_core ()
realm/realm-js#4	(null) in realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) ()
realm/realm-js#5	(null) in realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) ()
realm/realm-js#6	(null) in void realm::util::terminate<unsigned long, unsigned long>(char const*, char const*, long, unsigned long, unsigned long) ()
realm/realm-js#7	(null) in realm::Array::move(unsigned long, unsigned long, unsigned long) ()
realm/realm-js#8	(null) in realm::util::FunctionRef<unsigned long (realm::BPlusTreeNode*, unsigned long)>::FunctionRef<realm::BPlusTree<long long>::erase(unsigned long)::'lambda'(realm::BPlusTreeNode*, unsigned long)&>(realm... ()
realm/realm-js#9	(null) in realm::BPlusTreeBase::bptree_erase(unsigned long, realm::util::FunctionRef<unsigned long (realm::BPlusTreeNode*, unsigned long)>) ()
realm/realm-js#10	(null) in realm::StringIndex::do_delete(realm::ObjKey, realm::StringData, unsigned long) ()
realm/realm-js#11	(null) in realm::StringIndex::erase(realm::ObjKey) ()
realm/realm-js#12	(null) in realm::Table::erase_from_search_indexes(realm::ObjKey) ()
realm/realm-js#13	(null) in realm::ClusterTree::erase(realm::ObjKey, realm::CascadeState&) ()
realm/realm-js#14	(null) in realm::Table::remove_object(realm::ObjKey) ()
realm/realm-js#15	(null) in realm::js::RealmClass<realm::js::realmjsi::Types>::delete_one(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments<realm::js::realmjsi::Types>&, realm::js::ReturnValue<realm::js::realmjsi::Ty... ()
realm/realm-js#16	(null) in facebook::jsi::Value realm::js::wrap<&(realm::js::RealmClass<realm::js::realmjsi::Types>::delete_one(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments<realm::js::realmjsi::Types>&, realm::... ()
realm/realm-js#17	0x0000000104f6e9e0 in std::__1::__function::__value_func<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, face... ()
realm/realm-js#18	0x0000000104f6e9e0 in 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... ()
realm/realm-js#19	0x0000000104f6e728 in facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value cons... at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/ReactCommon/jsi/JSCRuntime.cpp:1158
realm/realm-js#20	(null) in JSC::callJSNonFinalObjectCallbackObject(JSC::JSGlobalObject*, JSC::CallFrame*) ()
realm/realm-js#21	(null) in JSC::handleHostCall(JSC::JSGlobalObject*, JSC::CallFrame*, JSC::JSValue, JSC::CallLinkInfo*) ()
realm/realm-js#22	(null) in llint_link_call ()
realm/realm-js#23	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#24	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#25	(null) in vmEntryToJavaScriptTrampoline ()
realm/realm-js#26	(null) in JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) ()
realm/realm-js#27	(null) in JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) ()
realm/realm-js#28	(null) in JSObjectCallAsFunction ()
realm/realm-js#29	0x0000000104f6cbd8 in facebook::jsc::JSCRuntime::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/ReactCommon/jsi/JSCRuntime.cpp:1260
realm/realm-js#30	(null) in realm::js::Function<realm::js::realmjsi::Types>::call(realm::js::JsiEnv, realm::js::JsiFunc const&, realm::js::JsiObj const&, unsigned long, realm::js::JsiVal const*) ()
realm/realm-js#31	(null) in realm::js::RealmClass<realm::js::realmjsi::Types>::write(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments<realm::js::realmjsi::Types>&, realm::js::ReturnValue<realm::js::realmjsi::Types>&) ()
realm/realm-js#32	(null) in facebook::jsi::Value realm::js::wrap<&(realm::js::RealmClass<realm::js::realmjsi::Types>::write(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments<realm::js::realmjsi::Types>&, realm::js::R... ()
realm/realm-js#33	0x0000000104f6e9e0 in std::__1::__function::__value_func<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, face... ()
realm/realm-js#34	0x0000000104f6e9e0 in 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... ()
realm/realm-js#35	0x0000000104f6e728 in facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value cons... at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/ReactCommon/jsi/JSCRuntime.cpp:1158
realm/realm-js#36	(null) in JSC::callJSNonFinalObjectCallbackObject(JSC::JSGlobalObject*, JSC::CallFrame*) ()
realm/realm-js#37	(null) in JSC::handleHostCall(JSC::JSGlobalObject*, JSC::CallFrame*, JSC::JSValue, JSC::CallLinkInfo*) ()
realm/realm-js#38	(null) in llint_link_call ()
realm/realm-js#39	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#40	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#41	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#42	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#43	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#44	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#45	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#46	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#47	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#48	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#49	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#50	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#51	(null) in llint_function_for_construct_arity_checkTagGateAfter ()
realm/realm-js#52	(null) in vmEntryToJavaScriptTrampoline ()
realm/realm-js#53	(null) in JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) ()
realm/realm-js#54	(null) in JSC::boundThisNoArgsFunctionCall(JSC::JSGlobalObject*, JSC::CallFrame*) ()
realm/realm-js#55	(null) in vmEntryToNative ()
realm/realm-js#56	(null) in JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) ()
realm/realm-js#57	(null) in JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) ()
realm/realm-js#58	(null) in JSObjectCallAsFunction ()
realm/realm-js#59	0x0000000104f6cbd8 in facebook::jsc::JSCRuntime::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/ReactCommon/jsi/JSCRuntime.cpp:1260
realm/realm-js#60	0x0000000104f78e5c in facebook::jsi::Function::call(facebook::jsi::Runtime&, facebook::jsi::Value const*, unsigned long) const at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/ReactCommon/jsi/jsi/jsi-inl.h:228
realm/realm-js#61	0x0000000104f78e5c in facebook::jsi::Function::call(facebook::jsi::Runtime&, std::initializer_list<facebook::jsi::Value>) const at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/ReactCommon/jsi/jsi/jsi-inl.h:233
realm/realm-js#62	0x0000000104f78e5c in 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<c... at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/ReactCommon/jsi/jsi/jsi-inl.h:241
realm/realm-js#63	0x0000000104f78cc0 in 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>, st... at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp:256
realm/realm-js#64	0x0000000104f78cc0 in decltype(static_cast<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::... ()
realm/realm-js#65	0x0000000104f78cc0 in void std::__1::__invoke_void_return_wrapper<void, true>::__call<facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > cons... ()
realm/realm-js#66	0x0000000104f78cc0 in std::__1::__function::__alloc_func<facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<ch... ()
realm/realm-js#67	0x0000000104f78cc0 in 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, st... ()
realm/realm-js#68	0x0000000104e959d8 in decltype(static_cast<void (*&>(fp)(static_cast<std::__1::function<void ()> const&>(fp0), static_cast<std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator... ()
realm/realm-js#69	0x0000000104e959d8 in 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::... ()
realm/realm-js#70	0x0000000104f76084 in std::__1::__function::__value_func<void (std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>)>::operator... ()
realm/realm-js#71	0x0000000104f76084 in std::__1::function<void (std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>)>::operator()(std::__1::fun... ()
realm/realm-js#72	0x0000000104f76084 in 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>, st... at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp:254
realm/realm-js#73	0x0000000104f692e0 in std::__1::__function::__value_func<void (facebook::react::JSExecutor*)>::operator()(facebook::react::JSExecutor*&&) const ()
realm/realm-js#74	0x0000000104f692e0 in std::__1::function<void (facebook::react::JSExecutor*)>::operator()(facebook::react::JSExecutor*) const ()
realm/realm-js#75	0x0000000104f692e0 in facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8::operator()() const at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/ReactCommon/cxxreact/NativeToJsBridge.cpp:310
realm/realm-js#76	0x0000000104f692e0 in decltype(static_cast<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8&>(fp)()) std::__1::__invoke<facebook::react::NativeToJsBridg... ()
realm/realm-js#77	0x0000000104f692e0 in void std::__1::__invoke_void_return_wrapper<void, true>::__call<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8&>(facebook::react... ()
realm/realm-js#78	0x0000000104f692e0 in std::__1::__function::__alloc_func<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8, std::__1::allocator<facebook::react::NativeTo... ()
realm/realm-js#79	0x0000000104f692e0 in std::__1::__function::__func<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8, std::__1::allocator<facebook::react::NativeToJsBrid... ()
realm/realm-js#80	0x0000000104eb4cf8 in std::__1::__function::__value_func<void ()>::operator()() const ()
realm/realm-js#81	0x0000000104eb4cf8 in std::__1::function<void ()>::operator()() const ()
realm/realm-js#82	0x0000000104eb4cf8 in facebook::react::tryAndReturnError(std::__1::function<void ()> const&) at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/React/CxxModule/RCTCxxUtils.mm:74
realm/realm-js#83	0x0000000104ec102c in facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/React/CxxBridge/RCTMessageThread.mm:69
realm/realm-js#84	0x0000000104ec0de0 in std::__1::__function::__value_func<void ()>::operator()() const ()
realm/realm-js#85	0x0000000104ec0de0 in std::__1::function<void ()>::operator()() const ()
realm/realm-js#86	0x0000000104ec0de0 in invocation function for block in facebook::react::RCTMessageThread::runAsync(std::__1::function<void ()>) at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/React/CxxBridge/RCTMessageThread.mm:45
realm/realm-js#87	(null) in __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ ()
realm/realm-js#88	(null) in __CFRunLoopDoBlocks ()
realm/realm-js#89	(null) in __CFRunLoopRun ()
realm/realm-js#90	(null) in CFRunLoopRunSpecific ()
realm/realm-js#91	0x0000000104ea9dbc in +[RCTCxxBridge runRunLoop] at /Users/cristiano/Desktop/trabajo/zinspector/mobileRN/zinspector3/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm:384
realm/realm-js#92	(null) in __NSThread__start__ ()
realm/realm-js#93	(null) in _pthread_start ()
realm/realm-js#94	(null) in thread_start ()
Incident Identifier: 5138F9C7-52FA-422F-9A8B-BF0AB286755E
Hardware Model:      iPhone13,4
Process:             zinspector3 [4046]
Path:                /private/var/containers/Bundle/Application/DC8EC078-F7C8-432B-B43E-9AECCB73B301/zinspector3.app/zinspector3
Identifier:          com.zinspector.zinspector3
Version:             3.2.30 (302030)
AppStoreTools:       13F15
AppVariant:          1:iPhone13,4:15
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.zinspector.zinspector3 [689]

Date/Time:           2022-06-24 18:16:31.8182 -0700
Launch Time:         2022-06-15 18:54:53.4910 -0700
OS Version:          iPhone OS 15.5 (19F77)
Release Type:        User
Baseband Version:    2.54.02
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  6


Thread 0 name:
Thread 0:
0   libsystem_kernel.dylib        	0x0000000202fc84a0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	0x0000000202fc8ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                	0x00000001cb3a6d30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                	0x00000001cb3ab1bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                	0x00000001cb3bebc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   GraphicsServices              	0x00000001e74f2374 GSEventRunModal + 164 (GSEvent.c:2200)
6   UIKitCore                     	0x00000001cdd2e648 -[UIApplication _run] + 1100 (UIApplication.m:3511)
7   UIKitCore                     	0x00000001cdaafd90 UIApplicationMain + 364 (UIApplication.m:5064)
8   zinspector3                   	0x0000000104d349ec main + 88 (main.m:6)
9   dyld                          	0x000000010759dce4 start + 520 (dyldMain.cpp:879)

Thread 1:
0   libsystem_pthread.dylib       	0x000000023ccf7e54 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	0x000000023ccf7e54 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	0x000000023ccf7e54 start_wqthread + 0

Thread 4 name:
Thread 4:
0   libsystem_kernel.dylib        	0x0000000202fc84a0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	0x0000000202fc8ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                	0x00000001cb3a6d30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                	0x00000001cb3ab1bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                	0x00000001cb3bebc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   Foundation                    	0x00000001ccbad464 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373)
6   Foundation                    	0x00000001ccbeee2c -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420)
7   UIKitCore                     	0x00000001cdca8770 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167)
8   Foundation                    	0x00000001ccbfd43c __NSThread__start__ + 808 (NSThread.m:972)
9   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
10  libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 5:
0   libsystem_pthread.dylib       	0x000000023ccf7e54 start_wqthread + 0

Thread 6 name:
Thread 6 Crashed:
0   libsystem_kernel.dylib        	0x0000000202fceb38 __pthread_kill + 8
1   libsystem_pthread.dylib       	0x000000023ccfe3bc pthread_kill + 268 (pthread.c:1668)
2   libsystem_c.dylib             	0x00000001d653f524 abort + 168 (abort.c:118)
3   zinspector3                   	0x000000010541e318 please_report_this_issue_in_github_realm_realm_core + 12
4   zinspector3                   	0x000000010541e488 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 328
5   zinspector3                   	0x000000010541e600 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   zinspector3                   	0x000000010508169c void realm::util::terminate<unsigned long, unsigned long>(char const*, char const*, long, unsigned long, unsigned long) + 48
7   zinspector3                   	0x00000001052e8834 realm::Array::move(unsigned long, unsigned long, unsigned long) + 404
8   zinspector3                   	0x0000000105180f58 realm::util::FunctionRef<unsigned long (realm::BPlusTreeNode*, unsigned long)>::FunctionRef<realm::BPlusTree<long long>::erase(unsigned long)::'lambda'(realm::BPlusTreeNode*, unsigned long)&>(realm... + 36
9   zinspector3                   	0x0000000105302520 realm::BPlusTreeBase::bptree_erase(unsigned long, realm::util::FunctionRef<unsigned long (realm::BPlusTreeNode*, unsigned long)>) + 52
10  zinspector3                   	0x00000001053464f8 realm::StringIndex::do_delete(realm::ObjKey, realm::StringData, unsigned long) + 952
11  zinspector3                   	0x0000000105346a80 realm::StringIndex::erase(realm::ObjKey) + 164
12  zinspector3                   	0x00000001053e0ff0 realm::Table::erase_from_search_indexes(realm::ObjKey) + 76
13  zinspector3                   	0x00000001053122e0 realm::ClusterTree::erase(realm::ObjKey, realm::CascadeState&) + 44
14  zinspector3                   	0x00000001053ed9a4 realm::Table::remove_object(realm::ObjKey) + 268
15  zinspector3                   	0x0000000105086f58 realm::js::RealmClass<realm::js::realmjsi::Types>::delete_one(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments<realm::js::realmjsi::Types>&, realm::js::ReturnValue<realm::js::realmjsi::Ty... + 384
16  zinspector3                   	0x000000010503e5e0 facebook::jsi::Value realm::js::wrap<&(realm::js::RealmClass<realm::js::realmjsi::Types>::delete_one(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments<realm::js::realmjsi::Types>&, realm::... + 192
17  zinspector3                   	0x0000000104f6e9e0 std::__1::__function::__value_func<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, face... + 28 (function.h:505)
18  zinspector3                   	0x0000000104f6e9e0 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... + 44 (function.h:1182)
19  zinspector3                   	0x0000000104f6e728 facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value cons... + 380 (JSCRuntime.cpp:1158)
20  JavaScriptCore                	0x00000001d6a77028 JSC::callJSNonFinalObjectCallbackObject(JSC::JSGlobalObject*, JSC::CallFrame*) + 416 (JSCallbackObjectFunctions.h:566)
21  JavaScriptCore                	0x00000001d72b84ec JSC::handleHostCall(JSC::JSGlobalObject*, JSC::CallFrame*, JSC::JSValue, JSC::CallLinkInfo*) + 544 (NativeFunction.h:50)
22  JavaScriptCore                	0x00000001d72ebac4 llint_link_call + 492 (RepatchInlines.h:120)
23  JavaScriptCore                	0x00000001d69fad3c llint_function_for_construct_arity_checkTagGateAfter + 160728
24  JavaScriptCore                	0x00000001d69f74f8 llint_function_for_construct_arity_checkTagGateAfter + 146324
25  JavaScriptCore                	0x00000001d69cd430 vmEntryToJavaScriptTrampoline + 8
26  JavaScriptCore                	0x00000001d71cae1c JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 536 (JITCodeInlines.h:42)
27  JavaScriptCore                	0x00000001d745238c JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 96 (CallData.cpp:57)
28  JavaScriptCore                	0x00000001d6a8a568 JSObjectCallAsFunction + 520 (JSObjectRef.cpp:735)
29  zinspector3                   	0x0000000104f6cbd8 facebook::jsc::JSCRuntime::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) + 164 (JSCRuntime.cpp:1260)
30  zinspector3                   	0x0000000105087aa0 realm::js::Function<realm::js::realmjsi::Types>::call(realm::js::JsiEnv, realm::js::JsiFunc const&, realm::js::JsiObj const&, unsigned long, realm::js::JsiVal const*) + 148
31  zinspector3                   	0x00000001050878a8 realm::js::RealmClass<realm::js::realmjsi::Types>::write(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments<realm::js::realmjsi::Types>&, realm::js::ReturnValue<realm::js::realmjsi::Types>&) + 180
32  zinspector3                   	0x000000010503e9c8 facebook::jsi::Value realm::js::wrap<&(realm::js::RealmClass<realm::js::realmjsi::Types>::write(realm::js::JsiEnv, realm::js::JsiObj, realm::js::Arguments<realm::js::realmjsi::Types>&, realm::js::R... + 192
33  zinspector3                   	0x0000000104f6e9e0 std::__1::__function::__value_func<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, face... + 28 (function.h:505)
34  zinspector3                   	0x0000000104f6e9e0 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... + 44 (function.h:1182)
35  zinspector3                   	0x0000000104f6e728 facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value cons... + 380 (JSCRuntime.cpp:1158)
36  JavaScriptCore                	0x00000001d6a77028 JSC::callJSNonFinalObjectCallbackObject(JSC::JSGlobalObject*, JSC::CallFrame*) + 416 (JSCallbackObjectFunctions.h:566)
37  JavaScriptCore                	0x00000001d72b84ec JSC::handleHostCall(JSC::JSGlobalObject*, JSC::CallFrame*, JSC::JSValue, JSC::CallLinkInfo*) + 544 (NativeFunction.h:50)
38  JavaScriptCore                	0x00000001d72ebac4 llint_link_call + 492 (RepatchInlines.h:120)
39  JavaScriptCore                	0x00000001d69fad3c llint_function_for_construct_arity_checkTagGateAfter + 160728
40  JavaScriptCore                	0x00000001d69f74f8 llint_function_for_construct_arity_checkTagGateAfter + 146324
41  JavaScriptCore                	0x00000001d69f7440 llint_function_for_construct_arity_checkTagGateAfter + 146140
42  JavaScriptCore                	0x00000001d69f83cc llint_function_for_construct_arity_checkTagGateAfter + 150120
43  JavaScriptCore                	0x00000001d69f74f8 llint_function_for_construct_arity_checkTagGateAfter + 146324
44  JavaScriptCore                	0x00000001d69f7440 llint_function_for_construct_arity_checkTagGateAfter + 146140
45  JavaScriptCore                	0x00000001d69f83cc llint_function_for_construct_arity_checkTagGateAfter + 150120
46  JavaScriptCore                	0x00000001d69f74f8 llint_function_for_construct_arity_checkTagGateAfter + 146324
47  JavaScriptCore                	0x00000001d69f83cc llint_function_for_construct_arity_checkTagGateAfter + 150120
48  JavaScriptCore                	0x00000001d69f74f8 llint_function_for_construct_arity_checkTagGateAfter + 146324
49  JavaScriptCore                	0x00000001d69f8a40 llint_function_for_construct_arity_checkTagGateAfter + 151772
50  JavaScriptCore                	0x00000001d69f74f8 llint_function_for_construct_arity_checkTagGateAfter + 146324
51  JavaScriptCore                	0x00000001d69f7440 llint_function_for_construct_arity_checkTagGateAfter + 146140
52  JavaScriptCore                	0x00000001d69cd430 vmEntryToJavaScriptTrampoline + 8
53  JavaScriptCore                	0x00000001d71cae1c JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 536 (JITCodeInlines.h:42)
54  JavaScriptCore                	0x00000001d751440c JSC::boundThisNoArgsFunctionCall(JSC::JSGlobalObject*, JSC::CallFrame*) + 496 (CallData.cpp:57)
55  JavaScriptCore                	0x00000001d69cd5e0 vmEntryToNative + 284
56  JavaScriptCore                	0x00000001d71cae6c JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 616 (Interpreter.cpp:979)
57  JavaScriptCore                	0x00000001d745238c JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 96 (CallData.cpp:57)
58  JavaScriptCore                	0x00000001d6a8a568 JSObjectCallAsFunction + 520 (JSObjectRef.cpp:735)
59  zinspector3                   	0x0000000104f6cbd8 facebook::jsc::JSCRuntime::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) + 164 (JSCRuntime.cpp:1260)
60  zinspector3                   	0x0000000104f78e5c facebook::jsi::Function::call(facebook::jsi::Runtime&, facebook::jsi::Value const*, unsigned long) const + 44 (jsi-inl.h:228)
61  zinspector3                   	0x0000000104f78e5c facebook::jsi::Function::call(facebook::jsi::Runtime&, std::initializer_list<facebook::jsi::Value>) const + 44 (jsi-inl.h:233)
62  zinspector3                   	0x0000000104f78e5c 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<c... + 244 (jsi-inl.h:241)
63  zinspector3                   	0x0000000104f78cc0 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>, st... + 68 (JSIExecutor.cpp:256)
64  zinspector3                   	0x0000000104f78cc0 decltype(static_cast<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::... + 68 (type_traits:3918)
65  zinspector3                   	0x0000000104f78cc0 void std::__1::__invoke_void_return_wrapper<void, true>::__call<facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > cons... + 68 (invoke.h:61)
66  zinspector3                   	0x0000000104f78cc0 std::__1::__function::__alloc_func<facebook::react::JSIExecutor::callFunction(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<ch... + 68 (function.h:178)
67  zinspector3                   	0x0000000104f78cc0 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, st... + 96 (function.h:352)
68  zinspector3                   	0x0000000104e959d8 decltype(static_cast<void (*&>(fp)(static_cast<std::__1::function<void ()> const&>(fp0), static_cast<std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator... + 32 (type_traits:3918)
69  zinspector3                   	0x0000000104e959d8 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::... + 72 (invoke.h:61)
70  zinspector3                   	0x0000000104f76084 std::__1::__function::__value_func<void (std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>)>::operator... + 32 (function.h:505)
71  zinspector3                   	0x0000000104f76084 std::__1::function<void (std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>)>::operator()(std::__1::fun... + 32 (function.h:1182)
72  zinspector3                   	0x0000000104f76084 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>, st... + 352 (JSIExecutor.cpp:254)
73  zinspector3                   	0x0000000104f692e0 std::__1::__function::__value_func<void (facebook::react::JSExecutor*)>::operator()(facebook::react::JSExecutor*&&) const + 24 (function.h:505)
74  zinspector3                   	0x0000000104f692e0 std::__1::function<void (facebook::react::JSExecutor*)>::operator()(facebook::react::JSExecutor*) const + 24 (function.h:1182)
75  zinspector3                   	0x0000000104f692e0 facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8::operator()() const + 48 (NativeToJsBridge.cpp:310)
76  zinspector3                   	0x0000000104f692e0 decltype(static_cast<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8&>(fp)()) std::__1::__invoke<facebook::react::NativeToJsBridg... + 48 (type_traits:3918)
77  zinspector3                   	0x0000000104f692e0 void std::__1::__invoke_void_return_wrapper<void, true>::__call<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8&>(facebook::react... + 48 (invoke.h:61)
78  zinspector3                   	0x0000000104f692e0 std::__1::__function::__alloc_func<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8, std::__1::allocator<facebook::react::NativeTo... + 48 (function.h:178)
79  zinspector3                   	0x0000000104f692e0 std::__1::__function::__func<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8, std::__1::allocator<facebook::react::NativeToJsBrid... + 60 (function.h:352)
80  zinspector3                   	0x0000000104eb4cf8 std::__1::__function::__value_func<void ()>::operator()() const + 20 (function.h:505)
81  zinspector3                   	0x0000000104eb4cf8 std::__1::function<void ()>::operator()() const + 20 (function.h:1182)
82  zinspector3                   	0x0000000104eb4cf8 facebook::react::tryAndReturnError(std::__1::function<void ()> const&) + 32 (RCTCxxUtils.mm:74)
83  zinspector3                   	0x0000000104ec102c facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) + 24 (RCTMessageThread.mm:69)
84  zinspector3                   	0x0000000104ec0de0 std::__1::__function::__value_func<void ()>::operator()() const + 20 (function.h:505)
85  zinspector3                   	0x0000000104ec0de0 std::__1::function<void ()>::operator()() const + 20 (function.h:1182)
86  zinspector3                   	0x0000000104ec0de0 invocation function for block in facebook::react::RCTMessageThread::runAsync(std::__1::function<void ()>) + 44 (RCTMessageThread.mm:45)
87  CoreFoundation                	0x00000001cb4125a4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28 (CFRunLoop.c:1820)
88  CoreFoundation                	0x00000001cb413500 __CFRunLoopDoBlocks + 412 (CFRunLoop.c:1862)
89  CoreFoundation                	0x00000001cb3ab3d8 __CFRunLoopRun + 1720 (CFRunLoop.c:3198)
90  CoreFoundation                	0x00000001cb3bebc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
91  zinspector3                   	0x0000000104ea9dbc +[RCTCxxBridge runRunLoop] + 264 (RCTCxxBridge.mm:384)
92  Foundation                    	0x00000001ccbfd43c __NSThread__start__ + 808 (NSThread.m:972)
93  libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
94  libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 7 name:
Thread 7:
0   libsystem_kernel.dylib        	0x0000000202fc84a0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	0x0000000202fc8ae4 mach_msg + 76 (mach_msg.c:119)
2   libsystem_kernel.dylib        	0x0000000202fd4a44 thread_suspend + 96 (thread_actUser.c:1016)
3   zinspector3                   	0x0000000104d43d00 ksmachexc_i_handleExceptions + 108 (BSG_KSCrashSentry_MachException.c:221)
4   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
5   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 8 name:
Thread 8:
0   libsystem_kernel.dylib        	0x0000000202fc84a0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	0x0000000202fc8ae4 mach_msg + 76 (mach_msg.c:119)
2   zinspector3                   	0x0000000104d43d50 ksmachexc_i_handleExceptions + 188 (BSG_KSCrashSentry_MachException.c:228)
3   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
4   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 9:
0   libsystem_pthread.dylib       	0x000000023ccf7e54 start_wqthread + 0

Thread 10 name:
Thread 10:
0   libsystem_kernel.dylib        	0x0000000202fc84dc semaphore_wait_trap + 8
1   libdispatch.dylib             	0x00000001cb0a0fcc _dispatch_sema4_wait + 28 (lock.c:139)
2   libdispatch.dylib             	0x00000001cb0a1674 _dispatch_semaphore_wait_slow + 132 (semaphore.c:132)
3   zinspector3                   	0x0000000104d4cc40 -[BSGAppHangDetector detectAppHangs] + 296 (BSGAppHangDetector.m:124)
4   Foundation                    	0x00000001ccbfd43c __NSThread__start__ + 808 (NSThread.m:972)
5   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
6   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 11 name:
Thread 11:
0   libsystem_kernel.dylib        	0x0000000202fc84a0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	0x0000000202fc8ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                	0x00000001cb3a6d30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                	0x00000001cb3ab1bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                	0x00000001cb3bebc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   AudioSession                  	0x00000001d49caf04 CADeprecated::GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:95)
6   AudioSession                  	0x00000001d49d48f0 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92 (CAPThread.cpp:324)
7   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 12 name:
Thread 12:
0   libsystem_kernel.dylib        	0x0000000202fc84a0 mach_msg_trap + 8
1   libsystem_kernel.dylib        	0x0000000202fc8ae4 mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                	0x00000001cb3a6d30 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                	0x00000001cb3ab1bc __CFRunLoopRun + 1180 (CFRunLoop.c:3000)
4   CoreFoundation                	0x00000001cb3bebc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   CFNetwork                     	0x00000001cbe3723c +[__CFN_CoreSchedulingSetRunnable _run:] + 472 (CoreSchedulingSet.mm:1372)
6   Foundation                    	0x00000001ccbfd43c __NSThread__start__ + 808 (NSThread.m:972)
7   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 13 name:
Thread 13:
0   libsystem_kernel.dylib        	0x0000000202fc9e18 kevent + 8
1   zinspector3                   	0x0000000105110f00 realm::_impl::ExternalCommitHelper::listen() + 156
2   zinspector3                   	0x0000000105111050 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::ExternalCommitHelper::ExternalCom... + 52
3   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
4   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 14 name:
Thread 14:
0   libsystem_kernel.dylib        	0x0000000202fc8f24 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	0x000000023ccff298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                	0x00000001d66df278 scavenger_thread_main + 1232 (pas_scavenger.c:135)
3   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
4   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 15 name:
Thread 15:
0   libsystem_kernel.dylib        	0x0000000202fc8f24 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	0x000000023ccff298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                	0x00000001d6640314 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                	0x00000001d6605448 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                	0x00000001d66058d0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                	0x00000001d66614b8 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                	0x00000001d66637c4 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 16 name:
Thread 16:
0   libsystem_kernel.dylib        	0x0000000202fc8f24 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	0x000000023ccff298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                	0x00000001d6640314 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                	0x00000001d6605448 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                	0x00000001d66058d0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                	0x00000001d66614b8 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                	0x00000001d66637c4 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 17 name:
Thread 17:
0   libsystem_kernel.dylib        	0x0000000202fc8f24 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	0x000000023ccff298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                	0x00000001d6640314 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                	0x00000001d6605448 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                	0x00000001d66058d0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                	0x00000001d66614b8 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                	0x00000001d66637c4 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 18 name:
Thread 18:
0   libsystem_kernel.dylib        	0x0000000202fc8f24 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	0x000000023ccff298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                	0x00000001d6640314 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                	0x00000001d6605448 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                	0x00000001d66058d0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                	0x00000001d66614b8 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                	0x00000001d66637c4 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 19 name:
Thread 19:
0   libsystem_kernel.dylib        	0x0000000202fc8f24 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	0x000000023ccff298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                	0x00000001d6640314 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                	0x00000001d6605448 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                	0x00000001d66058d0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                	0x00000001d66614b8 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                	0x00000001d66637c4 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 20 name:
Thread 20:
0   libsystem_kernel.dylib        	0x0000000202fc8f24 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	0x000000023ccff298 _pthread_cond_wait + 1236 (pthread_cond.c:636)
2   JavaScriptCore                	0x00000001d6640314 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 1844 (ThreadingPOSIX.cpp:622)
3   JavaScriptCore                	0x00000001d6605448 bool WTF::Condition::waitUntilUnchecked<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 308 (ParkingLot.h:82)
4   JavaScriptCore                	0x00000001d66058d0 WTF::Detail::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0, void>::call() + 260 (Condition.h:77)
5   JavaScriptCore                	0x00000001d66614b8 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 352 (Function.h:82)
6   JavaScriptCore                	0x00000001d66637c4 WTF::wtfThreadEntryPoint(void*) + 16 (ThreadingPOSIX.cpp:242)
7   libsystem_pthread.dylib       	0x000000023ccf89ac _pthread_start + 148 (pthread.c:891)
8   libsystem_pthread.dylib       	0x000000023ccf7e68 thread_start + 8

Thread 21:
0   libsystem_pthread.dylib       	0x000000023ccf7e54 start_wqthread + 0

Thread 22:
0   libsystem_pthread.dylib       	0x000000023ccf7e54 start_wqthread + 0

Thread 23:
0   libsystem_pthread.dylib       	0x000000023ccf7e54 start_wqthread + 0

Thread 24:
0   libsystem_pthread.dylib       	0x000000023ccf7e54 start_wqthread + 0

Thread 25:
0   libsystem_pthread.dylib       	0x000000023ccf7e54 start_wqthread + 0


Thread 6 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000000000018   x5: 0x000000010e0d3600   x6: 0x0000000000003000   x7: 0x0000000000000000
    x8: 0x2d262431a0335102   x9: 0x2d262430cb726102  x10: 0x0000000000722600  x11: 0x0000000000bf3d01
   x12: 0x0000000000004009  x13: 0x000000010e0d4000  x14: 0x0000000000003fff  x15: 0x0000000000001790
   x16: 0x0000000000000148  x17: 0x000000016b413000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000003b03  x21: 0x000000016b4130e0  x22: 0x0000000106b7626b  x23: 0x000000016b40e720
   x24: 0x000000016b40e720  x25: 0x0000000106b761bd  x26: 0x0000000106e464a8  x27: 0x0000000106e74d08
   x28: 0x0000000000000002   fp: 0x000000016b40e670   lr: 0x000000023ccfe3bc
    sp: 0x000000016b40e650   pc: 0x0000000202fceb38 cpsr: 0x40001000
   esr: 0x56000080  Address size fault


Binary Images:
0x104d30000 - 0x106e2ffff zinspector3 arm64  <5d9c6d7ad2993c2abaabdef61877f556> /private/var/containers/Bundle/Application/DC8EC078-F7C8-432B-B43E-9AECCB73B301/zinspector3.app/zinspector3
0x107584000 - 0x1075dbfff dyld arm64e  <7c9c7851823738a7b1eb9cd2deb4b746> /usr/lib/dyld
0x1cb09d000 - 0x1cb0e2fff libdispatch.dylib arm64e  <355accf439173730bc55ef7003887abe> /usr/lib/system/libdispatch.dylib
0x1cb3a0000 - 0x1cb7f5fff CoreFoundation arm64e  <5198fb5756453b34a49ff32b52256cf3> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1cbbbf000 - 0x1cc080fff CFNetwork arm64e  <7072273c58d23dc29e98a6ed768544d8> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x1ccb94000 - 0x1cce9efff Foundation arm64e  <ac6ad2f3c7b138aa858857036a663180> /System/Library/Frameworks/Foundation.framework/Foundation
0x1cd81a000 - 0x1cf0b5fff UIKitCore arm64e  <3ed35565456d33cbb5546c567fa81585> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x1d49c4000 - 0x1d49eefff AudioSession arm64e  <517338a283153b61b47f5cb914d4fcec> /System/Library/PrivateFrameworks/AudioSession.framework/AudioSession
0x1d651f000 - 0x1d659efff libsystem_c.dylib arm64e  <9bd1e19940a33e4a8a78271281c0cf0d> /usr/lib/system/libsystem_c.dylib
0x1d65f7000 - 0x1d7a76fff JavaScriptCore arm64e  <62eb08d23ec033a397891fc94458f203> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
0x1e74f1000 - 0x1e74f9fff GraphicsServices arm64e  <260f066ec5de3844967e483985448f21> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x202fc7000 - 0x202ffcfff libsystem_kernel.dylib arm64e  <1db00c916ad8384085030c6fbffa8e0b> /usr/lib/system/libsystem_kernel.dylib
0x23ccf7000 - 0x23cd02fff libsystem_pthread.dylib arm64e  <1026e3a4d3c03b0da552f185d6772a29> /usr/lib/system/libsystem_pthread.dylib

EOF

Device info: iPhone 12 Pro Max (iPhone13,4) "reactNative": "0.67.4", "reactNativeJsEngine": "jsc"

Can you reproduce a bug?

Not yet

Reproduction Steps

Random crash when trying to write/read from a local Realm. I am not able to reproduce the issue at all, but we've got one user consistently getting this crash even re-installing the application.

Version

10.20.0-beta.5

What SDK flavour are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS 15.5

cristianoccazinsp avatar Jul 09 '22 16:07 cristianoccazinsp

@cristianoccazinsp thanks for reporting this. I'll forward this to the core team and see what they have to say about it.

takameyer avatar Jul 11 '22 10:07 takameyer

Hello, thanks for reporting this: Looking at the stack trace and trying to match what happened in the code.

The error has been triggered by some data that got deleted (all good here). After deletion, an Array (which is how we store most of the data, an array of bytes) has been identified as a possible candidate to move. Essentially, moved into some more suitable location in memory. One of the assertion that checks whether data can be moved or not has failed. In particular one of these:

void Array::move(size_t begin, size_t end, size_t dest_begin)
{
    REALM_ASSERT_3(begin, <=, end);
    REALM_ASSERT_3(end, <=, m_size);
    REALM_ASSERT_3(dest_begin, <=, m_size);
    REALM_ASSERT_3(end - begin, <=, m_size - dest_begin);
    REALM_ASSERT(!(dest_begin >= begin && dest_begin < end)); // Required by std::copy

Which suggests that the boundaries did not seem to be correct.

Do you happen to have identified a possible pattern or root cause for this issue? Do you know what was the size of the realm database when the crash has occurred?

In the meantime, I can try to reproduce and see if it crashes for me, in order to identify some root cause.

nicola-cab avatar Jul 14 '22 15:07 nicola-cab

@nicola-cab thanks for looking into it.

I have honestly not being able to reproduce this, and this only happened to one single device (although it happened consistently after the first time for that device, forcing a full app reinstall).

None of our models use arrays, they are all int or string, although they do have indexes.

Could this be similar to https://github.com/realm/realm-js/issues/4533 ? Same symptoms, persistent crashes until full reinstall.

Any additional info I may be able to provide that could help? We do have several "timers" doing cleanups, inserts, updates and deletes concurrently. Although JS is not concurrent, I wonder if these quickly succession of add/update/delete calls may cause a race condition that corrupts data.

cristianoccazinsp avatar Jul 14 '22 16:07 cristianoccazinsp

@cristianoccazinsp thanks for the feedback. All those timers are unlikely to cause an issue like that. A corruption is likely the root cause of the crash.

What I meant with Array is how the database stores the data internally, which is essentially an Array of bytes. I am trying to reproduce it myself, in case of success, most probably I will have a fix for it. Otherwise, I might close this issue. But please do report it again if you see another crash.

nicola-cab avatar Jul 15 '22 08:07 nicola-cab

➤ Nicola Cabiddu commented:

Closing this because I am not able to reproduce the issue and no more info can be given about how to reproduce it.

sync-by-unito[bot] avatar Aug 24 '22 11:08 sync-by-unito[bot]