realm-dotnet: Assertion failure when clearing the database

A user reported that they see an assertion failure when calling realm.RemoveAll(). They navigate to a page that has bindings to realm objects, then navigate back and try to clear the database. The exception is:

/Users/realm/workspace/realm_realm-dotnet_PR-1188-6W2R5VDLA4HEBYHVYRS53MBKAKW4RATUW3XSSYGYX3JMUX4SY2YQ/wrappers/src/object-store/src/impl/transact_log_handler.cpp:147: [realm-core-2.3.0] Assertion failed: list.col < list.observer->changes.size()
0   Tyomaarain                          0x0000000102cf3178 _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 40
1   Tyomaarain                          0x0000000102cf347a _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 506
2   Tyomaarain                          0x0000000102ca1d5c _ZN12_GLOBAL__N_122KVOTransactLogObserver14parse_completeEv + 1512
3   Tyomaarain                          0x0000000102c98263 _ZN5realm5_impl11transaction6cancelERNS_11SharedGroupEPNS_14BindingContextE + 764
4   Tyomaarain                          0x0000000102c95c86 shared_realm_cancel_transaction + 23
5   ???                                 0x000000012c15cb04 0x0 + 5034593028
6   ???                                 0x000000012b32dd55 0x0 + 5019721045
7   ???                                 0x000000012b420165 0x0 + 5020713317
8   ???                                 0x000000012883923c 0x0 + 4974678588
9   ???                                 0x000000012b4c7add 0x0 + 5021399773
10  ???                                 0x00000001297f8464 0x0 + 4991190116
11  ???                                 0x00000001297f60b9 0x0 + 4991180985
12  ???                                 0x000000012b420165 0x0 + 5020713317
13  ???                                 0x000000012883923c 0x0 + 4974678588
14  ???                                 0x000000012b4c7add 0x0 + 5021399773
15  ???                                 0x00000001297f8464 0x0 + 4991190116
16  ???                                 0x00000001297f60b9 0x0 + 4991180985
17  ???                                 0x000000012b420165 0x0 + 5020713317
18  ???                                 0x000000012883923c 0x0 + 4974678588
19  ???                                 0x000000012b4c7add 0x0 + 5021399773
20  ???                                 0x00000001297f8464 0x0 + 4991190116
21  ???                                 0x00000001297f60b9 0x0 + 4991180985
22  ???                                 0x000000012b420165 0x0 + 5020713317
23  ???                                 0x000000012883923c 0x0 + 4974678588
24  ???                                 0x000000012b45331d 0x0 + 5020922653
25  ???                                 0x0000000124079514 0x0 + 4899443988
26  libmonosgen-2.0.dylib               0x000000010e75c927 mono_jit_runtime_invoke + 2183
27  libmonosgen-2.0.dylib               0x000000010e917638 do_runtime_invoke + 88
28  libmonosgen-2.0.dylib               0x000000010e917546 mono_runtime_invoke + 102
29  Tyomaarain                          0x0000000102c0d573 _ZL30native_to_managed_trampoline_9P11objc_objectP13objc_selectorPP11_MonoMethodPKcS7_ + 259
30  Tyomaarain                          0x0000000102c13a6d -[__MonoMac_NSAsyncActionDispatcher xamarinApplySelector] + 61
31  Foundation                          0x000000010558ee9e __NSThreadPerformPerform + 326
32  CoreFoundation                      0x000000010e2f5761 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
33  CoreFoundation                      0x000000010e2da98c __CFRunLoopDoSources0 + 556
34  CoreFoundation                      0x000000010e2d9e76 __CFRunLoopRun + 918
35  CoreFoundation                      0x000000010e2d9884 CFRunLoopRunSpecific + 420
36  GraphicsServices                    0x000000010f55aa6f GSEventRunModal + 161
37  UIKit                               0x0000000105c12c68 UIApplicationMain + 159
38  ???                                 0x0000000127e5416c 0x0 + 4964303212
39  ???                                 0x0000000127e53ddd 0x0 + 4964302301
IMPORTANT: if you see this error, please send this log to help@realm.io.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (5 by maintainers)

Most upvoted comments

I’ve got a similar case 100% reproducible in an extended sample from QuickJournal so am drilling down to debug.