AttributeGraph Crash: AGGraphGetValue

In the current app we have in production we are getting back crash report that is associated with AttributeGraph. We are not able to recreate the crash. Is there any solution or steps we should take to try to find the cause of this issue?

Here is the crash thread:
Code Block language
Crashed: com.apple.main-thread
0 AttributeGraph                0x1b547128c AGGraphGetValue + 280
1 SwiftUI                       0x1955d4d64 AppearanceEffect.phase.getter + 28
2 SwiftUI                       0x1955d4de4 AppearanceEffect.updateValue() + 116
3 SwiftUI                       0x1955d5218 static AppearanceEffect.didReinsert(attribute:) + 32
4 SwiftUI                       0x1956bd958 closure #1 in AGSubgraphRef.didReinsert() + 44
5 AttributeGraph                0x1b54644a0 AG::Subgraph::apply(unsigned int, AG::ClosureFunction<void, unsigned int>) + 384
6 SwiftUI                       0x195b09f68 GraphHost.updateRemovedState() + 188
7 SwiftUI                       0x195bc0b3c _UIHostingView.updateRemovedState() + 104
8 SwiftUI                       0x195bc2f2c _UIHostingView.didMoveToWindow() + 256
9 SwiftUI                       0x195bc3324 @objc _UIHostingView.didMoveToWindow() + 24
10 UIKitCore                     0x191e651f0 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 2056
11 UIKitCore                     0x191e64c88 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 672
12 UIKitCore                     0x191e590d0 45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 136
13 UIKitCore                     0x191e58fbc -[UIView(Hierarchy) _postMovedFromSuperview:] + 748
14 UIKitCore                     0x191e67520 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 2132
15 UIKitCore                     0x1912e7fd4 53-[_UINavigationParallaxTransition animateTransition:]_block_invoke_2 + 1300
16 UIKitCore                     0x191e60d0c +[UIView(Animation) performWithoutAnimation:] + 96
17 UIKitCore                     0x1912e7a6c 53-[_UINavigationParallaxTransition animateTransition:]_block_invoke + 236
18 UIKitCore                     0x191e65f50 +[UIView _performBlockDelayingTriggeringResponderEvents:forScene:] + 244
19 UIKitCore                     0x1912e74e4 -[_UINavigationParallaxTransition animateTransition:] + 1012
20 UIKitCore                     0x1912d7b14 _UIViewControllerTransitioningRunCustomTransition_block_invoke_2 + 72
21 UIKitCore                     0x191404be4 +[UIInputResponderController _pinInputViewsForInputResponderController:onBehalfOfResponder:duringBlock:] + 104
22 UIKitCore                     0x1912d7a94 _UIViewControllerTransitioningRunCustomTransition_block_invoke.641 + 176
23 UIKitCore                     0x191e609e0 +[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:] + 172
24 UIKitCore                     0x1912d78fc _UIViewControllerTransitioningRunCustomTransition + 580
25 UIKitCore                     0x1911e1890 -[UINavigationController _startCustomTransition:] + 3188
26 UIKitCore                     0x1911f5474 -[UINavigationController _startDeferredTransitionIfNeeded:] + 700
27 UIKitCore                     0x1911f68a4 -[UINavigationController viewWillLayoutSubviews] + 164
28 UIKitCore                     0x1911d97ec -[UILayoutContainerView layoutSubviews] + 224
29 UIKitCore                     0x191e6d954 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2464
30 QuartzCore                    0x19236d9e8 -[CALayer layoutSublayers] + 288
31 QuartzCore                    0x192373eb4 CA::Layer::layout_if_needed(CA::Transaction*) + 520
32 QuartzCore                    0x19237f1d0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 140
33 QuartzCore                    0x1922cb500 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 416
34 QuartzCore                    0x1922f5698 CA::Transaction::commit() + 728
35 QuartzCore                    0x1922f6948 CA::Transaction::observer_callback(CFRunLoopObserver*, unsigned long, void*) + 92
36 CoreFoundation                0x18f0a7ecc CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32
37 CoreFoundation                0x18f0a25b0 CFRunLoopDoObservers + 604
38 CoreFoundation                0x18f0a2af8 __CFRunLoopRun + 960
39 CoreFoundation                0x18f0a2200 CFRunLoopRunSpecific + 572
40 GraphicsServices              0x1a519d598 GSEventRunModal + 160
41 UIKitCore                     0x191968004 -[UIApplication _run] + 1052


Same here, but no solution yet from apple. Crash logs doesn't' say much about the root cause..
Same here... it's pretty annoying to be blind and not able to fix the issue.
The issue seems occurring only with iOS 14.X. No crashes on iOS 13.X
We just had a crash with AttributeGraph, but was not on the main thread. Nothing to go on.

Crashed: com.apple.root.utility-qos

0 AttributeGraph 0x1c7d0c7b0 std::1::hashiterator<std::1::hashnode<std::1::hashvaluetype<unsigned long, unsigned char const*>, void*>*> std::1::hashtable<std::1::hashvaluetype<unsigned long, unsigned char const*>, std::1::unorderedmaphasher<unsigned long, std::1::hashvaluetype<unsigned long, unsigned char const*>, std::1::hash<unsigned long>, true>, std::1::unorderedmapequal<unsigned long, std::1::hashvaluetype<unsigned long, unsigned char const*>, std::1::equalto<unsigned long>, true>, std::1::allocator<std::1::_hashvaluetype<unsigned long, unsigned char const*> > >::find<unsigned long>(unsigned long const&) + 72

1 AttributeGraph 0x1c7d0c6d4 AG::(anonymous namespace)::LayoutCache::drain
queue(void*) + 120
2 libdispatch.dylib 0x1a14aa280 dispatchclientcallout + 16
3 libdispatch.dylib 0x1a145c254
dispatchrootqueuedrain + 688
4 libdispatch.dylib 0x1a145c8e4
dispatchworkerthread2 + 124
5 libsystempthread.dylib 0x1e75df568 pthreadwqthread + 212
6 libsystem
pthread.dylib 0x1e75e2874 start_wqthread + 8
Do you happen to use PageTabViewStyle with TabView?

I have a similar issue and I’m starting to think the new PageTabViewStyle might be the culprit.
AttributeGraph Crash: AGGraphGetValue
 
 
Q