SwiftUI/AttributeGraph crash

I'm getting this segfault stack trace from TestFlight. Any idea about how I should approach it?

Thread 0 Crashed:
0   SwiftUI                       	0x000000018dd18e14 specialized static Array<A>.== infix(_:_:) + 0 (<compiler-generated>:0)
1   SwiftUI                       	0x000000018e2ab404 static StrokeStyle.== infix(_:_:) + 100 (<compiler-generated>:0)
2   SwiftUI                       	0x000000018e2ab468 protocol witness for static Equatable.== infix(_:_:) in conformance StrokeStyle + 60 (<compiler-generated>:0)
3   AttributeGraph                	0x00000001b0e4feec AGDispatchEquatable + 24 (Misc.swift:160)
4   AttributeGraph                	0x00000001b0e4fd68 AG::LayoutDescriptor::Compare::operator()(unsigned char const*, unsigned char const*, unsigned char const*, unsigned long, unsigned int) + 1632 (ag-value.cc:579)
5   AttributeGraph                	0x00000001b0e4f674 AG::LayoutDescriptor::compare(unsigned char const*, unsigned char const*, unsigned char const*, unsigned long, unsigned int) + 96 (ag-value.cc:723)
6   AttributeGraph                	0x00000001b0e4efb0 AGGraphSetOutputValue + 268 (AGGraph.mm:784)
7   SwiftUI                       	0x000000018e8c1eb4 closure #1 in StatefulRule.value.setter + 72 (<compiler-generated>:0)
8   SwiftUI                       	0x000000018defc57c partial apply for closure #1 in StatefulRule.value.setter + 20 (<compiler-generated>:0)
9   libswiftCore.dylib            	0x0000000182a779e4 withUnsafePointer<A, B>(to:_:) + 28 (LifetimeManager.swift:128)
10  SwiftUI                       	0x000000018def9e84 closure #1 in closure #1 in UnwrapConditional.updateValue() + 360 (ConditionalMetadata.swift:286)
11  SwiftUI                       	0x000000018defc55c partial apply for closure #1 in closure #1 in UnwrapConditional.updateValue() + 36 (<compiler-generated>:0)
12  SwiftUI                       	0x000000018def8374 ConditionalTypeDescriptor.project(at:baseIndex:_:) + 192 (ConditionalMetadata.swift:203)
13  SwiftUI                       	0x000000018def8458 ConditionalTypeDescriptor.project(at:baseIndex:_:) + 420 (ConditionalMetadata.swift:212)
14  SwiftUI                       	0x000000018def9cf0 closure #1 in UnwrapConditional.updateValue() + 136 (ConditionalMetadata.swift:283)
15  SwiftUI                       	0x000000018defc530 partial apply for closure #1 in UnwrapConditional.updateValue() + 28 (<compiler-generated>:0)
16  libswiftCore.dylib            	0x0000000182a779e4 withUnsafePointer<A, B>(to:_:) + 28 (LifetimeManager.swift:128)
17  SwiftUI                       	0x000000018def9c1c UnwrapConditional.updateValue() + 260 (ConditionalMetadata.swift:282)
18  SwiftUI                       	0x000000018e3b3de8 partial apply for implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 32 (<compiler-generated>:0)
19  AttributeGraph                	0x00000001b0e52854 AG::Graph::UpdateStack::update() + 512 (ag-graph-update.cc:578)
20  AttributeGraph                	0x00000001b0e49504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424 (ag-graph-update.cc:719)
 (UIApplication.m:3679)
....
137 UIKitCore                     	0x000000018b841cf0 UIApplicationMain + 340 (UIApplication.m:5266)
138 SwiftUI                       	0x000000018e1f2ff8 closure #1 in KitRendererCommon(_:) + 176 (UIKitApp.swift:37)
139 SwiftUI                       	0x000000018e1f2e3c runApp<A>(_:) + 152 (UIKitApp.swift:14)
140 SwiftUI                       	0x000000018de6fda0 static App.main() + 128 (App.swift:114)
141 Sculptura                     	0x0000000100b61f50 static SculpturaApp.$main() + 24 (SculpturaApp.swift:17)
142 Sculptura                     	0x0000000100b61f50 main + 36 (SculpturaApp.swift:0)
143 dyld                          	0x00000001abaafd44 start + 2104 (dyldMain.cpp:1269)

High up in the trace there's some ZStack layout stuff. Maybe just trying to simplify my view hierarchy?

(I wonder if this would be more stable if AttributeGraph wasn't written in C++)

Replies

Hi Audulus,

There isn't much to go off of from this snippet of the crash report. Could you please attach the crashing project and related symbolicated crash logs to a new submission in Feedback Assistant? Once submitted, please respond here with the Feedback ID so we can determine the most appropriate next step.

Cheers,

Paris

  • Feedback is FB12984720. Thanks!

  • Thank you! I've escalated to the SwiftUI engineering team to take a look. Please continue to use Feedback Assistant to receive status updates.

  • This crash has now broken my released app.

Add a Comment