Skip to content
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

[realm-core-5.23.4] Assertion failed: info.object_id_index == 0 [3, 0] #6268

Closed
mikk92 opened this issue Sep 25, 2019 · 11 comments · Fixed by #6309
Closed

[realm-core-5.23.4] Assertion failed: info.object_id_index == 0 [3, 0] #6268

mikk92 opened this issue Sep 25, 2019 · 11 comments · Fixed by #6309

Comments

@mikk92
Copy link

mikk92 commented Sep 25, 2019

Goals

I just updated to XCode 11 with Realm 3.18.0. Now there happens a Assertion failure when I add an object.

Stacktrace

/Users/realm/workspace/ealm-sync_release_4.7.5-catalyst/realm-sync/src/realm/sync/object.cpp:397: [realm-core-5.23.4] Assertion failed: info.object_id_index == 0 [3, 0]
0   Realm                               0x000000010209c8ec _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1   Realm                               0x000000010209cb4c _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 324
2   Realm                               0x0000000101b21c64 _ZN5realm4util9terminateIJmiEEEvPKcS3_lDpT_ + 148
3   Realm                               0x000000010212ebdc _ZNK5realm4sync14TableInfoCache14get_table_infoEm + 1920
4   Realm                               0x000000010212f6f8 _ZN5realm4sync30create_object_with_primary_keyERKNS0_14TableInfoCacheERNS_5TableENS_4util8OptionalIxEE + 52
5   Realm                               0x0000000101c468e0 _ZN5realm6Object6createIU8__strongP11objc_object18RLMAccessorContextEES0_RT0_RKNSt3__110shared_ptrINS_5RealmEEERKNS_12ObjectSchemaET_bbmPNS_8BasicRowINS_5TableEEE + 1192
6   Realm                               0x0000000101c46294 RLMAddObjectToRealm + 624
7   RealmSwift                          0x0000000103277d9c $s10RealmSwift0A0C3add_6updateyAA6ObjectC_AC12UpdatePolicyOtF + 1232
8   deisterWallet                       0x00000001008d2948 $s13deisterWallet27RealmDeisterLogDataAccessorC3add3log7RxSwift10ObservableCyytGAA0dE6EntityC_tFAF10Disposable_pAF11AnyObserverVyytGcfU_yycfU_ + 116
9   RealmSwift                          0x0000000103276fbc $s10RealmSwift0A0C5writeyyyyKXEKF + 84
10  deisterWallet                       0x000000010094f7d8 $s10RealmSwift0A0C13deisterWalletE5write11transaction10completionyyyc_yyXEtKF + 120
11  deisterWallet                       0x00000001008d24d8 $s13deisterWallet27RealmDeisterLogDataAccessorC3add3log7RxSwift10ObservableCyytGAA0dE6EntityC_tFAF10Disposable_pAF11AnyObserverVyytGcfU_ + 328
12  RxSwift                             0x0000000103b5cc14 $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC3runyAA10Disposable_pAA0cD0ACLLCy1EQzGF + 312
13  RxSwift                             0x0000000103b5d0b0 $s7RxSwift19AnonymousObservable33_95EBF5692819D58425EC2DD0512D115ALLC3run_6cancelAA10Disposable_p4sink_AaG_p12subscriptiontqd___AA10Cancelable_pt1EQyd__RszAA12ObserverTypeRd__lF + 264
14  RxSwift                             0x0000000103bd53cc $s7RxSwift8ProducerC9subscribeyAA10Disposable_pqd__1EQyd__RszAA12ObserverTypeRd__lF + 304
15  RxSwift                             0x0000000103bbce5c $s7RxSwift14ObservableTypePAAE9subscribe6onNext0F5Error0F9Completed0F8DisposedAA10Disposable_py1EQzcSg_ys0H0_pcSgyycSgAOtF + 1268
16  deisterWallet                       0x00000001008fdcfc $s13deisterWallet12LocalServiceC9logErrors2of7RxSwift10ObservableCyxGAI_tlFAF10Disposable_pAF11AnyObserverVyxGcfU_ + 548
17  RxSwift                             0x0000000103b5cc14 $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC3runyAA10Disposable_pAA0cD0ACLLCy1EQzGF + 312
18  RxSwift                             0x0000000103b5d0b0 $s7RxSwift19AnonymousObservable33_95EBF5692819D58425EC2DD0512D115ALLC3run_6cancelAA10Disposable_p4sink_AaG_p12subscriptiontqd___AA10Cancelable_pt1EQyd__RszAA12ObserverTypeRd__lF + 264
19  RxSwift                             0x0000000103bd53cc $s7RxSwift8ProducerC9subscribeyAA10Disposable_pqd__1EQyd__RszAA12ObserverTypeRd__lF + 304
20  RxSwift                             0x0000000103bbce5c $s7RxSwift14ObservableTypePAAE9subscribe6onNext0F5Error0F9Completed0F8DisposedAA10Disposable_py1EQzcSg_ys0H0_pcSgyycSgAOtF + 1268
21  deisterWallet                       0x00000001009b0788 $s13deisterWallet20CredentialsViewModelC21scanCloudLocksUseCase07loggingiJ015resultConverterAcA04ScanghiJ0_p_AA07LoggingiJ0_pAA06ResultM0_ptcfcyAA09OperationP0OyytG_SbtcfU1_ + 2328
22  deisterWallet                       0x00000001009b0864 $s13deisterWallet15OperationResultOyytGSbs5Error_pIeggyzo_AD_SbtytsAE_pIegnrzo_TR + 64
23  deisterWallet                       0x00000001009b0924 $s13deisterWallet15OperationResultOyytGSbs5Error_pIeggyzo_AD_SbtytsAE_pIegnrzo_TRTA + 24
24  RxSwift                             0x0000000103b9c064 $s7RxSwift7MapSink33_5428EFA9A9B0C0340021B871D2E5AC01LLC2onyyAA5EventOyxGF + 744
25  RxSwift                             0x0000000103b9ce5c $s7RxSwift7MapSink33_5428EFA9A9B0C0340021B871D2E5AC01LLCyxq_GAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
26  RxSwift                             0x0000000103c164f4 $s7RxSwift4SinkC9forwardOnyyAA5EventOy1EQzGF + 240
27  RxSwift                             0x0000000103c26ce0 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLC16_synchronized_onyyAA5EventOy1EQy_GF + 812
28  RxSwift                             0x0000000103c27034 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLCyxq_q0_GAA18SynchronizedOnTypeA2aFP16_synchronized_onyyAA5EventOy1EQzGFTW + 12
29  RxSwift                             0x0000000103c2c5c8 $s7RxSwift18SynchronizedOnTypePAAE012synchronizedD0yyAA5EventOy1EQzGF + 188
30  RxSwift                             0x0000000103c269a4 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLC2onyyAA5EventOy1EQy_GF + 240
31  RxSwift                             0x0000000103c27008 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLCyxq_q0_GAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
32  RxSwift                             0x0000000103c164f4 $s7RxSwift4SinkC9forwardOnyyAA5EventOy1EQzGF + 240
33  RxSwift                             0x0000000103b9c130 $s7RxSwift7MapSink33_5428EFA9A9B0C0340021B871D2E5AC01LLC2onyyAA5EventOyxGF + 948
34  RxSwift                             0x0000000103b9ce5c $s7RxSwift7MapSink33_5428EFA9A9B0C0340021B871D2E5AC01LLCyxq_GAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
35  RxSwift                             0x0000000103c164f4 $s7RxSwift4SinkC9forwardOnyyAA5EventOy1EQzGF + 240
36  RxSwift                             0x0000000103b5c9dc $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC2onyyAA5EventOy1EQzGF + 436
37  RxSwift                             0x0000000103b5cebc $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLCyxGAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
38  RxSwift                             0x0000000103af6af4 $sTA + 132
39  RxSwift                             0x0000000103af5fb0 $s7RxSwift11AnyObserverV2onyyAA5EventOyxGF + 156
40  RxSwift                             0x0000000103af602c $s7RxSwift11AnyObserverVyxGAA0D4TypeA2aEP2onyyAA5EventOy1EQzGFTW + 28
41  RxSwift                             0x0000000103bc5998 $s7RxSwift12ObserverTypePAAE6onNextyy1EQzF + 360
42  deisterWallet                       0x00000001008433f4 $s13deisterWallet22DeisterResultConverterC7convert6result7RxSwift10ObservableCyAA09OperationD0OyxGGAHyxG_tlFAF10Disposable_pAF11AnyObserverVyAKGcfU_yxcfU_ + 356
43  RxSwift                             0x0000000103bbd29c $s7RxSwift14ObservableTypePAAE9subscribe6onNext0F5Error0F9Completed0F8DisposedAA10Disposable_py1EQzcSg_ys0H0_pcSgyycSgAOtFyAA5EventOyAKGcfU_ + 704
44  RxSwift                             0x0000000103bbd6a8 $s7RxSwift14ObservableTypePAAE9subscribe6onNext0F5Error0F9Completed0F8DisposedAA10Disposable_py1EQzcSg_ys0H0_pcSgyycSgAOtFyAA5EventOyAKGcfU_TA + 88
45  RxSwift                             0x0000000103af5260 $s7RxSwift17AnonymousObserverC6onCoreyyAA5EventOyxGF + 160
46  RxSwift                             0x0000000103bc5410 $s7RxSwift12ObserverBaseC2onyyAA5EventOyxGF + 284
47  RxSwift                             0x0000000103bc5774 $s7RxSwift12ObserverBaseCyxGAA0C4TypeA2aEP2onyyAA5EventOy1EQzGFTW + 28
48  RxSwift                             0x0000000103c164f4 $s7RxSwift4SinkC9forwardOnyyAA5EventOy1EQzGF + 240
49  RxSwift                             0x0000000103c26ce0 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLC16_synchronized_onyyAA5EventOy1EQy_GF + 812
50  RxSwift                             0x0000000103c27034 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLCyxq_q0_GAA18SynchronizedOnTypeA2aFP16_synchronized_onyyAA5EventOy1EQzGFTW + 12
51  RxSwift                             0x0000000103c2c5c8 $s7RxSwift18SynchronizedOnTypePAAE012synchronizedD0yyAA5EventOy1EQzGF + 188
52  RxSwift                             0x0000000103c269a4 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLC2onyyAA5EventOy1EQy_GF + 240
53  RxSwift                             0x0000000103c27008 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLCyxq_q0_GAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
54  RxSwift                             0x0000000103c164f4 $s7RxSwift4SinkC9forwardOnyyAA5EventOy1EQzGF + 240
55  RxSwift                             0x0000000103c26ce0 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLC16_synchronized_onyyAA5EventOy1EQy_GF + 812
56  RxSwift                             0x0000000103c27034 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLCyxq_q0_GAA18SynchronizedOnTypeA2aFP16_synchronized_onyyAA5EventOy1EQzGFTW + 12
57  RxSwift                             0x0000000103c2c5c8 $s7RxSwift18SynchronizedOnTypePAAE012synchronizedD0yyAA5EventOy1EQzGF + 188
58  RxSwift                             0x0000000103c269a4 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLC2onyyAA5EventOy1EQy_GF + 240
59  RxSwift                             0x0000000103c27008 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLCyxq_q0_GAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
60  RxSwift                             0x0000000103c164f4 $s7RxSwift4SinkC9forwardOnyyAA5EventOy1EQzGF + 240
61  RxSwift                             0x0000000103b5c9dc $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC2onyyAA5EventOy1EQzGF + 436
62  RxSwift                             0x0000000103b5cebc $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLCyxGAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
63  RxSwift                             0x0000000103af6af4 $sTA + 132
64  RxSwift                             0x0000000103af5fb0 $s7RxSwift11AnyObserverV2onyyAA5EventOyxGF + 156
65  RxSwift                             0x0000000103af602c $s7RxSwift11AnyObserverVyxGAA0D4TypeA2aEP2onyyAA5EventOy1EQzGFTW + 28
66  RxSwift                             0x0000000103bc5998 $s7RxSwift12ObserverTypePAAE6onNextyy1EQzF + 360
67  deisterWallet                       0x00000001008fedf0 $s13deisterWallet12LocalServiceC9logErrors2of4with7RxSwift10ObservableCyxGAJ_AA25DeisterUserSettingsEntityCSgtlFAG10Disposable_pAG11AnyObserverVyxGcfU_yxcfU_ + 212
68  RxSwift                             0x0000000103bbd29c $s7RxSwift14ObservableTypePAAE9subscribe6onNext0F5Error0F9Completed0F8DisposedAA10Disposable_py1EQzcSg_ys0H0_pcSgyycSgAOtFyAA5EventOyAKGcfU_ + 704
69  RxSwift                             0x0000000103bbd6a8 $s7RxSwift14ObservableTypePAAE9subscribe6onNext0F5Error0F9Completed0F8DisposedAA10Disposable_py1EQzcSg_ys0H0_pcSgyycSgAOtFyAA5EventOyAKGcfU_TA + 88
70  RxSwift                             0x0000000103af5260 $s7RxSwift17AnonymousObserverC6onCoreyyAA5EventOyxGF + 160
71  RxSwift                             0x0000000103bc5410 $s7RxSwift12ObserverBaseC2onyyAA5EventOyxGF + 284
72  RxSwift                             0x0000000103bc5774 $s7RxSwift12ObserverBaseCyxGAA0C4TypeA2aEP2onyyAA5EventOy1EQzGFTW + 28
73  RxSwift                             0x0000000103c164f4 $s7RxSwift4SinkC9forwardOnyyAA5EventOy1EQzGF + 240
74  RxSwift                             0x0000000103c26ce0 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLC16_synchronized_onyyAA5EventOy1EQy_GF + 812
75  RxSwift                             0x0000000103c27034 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLCyxq_q0_GAA18SynchronizedOnTypeA2aFP16_synchronized_onyyAA5EventOy1EQzGFTW + 12
76  RxSwift                             0x0000000103c2c5c8 $s7RxSwift18SynchronizedOnTypePAAE012synchronizedD0yyAA5EventOy1EQzGF + 188
77  RxSwift                             0x0000000103c269a4 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLC2onyyAA5EventOy1EQy_GF + 240
78  RxSwift                             0x0000000103c27008 $s7RxSwift14SwitchSinkIter33_329C7BE5E760F8B243CD9FB0AF8C1442LLCyxq_q0_GAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
79  RxSwift                             0x0000000103c164f4 $s7RxSwift4SinkC9forwardOnyyAA5EventOy1EQzGF + 240
80  RxSwift                             0x0000000103b5c9dc $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC2onyyAA5EventOy1EQzGF + 436
81  RxSwift                             0x0000000103b5cebc $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLCyxGAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
82  RxSwift                             0x0000000103af6af4 $sTA + 132
83  RxSwift                             0x0000000103af5fb0 $s7RxSwift11AnyObserverV2onyyAA5EventOyxGF + 156
84  RxSwift                             0x0000000103af602c $s7RxSwift11AnyObserverVyxGAA0D4TypeA2aEP2onyyAA5EventOy1EQzGFTW + 28
85  RxSwift                             0x0000000103bc5998 $s7RxSwift12ObserverTypePAAE6onNextyy1EQzF + 360
86  deisterWallet                       0x0000000100887378 $s13deisterWallet34RealmDeisterPermissionDataAccessorC3add11permissions7RxSwift10ObservableCyytGSayAA0D10LockEntityCG_tFAIyt_tcfU_AF10Disposable_pAF11AnyObserverVyytGcfU_yyXEfU0_ + 128
87  deisterWallet                       0x000000010094f814 $s10RealmSwift0A0C13deisterWalletE5write11transaction10completionyyyc_yyXEtKF + 180
88  deisterWallet                       0x0000000100886d8c $s13deisterWallet34RealmDeisterPermissionDataAccessorC3add11permissions7RxSwift10ObservableCyytGSayAA0D10LockEntityCG_tFAIyt_tcfU_AF10Disposable_pAF11AnyObserverVyytGcfU_ + 316
89  RxSwift                             0x0000000103b5cc14 $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC3runyAA10Disposable_pAA0cD0ACLLCy1EQzGF + 312
90  RxSwift                             0x0000000103b5d0b0 $s7RxSwift19AnonymousObservable33_95EBF5692819D58425EC2DD0512D115ALLC3run_6cancelAA10Disposable_p4sink_AaG_p12subscriptiontqd___AA10Cancelable_pt1EQyd__RszAA12ObserverTypeRd__lF + 264
91  RxSwift                             0x0000000103bd53cc $s7RxSwift8ProducerC9subscribeyAA10Disposable_pqd__1EQyd__RszAA12ObserverTypeRd__lF + 304
92  RxSwift                             0x0000000103c25f84 $s7RxSwift10SwitchSink33_329C7BE5E760F8B243CD9FB0AF8C1442LLC2onyyAA5EventOyxGF + 1012
93  RxSwift                             0x0000000103c266e0 $s7RxSwift10SwitchSink33_329C7BE5E760F8B243CD9FB0AF8C1442LLCyxq_q0_GAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 28
94  RxSwift                             0x0000000103c164f4 $s7RxSwift4SinkC9forwardOnyyAA5EventOy1EQzGF + 240
95  RxSwift                             0x0000000103b5c9dc $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC2onyyAA5EventOy1EQzGF + 436
96  RxSwift                             0x0000000103b5cebc $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLCyxGAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
97  RxSwift                             0x0000000103af6af4 $sTA + 132
98  RxSwift                             0x0000000103af5fb0 $s7RxSwift11AnyObserverV2onyyAA5EventOyxGF + 156
99  RxSwift                             0x0000000103af602c $s7RxSwift11AnyObserverVyxGAA0D4TypeA2aEP2onyyAA5EventOy1EQzGFTW + 28
100 RxSwift                             0x0000000103bc5998 $s7RxSwift12ObserverTypePAAE6onNextyy1EQzF + 360
101 deisterWallet                       0x0000000100887b90 $s13deisterWallet34RealmDeisterPermissionDataAccessorC6delete7RxSwift10ObservableCyytGyFAE10Disposable_pAE11AnyObserverVyytGcfU_ySayAA0D10LockEntityCGcfU_yyXEfU0_ + 128
102 deisterWallet                       0x000000010094f814 $s10RealmSwift0A0C13deisterWalletE5write11transaction10completionyyyc_yyXEtKF + 180
103 deisterWallet                       0x00000001008879dc $s13deisterWallet34RealmDeisterPermissionDataAccessorC6delete7RxSwift10ObservableCyytGyFAE10Disposable_pAE11AnyObserverVyytGcfU_ySayAA0D10LockEntityCGcfU_ + 216
104 deisterWallet                       0x0000000100887bb8 $sSay13deisterWallet17DeisterLockEntityCGIegg_ADIegn_TR + 24
105 RxSwift                             0x0000000103bbd29c $s7RxSwift14ObservableTypePAAE9subscribe6onNext0F5Error0F9Completed0F8DisposedAA10Disposable_py1EQzcSg_ys0H0_pcSgyycSgAOtFyAA5EventOyAKGcfU_ + 704
106 RxSwift                             0x0000000103bbd6a8 $s7RxSwift14ObservableTypePAAE9subscribe6onNext0F5Error0F9Completed0F8DisposedAA10Disposable_py1EQzcSg_ys0H0_pcSgyycSgAOtFyAA5EventOyAKGcfU_TA + 88
107 RxSwift                             0x0000000103af5260 $s7RxSwift17AnonymousObserverC6onCoreyyAA5EventOyxGF + 160
108 RxSwift                             0x0000000103bc5410 $s7RxSwift12ObserverBaseC2onyyAA5EventOyxGF + 284
109 RxSwift                             0x0000000103bc5774 $s7RxSwift12ObserverBaseCyxGAA0C4TypeA2aEP2onyyAA5EventOy1EQzGFTW + 28
110 RxSwift                             0x0000000103c164f4 $s7RxSwift4SinkC9forwardOnyyAA5EventOy1EQzGF + 240

