realm / realm-js

Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Apache License 2.0
5.62k stars 558 forks source link

Realm-JS and RealmSwift integration in a React Native application doesn't work when compiled with Xcode 9. #1440

Closed rajeshdongre closed 4 years ago

rajeshdongre commented 6 years ago

Hi, We are writing a brownfield React Native application wherein we need realm-js as well as RealmSwift integration. It worked till date with realm-js version 1.3.1 and RealmSwift version 2.7.0. But when we are trying to migrate to Xcode 9, we are getting below mentioned runtime error logs. If you could help us on the same.

Error logs

`table.cpp:2665: [realm-core-2.6.0] Assertion failed: dynamic_cast<Parent*>(array_parent) 0 MyApp 0x00000001101ac55f _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 40 1 MyApp 0x00000001101ac920 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 445 2 MyApp 0x00000001102610a7 _ZNK5realm5Table20get_parent_table_ptrEPm + 183 3 MyApp 0x000000010ff157ed _ZNK5realm5Table12bump_versionEb + 221 4 MyApp 0x000000011025f923 _ZN5realm5Table16insert_empty_rowEmm + 103 5 MyApp 0x000000011005a445 _ZN5realm5Table13add_empty_rowEm + 69 6 MyApp 0x000000011005964a _ZN5realm6Object6createIPK13OpaqueJSValuePK15OpaqueJSContextEES0_T0_NSt3__110shared_ptrINS_5RealmEEERKNS_12ObjectSchemaET_b + 1370 7 MyApp 0x0000000110103740 _ZN5realm2js10RealmClassINS_3jsc5TypesEE6createEPK15OpaqueJSContextP13OpaqueJSValueS9_mPKPKS8_RNS0_11ReturnValueIS3_EE + 1152 8 MyApp 0x00000001100d2065 _ZN5realm2js4wrapIXadL_ZNS0_10RealmClassINS_3jsc5TypesEE6createEPK15OpaqueJSContextP13OpaqueJSValueSA_mPKPKS9_RNS0_11ReturnValueIS4_EEEEEESC_S8_SA_SA_mSEPSC

Please suggest if any other workaround is available.

kneth commented 6 years ago

@rajeshdongre Just to absolutely sure: you only see this crash with Xcode 9? Can you provide us with a sample app with can reproduce the crash? You are welcome to send it privately to help@realm.io.

rajeshdongre commented 6 years ago

@kneth Thank you for your quick response. Answer to your first question is Yes. We were using above mentioned Realm-JS SDK and RealmSwift versions for our brownfield application with Xcode 8. I will share a sample application which will resemble our existing application over help@realm.io.

rajeshdongre commented 6 years ago

@kneth I tried to email you Sample application, which explains the scenario that we are facing in our app. But email got rejected by help@realm.io. Finally I uploaded the same source on Github repository. Please have a look at https://github.com/rajeshdongre/RNRealmSample repo. Sample app doesn’t include node_modules, so it will need ‘npm install’ to be executed before running the application using Xcode 8/9. Please let me know there are in any discrepancies in the shared sample.

kneth commented 6 years ago

Sorry to hear that you had issues email us. What was the error message?

I believe we have seen issues with Xcode 9 and we need to investigate a bit more.

rajeshdongre commented 6 years ago

@kneth Once again thank you for your quick response. When I tried to send an email with Sample app attached, it gave me below error: `mx.google.com rejected your message to the following email addresses:

help@realm.io (help@realm.io) Your message wasn't delivered because the recipient's email provider rejected it.

mx.google.com gave this error: This message was blocked because its content presents a potential security issue. Please visit https://support.google.com/mail/?p=BlockedMessage to review our message content and attachment content guidelines. j2si6174559plk.165 - gsmtp`

kneth commented 6 years ago

@rajeshdongre Looks like Google is blocking emails if you attached zip files. I better stop asking people to send us files but ask them to provide a link to the file :smile:

msimons0 commented 6 years ago

@kneth Were you able to replicate the issue? Let me know if you need help in replicating the same.

DaleKni commented 6 years ago

Hello @kneth and @bmunkholm, We have a project depending on getting a fix to this issue. Our due date is mid December. Can you provide status update on the fix or how we can move forward on this issue? Your urgent resonse is greatly appreciated.

kneth commented 6 years ago

@DaleKni We are actively working on it. You can follow the progress in PR #1483.

kneth commented 6 years ago

Version 2.1.0 tries to improve the situation with Xcode 9. Please upgrade.

msimons0 commented 6 years ago

@kneth and @bmunkholm, We are seeing the same issue on version 2.1.0 as well. Can you please confirm?

kneth commented 6 years ago

@msimons0 Thanks for the update. Is it the mixture of Realm JS and Realm Swift which is causing the issue? Do you have a simple project to share?

msimons0 commented 6 years ago

@kneth Yes that's possible.

I'm able to replicate the exact same issue with @rajeshdongre's app at https://github.com/rajeshdongre/RNRealmSample

msimons0 commented 6 years ago

@kneth Any updates?

kneth commented 6 years ago

@msimons0 No progress to report but one issue could be that Realm JS 1.3.x and Realm Swift 2.7.x are using a different Realm Core version. You might be better off with Realm Swift 2.8, 2.9 or 2.10.

rajeshdongre commented 6 years ago

@kneth As suggested by you, we tried using updated version of Realm Swift but with no success. We even used updated version of Realm JS. We have updated the old sample application shared with you (https://github.com/rajeshdongre/RNRealmSample). As mentioned in your comments we made sure that sample application should use same Realm Core version for Realm JS and Realm Swift libraries. Above given sample application uses Realm JS 2.0.0 (Realm Core Version 4.0.2) and Realm Swift (Realm Core Version 4.0.2). Hope this sample application will help you to reproduce the scenario.

kbs95 commented 6 years ago

@kneth I have run into the same issue while integration Realm js and Realm swift , have you guys found any solution?

kneth commented 6 years ago

@kbs95 To be honest, we haven't had time to investigate a solution.

thatjuan commented 6 years ago

This is the output I get, in case it helps any.

RealmSwift 3.3.0 RealmJS: 2.3.3 Xcode 9.2


0   Realm                               0x0000000102fe6838 _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 40
1   Realm                               0x0000000102fe6bc5 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 517
2   MyProject                          0x00000001017582f2 _ZNK5realm5Table8get_nameEv + 434
3   MyProject                          0x00000001017deda5 _ZNK5realm7Results15get_object_typeEv + 85
4   MyProject                          0x00000001017debb4 _ZNK5realm7Results17get_object_schemaEv + 228
5   MyProject                          0x0000000101783ee6 _ZN5realm2js12ResultsClassINS_3jsc5TypesEE15create_filteredINS0_7ResultsIS3_EEEEP13OpaqueJSValuePK15OpaqueJSContextRKT_NS0_9ArgumentsIS3_EE + 294
6   MyProject                          0x0000000101783d9c _ZN5realm2js12ResultsClassINS_3jsc5TypesEE8filteredEPK15OpaqueJSContextP13OpaqueJSValueNS0_9ArgumentsIS3_EERNS0_11ReturnValueIS3_EE + 124
7   MyProject                          0x00000001017827e9 _ZN5realm2js4wrapIXadL_ZNS0_12ResultsClassINS_3jsc5TypesEE8filteredEPK15OpaqueJSContextP13OpaqueJSValueNS0_9ArgumentsIS4_EERNS0_11ReturnValueIS4_EEEEEEPKS9_S8_SA_SA_mPKSH_PSH_ + 121
8   JavaScriptCore                      0x000000010994d3d5 _ZN3JSC19APICallbackFunction4callINS_18JSCallbackFunctionEEExPNS_9ExecStateE + 501
9   JavaScriptCore                      0x0000000109a5ccd1 _ZN3JSC5LLInt9setUpCallEPNS_9ExecStateEPNS_11InstructionENS_22CodeSpecializationKindENS_7JSValueEPNS_17LLIntCallLinkInfoE + 577
10  JavaScriptCore                      0x0000000109a65f4d llint_entry + 27269
11  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
12  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
13  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
14  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
15  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
16  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
17  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
18  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
19  JavaScriptCore                      0x0000000109a66361 llint_entry + 28313
20  JavaScriptCore                      0x0000000109a66361 llint_entry + 28313
21  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
22  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
23  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
24  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
25  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
26  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
27  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
28  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
29  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
30  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
31  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
32  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
33  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
34  JavaScriptCore                      0x0000000109a65f5b llint_entry + 27283
35  JavaScriptCore                      0x0000000109a66361 llint_entry + 28313
36  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
37  ???                                 0x000001e005f8787d 0x0 + 2061684471933
38  JavaScriptCore                      0x0000000109a65ee9 llint_entry + 27169
39  JavaScriptCore                      0x0000000109a5f2e0 vmEntryToJavaScript + 304
40  JavaScriptCore                      0x00000001098f01df _ZN3JSC7JITCode7executeEPNS_2VMEPNS_14ProtoCallFrameE + 127
41  JavaScriptCore                      0x00000001098b6871 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 433
42  JavaScriptCore                      0x00000001095a739e _ZN3JSC4callEPNS_9ExecStateENS_7JSValueENS_8CallTypeERKNS_8CallDataES2_RKNS_7ArgListE + 62
43  JavaScriptCore                      0x000000010994bd5d _ZN3JSC27boundThisNoArgsFunctionCallEPNS_9ExecStateE + 461
44  JavaScriptCore                      0x0000000109a5f45a vmEntryToNative + 310
45  JavaScriptCore                      0x00000001098b68af _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 495
46  JavaScriptCore                      0x00000001095a74d2 _ZN3JSC12profiledCallEPNS_9ExecStateENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 178
47  JavaScriptCore                      0x00000001099b129d JSObjectCallAsFunction + 461
48  MyProject                          0x0000000101535d21 _ZNK8facebook5react6Object14callAsFunctionEP13OpaqueJSValueiPKPKS2_ + 129
49  MyProject                          0x0000000101535c96 _ZNK8facebook5react6Object14callAsFunctionESt16initializer_listIPK13OpaqueJSValueE + 86
50  MyProject                          0x00000001015ce86a _ZZN8facebook5react11JSCExecutor14invokeCallbackEdRKN5folly7dynamicEENK3$_4clEv + 522
51  MyProject                          0x00000001015ce638 _ZN8facebook5react11JSCExecutor14invokeCallbackEdRKN5folly7dynamicE + 88
52  MyProject                          0x00000001015f1459 _ZZN8facebook5react16NativeToJsBridge14invokeCallbackEdON5folly7dynamicEENK3$_2clEPNS0_10JSExecutorE + 41
53  MyProject                          0x00000001015f1420 _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16NativeToJsBridge14invokeCallbackEdON5folly7dynamicEE3$_2PNS4_10JSExecutorEEEEvDpOT_ + 80
54  MyProject                          0x00000001015f1199 _ZNSt3__110__function6__funcIZN8facebook5react16NativeToJsBridge14invokeCallbackEdON5folly7dynamicEE3$_2NS_9allocatorIS8_EEFvPNS3_10JSExecutorEEEclEOSC_ + 57
55  MyProject                          0x00000001015f8749 _ZNKSt3__18functionIFvPN8facebook5react10JSExecutorEEEclES4_ + 153
56  MyProject                          0x00000001015f869e _ZZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENSt3__18functionIFvPNS0_10JSExecutorEEEEENK3$_6clEv + 110
57  MyProject                          0x00000001015f861d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS4_10JSExecutorEEEEE3$_6EEEvDpOT_ + 45
58  MyProject                          0x00000001015f8209 _ZNSt3__110__function6__funcIZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS3_10JSExecutorEEEEE3$_6NS_9allocatorISA_EEFvvEEclEv + 41
59  MyProject                          0x0000000101432e6b _ZNKSt3__18functionIFvvEEclEv + 123
60  MyProject                          0x0000000101432b58 _ZN8facebook5react17tryAndReturnErrorERKNSt3__18functionIFvvEEE + 24
61  MyProject                          0x000000010141b3a1 _ZN8facebook5react16RCTMessageThread7tryFuncERKNSt3__18functionIFvvEEE + 33
62  MyProject                          0x000000010141f2b7 _ZZN8facebook5react16RCTMessageThread10runOnQueueEONSt3__18functionIFvvEEEENK3$_1clEv + 183
63  MyProject                          0x000000010141f1ed _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1EEEvDpOT_ + 45
64  MyProject                          0x000000010141ef29 _ZNSt3__110__function6__funcIZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1NS_9allocatorIS9_EES6_EclEv + 41
65  MyProject                          0x0000000101432e6b _ZNKSt3__18functionIFvvEEclEv + 123
66  MyProject                          0x000000010141b159 ___ZN8facebook5react16RCTMessageThread8runAsyncENSt3__18functionIFvvEEE_block_invoke + 25
67  CoreFoundation                      0x0000000107e6a05c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
68  CoreFoundation                      0x0000000107e4e83b __CFRunLoopDoBlocks + 203
69  CoreFoundation                      0x0000000107e4dfee __CFRunLoopRun + 1262
70  CoreFoundation                      0x0000000107e4d889 CFRunLoopRunSpecific + 409
71  MyProject                          0x00000001013ba18b +[RCTCxxBridge runRunLoop] + 1035
72  Foundation                          0x0000000105c3612c __NSThread__start__ + 1197
73  libsystem_pthread.dylib             0x000000010c9fc6c1 _pthread_body + 340
74  libsystem_pthread.dylib             0x000000010c9fc56d _pthread_body + 0
75  libsystem_pthread.dylib             0x000000010c9fbc5d thread_start + 13
IMPORTANT: if you see this error, please send this log to help@realm.io.(lldb) ```
kneth commented 6 years ago

@thatjuan It looks like a crash when doing a query. Do you by any chance do the query on another thread that where the Realm was opened?

lynrose10 commented 6 years ago

I'm also experiencing same problem but I'm using Realm for objective-C

/realm-ios/include/realm/table.hpp:1768: [realm-core-5.4.0] Assertion failed: dynamic_cast<Parent*>(parent)

It occured first with the same Realm core version 4.0.2

I updated to latest with the same Realm core version 5.4.0

But it yields same error. screen shot 2018-04-27 at 4 11 19 pm screen shot 2018-04-27 at 4 18 11 pm screen shot 2018-04-27 at 4 18 38 pm

jasonzwf commented 5 years ago

Tried latest version objc dynamic/static realm framework with react native realm.

  1. Using dynamic: the same error that @lynrose10 posted will be thrown;
  2. Using static: the "multiple implementation" error will be thrown.

And I found the error had nothing to do with the objc code, just related to framework itself. You don't need to write any native objc code, just add the dynamic framework, then the app crashed.

githubdoramon commented 5 years ago

@rajeshdongre did you manage to solve this issue? If so, could you share how do you guys configure the project to use both react native and native with realm? I am able to do this in Android, but can't figure it out on iOS.

mrbrentkelly commented 4 years ago

I'm hitting the same issue on iOS when trying to share realms between React Native and Native. Works perfect on the Android side but on iOS I hit the following...

src/realm/table.hpp:1774: [realm-core-5.19.1] Assertion failed: dynamic_cast<Parent*>(parent)

Note: even if I try to run separate Realms (e.g. default.realm on iOS and someOtherRealm.realm on RN) I still hit the above error.

I'm using Xcode 10.2.1, React Native 0.59.9, RealmJS 2.28.0 and RealmCocoa 3.16.2 (both appear to use realm-core 5.19.1 so don't think that's the issue).

Is sharing realms between React Native and Native something that should work (and is supported)?

kneth commented 4 years ago

@mrbrentkelly We haven't actively worked on it so your mileage may vary. I think the hard part is to get the package dependency on iOS/Xcode right. Do you have a complete stack trace from the assertion?

mrbrentkelly commented 4 years ago

@kneth sure thing...

2019-06-26 12:06:37.916133+0100 SharedRealm[66660:1581114] Rex
2019-06-26 12:06:37.933 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x7f8d5460aba0> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:06:37.934423+0100 SharedRealm[66660:1581114] Initializing <RCTCxxBridge: 0x7f8d5460aba0> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:06:37.957 [info][tid:main][RCTRootView.m:293] Running application SharedRealm ({
    initialProps =     {
    };
    rootTag = 1;
})
2019-06-26 12:06:37.956609+0100 SharedRealm[66660:1581114] Running application SharedRealm ({
    initialProps =     {
    };
    rootTag = 1;
})
2019-06-26 12:06:37.987965+0100 SharedRealm[66660:1581176] [] nw_socket_handle_socket_event [C5.1:1] Socket SO_ERROR [61: Connection refused]
2019-06-26 12:06:37.990312+0100 SharedRealm[66660:1581176] [] nw_socket_handle_socket_event [C5.2:1] Socket SO_ERROR [61: Connection refused]
2019-06-26 12:06:37.992281+0100 SharedRealm[66660:1581180] [] nw_connection_get_connected_socket [C5] Client called nw_connection_get_connected_socket on unconnected nw_connection
2019-06-26 12:06:38.342 [info][tid:com.facebook.react.JavaScript] Running application "SharedRealm" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2019-06-26 12:06:38.342114+0100 SharedRealm[66660:1581189] Running application "SharedRealm" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2019-06-26 12:06:38.344113+0100 SharedRealm[66660:1581167] [] nw_socket_handle_socket_event [C6.1:1] Socket SO_ERROR [61: Connection refused]
2019-06-26 12:06:38.346686+0100 SharedRealm[66660:1581167] [] nw_socket_handle_socket_event [C6.2:1] Socket SO_ERROR [61: Connection refused]
2019-06-26 12:06:38.348222+0100 SharedRealm[66660:1581176] [] nw_connection_get_connected_socket [C6] Client called nw_connection_get_connected_socket on unconnected nw_connection
2019-06-26 12:07:18.274 [info][tid:main][RCTCxxBridge.mm:1037] Invalidating <RCTCxxBridge: 0x7f8d5460aba0> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:18.274302+0100 SharedRealm[66660:1581114] Invalidating <RCTCxxBridge: 0x7f8d5460aba0> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:18.281 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x7f8e14408190> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:18.280683+0100 SharedRealm[66660:1581114] Initializing <RCTCxxBridge: 0x7f8e14408190> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:18.719344+0100 SharedRealm[66660:1581840] [] nw_socket_handle_socket_event [C9.1:1] Socket SO_ERROR [61: Connection refused]
2019-06-26 12:07:18.721200+0100 SharedRealm[66660:1581840] [] nw_socket_handle_socket_event [C9.2:1] Socket SO_ERROR [61: Connection refused]
2019-06-26 12:07:18.722319+0100 SharedRealm[66660:1581841] [] nw_connection_get_connected_socket [C9] Client called nw_connection_get_connected_socket on unconnected nw_connection
2019-06-26 12:07:18.776 [info][tid:main][RCTCxxBridge.mm:1037] Invalidating <RCTCxxBridge: 0x7f8e14408190> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:18.775916+0100 SharedRealm[66660:1581114] Invalidating <RCTCxxBridge: 0x7f8e14408190> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:18.779 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x7f8d544260a0> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:18.778722+0100 SharedRealm[66660:1581114] Initializing <RCTCxxBridge: 0x7f8d544260a0> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:18.797 [info][tid:com.facebook.react.JavaScript][RCTPerformanceLogger.m:78] Unbalanced calls start/end for tag 1
2019-06-26 12:07:18.796936+0100 SharedRealm[66660:1581844] Unbalanced calls start/end for tag 1
2019-06-26 12:07:19.001104+0100 SharedRealm[66660:1581842] [] nw_socket_handle_socket_event [C11.1:1] Socket SO_ERROR [61: Connection refused]
2019-06-26 12:07:19.002949+0100 SharedRealm[66660:1581842] [] nw_socket_handle_socket_event [C11.2:1] Socket SO_ERROR [61: Connection refused]
2019-06-26 12:07:19.004044+0100 SharedRealm[66660:1581167] [] nw_connection_get_connected_socket [C11] Client called nw_connection_get_connected_socket on unconnected nw_connection
2019-06-26 12:07:19.083 [info][tid:main][RCTRootView.m:293] Running application SharedRealm ({
    initialProps =     {
    };
    rootTag = 11;
})
2019-06-26 12:07:19.083232+0100 SharedRealm[66660:1581114] Running application SharedRealm ({
    initialProps =     {
    };
    rootTag = 11;
})
2019-06-26 12:07:19.085 [info][tid:com.facebook.react.JavaScript] Running application "SharedRealm" with appParams: {"rootTag":11,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2019-06-26 12:07:19.085435+0100 SharedRealm[66660:1581878] Running application "SharedRealm" with appParams: {"rootTag":11,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2019-06-26 12:07:19.277 [info][tid:main][RCTCxxBridge.mm:1037] Invalidating <RCTCxxBridge: 0x7f8d544260a0> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:19.277053+0100 SharedRealm[66660:1581114] Invalidating <RCTCxxBridge: 0x7f8d544260a0> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:19.279 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x7f8dd4402df0> (parent: <RCTBridge: 0x600002801650>, executor: (null))
2019-06-26 12:07:19.278659+0100 SharedRealm[66660:1581114] Initializing <RCTCxxBridge: 0x7f8dd4402df0> (parent: <RCTBridge: 0x600002801650>, executor: (null))
/Users/realm/workspace/m_realm-core_release_5.19.1-NG45Y3CJLXB7ZOD7PI7FIUEEZXIF3RLH3PICTMA7NMTHDQXRMMRA/src/realm/table.hpp:1774: [realm-core-5.19.1] Assertion failed: dynamic_cast<Parent*>(parent)
0   Realm                               0x000000010303b0bc _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1   Realm                               0x000000010303b3a2 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 434
2   SharedRealm                         0x0000000100d23452 _ZNK5realm5Table8get_nameEv + 434
3   SharedRealm                         0x0000000100b32315 _ZNK5realm7Results15get_object_typeEv + 85
4   SharedRealm                         0x0000000100b32213 _ZNK5realm7Results17get_object_schemaEv + 147
5   SharedRealm                         0x0000000100afff83 _ZN5realm2js14NativeAccessorINS_3jsc5TypesEEC2INS0_7ResultsIS3_EEEEPK15OpaqueJSContextRKT_ + 147
6   SharedRealm                         0x0000000100affea5 _ZN5realm2js14NativeAccessorINS_3jsc5TypesEEC1INS0_7ResultsIS3_EEEEPK15OpaqueJSContextRKT_ + 37
7   SharedRealm                         0x0000000100b00d62 _ZN5realm2js12ResultsClassINS_3jsc5TypesEE9get_indexEPK15OpaqueJSContextP13OpaqueJSValuejRNS0_11ReturnValueIS3_EE + 66
8   SharedRealm                         0x0000000100af3772 _ZN5realm2js4wrapIXadL_ZNS0_12ResultsClassINS_3jsc5TypesEE9get_indexEPK15OpaqueJSContextP13OpaqueJSValuejRNS0_11ReturnValueIS4_EEEEEEPKS9_S8_SA_jPSF_ + 66
9   SharedRealm                         0x0000000100a8877b _ZN5realm3jsc10ObjectWrapINS_2js12ResultsClassINS0_5TypesEEEE12get_propertyEPK15OpaqueJSContextP13OpaqueJSValueP14OpaqueJSStringPPKSA_ + 155
10  JavaScriptCore                      0x000000010461280b _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE18getOwnPropertySlotEPNS_8JSObjectEPNS_9ExecStateENS_12PropertyNameERNS_12PropertySlotE + 395
11  JavaScriptCore                      0x0000000104612efe _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE25getOwnPropertySlotByIndexEPNS_8JSObjectEPNS_9ExecStateEjRNS_12PropertySlotE + 94
12  JavaScriptCore                      0x0000000104ab0685 llint_slow_path_get_by_val + 949
13  JavaScriptCore                      0x00000001045db74f llint_entry + 27836
14  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
15  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
16  ???                                 0x0000348745e8325e 0x0 + 57755598074462
17  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
18  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
19  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
20  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
21  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
22  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
23  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
24  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
25  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
26  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
27  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
28  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
29  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
30  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
31  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
32  ???                                 0x0000348745e68bbc 0x0 + 57755597966268
33  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
34  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
35  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
36  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
37  ???                                 0x0000348745e5fcbc 0x0 + 57755597929660
38  JavaScriptCore                      0x00000001045d48d9 vmEntryToJavaScript + 200
39  JavaScriptCore                      0x00000001049ba730 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 464
40  JavaScriptCore                      0x0000000104bff4ce _ZN3JSC4callEPNS_9ExecStateENS_7JSValueENS_8CallTypeERKNS_8CallDataES2_RKNS_7ArgListE + 62
41  JavaScriptCore                      0x0000000104c89d39 _ZN3JSC27boundThisNoArgsFunctionCallEPNS_9ExecStateE + 377
42  JavaScriptCore                      0x00000001045d4a08 vmEntryToNative + 206
43  JavaScriptCore                      0x00000001049ba777 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 535
44  JavaScriptCore                      0x0000000104bff634 _ZN3JSC12profiledCallEPNS_9ExecStateENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 196
45  JavaScriptCore                      0x000000010461f6fe JSObjectCallAsFunction + 478
46  SharedRealm                         0x0000000100898c01 _ZN8facebook3jsc10JSCRuntime4callERKNS_3jsi8FunctionERKNS2_5ValueEPS7_m + 337
47  SharedRealm                         0x000000010089e246 _ZNK8facebook3jsi8Function4callERNS0_7RuntimeEPKNS0_5ValueEm + 118
48  SharedRealm                         0x000000010089e134 _ZNK8facebook3jsi8Function4callERNS0_7RuntimeESt16initializer_listINS0_5ValueEE + 100
49  SharedRealm                         0x00000001008c16fc _ZNK8facebook3jsi8Function4callIJRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEESB_NS0_5ValueEEEESC_RNS0_7RuntimeEDpOT_ + 364
50  SharedRealm                         0x00000001008c1523 _ZZN8facebook5react11JSIExecutor12callFunctionERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_RKN5folly7dynamicEENK3$_5clEv + 163
51  SharedRealm                         0x00000001008c145d _ZNSt3__1L8__invokeIRZN8facebook5react11JSIExecutor12callFunctionERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESB_RKN5folly7dynamicEE3$_5JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSI_DpOSJ_ + 29
52  SharedRealm                         0x00000001008c140d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react11JSIExecutor12callFunctionERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESD_RKN5folly7dynamicEE3$_5EEEvDpOT_ + 29
53  SharedRealm                         0x00000001008c0531 _ZNSt3__110__function6__funcIZN8facebook5react11JSIExecutor12callFunctionERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESC_RKN5folly7dynamicEE3$_5NS8_ISH_EEFvvEEclEv + 33
54  SharedRealm                         0x0000000100b4e495 _ZNKSt3__18functionIFvvEEclEv + 53
55  SharedRealm                         0x0000000100737629 _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE + 25
56  SharedRealm                         0x000000010073b63c _ZNSt3__1L8__invokeIRPFvRKNS_8functionIFvvEEENS1_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEEJS5_SD_EEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSH_DpOSI_ + 108
57  SharedRealm                         0x000000010073b587 _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRPFvRKNS_8functionIFvvEEENS3_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEES7_SF_EEEvDpOT_ + 71
58  SharedRealm                         0x000000010073a38e _ZNSt3__110__function6__funcIPFvRKNS_8functionIFvvEEENS2_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEENSA_ISG_EESF_EclES6_OSE_ + 78
59  SharedRealm                         0x00000001008b328a _ZNKSt3__18functionIFvRKNS0_IFvvEEENS0_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEEEclES4_SC_ + 106
60  SharedRealm                         0x00000001008b2ead _ZN8facebook5react11JSIExecutor12callFunctionERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_RKN5folly7dynamicE + 493
61  SharedRealm                         0x000000010088b6b5 _ZZN8facebook5react16NativeToJsBridge12callFunctionEONSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES9_ON5folly7dynamicEENK3$_1clEPNS0_10JSExecutorE + 757
62  SharedRealm                         0x000000010088b3a2 _ZNSt3__1L8__invokeIRZN8facebook5react16NativeToJsBridge12callFunctionEONS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESA_ON5folly7dynamicEE3$_1JPNS2_10JSExecutorEEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSI_DpOSJ_ + 50
63  SharedRealm                         0x000000010088b342 _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16NativeToJsBridge12callFunctionEONS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESC_ON5folly7dynamicEE3$_1PNS4_10JSExecutorEEEEvDpOT_ + 50
64  SharedRealm                         0x000000010088a1f9 _ZNSt3__110__function6__funcIZN8facebook5react16NativeToJsBridge12callFunctionEONS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESB_ON5folly7dynamicEE3$_1NS8_ISF_EEFvPNS3_10JSExecutorEEEclEOSI_ + 57
65  SharedRealm                         0x0000000100895745 _ZNKSt3__18functionIFvPN8facebook5react10JSExecutorEEEclES4_ + 85
66  SharedRealm                         0x00000001008956e0 _ZZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENSt3__18functionIFvPNS0_10JSExecutorEEEEENK3$_7clEv + 96
67  SharedRealm                         0x000000010089565d _ZNSt3__1L8__invokeIRZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS2_10JSExecutorEEEEE3$_7JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSB_DpOSC_ + 29
68  SharedRealm                         0x000000010089560d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS4_10JSExecutorEEEEE3$_7EEEvDpOT_ + 29
69  SharedRealm                         0x0000000100894401 _ZNSt3__110__function6__funcIZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS3_10JSExecutorEEEEE3$_7NS_9allocatorISA_EEFvvEEclEv + 33
70  SharedRealm                         0x0000000100b4e495 _ZNKSt3__18functionIFvvEEclEv + 53
71  SharedRealm                         0x0000000100775928 _ZN8facebook5react17tryAndReturnErrorERKNSt3__18functionIFvvEEE + 24
72  SharedRealm                         0x000000010075d8a1 _ZN8facebook5react16RCTMessageThread7tryFuncERKNSt3__18functionIFvvEEE + 33
73  SharedRealm                         0x000000010076245e _ZZN8facebook5react16RCTMessageThread10runOnQueueEONSt3__18functionIFvvEEEENK3$_1clEv + 78
74  SharedRealm                         0x00000001007623ed _ZNSt3__1L8__invokeIRZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSA_DpOSB_ + 29
75  SharedRealm                         0x000000010076239d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1EEEvDpOT_ + 29
76  SharedRealm                         0x0000000100761041 _ZNSt3__110__function6__funcIZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1NS_9allocatorIS9_EES6_EclEv + 33
77  SharedRealm                         0x0000000100b4e495 _ZNKSt3__18functionIFvvEEclEv + 53
78  SharedRealm                         0x000000010075d639 ___ZN8facebook5react16RCTMessageThread8runAsyncENSt3__18functionIFvvEEE_block_invoke + 25
79  CoreFoundation                      0x0000000107004aec __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
80  CoreFoundation                      0x00000001070042b0 __CFRunLoopDoBlocks + 336
81  CoreFoundation                      0x0000000106fff10b __CFRunLoopRun + 2747
82  CoreFoundation                      0x0000000106ffe302 CFRunLoopRunSpecific + 626
83  SharedRealm                         0x00000001006f4a75 +[RCTCxxBridge runRunLoop] + 1045
84  Foundation                          0x00000001052e4307 __NSThread__start__ + 1197
85  libsystem_pthread.dylib             0x00000001097d42eb _pthread_body + 126
86  libsystem_pthread.dylib             0x00000001097d7249 _pthread_start + 66
87  libsystem_pthread.dylib             0x00000001097d340d thread_start + 13!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to help@realm.io.2019-06-26 12:07:19.297496+0100 SharedRealm[66660:1581878] /Users/realm/workspace/m_realm-core_release_5.19.1-NG45Y3CJLXB7ZOD7PI7FIUEEZXIF3RLH3PICTMA7NMTHDQXRMMRA/src/realm/table.hpp:1774: [realm-core-5.19.1] Assertion failed: dynamic_cast<Parent*>(parent)
0   Realm                               0x000000010303b0bc _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1   Realm                               0x000000010303b3a2 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 434
2   SharedRealm                         0x0000000100d23452 _ZNK5realm5Table8get_nameEv + 434
3   SharedRealm                         0x0000000100b32315 _ZNK5realm7Results15get_object_typeEv + 85
4   SharedRealm                         0x0000000100b32213 _ZNK5realm7Results17get_object_schemaEv + 147
5   SharedRealm                         0x0000000100afff83 _ZN5realm2js14NativeAccessorINS_3jsc5TypesEEC2INS0_7ResultsIS3_EEEEPK15OpaqueJSContextRKT_ + 147
6   SharedRealm                         0x0000000100affea5 _ZN5realm2js14NativeAccessorINS_3jsc5TypesEEC1INS0_7ResultsIS3_EEEEPK15OpaqueJSContextRKT_ + 37
7   SharedRealm                         0x0000000100b00d62 _ZN5realm2js12ResultsClassINS_3jsc5TypesEE9get_indexEPK15OpaqueJSContextP13OpaqueJSValuejRNS0_11ReturnValueIS3_EE + 66
8   SharedRealm                         0x0000000100af3772 _ZN5realm2js4wrapIXadL_ZNS0_12ResultsClassINS_3jsc5TypesEE9get_indexEPK15OpaqueJSContextP13OpaqueJSValuejRNS0_11ReturnValueIS4_EEEEEEPKS9_S8_SA_jPSF_ + 66
9   SharedRealm                         0x0000000100a8877b _ZN5realm3jsc10ObjectWrapINS_2js12ResultsClassINS0_5TypesEEEE12get_propertyEPK15OpaqueJSContextP13OpaqueJSValueP14OpaqueJSStringPPKSA_ + 155
10  JavaScriptCore                      0x000000010461280b _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE18getOwnPropertySlotEPNS_8JSObjectEPNS_9ExecStateENS_12PropertyNameERNS_12PropertySlotE + 395
11  JavaScriptCore                      0x0000000104612efe _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE25getOwnPropertySlotByIndexEPNS_8JSObjectEPNS_9ExecStateEjRNS_12PropertySlotE + 94
12  JavaScriptCore                      0x0000000104ab0685 llint_slow_path_get_by_val + 949
13  JavaScriptCore                      0x00000001045db74f llint_entry + 27836
14  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
15  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
16  ???                                 0x0000348745e8325e 0x0 + 57755598074462
17  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
18  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
19  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
20  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
21  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
22  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
23  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
24  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
25  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
26  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
27  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
28  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
29  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
30  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
31  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
32  ???                                 0x0000348745e68bbc 0x0 + 57755597966268
33  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
34  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
35  JavaScriptCore                      0x00000001045e3b71 llint_entry + 61662
36  JavaScriptCore                      0x00000001045e3afe llint_entry + 61547
37  ???                                 0x0000348745e5fcbc 0x0 + 57755597929660
38  JavaScriptCore                      0x00000001045d48d9 vmEntryToJavaScript + 200
39  JavaScriptCore                      0x00000001049ba730 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 464
40  JavaScriptCore                      0x0000000104bff4ce _ZN3JSC4callEPNS_9ExecStateENS_7JSValueENS_8CallTypeERKNS_8CallDataES2_RKNS_7ArgListE + 62
41  JavaScriptCore                      0x0000000104c89d39 _ZN3JSC27boundThisNoArgsFunctionCallEPNS_9ExecStateE + 377
42  JavaScriptCore                      0x00000001045d4a08 vmEntryToNative + 206
43  JavaScriptCore                      0x00000001049ba777 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 535
44  JavaScriptCore                      0x0000000104bff634 _ZN3JSC12profiledCallEPNS_9ExecStateENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 196
45  JavaScriptCore                      0x000000010461f6fe JSObjectCallAsFunction + 478
46  SharedRealm                         0x0000000100898c01 _ZN8facebook3jsc10JSCRuntime4callERKNS_3jsi8FunctionERKNS2_5ValueEPS7_m + 337
47  SharedRealm                         0x000000010089e246 _ZNK8facebook3jsi8Function4callERNS0_7RuntimeEPKNS0_5ValueEm + 118
48  SharedRealm                         0x000000010089e134 _ZNK8facebook3jsi8Function4callERNS0_7RuntimeESt16initializer_listINS0_5ValueEE + 100
49  SharedRealm                         0x00000001008c16fc _ZNK8facebook3jsi8Function4callIJRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEESB_NS0_5ValueEEEESC_RNS0_7RuntimeEDpOT_ + 364
50  SharedRealm                         0x00000001008c1523 _ZZN8facebook5react11JSIExecutor12callFunctionERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_RKN5folly7dynamicEENK3$_5clEv + 163
51  SharedRealm                         0x00000001008c145d _ZNSt3__1L8__invokeIRZN8facebook5react11JSIExecutor12callFunctionERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESB_RKN5folly7dynamicEE3$_5JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSI_DpOSJ_ + 29
52  SharedRealm                         0x00000001008c140d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react11JSIExecutor12callFunctionERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESD_RKN5folly7dynamicEE3$_5EEEvDpOT_ + 29
53  SharedRealm                         0x00000001008c0531 _ZNSt3__110__function6__funcIZN8facebook5react11JSIExecutor12callFunctionERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESC_RKN5folly7dynamicEE3$_5NS8_ISH_EEFvvEEclEv + 33
54  SharedRealm                         0x0000000100b4e495 _ZNKSt3__18functionIFvvEEclEv + 53
55  SharedRealm                         0x0000000100737629 _ZN8facebook5react11JSIExecutor21defaultTimeoutInvokerERKNSt3__18functionIFvvEEENS3_IFNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvEEE + 25
56  SharedRealm                         0x000000010073b63c _ZNSt3__1L8__invokeIRPFvRKNS_8functionIFvvEEENS1_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEEJS5_SD_EEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSH_DpOSI_ + 108
57  SharedRealm                         0x000000010073b587 _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRPFvRKNS_8functionIFvvEEENS3_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEES7_SF_EEEvDpOT_ + 71
58  SharedRealm                         0x000000010073a38e _ZNSt3__110__function6__funcIPFvRKNS_8functionIFvvEEENS2_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEENSA_ISG_EESF_EclES6_OSE_ + 78
59  SharedRealm                         0x00000001008b328a _ZNKSt3__18functionIFvRKNS0_IFvvEEENS0_IFNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvEEEEEclES4_SC_ + 106
60  SharedRealm                         0x00000001008b2ead _ZN8facebook5react11JSIExecutor12callFunctionERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_RKN5folly7dynamicE + 493
61  SharedRealm                         0x000000010088b6b5 _ZZN8facebook5react16NativeToJsBridge12callFunctionEONSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES9_ON5folly7dynamicEENK3$_1clEPNS0_10JSExecutorE + 757
62  SharedRealm                         0x000000010088b3a2 _ZNSt3__1L8__invokeIRZN8facebook5react16NativeToJsBridge12callFunctionEONS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESA_ON5folly7dynamicEE3$_1JPNS2_10JSExecutorEEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSI_DpOSJ_ + 50
63  SharedRealm                         0x000000010088b342 _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16NativeToJsBridge12callFunctionEONS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESC_ON5folly7dynamicEE3$_1PNS4_10JSExecutorEEEEvDpOT_ + 50
64  SharedRealm                         0x000000010088a1f9 _ZNSt3__110__function6__funcIZN8facebook5react16NativeToJsBridge12callFunctionEONS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESB_ON5folly7dynamicEE3$_1NS8_ISF_EEFvPNS3_10JSExecutorEEEclEOSI_ + 57
65  SharedRealm                         0x0000000100895745 _ZNKSt3__18functionIFvPN8facebook5react10JSExecutorEEEclES4_ + 85
66  SharedRealm                         0x00000001008956e0 _ZZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENSt3__18functionIFvPNS0_10JSExecutorEEEEENK3$_7clEv + 96
67  SharedRealm                         0x000000010089565d _ZNSt3__1L8__invokeIRZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS2_10JSExecutorEEEEE3$_7JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSB_DpOSC_ + 29
68  SharedRealm                         0x000000010089560d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS4_10JSExecutorEEEEE3$_7EEEvDpOT_ + 29
69  SharedRealm                         0x0000000100894401 _ZNSt3__110__function6__funcIZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS3_10JSExecutorEEEEE3$_7NS_9allocatorISA_EEFvvEEclEv + 33
70  SharedRealm                         0x0000000100b4e495 _ZNKSt3__18functionIFvvEEclEv + 53
71  SharedRealm                         0x0000000100775928 _ZN8facebook5react17tryAndReturnErrorERKNSt3__18functionIFvvEEE + 24
72  SharedRealm                         0x000000010075d8a1 _ZN8facebook5react16RCTMessageThread7tryFuncERKNSt3__18functionIFvvEEE + 33
73  SharedRealm                         0x000000010076245e _ZZN8facebook5react16RCTMessageThread10runOnQueueEONSt3__18functionIFvvEEEENK3$_1clEv + 78
74  SharedRealm                         0x00000001007623ed _ZNSt3__1L8__invokeIRZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSA_DpOSB_ + 29
75  SharedRealm                         0x000000010076239d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1EEEvDpOT_ + 29
76  SharedRealm                         0x0000000100761041 _ZNSt3__110__function6__funcIZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1NS_9allocatorIS9_EES6_EclEv + 33
77  SharedRealm                         0x0000000100b4e495 _ZNKSt3__18functionIFvvEEclEv + 53
78  SharedRealm                         0x000000010075d639 ___ZN8facebook5react16RCTMessageThread8runAsyncENSt3__18functionIFvvEEE_block_invoke + 25
79  CoreFoundation                      0x0000000107004aec __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
80  CoreFoundation                      0x00000001070042b0 __CFRunLoopDoBlocks + 336
81  CoreFoundation                      0x0000000106fff10b __CFRunLoopRun + 2747
82  CoreFoundation                      0x0000000106ffe302 CFRunLoopRunSpecific + 626
83  SharedRealm                         0x00000001006f4a75 +[RCTCxxBridge runRunLoop] + 1045
84  Foundation                          0x00000001052e4307 __NSThread__start__ + 1197
85  libsystem_pthread.dylib             0x00000001097d42eb _pthread_body + 126
86  libsystem_pthread.dylib             0x00000001097d7249 _pthread_start + 66
87  libsystem_pthread.dylib             0x00000001097d340d thread_start + 13!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to help@realm.io.
kneth commented 4 years ago

It is similar to #884.

d-sandman commented 4 years ago

@kneth is there any progress on the issue? Could you please suggest any working workarounds? Any method mentioned on related threads fails.

kneth commented 4 years ago

@dsemenov Just returned from vacation so no progress to report. It comes up regularly, and it is a useful feature. I hope that we will be able to return to it later this year but I can't promise it.

colinmackey commented 4 years ago

Hi @rajeshdongre I was having this issue you have described and have managed to fix it in my project. I am using RealmSwift 3.20.0 and RealmJS 3.4.2. RealmJS as of 3.4.0 includes a podspec which allows you to do a pod install instead of manually linking. I assume this means that the core issue causing this error is a linking issue.

kneth commented 4 years ago

I will close the issue as we finally have support for it. Please see the comment above!

RealmBot commented 4 years ago

➤ Kenneth Geisshirt commented:

Fixed by suppoting Podspec (from Realm JavaScript v3.4.0).