MongoDB.live, free & fully virtual. Register Now MongoDB.live, free & fully virtual. Register Now

Corrupted partition

Hi there,

First of all, I am not sure if this is the correct topic to post this under, but here goes.

We’re working with realm and mongo sync. At some point I started getting this error message from realm every time I would launch my iOS app in Xcode.

We figured out that it had to do with the partition that was used. Maybe the partition is somehow corrupted, but we can’t really tell from the logs. There is nothing in the logs on https://realm.mongodb.com/ … /logs, the only error we get is from the iOS app.

Creating a new partition and putting in the same content results in the same situation.

I am using
Xcode 12.2 (12B45b)
Realm v10.1.3

/Thomas

/Users/realm/workspace/realm_realm-core_release_10.1.1/src/realm/obj.cpp:1462: [realm-core-10.1.1] Assertion failed: n != realm::npos
0   Realm                               0x0000000105dc0adc _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1   Realm                               0x0000000105dc0d80 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 328
2   Realm                               0x0000000105d41514 _ZN5realm3Obj23assign_pk_and_backlinksERKNS_8ConstObjE + 828
3   Realm                               0x0000000105d87c84 _ZN5realm5Table30create_object_with_primary_keyERKNS_5MixedEONSt3__16vectorINS_10FieldValueENS4_9allocatorIS6_EEEEPb + 680
4   Realm                               0x0000000105af8060 _ZN5realm4sync18InstructionApplierclERKNS0_5instr12CreateObjectE + 416
5   Realm                               0x0000000105aab7d8 _ZN5realm4sync18InstructionApplier5applyIS1_EEvRT_RKNS0_9ChangesetEPNS_4util6LoggerE + 136
6   Realm                               0x0000000105aa7e28 _ZN5realm5_impl17ClientHistoryImpl27integrate_server_changesetsERKNS_4sync12SyncProgressEPKyPKNS2_11Transformer15RemoteChangesetEmRNS2_11VersionInfoERNS2_21ClientReplicationBase16IntegrationErrorERNS_4util6LoggerEPNSE_20SyncTransactReporterE + 820
7   Realm                               0x0000000105aba298 _ZN5realm5_impl14ClientImplBase7Session29initiate_integrate_changesetsEyRKNSt3__16vectorINS_4sync11Transformer15RemoteChangesetENS3_9allocatorIS7_EEEE + 180
8   Realm                               0x0000000105af22e4 _ZN12_GLOBAL__N_111SessionImpl29initiate_integrate_changesetsEyRKNSt3__16vectorIN5realm4sync11Transformer15RemoteChangesetENS1_9allocatorIS6_EEEE + 48
9   Realm                               0x0000000105ab8cbc _ZN5realm5_impl14ClientImplBase7Session24receive_download_messageERKNS_4sync12SyncProgressEyRKNSt3__16vectorINS3_11Transformer15RemoteChangesetENS7_9allocatorISA_EEEE + 692
10  Realm                               0x0000000105ab5ae4 _ZN5realm5_impl14ClientProtocol22parse_message_receivedINS0_14ClientImplBase10ConnectionEEEvRT_PKcm + 4644
11  Realm                               0x0000000105ab0b2c _ZN5realm5_impl14ClientImplBase10Connection33websocket_binary_message_receivedEPKcm + 60
12  Realm                               0x0000000105b9df24 _ZN12_GLOBAL__N_19WebSocket17frame_reader_loopEv + 1532
13  Realm                               0x0000000105abe348 _ZN5realm4util7network7Service9AsyncOper22do_recycle_and_executeINSt3__18functionIFvNS5_10error_codeEmEEEJRS7_RmEEEvbRT_DpOT0_ + 260
14  Realm                               0x0000000105abde30 _ZN5realm4util7network7Service14BasicStreamOpsINS1_3ssl6StreamEE16BufferedReadOperINSt3__18functionIFvNS8_10error_codeEmEEEE19recycle_and_executeEv + 240
15  Realm                               0x0000000105b901d0 _ZN5realm4util7network7Service4Impl3runEv + 404
16  Realm                               0x0000000105ae7a04 _ZN5realm4sync6Client3runEv + 36
17  Realm                               0x0000000105a8000c _ZNSt3__1L14__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN5realm5_impl10SyncClientC1ENS2_INS7_4util6LoggerENS4_ISB_EEEERKNS7_16SyncClientConfigENS_10shared_ptrIKNS7_11SyncManagerEEEEUlvE0_EEEEEPvSN_ + 44
18  libsystem_pthread.dylib             0x00000001d8072b40 _pthread_start + 320
19  libsystem_pthread.dylib             0x00000001d807b768 thread_start + 8!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to help@realm.io.2020-11-17 17:37:31.607681+0100 Time[10024:2960857] /Users/realm/workspace/realm_realm-core_release_10.1.1/src/realm/obj.cpp:1462: [realm-core-10.1.1] Assertion failed: n != realm::npos
0   Realm                               0x0000000105dc0adc _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1   Realm                               0x0000000105dc0d80 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 328
2   Realm                               0x0000000105d41514 _ZN5realm3Obj23assign_pk_and_backlinksERKNS_8ConstObjE + 828
3   Realm                               0x0000000105d87c84 _ZN5realm5Table30create_object_with_primary_keyERKNS_5MixedEONSt3__16vectorINS_10FieldValueENS4_9allocatorIS6_EEEEPb + 680
4   Realm                               0x0000000105af8060 _ZN5realm4sync18InstructionApplierclERKNS0_5instr12CreateObjectE + 416
5   Realm                               0x0000000105aab7d8 _ZN5realm4sync18InstructionApplier5applyIS1_EEvRT_RKNS0_9ChangesetEPNS_4util6LoggerE + 136
6   Realm                               0x0000000105aa7e28 _ZN5realm5_impl17ClientHistoryImpl27integrate_server_changesetsERKNS_4sync12SyncProgressEPKyPKNS2_11Transformer15RemoteChangesetEmRNS2_11VersionInfoERNS2_21ClientReplicationBase16IntegrationErrorERNS_4util6LoggerEPNSE_20SyncTransactReporterE + 820
7   Realm                               0x0000000105aba298 _ZN5realm5_impl14ClientImplBase7Session29initiate_integrate_changesetsEyRKNSt3__16vectorINS_4sync11Transformer15RemoteChangesetENS3_9allocatorIS7_EEEE + 180
8   Realm                               0x0000000105af22e4 _ZN12_GLOBAL__N_111SessionImpl29initiate_integrate_changesetsEyRKNSt3__16vectorIN5realm4sync11Transformer15RemoteChangesetENS1_9allocatorIS6_EEEE + 48
9   Realm                               0x0000000105ab8cbc _ZN5realm5_impl14ClientImplBase7Session24receive_download_messageERKNS_4sync12SyncProgressEyRKNSt3__16vectorINS3_11Transformer15RemoteChangesetENS7_9allocatorISA_EEEE + 692
10  Realm                               0x0000000105ab5ae4 _ZN5realm5_impl14ClientProtocol22parse_message_receivedINS0_14ClientImplBase10ConnectionEEEvRT_PKcm + 4644
11  Realm                               0x0000000105ab0b2c _ZN5realm5_impl14ClientImplBase10Connection33websocket_binary_message_receivedEPKcm + 60
12  Realm                               0x0000000105b9df24 _ZN12_GLOBAL__N_19WebSocket17frame_reader_loopEv + 1532
13  Realm                               0x0000000105abe348 _ZN5realm4util7network7Service9AsyncOper22do_recycle_and_executeINSt3__18functionIFvNS5_10error_codeEmEEEJRS7_RmEEEvbRT_DpOT0_ + 260
14  Realm                               0x0000000105abde30 _ZN5realm4util7network7Service14BasicStreamOpsINS1_3ssl6StreamEE16BufferedReadOperINSt3__18functionIFvNS8_10error_codeEmEEEE19recycle_and_executeEv + 240
15  Realm                               0x0000000105b901d0 _ZN5realm4util7network7Service4Impl3runEv + 404
16  Realm                               0x0000000105ae7a04 _ZN5realm4sync6Client3runEv + 36
17  Realm                               0x0000000105a8000c _ZNSt3__1L14__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN5realm5_impl10SyncClientC1ENS2_INS7_4util6LoggerENS4_ISB_EEEERKNS7_16SyncClientConfigENS_10shared_ptrIKNS7_11SyncManagerEEEEUlvE0_EEEEEPvSN_ + 44
18  libsystem_pthread.dylib             0x00000001d8072b40 _pthread_start + 320
19  libsystem_pthread.dylib             0x00000001d807b768 thread_start + 8!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to help@realm.io.

@Thomas_Juel_Andersen Are you able to open a support ticket for this? If not, please do and we can get the operations team to sort this forr you

I don’t have access atm, but I’ll sort it out and create a support ticket.