111 RxSwift                             0x0000000103b5c9dc $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC2onyyAA5EventOy1EQzGF + 436
112 RxSwift                             0x0000000103b5cebc $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLCyxGAA12ObserverTypeA2aFP2onyyAA5EventOy1EQzGFTW + 20
113 RxSwift                             0x0000000103af6af4 $sTA + 132
114 RxSwift                             0x0000000103af5fb0 $s7RxSwift11AnyObserverV2onyyAA5EventOyxGF + 156
115 RxSwift                             0x0000000103af602c $s7RxSwift11AnyObserverVyxGAA0D4TypeA2aEP2onyyAA5EventOy1EQzGFTW + 28
116 RxSwift                             0x0000000103bc5998 $s7RxSwift12ObserverTypePAAE6onNextyy1EQzF + 360
117 deisterWallet                       0x0000000100885dc4 $s13deisterWallet34RealmDeisterPermissionDataAccessorC11permissions7RxSwift10ObservableCySayAA0D10LockEntityCGGyFAE10Disposable_pAE11AnyObserverVyAJGcfU_ + 336
118 RxSwift                             0x0000000103b5cc14 $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC3runyAA10Disposable_pAA0cD0ACLLCy1EQzGF + 312
119 RxSwift                             0x0000000103b5d0b0 $s7RxSwift19AnonymousObservable33_95EBF5692819D58425EC2DD0512D115ALLC3run_6cancelAA10Disposable_p4sink_AaG_p12subscriptiontqd___AA10Cancelable_pt1EQyd__RszAA12ObserverTypeRd__lF + 264
120 RxSwift                             0x0000000103bd53cc $s7RxSwift8ProducerC9subscribeyAA10Disposable_pqd__1EQyd__RszAA12ObserverTypeRd__lF + 304
121 RxSwift                             0x0000000103bbce5c $s7RxSwift14ObservableTypePAAE9subscribe6onNext0F5Error0F9Completed0F8DisposedAA10Disposable_py1EQzcSg_ys0H0_pcSgyycSgAOtF + 1268
122 deisterWallet                       0x0000000100887650 $s13deisterWallet34RealmDeisterPermissionDataAccessorC6delete7RxSwift10ObservableCyytGyFAE10Disposable_pAE11AnyObserverVyytGcfU_ + 544
123 RxSwift                             0x0000000103b5cc14 $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC3runyAA10Disposable_pAA0cD0ACLLCy1EQzGF + 312
124 RxSwift                             0x0000000103b5d0b0 $s7RxSwift19AnonymousObservable33_95EBF5692819D58425EC2DD0512D115ALLC3run_6cancelAA10Disposable_p4sink_AaG_p12subscriptiontqd___AA10Cancelable_pt1EQyd__RszAA12ObserverTypeRd__lF + 264
125 RxSwift                             0x0000000103bd53cc $s7RxSwift8ProducerC9subscribeyAA10Disposable_pqd__1EQyd__RszAA12ObserverTypeRd__lF + 304
126 RxSwift                             0x0000000103c253e8 $s7RxSwift10SwitchSink33_329C7BE5E760F8B243CD9FB0AF8C1442LLC3runyAA10Disposable_pAA10ObservableCyxGF + 284!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to [email protected] 10:28:32.961846+0200 deisterWallet[3211:130854] /Users/realm/workspace/ealm-sync_release_4.7.5-catalyst/realm-sync/src/realm/sync/object.cpp:397: [realm-core-5.23.4] Assertion failed: info.object_id_index == 0 [3, 0]

