-
Type: Bug
-
Resolution: Duplicate
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
SDK and version
SDK : Cocoa
Version: 10.7.0
Observations
- How frequent do the crash occur?
Sometimes - Does it happen in production or during dev/test?
It is occuring in dev environment randomly - Can the crash be reproduced by you?
I can't reproduce it again
Crash log / stacktrace
<!-- The full stack trace. -->
/Users/alexo/Library/Developer/Xcode/DerivedData/Finolo-fxxsonxfotowojeefzkypemqblky/SourcePackages/checkouts/realm-core/src/realm/alloc.hpp:585: [realm-core-10.5.3] Invalid ref translation entry [140452527621912, 78187493520] 0 Finolo (iOS) dev 0x0000000101a9028f _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 31 1 Finolo (iOS) dev 0x0000000101a90523 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 243 2 Finolo (iOS) dev 0x0000000100f93121 _ZN5realm4util9terminateIJylEEEvPKcS3_lDpT_ + 145 3 Finolo (iOS) dev 0x0000000101697d88 _ZNK5realm9Allocator18translate_criticalEPNS0_14RefTranslationEm + 328 4 Finolo (iOS) dev 0x000000010168e3f0 _ZNK5realm9Allocator9translateEm + 96 5 Finolo (iOS) dev 0x000000010185000c _ZNK5realm3Obj4_getINS_10StringDataEEET_NS_6ColKey3IdxE + 508 6 Finolo (iOS) dev 0x000000010184fdfa _ZNK5realm3Obj3getINS_10StringDataEEET_NS_6ColKeyE + 170 7 Finolo (iOS) dev 0x0000000100f8e6f0 _ZN12_GLOBAL__N_18getBoxedIN5realm10StringDataEEEP11objc_objectP13RLMObjectBasem + 112 8 Finolo (iOS) dev 0x0000000100f8e677 ___ZN12_GLOBAL__N_115makeBoxedGetterIN5realm10StringDataEEEP11objc_objectm_block_invoke + 39 9 Finolo (iOS) dev 0x0000000100ce74ca $s6Finolo7AccountC3_idSSvpACTK + 74 10 libswiftCore.dylib 0x00007fff2fd7d25a $ss19RawKeyPathComponentV16_projectReadOnly_2to10endingWithAB16ProjectionResultOy_q_q0_Gx_q_mq0_mtr1_lF + 538 11 libswiftCore.dylib 0x00007fff2fd7ced4 $ss7KeyPathC16_projectReadOnly4fromq_x_tFq_s0aB6BufferVXEfU_0C0L_yq_Sgqd__r0__lF8project2L_yAHqd0__mr0___lF + 164 12 libswiftCore.dylib 0x00007fff2fd7cc89 $ss7KeyPathC16_projectReadOnly4fromq_x_tFq_s0aB6BufferVXEfU_ + 505 13 libswiftCore.dylib 0x00007fff2fd80321 swift_getAtKeyPath + 161 14 SwiftUI 0x00007fff5781ab51 $s7SwiftUI7ForEachV11IDGeneratorO6makeID4data5index6offsetq_x_5IndexQzSitF + 353 15 SwiftUI 0x00007fff5781cbc1 $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC4item2at6offsetAD4ItemCyxq_q0__G5IndexQz_SitF + 417 16 SwiftUI 0x00007fff5781dd8b $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC03forD4Item4from5style2doSbSiz_AA23_ViewList_IteratorStyleVSbSiz_AjD0O0Cyxq_q0__GtXEtF + 1131 17 SwiftUI 0x00007fff5781d818 $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC9traitKeysAA09ViewTraitO0VSgvg + 56 18 SwiftUI 0x00007fff5782228f $s7SwiftUI11ForEachList33_00713678F075B914F7FE0E74B0A90E85LLV9traitKeysAA09ViewTraitO0VSgvg + 15 19 SwiftUI 0x00007fff5782273a $s7SwiftUI11ForEachList33_00713678F075B914F7FE0E74B0A90E85LLVyxq_q0_GAA04ViewE0A2aFP9traitKeysAA0n5TraitP0VSgvgTW + 42 20 SwiftUI 0x00007fff5764daea $s7SwiftUI11AnyViewList33_A96961F3546506F21D8995C6092F15B5LLV07WrappedE0V9traitKeysAA0d5TraitO0VSgvg + 42 21 SwiftUI 0x00007fff5781d8b8 $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC9traitKeysAA09ViewTraitO0VSgvgSbSiz_AA01_P18List_IteratorStyleVAD4ItemCyxq_q0__GtXEfU_ + 136 22 SwiftUI 0x00007fff5781dda6 $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC03forD4Item4from5style2doSbSiz_AA23_ViewList_IteratorStyleVSbSiz_AjD0O0Cyxq_q0__GtXEtF + 1158 23 SwiftUI 0x00007fff5781d818 $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC9traitKeysAA09ViewTraitO0VSgvg + 56 24 SwiftUI 0x00007fff5782228f $s7SwiftUI11ForEachList33_00713678F075B914F7FE0E74B0A90E85LLV9traitKeysAA09ViewTraitO0VSgvg + 15 25 SwiftUI 0x00007fff5782273a $s7SwiftUI11ForEachList33_00713678F075B914F7FE0E74B0A90E85LLVyxq_q0_GAA04ViewE0A2aFP9traitKeysAA0n5TraitP0VSgvgTW + 42 26 SwiftUI 0x00007fff57900500 $s7SwiftUI15_ViewList_GroupV9traitKeysAA0c5TraitG0VSgvg + 304 27 SwiftUI 0x00007fff579ac83d $s7SwiftUI8SectionsV4from17reifyEmptyHeaders10useFootersAcA22_VariadicView_ChildrenV_S2btcfC + 109 28 SwiftUI 0x00007fff574e8aa2 $s7SwiftUI20SystemListDataSourceV_5style12minRowHeight0h6HeaderJ0ACyxGAA22_VariadicView_ChildrenV_So07UITableM5StyleV12CoreGraphics7CGFloatVSgANtcfC + 114 29 SwiftUI 0x00007fff578be3c3 $s7SwiftUI25InsettableGroupedListBodyV0F0013_66E45C4729D0I18FEA1B1BE7BA175BEC8LLV4bodyQrvg + 643 30 SwiftUI 0x00007fff578be5b9 $s7SwiftUI25InsettableGroupedListBodyV0F0013_66E45C4729D0I18FEA1B1BE7BA175BEC8LLVyx_qd__GAA4ViewA2aHP4bodyADQzvgTW + 9 31 SwiftUI 0x00007fff5732b576 $s7SwiftUI16ViewBodyAccessorV06updateD02of7changedyx_SbtF0D0QzyXEfU_TA + 22 32 SwiftUI 0x00007fff57648d02 $s7SwiftUI12BodyAccessorPAAE03setC0yy0C0QzyXEFAFyXEfU_ + 34 33 SwiftUI 0x00007fff573252ab $s7SwiftUI16ViewBodyAccessorV06updateD02of7changedyx_SbtF + 1339 34 SwiftUI 0x00007fff5764913b $s7SwiftUI11DynamicBodyV11updateValueyyF + 347 35 SwiftUI 0x00007fff57344d8a $s14AttributeGraph0A0VyACyxGqd__c5ValueQyd__RszAA12StatefulRuleRd__lufcADSPyqd__GXEfU_ySv_So11AGAttributeatcyXEfU_ySv_AJtcqd__mcfu_ySv_AJtcfu0_TA + 26 36 AttributeGraph 0x00007fff4cd78723 _ZN2AG5Graph11UpdateStack6updateEv + 505 37 AttributeGraph 0x00007fff4cd78bb9 _ZN2AG5Graph16update_attributeENS_4data3ptrINS_4NodeEEEb + 335 38 AttributeGraph 0x00007fff4cd80b91 _ZN2AG8Subgraph6updateEj + 781 39 SwiftUI 0x00007fff5798559a $s7SwiftUI9GraphHostC14runTransactionyyF + 186 40 SwiftUI 0x00007fff57458cba $s7SwiftUI9ViewGraphC13updateOutputs2atyAA4TimeV_tF + 90 41 SwiftUI 0x00007fff578e58a9 $s7SwiftUI16ViewRendererHostPAAE6render8interval17updateDisplayListySd_SbtFyyXEfU_ + 1305 42 SwiftUI 0x00007fff578d8884 $s7SwiftUI16ViewRendererHostPAAE6render8interval17updateDisplayListySd_SbtF + 340 43 SwiftUI 0x00007fff57a55491 $s7SwiftUI14_UIHostingViewC14layoutSubviewsyyF + 241 44 SwiftUI 0x00007fff57a554b5 $s7SwiftUI14_UIHostingViewC14layoutSubviewsyyFTo + 21 45 UIKitCore 0x00007fff24bf8504 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2924 46 QuartzCore 0x00007fff27b1bc2b -[CALayer layoutSublayers] + 258 47 QuartzCore 0x00007fff27b2219d _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 575 48 QuartzCore 0x00007fff27b2df3f _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 65 49 QuartzCore 0x00007fff27a6d44c _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 496 50 QuartzCore 0x00007fff27aa4233 _ZN2CA11Transaction6commitEv + 783 51 UIKitCore 0x00007fff246c72fb _afterCACommitHandler + 164 52 CoreFoundation 0x00007fff2038f1f8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 53 CoreFoundation 0x00007fff20389a77 __CFRunLoopDoObservers + 547 54 CoreFoundation 0x00007fff2038a01a __CFRunLoopRun + 1113 55 CoreFoundation 0x00007fff203896d6 CFRunLoopRunSpecific + 567 56 GraphicsServices 0x00007fff2c257db3 GSEventRunModal + 139 57 UIKitCore 0x00007fff24696cf7 -[UIApplication _run] + 912 58 UIKitCore 0x00007fff2469bba8 UIApplicationMain + 101 59 SwiftUI 0x00007fff5791abc7 $s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgGXEfU_ + 119 60 SwiftUI 0x00007fff5791ab3f $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 143 61 SwiftUI 0x00007fff5745212d $s7SwiftUI3AppPAAE4mainyyFZ + 61 62 Finolo (iOS) dev 0x0000000100dc2da0 $s6Finolo0A3AppV5$mainyyFZ + 48 63 Finolo (iOS) dev 0x0000000100dc2e34 main + 20 64 libdyld.dylib 0x00007fff2025a3e9 start + 1 65 ??? 0x0000000000000008 0x0 + 8!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose2021-02-26 22:44:24.193239+0300 Finolo (iOS) dev[20176:5047106] /Users/alexo/Library/Developer/Xcode/DerivedData/Finolo-fxxsonxfotowojeefzkypemqblky/SourcePackages/checkouts/realm-core/src/realm/alloc.hpp:585: [realm-core-10.5.3] Invalid ref translation entry [140452527621912, 78187493520] 0 Finolo (iOS) dev 0x0000000101a9028f _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 31 1 Finolo (iOS) dev 0x0000000101a90523 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 243 2 Finolo (iOS) dev 0x0000000100f93121 _ZN5realm4util9terminateIJylEEEvPKcS3_lDpT_ + 145 3 Finolo (iOS) dev 0x0000000101697d88 _ZNK5realm9Allocator18translate_criticalEPNS0_14RefTranslationEm + 328 4 Finolo (iOS) dev 0x000000010168e3f0 _ZNK5realm9Allocator9translateEm + 96 5 Finolo (iOS) dev 0x000000010185000c _ZNK5realm3Obj4_getINS_10StringDataEEET_NS_6ColKey3IdxE + 508 6 Finolo (iOS) dev 0x000000010184fdfa _ZNK5realm3Obj3getINS_10StringDataEEET_NS_6ColKeyE + 170 7 Finolo (iOS) dev 0x0000000100f8e6f0 _ZN12_GLOBAL__N_18getBoxedIN5realm10StringDataEEEP11objc_objectP13RLMObjectBasem + 112 8 Finolo (iOS) dev 0x0000000100f8e677 ___ZN12_GLOBAL__N_115makeBoxedGetterIN5realm10StringDataEEEP11objc_objectm_block_invoke + 39 9 Finolo (iOS) dev 0x0000000100ce74ca $s6Finolo7AccountC3_idSSvpACTK + 74 10 libswiftCore.dylib 0x00007fff2fd7d25a $ss19RawKeyPathComponentV16_projectReadOnly_2to10endingWithAB16ProjectionResultOy_q_q0_Gx_q_mq0_mtr1_lF + 538 11 libswiftCore.dylib 0x00007fff2fd7ced4 $ss7KeyPathC16_projectReadOnly4fromq_x_tFq_s0aB6BufferVXEfU_0C0L_yq_Sgqd__r0__lF8project2L_yAHqd0__mr0___lF + 164 12 libswiftCore.dylib 0x00007fff2fd7cc89 $ss7KeyPathC16_projectReadOnly4fromq_x_tFq_s0aB6BufferVXEfU_ + 505 13 libswiftCore.dylib 0x00007fff2fd80321 swift_getAtKeyPath + 161 14 SwiftUI 0x00007fff5781ab51 $s7SwiftUI7ForEachV11IDGeneratorO6makeID4data5index6offsetq_x_5IndexQzSitF + 353 15 SwiftUI 0x00007fff5781cbc1 $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC4item2at6offsetAD4ItemCyxq_q0__G5IndexQz_SitF + 417 16 SwiftUI 0x00007fff5781dd8b $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC03forD4Item4from5style2doSbSiz_AA23_ViewList_IteratorStyleVSbSiz_AjD0O0Cyxq_q0__GtXEtF + 1131 17 SwiftUI 0x00007fff5781d818 $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC9traitKeysAA09ViewTraitO0VSgvg + 56 18 SwiftUI 0x00007fff5782228f $s7SwiftUI11ForEachList33_00713678F075B914F7FE0E74B0A90E85LLV9traitKeysAA09ViewTraitO0VSgvg + 15 19 SwiftUI 0x00007fff5782273a $s7SwiftUI11ForEachList33_00713678F075B914F7FE0E74B0A90E85LLVyxq_q0_GAA04ViewE0A2aFP9traitKeysAA0n5TraitP0VSgvgTW + 42 20 SwiftUI 0x00007fff5764daea $s7SwiftUI11AnyViewList33_A96961F3546506F21D8995C6092F15B5LLV07WrappedE0V9traitKeysAA0d5TraitO0VSgvg + 42 21 SwiftUI 0x00007fff5781d8b8 $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC9traitKeysAA09ViewTraitO0VSgvgSbSiz_AA01_P18List_IteratorStyleVAD4ItemCyxq_q0__GtXEfU_ + 136 22 SwiftUI 0x00007fff5781dda6 $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC03forD4Item4from5style2doSbSiz_AA23_ViewList_IteratorStyleVSbSiz_AjD0O0Cyxq_q0__GtXEtF + 1158 23 SwiftUI 0x00007fff5781d818 $s7SwiftUI12ForEachState33_00713678F075B914F7FE0E74B0A90E85LLC9traitKeysAA09ViewTraitO0VSgvg + 56 24 SwiftUI 0x00007fff5782228f $s7SwiftUI11ForEachList33_00713678F075B914F7FE0E74B0A90E85LLV9traitKeysAA09ViewTraitO0VSgvg + 15 25 SwiftUI 0x00007fff5782273a $s7SwiftUI11ForEachList33_00713678F075B914F7FE0E74B0A90E85LLVyxq_q0_GAA04ViewE0A2aFP9traitKeysAA0n5TraitP0VSgvgTW + 42 26 SwiftUI 0x00007fff57900500 $s7SwiftUI15_ViewList_GroupV9traitKeysAA0c5TraitG0VSgvg + 304 27 SwiftUI 0x00007fff579ac83d $s7SwiftUI8SectionsV4from17reifyEmptyHeaders10useFootersAcA22_VariadicView_ChildrenV_S2btcfC + 109 28 SwiftUI 0x00007fff574e8aa2 $s7SwiftUI20SystemListDataSourceV_5style12minRowHeight0h6HeaderJ0ACyxGAA22_VariadicView_ChildrenV_So07UITableM5StyleV12CoreGraphics7CGFloatVSgANtcfC + 114 29 SwiftUI 0x00007fff578be3c3 $s7SwiftUI25InsettableGroupedListBodyV0F0013_66E45C4729D0I18FEA1B1BE7BA175BEC8LLV4bodyQrvg + 643 30 SwiftUI 0x00007fff578be5b9 $s7SwiftUI25InsettableGroupedListBodyV0F0013_66E45C4729D0I18FEA1B1BE7BA175BEC8LLVyx_qd__GAA4ViewA2aHP4bodyADQzvgTW + 9 31 SwiftUI 0x00007fff5732b576 $s7SwiftUI16ViewBodyAccessorV06updateD02of7changedyx_SbtF0D0QzyXEfU_TA + 22 32 SwiftUI 0x00007fff57648d02 $s7SwiftUI12BodyAccessorPAAE03setC0yy0C0QzyXEFAFyXEfU_ + 34 33 SwiftUI 0x00007fff573252ab $s7SwiftUI16ViewBodyAccessorV06updateD02of7changedyx_SbtF + 1339 34 SwiftUI 0x00007fff5764913b $s7SwiftUI11DynamicBodyV11updateValueyyF + 347 35 SwiftUI 0x00007fff57344d8a $s14AttributeGraph0A0VyACyxGqd__c5ValueQyd__RszAA12StatefulRuleRd__lufcADSPyqd__GXEfU_ySv_So11AGAttributeatcyXEfU_ySv_AJtcqd__mcfu_ySv_AJtcfu0_TA + 26 36 AttributeGraph 0x00007fff4cd78723 _ZN2AG5Graph11UpdateStack6updateEv + 505 37 AttributeGraph 0x00007fff4cd78bb9 _ZN2AG5Graph16update_attributeENS_4data3ptrINS_4NodeEEEb + 335 38 AttributeGraph 0x00007fff4cd80b91 _ZN2AG8Subgraph6updateEj + 781 39 SwiftUI 0x00007fff5798559a $s7SwiftUI9GraphHostC14runTransactionyyF + 186 40 SwiftUI 0x00007fff57458cba $s7SwiftUI9ViewGraphC13updateOutputs2atyAA4TimeV_tF + 90 41 SwiftUI 0x00007fff578e58a9 $s7SwiftUI16ViewRendererHostPAAE6render8interval17updateDisplayListySd_SbtFyyXEfU_ + 1305 42 SwiftUI 0x00007fff578d8884 $s7SwiftUI16ViewRendererHostPAAE6render8interval17updateDisplayListySd_SbtF + 340 43 SwiftUI 0x00007fff57a55491 $s7SwiftUI14_UIHostingViewC14layoutSubviewsyyF + 241 44 SwiftUI 0x00007fff57a554b5 $s7SwiftUI14_UIHostingViewC14layoutSubviewsyyFTo + 21 45 UIKitCore 0x00007fff24bf8504 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2924 46 QuartzCore 0x00007fff27b1bc2b -[CALayer layoutSublayers] + 258 47 QuartzCore 0x00007fff27b2219d _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 575 48 QuartzCore 0x00007fff27b2df3f _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 65 49 QuartzCore 0x00007fff27a6d44c _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 496 50 QuartzCore 0x00007fff27aa4233 _ZN2CA11Transaction6commitEv + 783 51 UIKitCore 0x00007fff246c72fb _afterCACommitHandler + 164 52 CoreFoundation 0x00007fff2038f1f8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 53 CoreFoundation 0x00007fff20389a77 __CFRunLoopDoObservers + 547 54 CoreFoundation 0x00007fff2038a01a __CFRunLoopRun + 1113 55 CoreFoundation 0x00007fff203896d6 CFRunLoopRunSpecific + 567 56 GraphicsServices 0x00007fff2c257db3 GSEventRunModal + 139 57 UIKitCore 0x00007fff24696cf7 -[UIApplication _run] + 912 58 UIKitCore 0x00007fff2469bba8 UIApplicationMain + 101 59 SwiftUI 0x00007fff5791abc7 $s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgGXEfU_ + 119 60 SwiftUI 0x00007fff5791ab3f $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 143 61 SwiftUI 0x00007fff5745212d $s7SwiftUI3AppPAAE4mainyyFZ + 61 62 Finolo (iOS) dev 0x0000000100dc2da0 $s6Finolo0A3AppV5$mainyyFZ + 48 63 Finolo (iOS) dev 0x0000000100dc2e34 main + 20 64 libdyld.dylib 0x00007fff2025a3e9 start + 1 65 ??? 0x0000000000000008 0x0 + 8!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose CoreSimulator 732.18.6 - Device: iPhone 12 (BD9F552B-EF19-4317-9F9B-B5BE4B1E4686) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone 12 (lldb)
Steps & Code to Reproduce
Set realm configuration to my own view
AccountsView(user: user)
.environment(\.realmConfiguration, RealmApp.default.ownAccountsConfiguration!)
Inside the AccountsView
@ObservedResults(Account.self) var accounts // in body .sheet(isPresented: $showCreateCashAccount) { NavigationView { AddCashAccountView(onCreate: { account in // instantiated Account with some properties account._partition = "account=\(user._id)" $accounts.append(account) // **here is place where app was terminated** self.showCreateCashAccount.toggle() }) } }
Entity have been created.