We've got hundreds of crashes in our SwiftUI app which we think are "silent" crashes as there are no complaints from clients and yet - it happens on the main thread in the foreground so I'm not completely sure.
The annoying thing is that we have no idea by the stack trace what is causing this issue, I feel helpless as this is causing some very loud noise through management and honestly - myself who wants to have this noise cleared.
this particular crash is the highest impact (one of a few different weird crashes in our app without clear stack trace)
0 SwiftUI 0x895d90 OUTLINED_FUNCTION_2 + 836
1 SwiftUI 0x895da8 OUTLINED_FUNCTION_2 + 860
2 SwiftUI 0x1329880 OUTLINED_FUNCTION_2 + 424
3 SwiftUI 0x6806c OUTLINED_FUNCTION_441 + 584
4 SwiftUI 0x481b0 OUTLINED_FUNCTION_194 + 544
5 UIKitCore 0x1b7194 -[UIViewController removeChildViewController:notifyDidMove:] + 128
6 UIKitCore 0x77d6e8 -[UINavigationController removeChildViewController:notifyDidMove:] + 80
7 UIKitCore 0x205224 -[UIViewController dealloc] + 768
8 UIKitCore 0x1036c -[UINavigationController viewDidDisappear:] + 372
9 UIKitCore 0xd9c4 -[UIViewController _setViewAppearState:isAnimating:] + 1012
10 UIKitCore 0x46e61c -[UIViewController __viewDidDisappear:] + 136
11 UIKitCore 0x7ec024 __64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke_3 + 44
12 UIKitCore 0x1a3f24 -[UIViewController _executeAfterAppearanceBlock] + 84
13 UIKitCore 0x1a3e68 -[_UIAfterCACommitBlock run] + 72
14 UIKitCore 0x1a3d9c -[_UIAfterCACommitQueue flush] + 176
15 UIKitCore 0x1a3ca8 _runAfterCACommitDeferredBlocks + 496
16 UIKitCore 0x3f530 _cleanUpAfterCAFlushAndRunDeferredBlocks + 108
17 CoreFoundation 0x43564 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
18 CoreFoundation 0xabd9c __CFRunLoopDoBlocks + 368
19 CoreFoundation 0x7bbbc __CFRunLoopRun + 856
20 CoreFoundation 0x80ed4 CFRunLoopRunSpecific + 612
21 GraphicsServices 0x1368 GSEventRunModal + 164
22 UIKitCore 0x3a23d0 -[UIApplication _run] + 888
23 UIKitCore 0x3a2034 UIApplicationMain + 340
24 SwiftUI 0x1d1014 OUTLINED_FUNCTION_895 + 2420
25 SwiftUI 0x13216c block_copy_helper.1 + 388
26 SwiftUI 0x11b4bc OUTLINED_FUNCTION_901 + 2868
Number 27 will be our app's Main function and that it - no other trace of our apps code.
Firebase is saying this happens 100% on iOS 16 only and always on the foreground.
How can I get to the bottom of this? how can I debug such a crash?
Post
Replies
Boosts
Views
Activity
My app is crashing on iOS 15 when entering a screen and I have no idea from the logs what is going on. It all looks like internal SwiftUI stack trace. Would appreciate any help in the right direction:
0 AttributeGraph 0x422c AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 344
1 AttributeGraph 0x1e54 AGGraphGetValue + 240
2 SwiftUI 0x204dd0 HitTestBindingFilter.updateValue() + 164
3 SwiftUI 0x25c62c partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 24
4 AttributeGraph 0x3b18 AG::Graph::UpdateStack::update() + 524
5 AttributeGraph 0x3508 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 396
6 AttributeGraph 0x1c8c AG::Graph::value_ref(AG::AttributeID, AGSwiftMetadata const*, unsigned char&) + 192
7 AttributeGraph 0x1ea0 AGGraphGetValue + 316
8 SwiftUI 0xe2bc ViewGraph.responderNode.getter + 120
9 SwiftUI 0xe154 closure #1 in ViewRendererHost.responderNode.getter + 28
10 SwiftUI 0x15618 closure #1 in ViewRendererHost.updateViewGraph<A>(body:) + 108
11 SwiftUI 0xe0f8 ViewRendererHost.updateViewGraph<A>(body:) + 96
12 SwiftUI 0x151620 ViewRendererHost.responderNode.getter + 132
13 SwiftUI 0x1de298 FocusBridge.hostDidBecomeFirstResponder(in:) + 64
14 SwiftUI 0x2160cc FocusBridge.hostingControllerDidAppear() + 120
15 SwiftUI 0x33240 _UIHostingView.viewControllerDidAppear(transitionCoordinator:animated:) + 32
16 SwiftUI 0x39e70 UIHostingController.viewDidAppear(_:) + 100
17 SwiftUI 0x18550c @objc UIHostingController.viewDidAppear(_:) + 28
18 UIKitCore 0x1ab374 -[UIViewController _setViewAppearState:isAnimating:] + 892
19 UIKitCore 0x2972d8 -[UIViewController __viewDidAppear:] + 172
20 UIKitCore 0x6567d8 -[UINavigationController viewDidAppear:] + 192
21 UIKitCore 0x1ab374 -[UIViewController _setViewAppearState:isAnimating:] + 892
22 UIKitCore 0x99ee0c __52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke_2 + 196
23 UIKitCore 0x2cc534 __52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke + 228
24 CoreFoundation 0xd564 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
25 CoreFoundation 0x947f4 -[__NSSingleObjectArrayI enumerateObjectsWithOptions:usingBlock:] + 92
26 UIKitCore 0x1ab53c -[UIViewController _setViewAppearState:isAnimating:] + 1348
27 UIKitCore 0x2972d8 -[UIViewController __viewDidAppear:] + 172
28 UIKitCore 0x219a68 -[UIViewController _endAppearanceTransition:] + 252
29 UIKitCore 0x3b20e0 -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1500
30 UIKit 0x6e06c -[UINavigationControllerAccessibility navigationTransitionView:didEndTransition:fromView:toView:] + 112
31 UIKitCore 0x46b548 __49-[UINavigationController _startCustomTransition:]_block_invoke + 608
32 UIKitCore 0x23f458 -[_UIViewControllerTransitionContext completeTransition:] + 124
33 UIKitCore 0x9be66c __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke.162 + 836
34 UIKitCore 0x12aa4dc __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__ + 36
35 UIKitCore 0x2c2fac -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 728
36 UIKitCore 0x18ed0c -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 248
37 UIKitCore 0x1a350c -[UIViewAnimationState animationDidStop:finished:] + 244
38 UIKit 0xd305c -[UIViewAnimationStateAccessibility animationDidStop:finished:] + 212
39 XCTAutomationSupport 0x17ab8 XCTAnimationDidStop + 24
40 UIKitCore 0x1a3674 -[UIViewAnimationState animationDidStop:finished:] + 604
41 UIKit 0xd305c -[UIViewAnimationStateAccessibility animationDidStop:finished:] + 212
42 XCTAutomationSupport 0x17ab8 XCTAnimationDidStop + 24
43 QuartzCore 0xcbe50 CA::Layer::run_animation_callbacks(void*) + 280
44 libdispatch.dylib 0x3a30 _dispatch_client_callout + 20
45 libdispatch.dylib 0x11f48 _dispatch_main_queue_drain + 928
46 libdispatch.dylib 0x11b98 _dispatch_main_queue_callback_4CF + 44
47 CoreFoundation 0x51800 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
48 CoreFoundation 0xb704 __CFRunLoopRun + 2532
49 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
50 GraphicsServices 0x1374 GSEventRunModal + 164
51 UIKitCore 0x514b58 -[UIApplication _run] + 1100
52 UIKitCore 0x296098 UIApplicationMain + 364
53 SwiftUI 0x23ff24 closure #1 in KitRendererCommon(_:) + 164
54 SwiftUI 0x16de08 runApp<A>(_:) + 252
55 SwiftUI 0x14f0f4 static App.main() + 128
56 BlueVine_Mobile 0x471284 static BlueVineMobileApp.$main() + 14 (BlueVine_MobileApp.swift:14)
57 BlueVine_Mobile 0x473ea8 main + 12 (BlueVine_MobileApp.swift:12)
58 ??? 0x101f99da4 (Missing)