-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS realm crash on production jsc_value.hpp line 31 #3602
Comments
We are facing this crash too. We can't reproduce it but we can see it happening in crashlytics. First crash happened in mid januari. |
It looks like it is similar to #3112. We have been able to reproduce it but we haven't find the root cause yet. |
@kneth I'm seeing same crashes with latest realm version and it's only happening on iOS devices with version between I'm leaving my crash log here, please let me know if you needed any other information. Thanks
|
@N3TC4T Do you know the circumstances of the crash? For example, the app was closed/swiped out? |
Thanks Kenneth, Not really, I couldn't find anything that can help to find the cause of the crash, all the crashes happens when app is on foreground and also random screens, the only thing I realised is I don't have any crash report from users with iOS < 14.4, if there is anything specific I should look at or test please let me know. |
@kneth sorry, my bad, I'm just checked and 100% of this crash happened in background and only for users with iOS >= 14.4.0, I asked our support team and no user actually reported this, so I guess they even didn't noticed it. I will try to reproduce it. |
I have the same issue. 100% background, 100% iOS 14. "react": "^17.0.1",
|
Received the same fatal event on crashlytics today ( iOS 14.7.1 & app in background as well)
|
@mklb Did u get it resolved? |
@Rajai-Sunnyclock no I did not resolve it. I thought the bug was fixed because I did not see them coming up any more.. However I just experienced 3 crashes in production on the latest realm version All 100% background state! Edit: as of now there are 13 crashes already @fronck |
@mklb Thanks for the reply. The only workaround I could think is to not use realm particularly inserting data while in background. |
I am not using any background tasks so I guess it is code that is executed when users close my app. There is a small time window where this would be possible. |
We have released v11.0.0 which has a complete rewrite of the integration with JSC. I am closing the issue, and ask you to upgrade. If the issue is still observed, please create a new issue. |
Goals
Regular use
Expected Results
Regular use
Actual Results
Firebase crashlytics reported the following iOS crash/exception coming from RealmJS. A crash happened when the app was started
crashlog from crashlytics:
Crashed: com.facebook.react.JavaScript
0 JavaScriptCore 0x1b164c548 bool JSC::symbolTableGetJSC::JSGlobalObject(JSC::JSGlobalObject*, JSC::PropertyName, JSC::PropertySlot&) + 88
1 JavaScriptCore 0x1b0e80f14 JSC::JSObject::get(JSC::JSGlobalObject*, JSC::PropertyName) const + 2516
2 JavaScriptCore 0x1b0e80f14 JSC::JSObject::get(JSC::JSGlobalObject*, JSC::PropertyName) const + 2516
3 JavaScriptCore 0x1b0e80490 JSObjectGetProperty + 144
4 PlusCards 0x104f13a6c realm::js::is_object_of_type(OpaqueJSContext const_, OpaqueJSValue const_, realm::js::Stringrealm::jsc::Types) + 31 (jsc_value.hpp:31)
5 PlusCards 0x104f13998 realm::js::Valuerealm::jsc::Types::is_array(OpaqueJSContext const_, OpaqueJSValue const_ const&) + 63 (jsc_value.hpp:63)
6 PlusCards 0x104f5f258 realm::js::RealmClassrealm::jsc::Types::create(OpaqueJSContext const_, OpaqueJSValue_, realm::js::Argumentsrealm::jsc::Types&, realm::js::ReturnValuerealm::jsc::Types&) + 1028 (js_realm.hpp:1028)
7 PlusCards 0x104f59e84 OpaqueJSValue const* realm::js::wrap<&(realm::js::RealmClassrealm::jsc::Types::create(OpaqueJSContext const_, OpaqueJSValue_, realm::js::Argumentsrealm::jsc::Types&, realm::js::ReturnValuerealm::jsc::Types&))>(OpaqueJSContext const_, OpaqueJSValue_, OpaqueJSValue_, unsigned long, OpaqueJSValue const_ const_, OpaqueJSValue const_) + 77 (jsc_return_value.hpp:77)
8 JavaScriptCore 0x1b0e6e85c long long JSC::APICallbackFunction::callJSC::JSCallbackFunction(JSC::JSGlobalObject_, JSC::CallFrame_) + 420
9 JavaScriptCore 0x1b0e238d8 llint_entry + 135240
10 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
11 JavaScriptCore 0x1b0e02648 vmEntryToJavaScript + 248
12 JavaScriptCore 0x1b13b1718 JSC::Interpreter::executeCall(JSC::JSGlobalObject_, JSC::JSObject_, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 444
13 JavaScriptCore 0x1b15971a8 JSC::profiledCall(JSC::JSGlobalObject, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 168
14 JavaScriptCore 0x1b0e834e0 JSObjectCallAsFunction + 504
15 PlusCards 0x104f5fdbc realm::js::RealmClassrealm::jsc::Types::write(OpaqueJSContext const_, OpaqueJSValue_, realm::js::Argumentsrealm::jsc::Types&, realm::js::ReturnValuerealm::jsc::Types&) + 30 (jsc_function.hpp:30)
16 PlusCards 0x104f5a04c OpaqueJSValue const* realm::js::wrap<&(realm::js::RealmClassrealm::jsc::Types::write(OpaqueJSContext const_, OpaqueJSValue_, realm::js::Argumentsrealm::jsc::Types&, realm::js::ReturnValuerealm::jsc::Types&))>(OpaqueJSContext const_, OpaqueJSValue_, OpaqueJSValue_, unsigned long, OpaqueJSValue const_ const_, OpaqueJSValue const_) + 77 (jsc_return_value.hpp:77)
17 JavaScriptCore 0x1b0e6e85c long long JSC::APICallbackFunction::callJSC::JSCallbackFunction(JSC::JSGlobalObject_, JSC::CallFrame_) + 420
18 JavaScriptCore 0x1b0e238d8 llint_entry + 135240
19 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
20 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
21 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
22 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
23 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
24 JavaScriptCore 0x1b0e21010 llint_entry + 124800
25 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
26 JavaScriptCore 0x1b0e21010 llint_entry + 124800
27 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
28 JavaScriptCore 0x1b0e21010 llint_entry + 124800
29 JavaScriptCore 0x1b0e21010 llint_entry + 124800
30 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
31 JavaScriptCore 0x1b0e21f14 llint_entry + 128644
32 JavaScriptCore 0x1b0e21010 llint_entry + 124800
33 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
34 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
35 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
36 JavaScriptCore 0x1b0e21010 llint_entry + 124800
37 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
38 JavaScriptCore 0x1b0e22444 llint_entry + 129972
39 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
40 JavaScriptCore 0x1b0e21010 llint_entry + 124800
41 JavaScriptCore 0x1b0e20f68 llint_entry + 124632
42 JavaScriptCore 0x1b0e02648 vmEntryToJavaScript + 248
43 JavaScriptCore 0x1b13b1718 JSC::Interpreter::executeCall(JSC::JSGlobalObject_, JSC::JSObject_, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 444
44 JavaScriptCore 0x1b162ffc8 JSC::boundThisNoArgsFunctionCall(JSC::JSGlobalObject_, JSC::CallFrame_) + 712
45 JavaScriptCore 0x1b0e027c4 vmEntryToNative + 260
46 JavaScriptCore 0x1b13b176c JSC::Interpreter::executeCall(JSC::JSGlobalObject_, JSC::JSObject_, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 528
47 JavaScriptCore 0x1b15971a8 JSC::profiledCall(JSC::JSGlobalObject, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 168
48 JavaScriptCore 0x1b0e834e0 JSObjectCallAsFunction + 504
49 PlusCards 0x104ea2034 facebook::jsc::JSCRuntime::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) + 1208 (JSCRuntime.cpp:1208)
50 PlusCards 0x104eaa3d8 facebook::jsi::Value facebook::jsi::Function::call<std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > const&, std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > const&, facebook::jsi::Value>(facebook::jsi::Runtime&, std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > const&, std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > const&, facebook::jsi::Value&&) const + 224 (jsi-inl.h:224)
51 PlusCards 0x104eaa238 std::*1::*function::*func<facebook::react::JSIExecutor::callFunction(std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > const&, std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > const&, folly::dynamic const&)::$4, std::*1::allocator<facebook::react::JSIExecutor::callFunction(std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > const&, std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > const&, folly::dynamic const&)::$4>, void ()>::operator()() + 217 (JSIExecutor.cpp:217)
52 PlusCards 0x104dd4b30 void std::*1::*invoke_void_return_wrapper::*call<void (&)(std::*1::function<void ()> const&, std::*1::function<std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > ()>), std::*1::function<void ()> const&, std::*1::function<std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > ()> >(void (&)(std::*1::function<void ()> const&, std::*1::function<std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > ()>), std::*1::function<void ()> const&, std::*1::function<std::*1::basic_string<char, std::*1::char_traits, std::_1::allocator > ()>&&) + 1831 (functional:1831)
53 PlusCards 0x104ea8240 facebook::react::JSIExecutor::callFunction(std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > const&, std::*1::basic_string<char, std::*1::char_traits, std::*1::allocator > const&, folly::dynamic const&) + 1831 (functional:1831)
54 PlusCards 0x104e9e678 std::*1::*function::*func<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::*1::function<void (facebook::react::JSExecutor)>)::$7, std::*1::allocator<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::*1::function<void (facebook::react::JSExecutor)>)::$_7>, void ()>::operator()() + 1720 (functional:1720)
55 PlusCards 0x104df0750 facebook::react::tryAndReturnError(std::__1::function<void ()> const&) + 114464 (RCTCxxUtils.mm:114464)
56 PlusCards 0x104dfcf18 facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) + 59 (RCTMessageThread.mm:59)
57 CoreFoundation 0x1a1caf90c CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK
58 CoreFoundation 0x1a1caf098 __CFRunLoopDoBlocks + 264
59 CoreFoundation 0x1a1caa1d8 __CFRunLoopRun + 772
60 CoreFoundation 0x1a1ca9ba8 CFRunLoopRunSpecific + 424
61 PlusCards 0x104de6148 ﹍[RCTCxxBridge runRunLoop]﹍ 269 (RCTCxxBridge.mm:269)
62 Foundation 0x1a2129e20 NSThread__start + 848
63 libsystem_pthread.dylib 0x1a1a47d98 _pthread_start + 156
64 libsystem_pthread.dylib 0x1a1a4b74c thread_start + 8
No idea. It happens sometime
Code Sample
--
Version of Realm and Tooling
The text was updated successfully, but these errors were encountered: