I just upgraded realm from 3.7.0-alpha.2 to 6.0.1 for node 13 support, some iOS users are reporting constant crashes on app startup. It seems like a Realm file upgrading failure according to the crash report. Everything works fine in our test devices so I can't figure out how to reproduce this issue yet. I started to use realm-js since v2.x, so the breaking changes wrote in v6.0.0 change log should not affect our users. Am I missing some upgrading notes?
No crashes.
/Users/realm/workspace/realm_realm-core_release_6.0.4/src/realm/table.cpp:1270: [realm-core-6.0.4] Assertion failed: col_refs.get(col_ndx)
0 GcoresMobile 0x000000010386d0f8 _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1 GcoresMobile 0x000000010386d358 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 324
2 GcoresMobile 0x000000010382bf48 _ZN5realm5Table15migrate_objectsENS_4util11FunctionRefIFvvEEE + 14688
3 GcoresMobile 0x0000000103797184 _ZN5realm11Transaction19upgrade_file_formatEi + 832
4 GcoresMobile 0x00000001037a0b70 _ZN5realm2DB19upgrade_file_formatEbiii + 340
5 GcoresMobile 0x000000010379e870 _ZN5realm2DB7do_openERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbbNS_9DBOptionsE + 3232
6 GcoresMobile 0x00000001037a11f8 _ZN5realm2DB4openERNS_11ReplicationENS_9DBOptionsE + 244
7 GcoresMobile 0x00000001037a5a00 _ZN5realm2DB6createERNS_11ReplicationENS_9DBOptionsE + 396
8 GcoresMobile 0x0000000102fc79fc _ZN5realm5_impl16RealmCoordinator7open_dbEv + 972
9 GcoresMobile 0x0000000102fc6bd8 _ZN5realm5_impl16RealmCoordinator12do_get_realmENS_5Realm6ConfigERNSt3__110shared_ptrIS2_EENS_4util8OptionalINS_9VersionIDEEERNS8_17CheckedUniqueLockE + 72
10 GcoresMobile 0x0000000102fc6a14 _ZN5realm5_impl16RealmCoordinator9get_realmENS_5Realm6ConfigENS_4util8OptionalINS_9VersionIDEEE + 268
11 GcoresMobile 0x00000001031759c8 _ZN5realm5Realm16get_shared_realmENS0_6ConfigE + 152
12 GcoresMobile 0x0000000102e244f0 _ZN5realm2js10RealmClassINS_3jsc5TypesEE19create_shared_realmEPK15OpaqueJSContextNS_5Realm6ConfigEbONSt3__13mapINSA_12basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEENSB_ISH_NS0_9ProtectedIPK13OpaqueJSValueEENSA_4lessISH_EENSF_INSA_4pairIKSH_SM_EEEEEESO_NSF_INSP_ISQ_ST_EEEEEEONSB_ISH_NSI_IPSJ_EESO_NSF_INSP_ISQ_SZ_EEEEEE + 152
13 GcoresMobile 0x0000000102e22e38 _ZN5realm2js10RealmClassINS_3jsc5TypesEE11constructorEPK15OpaqueJSContextP13OpaqueJSValueRNS0_9ArgumentsIS3_EE + 256
14 GcoresMobile 0x0000000102e1c06c _ZN5realm3jsc10ObjectWrapINS_2js10RealmClassINS0_5TypesEEEE9constructEPK15OpaqueJSContextP13OpaqueJSValuemPKPKSA_PSD_ + 88
15 JavaScriptCore 0x00000001b5e2a14c 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 3023180
16 JavaScriptCore 0x00000001b646f128 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 9597224
17 JavaScriptCore 0x00000001b5dcf364 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2650980
18 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
19 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
20 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
21 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
22 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
23 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
24 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
25 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
26 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
27 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
28 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
29 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
30 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
31 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
32 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
33 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
34 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
35 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
36 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
37 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
38 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
39 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
40 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
41 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
42 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
43 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
44 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
45 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
46 JavaScriptCore 0x00000001b5dce4e4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2647268
47 JavaScriptCore 0x00000001b5dad894 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2513044
48 JavaScriptCore 0x00000001b638ea08 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 8677896
49 JavaScriptCore 0x00000001b65c8030 _ZN3JSC8evaluateEPNS_14JSGlobalObjectERKNS_10SourceCodeENS_7JSValueERN3WTF8NakedPtrINS_9ExceptionEEE + 312
50 JavaScriptCore 0x00000001b5e21f20 JSEvaluateScript + 632
51 GcoresMobile 0x0000000102d224f0 _ZN8facebook3jsc10JSCRuntime18evaluateJavaScriptERKNSt3__110shared_ptrIKNS_3jsi6BufferEEERKNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE + 260
52 GcoresMobile 0x0000000102d3f090 _ZN8facebook5react11JSIExecutor21loadApplicationScriptENSt3__110unique_ptrIKNS0_11JSBigStringENS2_14default_deleteIS5_EEEENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE + 1564
53 GcoresMobile 0x0000000102d084cc _ZZN8facebook5react16NativeToJsBridge15loadApplicationENSt3__110unique_ptrINS0_17RAMBundleRegistryENS2_14default_deleteIS4_EEEENS3_IKNS0_11JSBigStringENS5_IS9_EEEENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEN3$_0clEPNS0_10JSExecutorE + 308
54 GcoresMobile 0x0000000102d08378 _ZNSt3__1L8__invokeIRZN8facebook5react16NativeToJsBridge15loadApplicationENS_10unique_ptrINS2_17RAMBundleRegistryENS_14default_deleteIS5_EEEENS4_IKNS2_11JSBigStringENS6_ISA_EEEENS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEE3$_0JPNS2_10JSExecutorEEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSN_DpOSO_ + 56
55 GcoresMobile 0x0000000102d0830c _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16NativeToJsBridge15loadApplicationENS_10unique_ptrINS4_17RAMBundleRegistryENS_14default_deleteIS7_EEEENS6_IKNS4_11JSBigStringENS8_ISC_EEEENS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEE3$_0PNS4_10JSExecutorEEEEvDpOT_ + 64
56 GcoresMobile 0x0000000102d082ac _ZNSt3__110__function12__alloc_funcIZN8facebook5react16NativeToJsBridge15loadApplicationENS_10unique_ptrINS3_17RAMBundleRegistryENS_14default_deleteIS6_EEEENS5_IKNS3_11JSBigStringENS7_ISB_EEEENS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEE3$_0NSH_ISK_EEFvPNS3_10JSExecutorEEEclEOSN_ + 64
57 GcoresMobile 0x0000000102d06834 _ZNSt3__110__function6__funcIZN8facebook5react16NativeToJsBridge15loadApplicationENS_10unique_ptrINS3_17RAMBundleRegistryENS_14default_deleteIS6_EEEENS5_IKNS3_11JSBigStringENS7_ISB_EEEENS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEE3$_0NSH_ISK_EEFvPNS3_10JSExecutorEEEclEOSN_ + 64
58 GcoresMobile 0x0000000102d1881c _ZNKSt3__110__function12__value_funcIFvPN8facebook5react10JSExecutorEEEclEOS5_ + 88
59 GcoresMobile 0x0000000102d18790 _ZNKSt3__18functionIFvPN8facebook5react10JSExecutorEEEclES4_ + 60
60 GcoresMobile 0x0000000102d18748 _ZZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENSt3__18functionIFvPNS0_10JSExecutorEEEEENK3$_7clEv + 100
61 GcoresMobile 0x0000000102d186c4 _ZNSt3__1L8__invokeIRZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS2_10JSExecutorEEEEE3$_7JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSB_DpOSC_ + 28
62 GcoresMobile 0x0000000102d18674 _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS4_10JSExecutorEEEEE3$_7EEEvDpOT_ + 28
63 GcoresMobile 0x0000000102d1864c _ZNSt3__110__function12__alloc_funcIZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS3_10JSExecutorEEEEE3$_7NS_9allocatorISA_EEFvvEEclEv + 28
64 GcoresMobile 0x0000000102d16ccc _ZNSt3__110__function6__funcIZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS3_10JSExecutorEEEEE3$_7NS_9allocatorISA_EEFvvEEclEv + 28
65 GcoresMobile 0x0000000103088440 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 60
66 GcoresMobile 0x000000010306bab8 _ZNKSt3__18functionIFvvEEclEv + 24
67 GcoresMobile 0x0000000102af7808 _ZN8facebook5react17tryAndReturnErrorERKNSt3__18functionIFvvEEE + 24
68 GcoresMobile 0x0000000102b25540 _ZN8facebook5react16RCTMessageThread7tryFuncERKNSt3__18functionIFvvEEE + 36
69 GcoresMobile 0x0000000102b2c0dc _ZZN8facebook5react16RCTMessageThread10runOnQueueEONSt3__18functionIFvvEEEENK3$_1clEv + 80
70 GcoresMobile 0x0000000102b2c06c _ZNSt3__1L8__invokeIRZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSA_DpOSB_ + 28
71 GcoresMobile 0x0000000102b2c01c _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1EEEvDpOT_ + 28
72 GcoresMobile 0x0000000102b2bff4 _ZNSt3__110__function12__alloc_funcIZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1NS_9allocatorIS9_EES6_EclEv + 28
73 GcoresMobile 0x0000000102b2a8d8 _ZNSt3__110__function6__funcIZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1NS_9allocatorIS9_EES6_EclEv + 28
74 GcoresMobile 0x0000000103088440 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 60
75 GcoresMobile 0x000000010306bab8 _ZNKSt3__18functionIFvvEEclEv + 24
76 GcoresMobile 0x0000000102b25298 ___ZN8facebook5react16RCTMessageThread8runAsyncENSt3__18functionIFvvEEE_block_invoke + 28
77 CoreFoundation 0x00000001a684b67c 9624AAFD-5437-3772-A507-0F357875808D + 710268
78 CoreFoundation 0x00000001a684add8 9624AAFD-5437-3772-A507-0F357875808D + 708056
79 CoreFoundation 0x00000001a6846178 9624AAFD-5437-3772-A507-0F357875808D + 688504
80 CoreFoundation 0x00000001a6845660 CFRunLoopRunSpecific + 480
81 GcoresMobile 0x0000000102ac52dc +[RCTCxxBridge runRunLoop] + 812
82 Foundation 0x00000001a6cc97a0 2B7BD2F3-10A8-3CBA-9DE3-5E1F48D9213E + 1320864
83 libsystem_pthread.dylib 0x00000001a65d58fc _pthread_start + 168
84 libsystem_pthread.dylib 0x00000001a65dd9d4 thread_start + 8!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to [email protected] 13:15:40.838585+0800 GcoresMobile[291:6213] /Users/realm/workspace/realm_realm-core_release_6.0.4/src/realm/table.cpp:1270: [realm-core-6.0.4] Assertion failed: col_refs.get(col_ndx)
0 GcoresMobile 0x000000010386d0f8 _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1 GcoresMobile 0x000000010386d358 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 324
2 GcoresMobile 0x000000010382bf48 _ZN5realm5Table15migrate_objectsENS_4util11FunctionRefIFvvEEE + 14688
3 GcoresMobile 0x0000000103797184 _ZN5realm11Transaction19upgrade_file_formatEi + 832
4 GcoresMobile 0x00000001037a0b70 _ZN5realm2DB19upgrade_file_formatEbiii + 340
5 GcoresMobile 0x000000010379e870 _ZN5realm2DB7do_openERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbbNS_9DBOptionsE + 3232
6 GcoresMobile 0x00000001037a11f8 _ZN5realm2DB4openERNS_11ReplicationENS_9DBOptionsE + 244
7 GcoresMobile 0x00000001037a5a00 _ZN5realm2DB6createERNS_11ReplicationENS_9DBOptionsE + 396
8 GcoresMobile 0x0000000102fc79fc _ZN5realm5_impl16RealmCoordinator7open_dbEv + 972
9 GcoresMobile 0x0000000102fc6bd8 _ZN5realm5_impl16RealmCoordinator12do_get_realmENS_5Realm6ConfigERNSt3__110shared_ptrIS2_EENS_4util8OptionalINS_9VersionIDEEERNS8_17CheckedUniqueLockE + 72
10 GcoresMobile 0x0000000102fc6a14 _ZN5realm5_impl16RealmCoordinator9get_realmENS_5Realm6ConfigENS_4util8OptionalINS_9VersionIDEEE + 268
11 GcoresMobile 0x00000001031759c8 _ZN5realm5Realm16get_shared_realmENS0_6ConfigE + 152
12 GcoresMobile 0x0000000102e244f0 _ZN5realm2js10RealmClassINS_3jsc5TypesEE19create_shared_realmEPK15OpaqueJSContextNS_5Realm6ConfigEbONSt3__13mapINSA_12basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEENSB_ISH_NS0_9ProtectedIPK13OpaqueJSValueEENSA_4lessISH_EENSF_INSA_4pairIKSH_SM_EEEEEESO_NSF_INSP_ISQ_ST_EEEEEEONSB_ISH_NSI_IPSJ_EESO_NSF_INSP_ISQ_SZ_EEEEEE + 152
13 GcoresMobile 0x0000000102e22e38 _ZN5realm2js10RealmClassINS_3jsc5TypesEE11constructorEPK15OpaqueJSContextP13OpaqueJSValueRNS0_9ArgumentsIS3_EE + 256
14 GcoresMobile 0x0000000102e1c06c _ZN5realm3jsc10ObjectWrapINS_2js10RealmClassINS0_5TypesEEEE9constructEPK15OpaqueJSContextP13OpaqueJSValuemPKPKSA_PSD_ + 88
15 JavaScriptCore 0x00000001b5e2a14c 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 3023180
16 JavaScriptCore 0x00000001b646f128 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 9597224
17 JavaScriptCore 0x00000001b5dcf364 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2650980
18 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
19 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
20 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
21 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
22 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
23 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
24 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
25 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
26 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
27 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
28 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
29 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
30 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
31 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
32 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
33 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
34 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
35 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
36 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
37 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
38 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
39 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
40 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
41 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
42 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
43 JavaScriptCore 0x00000001b5dce2d4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646740
44 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
45 JavaScriptCore 0x00000001b5dce220 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2646560
46 JavaScriptCore 0x00000001b5dce4e4 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2647268
47 JavaScriptCore 0x00000001b5dad894 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 2513044
48 JavaScriptCore 0x00000001b638ea08 0C21CF82-97D1-3AA3-A92B-ACC7EE6246A9 + 8677896
49 JavaScriptCore 0x00000001b65c8030 _ZN3JSC8evaluateEPNS_14JSGlobalObjectERKNS_10SourceCodeENS_7JSValueERN3WTF8NakedPtrINS_9ExceptionEEE + 312
50 JavaScriptCore 0x00000001b5e21f20 JSEvaluateScript + 632
51 GcoresMobile 0x0000000102d224f0 _ZN8facebook3jsc10JSCRuntime18evaluateJavaScriptERKNSt3__110shared_ptrIKNS_3jsi6BufferEEERKNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE + 260
52 GcoresMobile 0x0000000102d3f090 _ZN8facebook5react11JSIExecutor21loadApplicationScriptENSt3__110unique_ptrIKNS0_11JSBigStringENS2_14default_deleteIS5_EEEENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE + 1564
53 GcoresMobile 0x0000000102d084cc _ZZN8facebook5react16NativeToJsBridge15loadApplicationENSt3__110unique_ptrINS0_17RAMBundleRegistryENS2_14default_deleteIS4_EEEENS3_IKNS0_11JSBigStringENS5_IS9_EEEENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEN3$_0clEPNS0_10JSExecutorE + 308
54 GcoresMobile 0x0000000102d08378 _ZNSt3__1L8__invokeIRZN8facebook5react16NativeToJsBridge15loadApplicationENS_10unique_ptrINS2_17RAMBundleRegistryENS_14default_deleteIS5_EEEENS4_IKNS2_11JSBigStringENS6_ISA_EEEENS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEE3$_0JPNS2_10JSExecutorEEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSN_DpOSO_ + 56
55 GcoresMobile 0x0000000102d0830c _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16NativeToJsBridge15loadApplicationENS_10unique_ptrINS4_17RAMBundleRegistryENS_14default_deleteIS7_EEEENS6_IKNS4_11JSBigStringENS8_ISC_EEEENS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEE3$_0PNS4_10JSExecutorEEEEvDpOT_ + 64
56 GcoresMobile 0x0000000102d082ac _ZNSt3__110__function12__alloc_funcIZN8facebook5react16NativeToJsBridge15loadApplicationENS_10unique_ptrINS3_17RAMBundleRegistryENS_14default_deleteIS6_EEEENS5_IKNS3_11JSBigStringENS7_ISB_EEEENS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEE3$_0NSH_ISK_EEFvPNS3_10JSExecutorEEEclEOSN_ + 64
57 GcoresMobile 0x0000000102d06834 _ZNSt3__110__function6__funcIZN8facebook5react16NativeToJsBridge15loadApplicationENS_10unique_ptrINS3_17RAMBundleRegistryENS_14default_deleteIS6_EEEENS5_IKNS3_11JSBigStringENS7_ISB_EEEENS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEE3$_0NSH_ISK_EEFvPNS3_10JSExecutorEEEclEOSN_ + 64
58 GcoresMobile 0x0000000102d1881c _ZNKSt3__110__function12__value_funcIFvPN8facebook5react10JSExecutorEEEclEOS5_ + 88
59 GcoresMobile 0x0000000102d18790 _ZNKSt3__18functionIFvPN8facebook5react10JSExecutorEEEclES4_ + 60
60 GcoresMobile 0x0000000102d18748 _ZZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENSt3__18functionIFvPNS0_10JSExecutorEEEEENK3$_7clEv + 100
61 GcoresMobile 0x0000000102d186c4 _ZNSt3__1L8__invokeIRZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS2_10JSExecutorEEEEE3$_7JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSB_DpOSC_ + 28
62 GcoresMobile 0x0000000102d18674 _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS4_10JSExecutorEEEEE3$_7EEEvDpOT_ + 28
63 GcoresMobile 0x0000000102d1864c _ZNSt3__110__function12__alloc_funcIZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS3_10JSExecutorEEEEE3$_7NS_9allocatorISA_EEFvvEEclEv + 28
64 GcoresMobile 0x0000000102d16ccc _ZNSt3__110__function6__funcIZN8facebook5react16NativeToJsBridge18runOnExecutorQueueENS_8functionIFvPNS3_10JSExecutorEEEEE3$_7NS_9allocatorISA_EEFvvEEclEv + 28
65 GcoresMobile 0x0000000103088440 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 60
66 GcoresMobile 0x000000010306bab8 _ZNKSt3__18functionIFvvEEclEv + 24
67 GcoresMobile 0x0000000102af7808 _ZN8facebook5react17tryAndReturnErrorERKNSt3__18functionIFvvEEE + 24
68 GcoresMobile 0x0000000102b25540 _ZN8facebook5react16RCTMessageThread7tryFuncERKNSt3__18functionIFvvEEE + 36
69 GcoresMobile 0x0000000102b2c0dc _ZZN8facebook5react16RCTMessageThread10runOnQueueEONSt3__18functionIFvvEEEENK3$_1clEv + 80
70 GcoresMobile 0x0000000102b2c06c _ZNSt3__1L8__invokeIRZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSA_DpOSB_ + 28
71 GcoresMobile 0x0000000102b2c01c _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1EEEvDpOT_ + 28
72 GcoresMobile 0x0000000102b2bff4 _ZNSt3__110__function12__alloc_funcIZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1NS_9allocatorIS9_EES6_EclEv + 28
73 GcoresMobile 0x0000000102b2a8d8 _ZNSt3__110__function6__funcIZN8facebook5react16RCTMessageThread10runOnQueueEONS_8functionIFvvEEEE3$_1NS_9allocatorIS9_EES6_EclEv + 28
74 GcoresMobile 0x0000000103088440 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 60
75 GcoresMobile 0x000000010306bab8 _ZNKSt3__18functionIFvvEEclEv + 24
76 GcoresMobile 0x0000000102b25298 ___ZN8facebook5react16RCTMessageThread8runAsyncENSt3__18functionIFvvEEE_block_invoke + 28
77 CoreFoundation 0x00000001a684b67c 9624AAFD-5437-3772-A507-0F357875808D + 710268
78 CoreFoundation 0x00000001a684add8 9624AAFD-5437-3772-A507-0F357875808D + 708056
79 CoreFoundation 0x00000001a6846178 9624AAFD-5437-3772-A507-0F357875808D + 688504
80 CoreFoundation 0x00000001a6845660 CFRunLoopRunSpecific + 480
81 GcoresMobile 0x0000000102ac52dc +[RCTCxxBridge runRunLoop] + 812
82 Foundation 0x00000001a6cc97a0 2B7BD2F3-10A8-3CBA-9DE3-5E1F48D9213E + 1320864
83 libsystem_pthread.dylib 0x00000001a65d58fc _pthread_start + 168
84 libsystem_pthread.dylib 0x00000001a65dd9d4 thread_start + 8!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to [email protected].
(lldb)
I use a synchronous realm instance like the following:
export default new Realm({
migration: {...},
schema,
schemaVersion: 82,
})
Do you have access to the realm files? If so can you send those to us?
I don鈥檛 have the realm file, I will send to you once I get one.
While on the subject of upgrading realm, is the property deleteRealmIfMigrationNeeded: true (https://realm.io/docs/javascript/latest/api/Realm.html#~Configuration) going to be of any help, when migrating from an older version of realm or is it only to delete the realm when the schema mismatches? Also does it work for realm cloud (even though it doesn't support migrations)?
I have the same doubt too. Is there any way we can handle this case once realm detects incompatible realm file?
@bmunkholm here's a problem realm file. https://www.dropbox.com/s/l6xflgi2yx4nube/default.realm?dl=1
Similar to @ouabing, I was also facing crashes with my production users when I released an update with the realm version 6.0.0 (lets call this App version 2.1). I had to revert back to 5.0.5 (lets call this App version 2.2) to ensure that my users do not face this issue. Also, I noted that any user who had downloaded the App version 2.1 and upgraded to version 2.2 now face this crash on app start. If the user completely reinstalls the app, this crash goes away. However, I feel that is expected behavior since version 6 works on Realm Core v6. Not sure if this observation helps.
We have isolated a bug and are evaluating a fix at the moment.
The file could be upgraded without problems if it could run uninterrupted. We have identified a weak spot in the upgrade logic that would cause the assertion seen above to be triggered. This happens if the upgrade is aborted at some particular points in the process and then resumed later.
We have released v6.0.2 with the fix.
@ouabing @vineetshetty @RosenTomov
Most helpful comment
We have isolated a bug and are evaluating a fix at the moment.