Code Sample

public func add(log: LogEntity) -> Observable<Void> {
        return Observable<Void>.create{ observer in
            do {
                let realm = try self.obtainRealm()
                try realm.write(transaction: {
                    realm.add(log, update: .all)
                    }, completion: {
                        observer.onNext(())
                })
            } catch DataAccessorError.failedToAccessDatabase {
                observer.onError(DataAccessorError.failedToAccessDatabase)
            } catch {
                //The only recoverable errors in Realm are when we've run out of disk space
                observer.onError(DataAccessorError.outOfDiskSpace)
            }
            return Disposables.create()
        }
    }

Version of Realm and Tooling

Realm framework version: 3.18.0

Xcode version: 11

iOS version: 12.4.1

Dependency manager + version: pod 1.7.4

@marinofaggiana
Copy link

me too !

Realm framework version: 3.18.0
Xcode 11
iOS 13

Carthage

@iiiyu
Copy link

iiiyu commented Sep 27, 2019

me too!!

  • Realm (3.18.0):
    • Realm/Headers (= 3.18.0)
  • Realm/Headers (3.18.0)
  • RealmSwift (3.18.0):
    • Realm (= 3.18.0)

Xcode 11
macOS 10.14.6
Podfile

macOS App

@tgoyne
Copy link
Member

