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

Updating embedded property results in KeyNotFound exception #5283

Closed
sync-by-unito bot opened this issue Mar 2, 2022 · 7 comments · Fixed by #5334
Closed

Updating embedded property results in KeyNotFound exception #5283

sync-by-unito bot opened this issue Mar 2, 2022 · 7 comments · Fixed by #5334
Assignees

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Mar 2, 2022

This is the stack trace of an object store test that reproduces the issue:

/realm-core/src/realm/array.hpp:754: [realm-core-11.10.0] Assertion failed: has_refs()
0   realm-object-store-tests            0x00000001124f1c9f _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 31
1   realm-object-store-tests            0x00000001124f1f33 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 243
2   realm-object-store-tests            0x0000000112216ba2 _ZNK5realm5Array20get_as_ref_or_taggedEm + 98
3   realm-object-store-tests            0x00000001121bb6ed _ZN5realm7Cluster4initENS_6MemRefE + 77
4   realm-object-store-tests            0x00000001121dfd50 _ZN5realm16ClusterNodeInner7recurseIbZNKS0_7try_getENS_6ObjKeyERNS_11ClusterNode5StateEE3$_3EET_RNS0_9ChildInfoET0_ + 224
5   realm-object-store-tests            0x00000001121dfc12 _ZNK5realm16ClusterNodeInner7try_getENS_6ObjKeyERNS_11ClusterNode5StateE + 114
6   realm-object-store-tests            0x00000001121e949b _ZZNK5realm16ClusterNodeInner7try_getENS_6ObjKeyERNS_11ClusterNode5StateEENK3$_3clEPKS2_RNS0_9ChildInfoE + 59
7   realm-object-store-tests            0x00000001121dfea7 _ZN5realm16ClusterNodeInner7recurseIbZNKS0_7try_getENS_6ObjKeyERNS_11ClusterNode5StateEE3$_3EET_RNS0_9ChildInfoET0_ + 567
8   realm-object-store-tests            0x00000001121dfc12 _ZNK5realm16ClusterNodeInner7try_getENS_6ObjKeyERNS_11ClusterNode5StateE + 114
9   realm-object-store-tests            0x00000001121bb282 _ZNK5realm11ClusterNode3getENS_6ObjKeyERNS0_5StateE + 82
10  realm-object-store-tests            0x00000001121e4608 _ZNK5realm11ClusterTree3getENS_6ObjKeyE + 88
11  realm-object-store-tests            0x000000010f867f9b _ZNK5realm16TableClusterTree3getENS_6ObjKeyE + 75
12  realm-object-store-tests            0x000000010f867b1c _ZNK5realm5Table10get_objectENS_6ObjKeyE + 156
13  realm-object-store-tests            0x0000000112319273 _ZNK5realm3Obj18_get_linked_objectENS_6ColKeyENS_5MixedE + 531
14  realm-object-store-tests            0x000000010f87bcf3 _ZNK5realm3Obj17get_linked_objectENS_6ColKeyE + 99
15  realm-object-store-tests            0x0000000111efae5f _ZN5realm4sync18InstructionApplier13resolve_fieldINS_4util8overloadIJZNS1_clERKNS0_5instr6UpdateEE3$_8ZNS1_clES8_E3$_9ZNS1_clES8_E4$_10ZNS1_clES8_E4$_11ZNS1_clES8_E4$_12ZNS1_clES8_E4$_13EEEEEvRNS_3ObjENS0_12InternStringENSt3__111__wrap_iterIPKN5mpark7variantIJSI_jEEEEESQ_PKcOT_ + 2639
16  realm-object-store-tests            0x0000000111ee67df _ZN5realm4sync18InstructionApplier12resolve_pathINS_4util8overloadIJZNS1_clERKNS0_5instr6UpdateEE3$_8ZNS1_clES8_E3$_9ZNS1_clES8_E4$_10ZNS1_clES8_E4$_11ZNS1_clES8_E4$_12ZNS1_clES8_E4$_13EEEEEvRKNS5_15PathInstructionEPKcOT_ + 687
17  realm-object-store-tests            0x0000000111ee651f _ZN5realm4sync18InstructionApplierclERKNS0_5instr6UpdateE + 223
18  realm-object-store-tests            0x0000000111e13af4 _ZNK5realm4sync11Instruction5visitIRNS0_18InstructionApplierEEEDcOT_ + 500
19  realm-object-store-tests            0x0000000111e13773 _ZN5realm4sync18InstructionApplier5applyIS1_EEvRT_RKNS0_9ChangesetEPNS_4util6LoggerE + 147
20  realm-object-store-tests            0x0000000111e0d925 _ZN5realm4sync18InstructionApplier5applyERKNS0_9ChangesetEPNS_4util6LoggerE + 37
21  realm-object-store-tests            0x0000000111e0cf8a _ZN5realm4sync13ClientHistory27integrate_server_changesetsERKNS0_12SyncProgressEPKyPKNS0_11Transformer15RemoteChangesetEmRNS0_11VersionInfoENS0_18DownloadBatchStateERNS_4util6LoggerEPNS1_20SyncTransactReporterE + 1482
22  realm-object-store-tests            0x0000000111e32b0e _ZN5realm4sync10ClientImpl7Session20integrate_changesetsERNS0_17ClientReplicationERKNS0_12SyncProgressEyRKNSt3__16vectorINS0_11Transformer15RemoteChangesetENS8_9allocatorISB_EEEERNS0_11VersionInfoENS0_18DownloadBatchStateE + 478
23  realm-object-store-tests            0x0000000111ec159b _ZN5realm4sync10ClientImpl7Session29initiate_integrate_changesetsEyNS0_18DownloadBatchStateERKNSt3__16vectorINS0_11Transformer15RemoteChangesetENS4_9allocatorIS7_EEEE + 427
24  realm-object-store-tests            0x0000000111e31e70 _ZN5realm4sync10ClientImpl7Session24receive_download_messageERKNS0_12SyncProgressEyNS0_18DownloadBatchStateExRKNSt3__16vectorINS0_11Transformer15RemoteChangesetENS7_9allocatorISA_EEEE + 1552
25  realm-object-store-tests            0x0000000111e31854 _ZN5realm4sync10ClientImpl10Connection24receive_download_messageEyRKNS0_12SyncProgressEyxNS0_18DownloadBatchStateERKNSt3__16vectorINS0_11Transformer15RemoteChangesetENS7_9allocatorISA_EEEE + 196
26  realm-object-store-tests            0x0000000111e495f7 _ZN5realm5_impl14ClientProtocol22parse_download_messageINS_4sync10ClientImpl10ConnectionEEEvRT_RNS0_16HeaderLineParserE + 2711
27  realm-object-store-tests            0x0000000111e2ec70 _ZN5realm5_impl14ClientProtocol22parse_message_receivedINS_4sync10ClientImpl10ConnectionEEEvRT_NSt3__117basic_string_viewIcNS8_11char_traitsIcEEEE + 448
28  realm-object-store-tests            0x0000000111e2bd5e _ZN5realm4sync10ClientImpl10Connection23handle_message_receivedEPKcm + 78
29  realm-object-store-tests            0x0000000111e2bc6d _ZN5realm4sync10ClientImpl10Connection33websocket_binary_message_receivedEPKcm + 157
30  realm-object-store-tests            0x000000011200009d _ZN5realm4util9websocket12_GLOBAL__N_112EZSocketImpl33websocket_binary_message_receivedEPKcm + 45
31  realm-object-store-tests            0x0000000111ff63fd _ZN12_GLOBAL__N_19WebSocket17frame_reader_loopEv + 269
32  realm-object-store-tests            0x0000000111ff86b4 _ZZN12_GLOBAL__N_19WebSocket17frame_reader_loopEvENKUlNSt3__110error_codeEmE_clES2_m + 196
33  realm-object-store-tests            0x0000000111ff85e3 _ZN5realm4util14UniqueFunctionIFvNSt3__110error_codeEmEE17call_regular_voidIZN12_GLOBAL__N_19WebSocket17frame_reader_loopEvEUlS3_mE_EEvNS2_17integral_constantIbLb1EEERT_OS3_Om + 83
34  realm-object-store-tests            0x0000000111ff8568 _ZN5realm4util14UniqueFunctionIFvNSt3__110error_codeEmEE12SpecificImplIZN12_GLOBAL__N_19WebSocket17frame_reader_loopEvEUlS3_mE_E4callEOS3_Om + 72
35  realm-object-store-tests            0x0000000111c3f7d8 _ZNK5realm4util14UniqueFunctionIFvNSt3__110error_codeEmEEclES3_m + 168
36  realm-object-store-tests            0x0000000111c3f71c _ZN5realm4util7network7Service9AsyncOper29do_recycle_and_execute_helperINS0_14UniqueFunctionIFvNSt3__110error_codeEmEEEJS7_mEEEvbRbT_DpT0_ + 124
37  realm-object-store-tests            0x0000000111c3f612 _ZN5realm4util7network7Service9AsyncOper22do_recycle_and_executeINS0_14UniqueFunctionIFvNSt3__110error_codeEmEEEJRS7_RmEEEvbRT_DpOT0_ + 162
38  realm-object-store-tests            0x0000000111c521d1 _ZN5realm4util7network7Service14BasicStreamOpsINS1_3ssl6StreamEE16BufferedReadOperINS0_14UniqueFunctionIFvNSt3__110error_codeEmEEEE19recycle_and_executeEv + 689
39  realm-object-store-tests            0x0000000111fe315d _ZN5realm4util7network7Service4Impl7executeERNSt3__110unique_ptrINS2_9AsyncOperENS2_18LendersOperDeleterEEE + 29
40  realm-object-store-tests            0x0000000111fddf05 _ZN5realm4util7network7Service4Impl3runEv + 325
41  realm-object-store-tests            0x0000000111fddd8d _ZN5realm4util7network7Service3runEv + 29
42  realm-object-store-tests            0x0000000111ebeb89 _ZN5realm4sync10ClientImpl3runEv + 73
43  realm-object-store-tests            0x0000000111ec60ed _ZN5realm4sync6Client3runEv + 29
44  realm-object-store-tests            0x0000000111aa7f06 _ZZN5realm5_impl10SyncClientC1ENSt3__110unique_ptrINS_4util6LoggerENS2_14default_deleteIS5_EEEERKNS_16SyncClientConfigENS2_8weak_ptrIKNS_11SyncManagerEEEENKUlvE0_clEv + 246
45  realm-object-store-tests            0x0000000111aa7dbd _ZNSt3__1L8__invokeIZN5realm5_impl10SyncClientC1ENS_10unique_ptrINS1_4util6LoggerENS_14default_deleteIS6_EEEERKNS1_16SyncClientConfigENS_8weak_ptrIKNS1_11SyncManagerEEEEUlvE0_JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSI_DpOSJ_ + 29
46  realm-object-store-tests            0x0000000111aa7d25 _ZNSt3__1L16__thread_executeINS_10unique_ptrINS_15__thread_structENS_14default_deleteIS2_EEEEZN5realm5_impl10SyncClientC1ENS1_INS6_4util6LoggerENS3_ISA_EEEERKNS6_16SyncClientConfigENS_8weak_ptrIKNS6_11SyncManagerEEEEUlvE0_JEJEEEvRNS_5tupleIJT_T0_DpT1_EEENS_15__tuple_indicesIJXspT2_EEEE + 37
47  realm-object-store-tests            0x0000000111aa75a6 _ZNSt3__1L14__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN5realm5_impl10SyncClientC1ENS2_INS7_4util6LoggerENS4_ISB_EEEERKNS7_16SyncClientConfigENS_8weak_ptrIKNS7_11SyncManagerEEEEUlvE0_EEEEEPvSN_ + 118
48  libsystem_pthread.dylib             0x00007fff724ad109 _pthread_start + 148
49  libsystem_pthread.dylib             0x00007fff724a8b8b thread_start + 15!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose
@sync-by-unito
Copy link
Author

