Swiftui “诊断”;线程1:EXC_断点(代码=1,子代码=0x195eff214)";错误

Swiftui “诊断”;线程1:EXC_断点(代码=1,子代码=0x195eff214)";错误,swiftui,Swiftui,这个错误时断时续地发生,但在我的SwiftUI应用程序中一直如此,但令人沮丧的是,只有在它运行了很长一段时间之后。有人能建议我如何诊断吗?我只是被带到我的SwiftUI应用程序的@main属性,所以它看起来不是用户代码。这可能是一个SwiftUI错误吗?如果是的话,有没有关于我如何找到解决方法的建议 #0 0x0000000195eff214 in specialized Array._checkSubscript(_:wasNativeTypeChecked:) () #1 0x00000

这个错误时断时续地发生,但在我的SwiftUI应用程序中一直如此,但令人沮丧的是,只有在它运行了很长一段时间之后。有人能建议我如何诊断吗?我只是被带到我的SwiftUI应用程序的@main属性,所以它看起来不是用户代码。这可能是一个SwiftUI错误吗?如果是的话,有没有关于我如何找到解决方法的建议

#0  0x0000000195eff214 in specialized Array._checkSubscript(_:wasNativeTypeChecked:) ()
#1  0x000000019637c7ec in SharedFrame.updateValue() ()
#2  0x00000001960c6a9c in partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<τ_0_0>(_:) ()
#3  0x00000001b66e414c in AG::Graph::UpdateStack::update() ()
#4  0x00000001b66e455c in AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool) ()
#5  0x00000001b66ed0c4 in AG::Subgraph::update(unsigned int) ()
#6  0x00000001966cfe80 in GraphHost.runTransaction() ()
#7  0x00000001962443b8 in ViewGraph.updateOutputs(at:) ()
#8  0x0000000196639444 in closure #1 in ViewRendererHost.render(interval:updateDisplayList:) ()
#9  0x000000019663178c in ViewRendererHost.render(interval:updateDisplayList:) ()
#10 0x000000019678d064 in _UIHostingView.layoutSubviews() ()
#11 0x000000019678d090 in @objc _UIHostingView.layoutSubviews() ()
#12 0x0000000192a1b288 in -[UIView(CALayerDelegate) layoutSublayersOfLayer:] ()
#13 0x0000000192f1eb2c in -[CALayer layoutSublayers] ()
#14 0x0000000192f24ff8 in CA::Layer::layout_if_needed(CA::Transaction*) ()
#15 0x0000000192f30314 in CA::Layer::layout_and_display_if_needed(CA::Transaction*) ()
#16 0x0000000192e7c570 in CA::Context::commit_transaction(CA::Transaction*, double, double*) ()
#17 0x0000000192ea66f8 in CA::Transaction::commit() ()
#18 0x000000019250f0d0 in _UIApplicationFlushRunLoopCATransactionIfTooLate ()
#19 0x00000001925b5ea8 in __processEventQueue ()
#20 0x00000001925acee0 in __eventFetcherSourceCallback ()
#21 0x000000018fc2dbe0 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#22 0x000000018fc2dae0 in __CFRunLoopDoSource0 ()
#23 0x000000018fc2ce28 in __CFRunLoopDoSources0 ()
#24 0x000000018fc273d0 in __CFRunLoopRun ()
#25 0x000000018fc26b90 in CFRunLoopRunSpecific ()
#26 0x00000001a5f49598 in GSEventRunModal ()
#27 0x0000000192510638 in -[UIApplication _run] ()
#28 0x0000000192515bb8 in UIApplicationMain ()
#29 0x000000019666c564 in closure #1 in KitRendererCommon(_:) ()
#30 0x000000019666c4f4 in runApp<τ_0_0>(_:) ()
#31 0x000000019623e38c in static App.main() ()
#32 0x0000000102a9feb8 in static XXXXApp.$main() at 
#0 0x0000000195eff214在专用数组中。_checkSubscript(uu3;:wasNativeTypeChecked:)()
#SharedFrame.updateValue()中的1 0x000000019637c7ec()
#2 0x00000001960c6a9c部分应用于专用隐式闭包#2在隐式闭包中#1在闭包中#1在闭包中#1在属性.init(:)()
#AG::Graph::UpdateStack::update()中的3 0x00000001b66e414c
#AG::Graph::update_属性(AG::data::ptr,bool)()中的4 0x00000001b66e455c
#AG::Subgraph::update(unsigned int)()中的5 0x00000001b66ed0c4
#GraphHost.runTransaction()中的6 0x00000001966cfe80()
#ViewGraph中的7 0x00000001962443b8。更新输出(位于:)()
#ViewRenderHost.render中的闭包#1中的8 0x0000000196639444(间隔:updateDisplayList:)()
#ViewRenderHost.render中的9 0x000000019663178c(间隔:updateDisplayList:)()
#10 0x000000019678d064在_UIHostingView.layoutSubviews()中()
#@objc_UIHostingView.layoutSubviews()中的11 0x000000019678d090()
#12 0x0000000192a1b288 in-[UIView(CALayerDelegate)布局层的子层:()
#13 0x0000000192f1eb2c英寸-[CALayer layoutSublayers]()
#如果需要,CA::Layer::layout中的14 0x0000000192f24ff8(CA::Transaction*)()
#15 0x0000000192f30314位于CA::Layer::layout_和_display_(如果需要)(CA::Transaction*)()
#CA::Context::commit_事务(CA::transaction*,double,double*)中的16 0x0000000192e7c570()
#CA::Transaction::commit()中的17 0x0000000192ea66f8()
#18 0x000000019250f0d0位于应用程序FlushRunLopCatTransactionIftoolate()中
#processEventQueue()中的19 0x00000001925b5ea8
#20 0x00000001925acee0在事件获取资源回调()中
#21 0x000000018fc2dbe0 in运行循环正在调用OUT执行函数
#22 0x000000018fc2dae0位于\uuuu CFRunLoopDoSource0()中
#23 0x000000018fc2ce28英寸\uuu CFRunLoopDoSources0()
#24 0x000000018fc273d0英寸CFRunLoopRun()
#CFRunLoopRunSpecific()中的25 0x000000018fc26b90
#GSEventRunModal()中的26 0x00000001a5f49598
#27 0x0000000192510638英寸-[UIApplication_run]()
#UIApplicationMain()中的28 0x0000000192515bb8
#29 0x000000019666c564在KitrenderCommon(35;:)中的闭包中#1(35;:)
#runApp中的30 0x000000019666c4f4(:)()
#静态App.main()中的31 0x000000019623e38c()
#静态XXXXApp中的32 0x0000000102a9feb8。$main()位于
AG::Graph
(参见第3行等)是SwiftUI的内部属性图,因此它调用了不存在的数组下标。它可能是SwiftUI内部的bug,也可能是SwiftUI无法检测到的状态变化的副产品(或者后者暴露了前者)。崩溃发生时,您使用的视图代码是什么?