Post

Replies

Boosts

Views

Activity

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: 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
4
0
2.3k
Oct ’20
NavigationView with Loading More in a List Crashes with Long Press only on iPad
I am creating a list that loads data when the user reaches the bottom of the list. I can crash the app when I load more elements and long-press an element within the list. The view is wrapped in a NavigationView and a NavigationLink. When the app crashes, you get EXCBADINSTRUCTION (code=EXCI386INVOP, subcode=0x0) with the thread 1 specialized saying "RandomAccessCollection&lt;&gt;.index(:offsetBy:))". Looking into the EXCBAD_INSTRUCTION I thought it could be force unwrapping, but I don't see anywhere in the code that could cause this issue. The issue only occurs on an iPad and happens randomly. With WWDC being yesterday, I thought this would have been fixed, so we downloaded the beta for Xcode 12, and this error still occurs. Code Snippet - https://developer.apple.com/forums/content/attachment/4d5b273c-c712-4a31-afdb-d4aaed5522c2
4
0
678
Jun ’20