sync-by-unito bot commented Mar 15, 2022

➤ Josman Perez Exposito commented:

Hello [~daniel.tabacaru], any updates on this? Do we have an ETA?

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Mar 15, 2022

➤ Daniel Tabacaru commented:

[~josman.perez] Not yet unfortunately. The size of the partition makes it hard to pinpoint the problem. I am getting more people involved in the investigation.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Mar 16, 2022

➤ Josman Perez Exposito commented:

Thank you [~daniel.tabacaru]. One quick question: Terminating/Renabling Sync could fix this issue?

@sync-by-unito sync-by-unito bot assigned jedelbo and unassigned danieltabacaru Mar 16, 2022
@sync-by-unito
Copy link
Author

sync-by-unito bot commented Mar 16, 2022

➤ Jørgen Edelbo commented:

No, that will not fix the issue. I have a very strong feeling that I will be able to find the root cause for this tomorrow.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Mar 17, 2022

➤ Josman Perez Exposito commented:

Thanks [~jorgen.edelbo], I suspected that. However, why is this ticket closed?

@jedelbo
Copy link
Contributor

jedelbo commented Mar 17, 2022

An issue is automatically closed when we merge a PR that claims to fix the issue.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Mar 17, 2022

➤ Josman Perez Exposito commented:

Oh ok, thanks for the info [~jorgen.edelbo]

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 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.

2 participants