realm-swift: group_writer.cpp:623: [realm-core-6.0.8] Assertion failed: free_ref < locked.ref || free_ref >= (locked.ref + locked.size) with (locked.ref, locked.size, locked.released_at_version, free_ref, m_current_version, m_alloc.get_file_path_for_assertions()) = [1
Goals
Resolve crash issue
Expected Results
No crash
Actual Results
Crashed:
/Users/realm/workspace/realm_realm-core_release_6.0.8/src/realm/group_writer.cpp:623: [realm-core-6.0.8] Assertion failed: free_ref < locked.ref || free_ref >= (locked.ref + locked.size) with (locked.ref, locked.size, locked.released_at_version, free_ref, m_current_version, m_alloc.get_file_path_for_assertions()) = [137359000, 1960, 8649, 137359000, 8650, "/private/var/mobile/Containers/Shared/AppGroup/F286316C-BF09-41E5-9F14-F518772C50EE/default.realm"]
0 People Power Family 0x000000010639e850 _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
1 People Power Family 0x000000010639ecec _ZN5realm4util19terminate_with_infoEPKcS2_lS2_OSt16initializer_listINS0_9PrintableEE + 388
2 People Power Family 0x00000001062e8dfc _ZN5realm4util19terminate_with_infoIJRKmRKyRmS6_RyNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEEEvPKciSG_SG_DpOT_ + 0
3 People Power Family 0x00000001062e890c _ZN5realm11GroupWriter17recreate_freelistEm + 2420
4 People Power Family 0x00000001062e71bc _ZN5realm11GroupWriter11write_groupEv + 776
5 People Power Family 0x00000001062df4c4 _ZN5realm2DB16low_level_commitEyRNS_11TransactionE + 380
6 People Power Family 0x00000001062df2d8 _ZN5realm2DB9do_commitERNS_11TransactionE + 112
7 People Power Family 0x00000001062df8a8 _ZN5realm11Transaction27commit_and_continue_as_readEv + 72
8 People Power Family 0x0000000105ced81c _ZN5realm5_impl16RealmCoordinator12commit_writeERNS_5RealmE + 276
9 People Power Family 0x0000000106002490 _ZN5realm5Realm18commit_transactionEv + 440
10 People Power Family 0x0000000105f0ffb4 -[RLMRealm commitWriteTransactionWithoutNotifying:error:] + 604
11 People Power Family 0x0000000105f0fd48 -[RLMRealm commitWriteTransaction:] + 88
12 People Power Family 0x0000000105761944 $sSo24PPProfessionalMonitoringC15Presence_FamilyE17refreshCallCenteryyys5Error_pSgcFZySo06PPCallG0CSg_AFtcfU_ + 13684
13 People Power Family 0x00000001056c4e4c $sSo12PPCallCenterCSgs5Error_pSgIeggg_ACSo7NSErrorCSgIeyByy_TR + 152
14 People Power Family 0x0000000105afec74 __58+[PPProfessionalMonitoring getCallCenter:userId:callback:]_block_invoke_3 + 76
15 libdispatch.dylib 0x000000010e79e338 _dispatch_call_block_and_release + 24
16 libdispatch.dylib 0x000000010e79f730 _dispatch_client_callout + 16
17 libdispatch.dylib 0x000000010e7ad710 _dispatch_main_queue_callback_4CF + 976
18 CoreFoundation 0x00000001a1d6f7fc 50CF3336-313F-3A7D-9048-CB1ED8EC3368 + 690172
19 CoreFoundation 0x00000001a1d6a6d0 50CF3336-313F-3A7D-9048-CB1ED8EC3368 + 669392
20 CoreFoundation 0x00000001a1d69ce8 CFRunLoopRunSpecific + 424
21 GraphicsServices 0x00000001abeb438c GSEventRunModal + 160
22 UIKitCore 0x00000001a5e98444 UIApplicationMain + 1932
23 People Power Family 0x0000000105072ac0 main + 148
24 libdyld.dylib 0x00000001a1bf18f0 3D6D64B4-CB2B-3CC4-A7E9-02774DF7AE74 + 6384!!! IMPORTANT: Please send this log and info about Realm SDK version and other relevant reproduction info to help@realm.io.2020-07-07 17:25:25.831999-0700 People Power Family[849:177872] /Users/realm/workspace/realm_realm-core_release_6.0.8/src/realm/group_writer.cpp:623: [realm-core-6.0.8] Assertion failed: free_ref < locked.ref || free_ref >= (locked.ref + locked.size) with (locked.ref, locked.size, locked.released_at_version, free_ref, m_current_version, m_alloc.get_file_path_for_assertions()) = [137359000, 1960, 8649, 137359000, 8650, "/private/var/mobile/Containers/Shared/AppGroup/F286316C-BF09-41E5-9F14-F518772C50EE/default.realm"]
Steps to Reproduce
Launched app, run for an extended period of time making various calls to write/read the realm database (30-60 minutes).
Code Sample
Source code is private and cannot be shared.
Version of Realm and Tooling
Please update to the latest Carthage version: 0.35.0. You currently are on 0.34.0
ProductName: Mac OS X
ProductVersion: 10.15.5
BuildVersion: 19F101
/Applications/Xcode.app/Contents/Developer
Xcode 11.5
Build version 11E608c
/usr/local/bin/pod
1.9.1
Realm (5.2.0)
/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
/usr/local/bin/carthage
0.34.0
(not in use here)
/usr/bin/git
git version 2.24.3 (Apple Git-128)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (6 by maintainers)
I was using 5.2.0. Did see the same crasher on newer releases though.