tgoyne commented Sep 27, 2019

The failing assert is attempting to validate that the column for the primary key is the first column in the table, but in this case it's actually the fourth. This means that something went wrong when we created the Realm file, and we just didn't detect it until 3.18.0.

Does this happen with a fresh install of the app, or only if you have existing data? In the distant past we didn't force the PK column to be the first column in the table, so it's possible that we just need some migration logic for that. If it happens for new installs too, then there's (also?) a bug in the schema initialization.

@iiiyu
Copy link

iiiyu commented Sep 30, 2019

hi @tgoyne
In my case, My problem happed existing data app. It's everything OK when a fresh app.

@mikk92
Copy link
Author

mikk92 commented Sep 30, 2019

@tgoyne The failing assert does not happen with a fresh install.

@TanchenetcSerhiy
Copy link

TanchenetcSerhiy commented Sep 30, 2019

@tgoyne have same issue even with a fresh install

@rajeevao
Copy link

rajeevao commented Oct 4, 2019

I'm facing the same issue in Realm 3.19.0 SDK. I could only recreate this issue in apps with existing data. Typically after an app update.

@SkyReborned
Copy link

SkyReborned commented Oct 8, 2019

@mikk92 @tgoyne My users are also getting this issue and when they have a fresh install everything seems to be working as expected.

@iiiyu
Copy link

iiiyu commented Oct 15, 2019

@tgoyne
Hi,
Will the next version fix this bug?
I can't update my app right now.

@tgoyne
Copy link
Member

tgoyne commented Oct 15, 2019

I've made a sync PR that should fix this.

@SkyReborned
Copy link

@tgoyne
Hello,
Great what version will this be released in?

This was referenced Oct 17, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants