realm-core: Realm Crashed With `realm.delete`

How frequently does the bug occur?

All the time

Description

I got logs with realm.objects. Then delete. However, the realm crashed.

let realm = try! Realm()
let cal = Calendar.current
let now = Date()
var cps = cal.dateComponents([.year,.month,.day,.hour,.minute,.second], from: now)
cps.day = cps.day! - 7
let sevenDaysAgo = cal.date(from: cps)!
let logs = realm.objects(DTLog.self).filter("startTime < %@", sevenDaysAgo)

try! realm.write {
    realm.delete(logs)
}
class DTLog:Object, ObjectKeyIdentifiable {
    @Persisted(primaryKey: true) var id: ObjectId
    @Persisted var startTime = Date()
    @Persisted var interval = 0
    @Persisted var connected = true
    @Persisted var delay = 0
}

Stacktrace & log output

/Users/realm/workspace/realm_realm-core_release_12.11.0/src/realm/index_string.cpp:1135: [realm-core-12.11.0] Assertion failed: m_array->size() == values.size() + 1
0   Realm                               0x000000010726d00c _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1   Realm                               0x000000010726cf11 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 385
2   Realm                               0x00000001071224ea _ZN5realm11StringIndex9do_deleteENS_6ObjKeyENS_10StringDataEm + 2042
3   Realm                               0x0000000107121ee0 _ZN5realm11StringIndex9do_deleteENS_6ObjKeyENS_10StringDataEm + 496
4   Realm                               0x00000001071227b9 _ZN5realm11StringIndex5eraseENS_6ObjKeyE + 153
5   Realm                               0x0000000107212db9 _ZN5realm5Table25erase_from_search_indexesENS_6ObjKeyE + 73
6   Realm                               0x00000001070ebc9c _ZN5realm11ClusterTree5eraseENS_6ObjKeyERNS_12CascadeStateE + 28
7   Realm                               0x000000010721c8cf _ZN5realm5Table16batch_erase_rowsERKNS_9BPlusTreeINS_6ObjKeyEEE + 1503
8   Realm                               0x000000010723a9e5 _ZN5realm9TableView5clearEv + 165
9   Realm                               0x00000001073bf68e _ZN5realm7Results5clearEv + 254
10  Realm                               0x00000001070399ca _ZZ36-[RLMResults deleteObjectsFromRealm]ENK4$_20clEv + 154
11  Realm                               0x0000000107031f46 _ZL25translateRLMResultsErrorsIZ36-[RLMResults deleteObjectsFromRealm]E4$_20EDaOT_P8NSString + 38
12  Realm                               0x0000000107031d59 -[RLMResults deleteObjectsFromRealm] + 201
13  Realm                               0x0000000107011636 -[RLMRealm deleteObjects:] + 422
14  RealmSwift                          0x0000000105f37992 $s10RealmSwift0A0V6deleteyyAA7ResultsVyxGSo13RLMObjectBaseCRbzAA0A15CollectionValueRzlF + 98
15  Internet Helper                     0x0000000104319422 $s15Internet_Helper13Delay_TestAppV4bodyQrvg7SwiftUI4ViewPAEE7toolbar7contentQrqd__yXE_tAE14ToolbarContentRd__lFQOyAgEE5sheet11isPresented9onDismissAIQrAE7BindingVySbG_yycSgqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEE0Q6Change2of7performQrqd___yqd__ctSQRd__lFQOy0G14UIWindowBinder06WindowX0VyAE012_ConditionalM0VyAgEE0Q6AppearATQrAQ_tFQOyAgEE08progressI5StyleyQrqd__AE08ProgressI5StyleRd__lFQOyAgEE7paddingyQrAE4EdgeO3SetV_12CoreGraphics7CGFloatVSgtFQOyAE08ProgressI0VyAE4TextVAE05EmptyI0VG_Qo__AE014LinearProgressI5StyleVQo__Qo_AE05TupleI0VyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAzTQrAQ_tFQOyAgEE0Q7Receive_ATQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEE7opacityyQrSdFQOyAA0mI0V_Qo__So20NSNotificationCenterC10FoundationEA28_VQo__A40_Qo__A27_10PublishersO9ReceiveOnVy_A40_So9NSRunLoopCGQo__Qo__AA010MembershipI0VQo__AA07ScriptsI0VQo__AgEE5frame8minWidth10idealWidth8maxWidth9minHeight11idealHeight9maxHeight9alignmentQrA9__A9_A9_A9_A9_A9_AE9AlignmentVtFQOyAA09ScriptLogI0V_Qo_Qo__AgEEA58_5width6heightA65_QrA9__A9_A67_tFQOy02MyE5Store04MainG6UIViewV_Qo_Qo__SbQo__SbQo__AE7ForEachVySayAA5IHTabVGA39_4UUIDVAgEEA33_yQrSdFQOyAA03WebI0V_Qo_GtGGG_So8NSWindowCSgQo__AA06Scriptd3RunI0VQo__AgEEA58_A72_A73_A65_QrA9__A9_A67_tFQOyA13__Qo_Qo__AA015RestoreProgressI0VQo__AE0lM7BuilderV10buildBlockyQrx_q_tAeJRzAeJR_r0_lFZQOy_AE0L9ItemGroupVyA23_yAgEE11pickerStyleyQrqd__AE11PickerStyleRd__lFQOyAE6PickerVyA13_A84_A82_yA85_A87_AgEE3tagyQrqd__SHRd__lFQOyA13__A84_Qo_GG_AE20SegmentedPickerStyleVQo__AE6SpacerVtGGA111_yA23_yA124__AgEEA112_yQrqd__AEA113_Rd__lFQOyA115_yA13_AA7IHGroupVSgA82_ySayA128_GA87_AgEEA116_yQrqd__SHRd__lFQOyA13__A129_Qo_GG_A121_Qo_AYyAE03AnyI0VAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEE4helpyQrAE18LocalizedStringKeyVFQOyAE4MenuVyAE5ImageVA23_yAE6ButtonVyA13_G_AE7DividerVA146_A148_A82_ySayAA8IHScriptVGSSA146_GtGG_Qo__A129_Qo_GAgEEA137_yQrA13_FQOyA145_yAgEE11aspectRatio_0K4ModeQrA9__AE0M4ModeOtFQOyA143__Qo_G_Qo_A148_A164_A164_A148_AgEEA137_yQrA13_FQOyA145_yAYyAgEE15foregroundColoryQrAE5ColorVSgFQOyA162__Qo_A162_GG_Qo_tGGQo_Qo_yXEfU_A93_ycfU_yycfU0_yyXEfU_ + 82
16  Internet Helper                     0x000000010434f694 $s15Internet_Helper13Delay_TestAppV4bodyQrvg7SwiftUI4ViewPAEE7toolbar7contentQrqd__yXE_tAE14ToolbarContentRd__lFQOyAgEE5sheet11isPresented9onDismissAIQrAE7BindingVySbG_yycSgqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEE0Q6Change2of7performQrqd___yqd__ctSQRd__lFQOy0G14UIWindowBinder06WindowX0VyAE012_ConditionalM0VyAgEE0Q6AppearATQrAQ_tFQOyAgEE08progressI5StyleyQrqd__AE08ProgressI5StyleRd__lFQOyAgEE7paddingyQrAE4EdgeO3SetV_12CoreGraphics7CGFloatVSgtFQOyAE08ProgressI0VyAE4TextVAE05EmptyI0VG_Qo__AE014LinearProgressI5StyleVQo__Qo_AE05TupleI0VyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAzTQrAQ_tFQOyAgEE0Q7Receive_ATQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEE7opacityyQrSdFQOyAA0mI0V_Qo__So20NSNotificationCenterC10FoundationEA28_VQo__A40_Qo__A27_10PublishersO9ReceiveOnVy_A40_So9NSRunLoopCGQo__Qo__AA010MembershipI0VQo__AA07ScriptsI0VQo__AgEE5frame8minWidth10idealWidth8maxWidth9minHeight11idealHeight9maxHeight9alignmentQrA9__A9_A9_A9_A9_A9_AE9AlignmentVtFQOyAA09ScriptLogI0V_Qo_Qo__AgEEA58_5width6heightA65_QrA9__A9_A67_tFQOy02MyE5Store04MainG6UIViewV_Qo_Qo__SbQo__SbQo__AE7ForEachVySayAA5IHTabVGA39_4UUIDVAgEEA33_yQrSdFQOyAA03WebI0V_Qo_GtGGG_So8NSWindowCSgQo__AA06Scriptd3RunI0VQo__AgEEA58_A72_A73_A65_QrA9__A9_A67_tFQOyA13__Qo_Qo__AA015RestoreProgressI0VQo__AE0lM7BuilderV10buildBlockyQrx_q_tAeJRzAeJR_r0_lFZQOy_AE0L9ItemGroupVyA23_yAgEE11pickerStyleyQrqd__AE11PickerStyleRd__lFQOyAE6PickerVyA13_A84_A82_yA85_A87_AgEE3tagyQrqd__SHRd__lFQOyA13__A84_Qo_GG_AE20SegmentedPickerStyleVQo__AE6SpacerVtGGA111_yA23_yA124__AgEEA112_yQrqd__AEA113_Rd__lFQOyA115_yA13_AA7IHGroupVSgA82_ySayA128_GA87_AgEEA116_yQrqd__SHRd__lFQOyA13__A129_Qo_GG_A121_Qo_AYyAE03AnyI0VAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEE4helpyQrAE18LocalizedStringKeyVFQOyAE4MenuVyAE5ImageVA23_yAE6ButtonVyA13_G_AE7DividerVA146_A148_A82_ySayAA8IHScriptVGSSA146_GtGG_Qo__A129_Qo_GAgEEA137_yQrA13_FQOyA145_yAgEE11aspectRatio_0K4ModeQrA9__AE0M4ModeOtFQOyA143__Qo_G_Qo_A148_A164_A164_A148_AgEEA137_yQrA13_FQOyA145_yAYyAgEE15foregroundColoryQrAE5ColorVSgFQOyA162__Qo_A162_GG_Qo_tGGQo_Qo_yXEfU_A93_ycfU_yycfU0_yyXEfU_TA + 20
17  RealmSwift                          0x0000000105f35193 $s10RealmSwift0A0V5write16withoutNotifying_xSaySo20RLMNotificationTokenCG_xyKXEtKlF + 275
18  Internet Helper                     0x0000000104318f9b $s15Internet_Helper13Delay_TestAppV4bodyQrvg7SwiftUI4ViewPAEE7toolbar7contentQrqd__yXE_tAE14ToolbarContentRd__lFQOyAgEE5sheet11isPresented9onDismissAIQrAE7BindingVySbG_yycSgqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEE0Q6Change2of7performQrqd___yqd__ctSQRd__lFQOy0G14UIWindowBinder06WindowX0VyAE012_ConditionalM0VyAgEE0Q6AppearATQrAQ_tFQOyAgEE08progressI5StyleyQrqd__AE08ProgressI5StyleRd__lFQOyAgEE7paddingyQrAE4EdgeO3SetV_12CoreGraphics7CGFloatVSgtFQOyAE08ProgressI0VyAE4TextVAE05EmptyI0VG_Qo__AE014LinearProgressI5StyleVQo__Qo_AE05TupleI0VyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAzTQrAQ_tFQOyAgEE0Q7Receive_ATQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEE7opacityyQrSdFQOyAA0mI0V_Qo__So20NSNotificationCenterC10FoundationEA28_VQo__A40_Qo__A27_10PublishersO9ReceiveOnVy_A40_So9NSRunLoopCGQo__Qo__AA010MembershipI0VQo__AA07ScriptsI0VQo__AgEE5frame8minWidth10idealWidth8maxWidth9minHeight11idealHeight9maxHeight9alignmentQrA9__A9_A9_A9_A9_A9_AE9AlignmentVtFQOyAA09ScriptLogI0V_Qo_Qo__AgEEA58_5width6heightA65_QrA9__A9_A67_tFQOy02MyE5Store04MainG6UIViewV_Qo_Qo__SbQo__SbQo__AE7ForEachVySayAA5IHTabVGA39_4UUIDVAgEEA33_yQrSdFQOyAA03WebI0V_Qo_GtGGG_So8NSWindowCSgQo__AA06Scriptd3RunI0VQo__AgEEA58_A72_A73_A65_QrA9__A9_A67_tFQOyA13__Qo_Qo__AA015RestoreProgressI0VQo__AE0lM7BuilderV10buildBlockyQrx_q_tAeJRzAeJR_r0_lFZQOy_AE0L9ItemGroupVyA23_yAgEE11pickerStyleyQrqd__AE11PickerStyleRd__lFQOyAE6PickerVyA13_A84_A82_yA85_A87_AgEE3tagyQrqd__SHRd__lFQOyA13__A84_Qo_GG_AE20SegmentedPickerStyleVQo__AE6SpacerVtGGA111_yA23_yA124__AgEEA112_yQrqd__AEA113_Rd__lFQOyA115_yA13_AA7IHGroupVSgA82_ySayA128_GA87_AgEEA116_yQrqd__SHRd__lFQOyA13__A129_Qo_GG_A121_Qo_AYyAE03AnyI0VAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEE4helpyQrAE18LocalizedStringKeyVFQOyAE4MenuVyAE5ImageVA23_yAE6ButtonVyA13_G_AE7DividerVA146_A148_A82_ySayAA8IHScriptVGSSA146_GtGG_Qo__A129_Qo_GAgEEA137_yQrA13_FQOyA145_yAgEE11aspectRatio_0K4ModeQrA9__AE0M4ModeOtFQOyA143__Qo_G_Qo_A148_A164_A164_A148_AgEEA137_yQrA13_FQOyA145_yAYyAgEE15foregroundColoryQrAE5ColorVSgFQOyA162__Qo_A162_GG_Qo_tGGQo_Qo_yXEfU_A93_ycfU_yycfU0_ + 2347
19  SwiftUI                             0x00007ff923d39944 $s7SwiftUI25_AppearanceActionModifierV9MergedBox33_8817D3B1C81ADA2B53E3500D727F785ALLC6updateyyFyycfU_ + 72
20  SwiftUI                             0x00007ff923656e3c $sIeg_ytIegr_TR + 12
21  SwiftUI                             0x00007ff923d3aab3 $sIeg_ytIegr_TRTA + 17
22  SwiftUI                             0x00007ff923e6b79a $s7SwiftUI16ViewRendererHostPAAE6render8interval17updateDisplayListySd_SbtFyyXEfU_ + 2357
23  SwiftUI                             0x00007ff923e56b31 $s7SwiftUI16ViewRendererHostPAAE6render8interval17updateDisplayListySd_SbtF + 374
24  SwiftUI                             0x00007ff923eb6586 $s7SwiftUI13NSHostingViewC6layoutyyFySo18NSAnimationContextCXEfU_ + 126
25  SwiftUI                             0x00007ff923ebf744 $sSo18NSAnimationContextCIgg_ABIegg_TRTA + 17
26  SwiftUI                             0x00007ff923eb3b74 $sSo18NSAnimationContextCIegg_ABIyBy_TR + 40
27  AppKit                              0x00007ff81a95a1ab +[NSAnimationContext runAnimationGroup:] + 55
28  SwiftUI                             0x00007ff923eb64ba $s7SwiftUI13NSHostingViewC6layoutyyF + 287
29  SwiftUI                             0x00007ff923eb68ba $s7SwiftUI13NSHostingViewC6layoutyyFTo + 21
30  AppKit                              0x00007ff81a995a94 _NSViewLayout + 564
31  AppKit                              0x00007ff81a995573 -[NSView _layoutSubtreeWithOldSize:] + 361
32  AppKit                              0x00007ff81a994a85 -[NSView _layoutSubtreeIfNeededAndAllowTemporaryEngine:] + 1041
33  AppKit                              0x00007ff81abd7246 +[NSWindow windowWithContentViewController:] + 57
34  SwiftUI                             0x00007ff923c73f44 $s7SwiftUI11WindowStylePAAE04makeC0ySo8NSWindowCSo16NSViewControllerCFAA011PreferencescD0V_Tg5 + 42
35  SwiftUI                             0x00007ff923e18bc4 $s7SwiftUI21AnyWindowStyleStorageC04makeD0ySo8NSWindowCSo16NSViewControllerCF + 26
36  SwiftUI                             0x00007ff9239ed424 $s7SwiftUI20AppWindowsControllerC010makeWindowE033_72F61A03E62F0A97E0761B990CF02152LL_13restorationID11environmentAA0gE0AELLCAC0G4InfoV_SSSgAA17EnvironmentValuesVSgtF + 2307
37  SwiftUI                             0x00007ff9239eb5f0 $s7SwiftUI20AppWindowsControllerC14makeMainWindow4infoSo8NSWindowCAC0H4InfoV_tF + 69
38  SwiftUI                             0x00007ff9239f116f $s7SwiftUI20AppWindowsControllerC13restoreWindow14withIdentifier5state17completionHandlerySo019NSUserInterfaceItemI0a_So7NSCoderCySo8NSWindowCSg_s5Error_pSgtctFZ05$sSo8q13CSgSo7NSErroru11IeyByy_ACs5R12_pSgIeggg_TRANSo0W0CSgIeyByy_Tf1nncn_n + 1034
39  SwiftUI                             0x00007ff9239f157a $s7SwiftUI20AppWindowsControllerC13restoreWindow14withIdentifier5state17completionHandlerySo019NSUserInterfaceItemI0a_So7NSCoderCySo8NSWindowCSg_s5Error_pSgtctFZTo + 96
40  AppKit                              0x00007ff81a947289 -[NSApplication(NSPersistentUIRestorationSupport) restoreWindowWithIdentifier:state:completionHandler:] + 264
41  AppKit                              0x00007ff81a946e54 -[NSApplication(NSPersistentUIRestorationSupport) _restoreWindowWithRestoration:completionHandler:] + 530
42  AppKit                              0x00007ff81b442216 -[NSPersistentUIRestorer restoreStateFromRecords:usingDelegate:requireSecureCoding:completionHandler:] + 1789
43  AppKit                              0x00007ff81a945fd1 -[NSPersistentUIManager restoreAllPersistentStateWithCompletionHandler:] + 303
44  AppKit                              0x00007ff81a9453e5 -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:completionHandler:] + 358
45  AppKit                              0x00007ff81a94516f -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 528
46  AppKit                              0x00007ff81a944dd0 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 665
47  Foundation                          0x00007ff818d37724 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
48  Foundation                          0x00007ff818d37596 _NSAppleEventManagerGenericHandler + 80
49  AE                                  0x00007ff81e5be480 _AppleEventsCheckInAppWithBlock + 14319
50  AE                                  0x00007ff81e5bdcea _AppleEventsCheckInAppWithBlock + 12377
51  AE                                  0x00007ff81e5b732f aeProcessAppleEvent + 419
52  HIToolbox                           0x00007ff820bc5ce2 AEProcessAppleEvent + 54
53  AppKit                              0x00007ff81a93f402 _DPSNextEvent + 2036
54  AppKit                              0x00007ff81a93d66a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
55  AppKit                              0x00007ff81a92fd19 -[NSApplication run] + 586
56  AppKit                              0x00007ff81a903c97 NSApplicationMain + 817
57  SwiftUI                             0x00007ff92344909c $s7SwiftUI6runAppys5NeverOSo21NSApplicationDelegate_So11NSResponderCXcFTf4e_nAA07TestingdG0C_Tg5 + 161
58  SwiftUI                             0x00007ff923eab424 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 164
59  SwiftUI                             0x00007ff9239a3c5f $s7SwiftUI3AppPAAE4mainyyFZ + 63
60  Internet Helper                     0x0000000104329863 $s15Internet_Helper13Delay_TestAppV5$mainyyFZ + 35
61  Internet Helper                     0x00000001043321d9 main + 9
62  dyld                                0x000000010ad8552e start + 462!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose2022-10-28 19:12:49.696888+0800 Internet Helper[14256:119536] /Users/realm/workspace/realm_realm-core_release_12.11.0/src/realm/index_string.cpp:1135: [realm-core-12.11.0] Assertion failed: m_array->size() == values.size() + 1
0   Realm                               0x000000010726d00c _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1   Realm                               0x000000010726cf11 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 385
2   Realm                               0x00000001071224ea _ZN5realm11StringIndex9do_deleteENS_6ObjKeyENS_10StringDataEm + 2042
3   Realm                               0x0000000107121ee0 _ZN5realm11StringIndex9do_deleteENS_6ObjKeyENS_10StringDataEm + 496
4   Realm                               0x00000001071227b9 _ZN5realm11StringIndex5eraseENS_6ObjKeyE + 153
5   Realm                               0x0000000107212db9 _ZN5realm5Table25erase_from_search_indexesENS_6ObjKeyE + 73
6   Realm                               0x00000001070ebc9c _ZN5realm11ClusterTree5eraseENS_6ObjKeyERNS_12CascadeStateE + 28
7   Realm                               0x000000010721c8cf _ZN5realm5Table16batch_erase_rowsERKNS_9BPlusTreeINS_6ObjKeyEEE + 1503
8   Realm                               0x000000010723a9e5 _ZN5realm9TableView5clearEv + 165
9   Realm                               0x00000001073bf68e _ZN5realm7Results5clearEv + 254
10  Realm                               0x00000001070399ca _ZZ36-[RLMResults deleteObjectsFromRealm]ENK4$_20clEv + 154
11  Realm                               0x0000000107031f46 _ZL25translateRLMResultsErrorsIZ36-[RLMResults deleteObjectsFromRealm]E4$_20EDaOT_P8NSString + 38
12  Realm                               0x0000000107031d59 -[RLMResults deleteObjectsFromRealm] + 201
13  Realm                               0x0000000107011636 -[RLMRealm deleteObjects:] + 422
14  RealmSwift                          0x0000000105f37992 $s10RealmSwift0A0V6deleteyyAA7ResultsVyxGSo13RLMObjectBaseCRbzAA0A15CollectionValueRzlF + 98
15  Internet Helper                     0x0000000104319422 $s15Internet_Helper13Delay_TestAppV4bodyQrvg7SwiftUI4ViewPAEE7toolbar7contentQrqd__yXE_tAE14ToolbarContentRd__lFQOyAgEE5sheet11isPresented9onDismissAIQrAE7BindingVySbG_yycSgqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEE0Q6Change2of7performQrqd___yqd__ctSQRd__lFQOy0G14UIWindowBinder06WindowX0VyAE012_ConditionalM0VyAgEE0Q6AppearATQrAQ_tFQOyAgEE08progressI5StyleyQrqd__AE08ProgressI5StyleRd__lFQOyAgEE7paddingyQrAE4EdgeO3SetV_12CoreGraphics7CGFloatVSgtFQOyAE08ProgressI0VyAE4TextVAE05EmptyI0VG_Qo__AE014LinearProgressI5StyleVQo__Qo_AE05TupleI0VyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAzTQrAQ_tFQOyAgEE0Q7Receive_ATQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEE7opacityyQrSdFQOyAA0mI0V_Qo__So20NSNotificationCenterC10FoundationEA28_VQo__A40_Qo__A27_10PublishersO9ReceiveOnVy_A40_So9NSRunLoopCGQo__Qo__AA010MembershipI0VQo__AA07ScriptsI0VQo__AgEE5frame8minWidth10idealWidth8maxWidth9minHeight11idealHeight9maxHeight9alignmentQrA9__A9_A9_A9_A9_A9_AE9AlignmentVtFQOyAA09ScriptLogI0V_Qo_Qo__AgEEA58_5width6heightA65_QrA9__A9_A67_tFQOy02MyE5Store04MainG6UIViewV_Qo_Qo__SbQo__SbQo__AE7ForEachVySayAA5IHTabVGA39_4UUIDVAgEEA33_yQrSdFQOyAA03WebI0V_Qo_GtGGG_So8NSWindowCSgQo__AA06Scriptd3RunI0VQo__AgEEA58_A72_A73_A65_QrA9__A9_A67_tFQOyA13__Qo_Qo__AA015RestoreProgressI0VQo__AE0lM7BuilderV10buildBlockyQrx_q_tAeJRzAeJR_r0_lFZQOy_AE0L9ItemGroupVyA23_yAgEE11pickerStyleyQrqd__AE11PickerStyleRd__lFQOyAE6PickerVyA13_A84_A82_yA85_A87_AgEE3tagyQrqd__SHRd__lFQOyA13__A84_Qo_GG_AE20SegmentedPickerStyleVQo__AE6SpacerVtGGA111_yA23_yA124__AgEEA112_yQrqd__AEA113_Rd__lFQOyA115_yA13_AA7IHGroupVSgA82_ySayA128_GA87_AgEEA116_yQrqd__SHRd__lFQOyA13__A129_Qo_GG_A121_Qo_AYyAE03AnyI0VAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEE4helpyQrAE18LocalizedStringKeyVFQOyAE4MenuVyAE5ImageVA23_yAE6ButtonVyA13_G_AE7DividerVA146_A148_A82_ySayAA8IHScriptVGSSA146_GtGG_Qo__A129_Qo_GAgEEA137_yQrA13_FQOyA145_yAgEE11aspectRatio_0K4ModeQrA9__AE0M4ModeOtFQOyA143__Qo_G_Qo_A148_A164_A164_A148_AgEEA137_yQrA13_FQOyA145_yAYyAgEE15foregroundColoryQrAE5ColorVSgFQOyA162__Qo_A162_GG_Qo_tGGQo_Qo_yXEfU_A93_ycfU_yycfU0_yyXEfU_ + 82
16  Internet Helper                     0x000000010434f694 $s15Internet_Helper13Delay_TestAppV4bodyQrvg7SwiftUI4ViewPAEE7toolbar7contentQrqd__yXE_tAE14ToolbarContentRd__lFQOyAgEE5sheet11isPresented9onDismissAIQrAE7BindingVySbG_yycSgqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEE0Q6Change2of7performQrqd___yqd__ctSQRd__lFQOy0G14UIWindowBinder06WindowX0VyAE012_ConditionalM0VyAgEE0Q6AppearATQrAQ_tFQOyAgEE08progressI5StyleyQrqd__AE08ProgressI5StyleRd__lFQOyAgEE7paddingyQrAE4EdgeO3SetV_12CoreGraphics7CGFloatVSgtFQOyAE08ProgressI0VyAE4TextVAE05EmptyI0VG_Qo__AE014LinearProgressI5StyleVQo__Qo_AE05TupleI0VyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAzTQrAQ_tFQOyAgEE0Q7Receive_ATQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEE7opacityyQrSdFQOyAA0mI0V_Qo__So20NSNotificationCenterC10FoundationEA28_VQo__A40_Qo__A27_10PublishersO9ReceiveOnVy_A40_So9NSRunLoopCGQo__Qo__AA010MembershipI0VQo__AA07ScriptsI0VQo__AgEE5frame8minWidth10idealWidth8maxWidth9minHeight11idealHeight9maxHeight9alignmentQrA9__A9_A9_A9_A9_A9_AE9AlignmentVtFQOyAA09ScriptLogI0V_Qo_Qo__AgEEA58_5width6heightA65_QrA9__A9_A67_tFQOy02MyE5Store04MainG6UIViewV_Qo_Qo__SbQo__SbQo__AE7ForEachVySayAA5IHTabVGA39_4UUIDVAgEEA33_yQrSdFQOyAA03WebI0V_Qo_GtGGG_So8NSWindowCSgQo__AA06Scriptd3RunI0VQo__AgEEA58_A72_A73_A65_QrA9__A9_A67_tFQOyA13__Qo_Qo__AA015RestoreProgressI0VQo__AE0lM7BuilderV10buildBlockyQrx_q_tAeJRzAeJR_r0_lFZQOy_AE0L9ItemGroupVyA23_yAgEE11pickerStyleyQrqd__AE11PickerStyleRd__lFQOyAE6PickerVyA13_A84_A82_yA85_A87_AgEE3tagyQrqd__SHRd__lFQOyA13__A84_Qo_GG_AE20SegmentedPickerStyleVQo__AE6SpacerVtGGA111_yA23_yA124__AgEEA112_yQrqd__AEA113_Rd__lFQOyA115_yA13_AA7IHGroupVSgA82_ySayA128_GA87_AgEEA116_yQrqd__SHRd__lFQOyA13__A129_Qo_GG_A121_Qo_AYyAE03AnyI0VAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEE4helpyQrAE18LocalizedStringKeyVFQOyAE4MenuVyAE5ImageVA23_yAE6ButtonVyA13_G_AE7DividerVA146_A148_A82_ySayAA8IHScriptVGSSA146_GtGG_Qo__A129_Qo_GAgEEA137_yQrA13_FQOyA145_yAgEE11aspectRatio_0K4ModeQrA9__AE0M4ModeOtFQOyA143__Qo_G_Qo_A148_A164_A164_A148_AgEEA137_yQrA13_FQOyA145_yAYyAgEE15foregroundColoryQrAE5ColorVSgFQOyA162__Qo_A162_GG_Qo_tGGQo_Qo_yXEfU_A93_ycfU_yycfU0_yyXEfU_TA + 20
17  RealmSwift                          0x0000000105f35193 $s10RealmSwift0A0V5write16withoutNotifying_xSaySo20RLMNotificationTokenCG_xyKXEtKlF + 275
18  Internet Helper                     0x0000000104318f9b $s15Internet_Helper13Delay_TestAppV4bodyQrvg7SwiftUI4ViewPAEE7toolbar7contentQrqd__yXE_tAE14ToolbarContentRd__lFQOyAgEE5sheet11isPresented9onDismissAIQrAE7BindingVySbG_yycSgqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEE0Q6Change2of7performQrqd___yqd__ctSQRd__lFQOy0G14UIWindowBinder06WindowX0VyAE012_ConditionalM0VyAgEE0Q6AppearATQrAQ_tFQOyAgEE08progressI5StyleyQrqd__AE08ProgressI5StyleRd__lFQOyAgEE7paddingyQrAE4EdgeO3SetV_12CoreGraphics7CGFloatVSgtFQOyAE08ProgressI0VyAE4TextVAE05EmptyI0VG_Qo__AE014LinearProgressI5StyleVQo__Qo_AE05TupleI0VyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAklmIQrAP_AQqd__yctAeFRd__lFQOyAgEEAzTQrAQ_tFQOyAgEE0Q7Receive_ATQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEEA24__ATQrqd___yA26_ctA27_A28_Rd__A30_A32_RSlFQOyAgEE7opacityyQrSdFQOyAA0mI0V_Qo__So20NSNotificationCenterC10FoundationEA28_VQo__A40_Qo__A27_10PublishersO9ReceiveOnVy_A40_So9NSRunLoopCGQo__Qo__AA010MembershipI0VQo__AA07ScriptsI0VQo__AgEE5frame8minWidth10idealWidth8maxWidth9minHeight11idealHeight9maxHeight9alignmentQrA9__A9_A9_A9_A9_A9_AE9AlignmentVtFQOyAA09ScriptLogI0V_Qo_Qo__AgEEA58_5width6heightA65_QrA9__A9_A67_tFQOy02MyE5Store04MainG6UIViewV_Qo_Qo__SbQo__SbQo__AE7ForEachVySayAA5IHTabVGA39_4UUIDVAgEEA33_yQrSdFQOyAA03WebI0V_Qo_GtGGG_So8NSWindowCSgQo__AA06Scriptd3RunI0VQo__AgEEA58_A72_A73_A65_QrA9__A9_A67_tFQOyA13__Qo_Qo__AA015RestoreProgressI0VQo__AE0lM7BuilderV10buildBlockyQrx_q_tAeJRzAeJR_r0_lFZQOy_AE0L9ItemGroupVyA23_yAgEE11pickerStyleyQrqd__AE11PickerStyleRd__lFQOyAE6PickerVyA13_A84_A82_yA85_A87_AgEE3tagyQrqd__SHRd__lFQOyA13__A84_Qo_GG_AE20SegmentedPickerStyleVQo__AE6SpacerVtGGA111_yA23_yA124__AgEEA112_yQrqd__AEA113_Rd__lFQOyA115_yA13_AA7IHGroupVSgA82_ySayA128_GA87_AgEEA116_yQrqd__SHRd__lFQOyA13__A129_Qo_GG_A121_Qo_AYyAE03AnyI0VAgEEArsTQrqd___yqd__ctSQRd__lFQOyAgEE4helpyQrAE18LocalizedStringKeyVFQOyAE4MenuVyAE5ImageVA23_yAE6ButtonVyA13_G_AE7DividerVA146_A148_A82_ySayAA8IHScriptVGSSA146_GtGG_Qo__A129_Qo_GAgEEA137_yQrA13_FQOyA145_yAgEE11aspectRatio_0K4ModeQrA9__AE0M4ModeOtFQOyA143__Qo_G_Qo_A148_A164_A164_A148_AgEEA137_yQrA13_FQOyA145_yAYyAgEE15foregroundColoryQrAE5ColorVSgFQOyA162__Qo_A162_GG_Qo_tGGQo_Qo_yXEfU_A93_ycfU_yycfU0_ + 2347
19  SwiftUI                             0x00007ff923d39944 $s7SwiftUI25_AppearanceActionModifierV9MergedBox33_8817D3B1C81ADA2B53E3500D727F785ALLC6updateyyFyycfU_ + 72
20  SwiftUI                             0x00007ff923656e3c $sIeg_ytIegr_TR + 12
21  SwiftUI                             0x00007ff923d3aab3 $sIeg_ytIegr_TRTA + 17
22  SwiftUI                             0x00007ff923e6b79a $s7SwiftUI16ViewRendererHostPAAE6render8interval17updateDisplayListySd_SbtFyyXEfU_ + 2357
23  SwiftUI                             0x00007ff923e56b31 $s7SwiftUI16ViewRendererHostPAAE6render8interval17updateDisplayListySd_SbtF + 374
24  SwiftUI                             0x00007ff923eb6586 $s7SwiftUI13NSHostingViewC6layoutyyFySo18NSAnimationContextCXEfU_ + 126
25  SwiftUI                             0x00007ff923ebf744 $sSo18NSAnimationContextCIgg_ABIegg_TRTA + 17
26  SwiftUI                             0x00007ff923eb3b74 $sSo18NSAnimationContextCIegg_ABIyBy_TR + 40
27  AppKit                              0x00007ff81a95a1ab +[NSAnimationContext runAnimationGroup:] + 55
28  SwiftUI                             0x00007ff923eb64ba $s7SwiftUI13NSHostingViewC6layoutyyF + 287
29  SwiftUI                             0x00007ff923eb68ba $s7SwiftUI13NSHostingViewC6layoutyyFTo + 21
30  AppKit                              0x00007ff81a995a94 _NSViewLayout + 564
31  AppKit                              0x00007ff81a995573 -[NSView _layoutSubtreeWithOldSize:] + 361
32  AppKit                              0x00007ff81a994a85 -[NSView _layoutSubtreeIfNeededAndAllowTemporaryEngine:] + 1041
33  AppKit                              0x00007ff81abd7246 +[NSWindow windowWithContentViewController:] + 57
34  SwiftUI                             0x00007ff923c73f44 $s7SwiftUI11WindowStylePAAE04makeC0ySo8NSWindowCSo16NSViewControllerCFAA011PreferencescD0V_Tg5 + 42
35  SwiftUI                             0x00007ff923e18bc4 $s7SwiftUI21AnyWindowStyleStorageC04makeD0ySo8NSWindowCSo16NSViewControllerCF + 26
36  SwiftUI                             0x00007ff9239ed424 $s7SwiftUI20AppWindowsControllerC010makeWindowE033_72F61A03E62F0A97E0761B990CF02152LL_13restorationID11environmentAA0gE0AELLCAC0G4InfoV_SSSgAA17EnvironmentValuesVSgtF + 2307
37  SwiftUI                             0x00007ff9239eb5f0 $s7SwiftUI20AppWindowsControllerC14makeMainWindow4infoSo8NSWindowCAC0H4InfoV_tF + 69
38  SwiftUI                             0x00007ff9239f116f $s7SwiftUI20AppWindowsControllerC13restoreWindow14withIdentifier5state17completionHandlerySo019NSUserInterfaceItemI0a_So7NSCoderCySo8NSWindowCSg_s5Error_pSgtctFZ05$sSo8q13CSgSo7NSErroru11IeyByy_ACs5R12_pSgIeggg_TRANSo0W0CSgIeyByy_Tf1nncn_n + 1034
39  SwiftUI                             0x00007ff9239f157a $s7SwiftUI20AppWindowsControllerC13restoreWindow14withIdentifier5state17completionHandlerySo019NSUserInterfaceItemI0a_So7NSCoderCySo8NSWindowCSg_s5Error_pSgtctFZTo + 96
40  AppKit                              0x00007ff81a947289 -[NSApplication(NSPersistentUIRestorationSupport) restoreWindowWithIdentifier:state:completionHandler:] + 264
41  AppKit                              0x00007ff81a946e54 -[NSApplication(NSPersistentUIRestorationSupport) _restoreWindowWithRestoration:completionHandler:] + 530
42  AppKit                              0x00007ff81b442216 -[NSPersistentUIRestorer restoreStateFromRecords:usingDelegate:requireSecureCoding:completionHandler:] + 1789
43  AppKit                              0x00007ff81a945fd1 -[NSPersistentUIManager restoreAllPersistentStateWithCompletionHandler:] + 303
44  AppKit                              0x00007ff81a9453e5 -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:completionHandler:] + 358
45  AppKit                              0x00007ff81a94516f -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 528
46  AppKit                              0x00007ff81a944dd0 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 665
47  Foundation                          0x00007ff818d37724 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
48  Foundation                          0x00007ff818d37596 _NSAppleEventManagerGenericHandler + 80
49  AE                                  0x00007ff81e5be480 _AppleEventsCheckInAppWithBlock + 14319
50  AE                                  0x00007ff81e5bdcea _AppleEventsCheckInAppWithBlock + 12377
51  AE                                  0x00007ff81e5b732f aeProcessAppleEvent + 419
52  HIToolbox                           0x00007ff820bc5ce2 AEProcessAppleEvent + 54
53  AppKit                              0x00007ff81a93f402 _DPSNextEvent + 2036
54  AppKit                              0x00007ff81a93d66a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
55  AppKit                              0x00007ff81a92fd19 -[NSApplication run] + 586
56  AppKit                              0x00007ff81a903c97 NSApplicationMain + 817
57  SwiftUI                             0x00007ff92344909c $s7SwiftUI6runAppys5NeverOSo21NSApplicationDelegate_So11NSResponderCXcFTf4e_nAA07TestingdG0C_Tg5 + 161
58  SwiftUI                             0x00007ff923eab424 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 164
59  SwiftUI                             0x00007ff9239a3c5f $s7SwiftUI3AppPAAE4mainyyFZ + 63
60  Internet Helper                     0x0000000104329863 $s15Internet_Helper13Delay_TestAppV5$mainyyFZ + 35
61  Internet Helper                     0x00000001043321d9 main + 9
62  dyld                                0x000000010ad8552e start + 462!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose

Can you reproduce the bug?

Yes, always

Reproduction Steps

No response

Version

10.32.1

What SDK flavour are you using?

Local Database only

Are you using encryption?

No, not using encryption

Platform OS and version(s)

macOS Monterey 12.6.1 (21G217)

Build environment

Xcode version: 14.1 (14B47b) Dependency manager and version: CocoaPods 1.11.3

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

You need to delete your database. We are going to release a new version of core and then there will be a new version of swift, upgrading to that release will be all you need.

The “default.realm.lock” must be deleted with realm file as well. Or sometimes the host app may crash.

You need to delete your database. We are going to release a new version of core and then there will be a new version of swift, upgrading to that release will be all you need.