coming from where?
Your second example shows that clearly:
0 SwiftUI … _OUTLINED_FUNCTION_66 + 16
1 SwiftUI … $s7SwiftUI4TextV7resolve4into2in4withyxz_AA17EnvironmentValuesVAC14ResolveOptionsVtAA08ResolvedC9C…
2 SwiftUI … $s7SwiftUI19UIHostingControllerC12promoteTitle2inyAA17EnvironmentValuesV_tFAA19_ConditionalContent…
3 SwiftUI … partial apply for specialized closure #1 in UINavigationController.updateRootHost<A>(root:environm…
4 SwiftUI … CustomGraphMutation.apply() + 28 (GraphHost.swift:696)
5 SwiftUI … AsyncTransaction.apply() + 192 (GraphHost.swift:727)
6 SwiftUI … GraphHost.flushTransactions() + 288 (GraphHost.swift:517)
7 SwiftUI … specialized closure #2 in UINavigationController.updateRootHost<A>(root:environment:transaction:) …
8 SwiftUI … thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
9 SwiftUI … static Update.end() + 600 (<compiler-generated>:0)
10 SwiftUI … static NSRunLoop.flushObservers() + 172 (StandardLibraryAdditions.swift:832)
11 SwiftUI … closure #1 in closure #1 in static NSRunLoop.addObserver(_:) + 16 (StandardLibraryAdditions.swift:…
I looks like this code is running as a run loop observer installed by SwiftUI (frame 16). It’s in the process of flushing transactions to the view hierarchy (frame 6) and something in that code has crashed by accessing bad memory.
Unfortunately I don’t know enough about SwiftUI’s internals to offer insight beyond that. If no one else chimes in, I recommend that you open a DTS tech support incident and talk to one of our SwiftUI experts.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"