Unknown Crash - OUTLINED_FUNCTION_2

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?

Hi, We are encountering the same problem. Has anyone found the reason?

Hello, We are encountering the same problem. Has anyone found the reason?

Does crash occur immediately at launch ? If so could you show the code of the main ?

Can you reproduce the crash ?

If so, have a look here: https://stackoverflow.com/questions/75926089/swiftui-outlined-function-5-exc-breakpoint-crash

I couldn't reproduce it anyway i tried

Same here. We have similar crashes and are reported only in Pad/iOS 16.

Yah, same here on a new release of my app. I did add a new screen that has a list but waits for the user's location before adding another list that sorts based on location. I can't reproduce the issue. No reports about it. This stack trace tells me zilch.

Crashed: com.apple.main-thread
0  SwiftUI                        0xc6116c OUTLINED_FUNCTION_4 + 7004
1  SwiftUI                        0xc5fb4c OUTLINED_FUNCTION_4 + 1340
2  SwiftUI                        0x1a3254 OUTLINED_FUNCTION_1 + 8876
3  SwiftUI                        0x72e1f8 OUTLINED_FUNCTION_4 + 15576
4  SwiftUI                        0x72c1cc OUTLINED_FUNCTION_4 + 7340
5  SwiftUI                        0x72c31c OUTLINED_FUNCTION_4 + 7676
6  SwiftUI                        0x1a1d24 OUTLINED_FUNCTION_1 + 3452
7  SwiftUI                        0x1a1aac OUTLINED_FUNCTION_1 + 2820
8  SwiftUI                        0x1a2d1c OUTLINED_FUNCTION_1 + 7540
9  SwiftUI                        0xde5554 OUTLINED_FUNCTION_31 + 4520
10 SwiftUI                        0x8562a8 OUTLINED_FUNCTION_0 + 9204
11 SwiftUI                        0x8559b4 OUTLINED_FUNCTION_0 + 6912
12 SwiftUI                        0x191fbe8 OUTLINED_FUNCTION_0 + 13676
13 SwiftUI                        0x191fc28 OUTLINED_FUNCTION_0 + 13740
14 libswiftCore.dylib             0x4c100 withUnsafeMutablePointer<A, B>(to:_:) + 28
15 SwiftUI                        0x191fa7c OUTLINED_FUNCTION_0 + 13312
16 SwiftUI                        0x191f6a4 OUTLINED_FUNCTION_0 + 12328
17 SwiftUI                        0x1327b0c __swift_allocate_boxed_opaque_existential_1Tm + 268
18 AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
19 AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
20 AttributeGraph                 0xcf58 AG::Subgraph::update(unsigned int) + 848
21 SwiftUI                        0xe0627c OUTLINED_FUNCTION_15 + 26384
22 SwiftUI                        0x187f3d8 OUTLINED_FUNCTION_2 + 20040
23 SwiftUI                        0x187cd18 OUTLINED_FUNCTION_2 + 10120
24 SwiftUI                        0x7a1900 OUTLINED_FUNCTION_101 + 17408
25 SwiftUI                        0x18ea690 OUTLINED_FUNCTION_9 + 35076
26 libdispatch.dylib              0x26a8 _dispatch_call_block_and_release + 32
27 libdispatch.dylib              0x4300 _dispatch_client_callout + 20
28 libdispatch.dylib              0x12998 _dispatch_main_queue_drain + 984
29 libdispatch.dylib              0x125b0 _dispatch_main_queue_callback_4CF + 44
30 CoreFoundation                 0x3720c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
31 CoreFoundation                 0x33f18 __CFRunLoopRun + 1996
32 CoreFoundation                 0x33668 CFRunLoopRunSpecific + 608
33 GraphicsServices               0x35ec GSEventRunModal + 164
34 UIKitCore                      0x22c2b4 -[UIApplication _run] + 888
35 UIKitCore                      0x22b8f0 UIApplicationMain + 340
36 SwiftUI                        0x11620fc OUTLINED_FUNCTION_31 + 604
37 SwiftUI                        0x1161f40 OUTLINED_FUNCTION_31 + 160
38 SwiftUI                        0xdd3868 OUTLINED_FUNCTION_26 + 2196
39 Checklist                      0x867d4 main + 4340606932 (ChecklistApp.swift:4340606932)
40 ???                            0x1b20fadcc (Missing)

This stack trace tells me zilch.

Please post a complete crash report. See Posting a Crash Report for advice on how to do that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

@eskimo here's a crash report, app name redacted with "OurAppName". Sorry this is only the Sentry crash report, so some information may be missing that would be included with an apple report. Maybe somebody else in this thread or OP could provide a full apple crash report? I don't have access to them.

We're experiencing the same thing, a big amount of these types of crashes and we don't know where we're even supposed to start with them.

The tools available for us to debug SwiftUI issues are astonishingly bad. Obfuscating stack traces like this makes it even worse. I really hope more is coming in the pipeline for these issues. Or swiftUI adoption will continue to be slow.

@DTS Engineer

We have similar issues any insight about that crash or how to prevent it. In our case we have the following stack trace:

What the OUTLINED_FUNCTION means ? how it can be prevented?

0  libswiftCore.dylib             0x37445c __swift_allocate_boxed_opaque_existential_0 + 28
1  libswiftCore.dylib             0x1797d4 swift_getAtKeyPath + 100
2  SwiftUI                        0x5a6520 OUTLINED_FUNCTION_23 + 532
3  SwiftUI                        0x244114 OUTLINED_FUNCTION_651 + 88
4  SwiftUI                        0x17c394 __swift_memcpy25_8 + 2024
5  SwiftUI                        0xce172c OUTLINED_FUNCTION_12 + 1084
6  SwiftUI                        0xce19c8 OUTLINED_FUNCTION_12 + 1752
7  SwiftUI                        0x7a7538 OUTLINED_FUNCTION_28 + 3104
8  SwiftUI                        0x15dc268 OUTLINED_FUNCTION_39 + 6700
9  SwiftUI                        0x15de2ac OUTLINED_FUNCTION_39 + 14960
10 SwiftUI                        0x15de308 OUTLINED_FUNCTION_39 + 15052
11 Pendo                          0x13d5bc UIView.extensionMethod() + 5364
12 Pendo                          0x13d620 @objc UIView.extensionMethod() + 5464

Has anyone on this thread explored the symbolication on the beta seeds of our upcoming releases (macOS 15 beta and its cohort, except for watchOS). I believe that SwiftUI symbolication has improved there [1], but I haven’t yet had a chance to play with it myself.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] We call this out in the Xcode 16 Beta 4 Release Notes. Search for 127698015.

Unknown Crash - OUTLINED_FUNCTION_2
 
 
Q