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.

OS Version: iOS 16.2 (20C65)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: SEGV_NOOP at 0x0000000000000070
Crashed Thread: 0

Application Specific Information:
Exception 1, Code 1, Subcode 112 >
KERN_INVALID_ADDRESS at 0x70.

Thread 0 Crashed:
0   SwiftUI                         0x32fa25ce8         OUTLINED_FUNCTION_98
1   SwiftUI                         0x32fa25c80         OUTLINED_FUNCTION_98
2   SwiftUI                         0x330349744         OUTLINED_FUNCTION_8
3   SwiftUI                         0x330a65570         OUTLINED_FUNCTION_61
4   SwiftUI                         0x32fa25d98         OUTLINED_FUNCTION_98
5   SwiftUI                         0x330349744         OUTLINED_FUNCTION_8
6   SwiftUI                         0x330a65570         OUTLINED_FUNCTION_61
7   SwiftUI                         0x32fa25d98         OUTLINED_FUNCTION_98
8   SwiftUI                         0x330349744         OUTLINED_FUNCTION_8
9   SwiftUI                         0x330a65570         OUTLINED_FUNCTION_61
10  SwiftUI                         0x32fa25d98         OUTLINED_FUNCTION_98
11  SwiftUI                         0x330349744         OUTLINED_FUNCTION_8
12  SwiftUI                         0x330a65570         OUTLINED_FUNCTION_61
13  SwiftUI                         0x330972fcc         OUTLINED_FUNCTION_14
14  SwiftUI                         0x330971f94         OUTLINED_FUNCTION_14
15  SwiftUI                         0x3309744c0         OUTLINED_FUNCTION_14
16  SwiftUI                         0x330971d0c         OUTLINED_FUNCTION_14
17  SwiftUI                         0x330e59258         OUTLINED_FUNCTION_20
18  SwiftUI                         0x330e597b8         OUTLINED_FUNCTION_20
19  SwiftUI                         0x3304eb3b0         OUTLINED_FUNCTION_77
20  SwiftUI                         0x330a653d8         OUTLINED_FUNCTION_61
21  SwiftUI                         0x33067fbf0         OUTLINED_FUNCTION_16
22  SwiftUI                         0x33067fdf0         OUTLINED_FUNCTION_16
23  SwiftUI                         0x330349710         OUTLINED_FUNCTION_8
24  SwiftUI                         0x3303495e8         OUTLINED_FUNCTION_8
25  SwiftUI                         0x330a653d8         OUTLINED_FUNCTION_61
26  SwiftUI                         0x32fac6cb0         OUTLINED_FUNCTION_110
27  SwiftUI                         0x32f9f7c70         OUTLINED_FUNCTION_28
28  SwiftUI                         0x32f9eb520         OUTLINED_FUNCTION_15
29  SwiftUI                         0x32f9fa974         OUTLINED_FUNCTION_157
30  SwiftUI                         0x32fa9c068         OUTLINED_FUNCTION_450
31  SwiftUI                         0x3301919f0         OUTLINED_FUNCTION_2
32  SwiftUI                         0x32fa30d5c         OUTLINED_FUNCTION_764
33  libdispatch.dylib               0x3372904b0         _dispatch_call_block_and_release
34  libdispatch.dylib               0x337291fd8         _dispatch_client_callout
35  libdispatch.dylib               0x3372a07f0         _dispatch_main_queue_drain
36  libdispatch.dylib               0x3372a0440         _dispatch_main_queue_callback_4CF
37  CoreFoundation                  0x3286f66d4         __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
38  CoreFoundation                  0x3286d8038         __CFRunLoopRun
39  CoreFoundation                  0x3286dcebc         CFRunLoopRunSpecific
40  GraphicsServices                0x39c809364         GSEventRunModal
41  UIKitCore                       0x32cda7868         -[UIApplication _run]
42  UIKitCore                       0x32cda74cc         UIApplicationMain
43  OurAppName                      0x2044cc1e4         main (AppDelegate.swift:17)
44                         0x1c010a960         

Thread 0 Crashed:
0   SwiftUI                         0x32fa25ce8         OUTLINED_FUNCTION_98
1   SwiftUI                         0x32fa25c80         OUTLINED_FUNCTION_98
2   SwiftUI                         0x330349744         OUTLINED_FUNCTION_8
3   SwiftUI                         0x330a65570         OUTLINED_FUNCTION_61
4   SwiftUI                         0x32fa25d98         OUTLINED_FUNCTION_98
5   SwiftUI                         0x330349744         OUTLINED_FUNCTION_8
6   SwiftUI                         0x330a65570         OUTLINED_FUNCTION_61
7   SwiftUI                         0x32fa25d98         OUTLINED_FUNCTION_98
8   SwiftUI                         0x330349744         OUTLINED_FUNCTION_8
9   SwiftUI                         0x330a65570         OUTLINED_FUNCTION_61
10  SwiftUI                         0x32fa25d98         OUTLINED_FUNCTION_98
11  SwiftUI                         0x330349744         OUTLINED_FUNCTION_8
12  SwiftUI                         0x330a65570         OUTLINED_FUNCTION_61
13  SwiftUI                         0x330972fcc         OUTLINED_FUNCTION_14
14  SwiftUI                         0x330971f94         OUTLINED_FUNCTION_14
15  SwiftUI                         0x3309744c0         OUTLINED_FUNCTION_14
16  SwiftUI                         0x330971d0c         OUTLINED_FUNCTION_14
17  SwiftUI                         0x330e59258         OUTLINED_FUNCTION_20
18  SwiftUI                         0x330e597b8         OUTLINED_FUNCTION_20
19  SwiftUI                         0x3304eb3b0         OUTLINED_FUNCTION_77
20  SwiftUI                         0x330a653d8         OUTLINED_FUNCTION_61
21  SwiftUI                         0x33067fbf0         OUTLINED_FUNCTION_16
22  SwiftUI                         0x33067fdf0         OUTLINED_FUNCTION_16
23  SwiftUI                         0x330349710         OUTLINED_FUNCTION_8
24  SwiftUI                         0x3303495e8         OUTLINED_FUNCTION_8
25  SwiftUI                         0x330a653d8         OUTLINED_FUNCTION_61
26  SwiftUI                         0x32fac6cb0         OUTLINED_FUNCTION_110
27  SwiftUI                         0x32f9f7c70         OUTLINED_FUNCTION_28
28  SwiftUI                         0x32f9eb520         OUTLINED_FUNCTION_15
29  SwiftUI                         0x32f9fa974         OUTLINED_FUNCTION_157
30  SwiftUI                         0x32fa9c068         OUTLINED_FUNCTION_450
31  SwiftUI                         0x3301919f0         OUTLINED_FUNCTION_2
32  SwiftUI                         0x32fa30d5c         OUTLINED_FUNCTION_764
33  libdispatch.dylib               0x3372904b0         _dispatch_call_block_and_release
34  libdispatch.dylib               0x337291fd8         _dispatch_client_callout
35  libdispatch.dylib               0x3372a07f0         _dispatch_main_queue_drain
36  libdispatch.dylib               0x3372a0440         _dispatch_main_queue_callback_4CF
37  CoreFoundation                  0x3286f66d4         __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
38  CoreFoundation                  0x3286d8038         __CFRunLoopRun
39  CoreFoundation                  0x3286dcebc         CFRunLoopRunSpecific
40  GraphicsServices                0x39c809364         GSEventRunModal
41  UIKitCore                       0x32cda7868         -[UIApplication _run]
42  UIKitCore                       0x32cda74cc         UIApplicationMain
43  OurAppName                      0x2044cc1e4         main (AppDelegate.swift:17)
44                         0x1c010a960         

Thread 1 name: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib          0x3a3940aa8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3a3952fc0         mach_msg2_internal
2   libsystem_kernel.dylib          0x3a3953200         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3a3940fe8         mach_msg
4   CoreFoundation                  0x3286d6ad0         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x3286d7d14         __CFRunLoopRun
6   CoreFoundation                  0x3286dcebc         CFRunLoopRunSpecific
7   Foundation                      0x31cda80d0         -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
8   Foundation                      0x31cda7fb8         -[NSRunLoop(NSRunLoop) runUntilDate:]
9   UIKitCore                       0x32cedc728         -[UIEventFetcher threadMain]
10  Foundation                      0x31cdc15a4         __NSThread__start__
11  libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 2
0   libsystem_kernel.dylib          0x3a3940f68         __semwait_signal
1   libsystem_c.dylib               0x3373217d4         nanosleep
2   libsystem_c.dylib               0x337335ad4         sleep
3   Sentry                          0x11a2b2fa8         monitorCachedData (SentryCrashCachedData.c:145)
4   libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 3 name: SentryCrash Exception Handler (Secondary)
0   libsystem_kernel.dylib          0x3a3940aa8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3a3952fc0         mach_msg2_internal
2   libsystem_kernel.dylib          0x3a3953200         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3a3940fe8         mach_msg
4   Sentry                          0x11a2bf1a4         handleExceptions (SentryCrashMonitor_MachException.c:314)
5   libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 5 name: JavaScriptCore libpas scavenger
0   libsystem_kernel.dylib          0x3a394137c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3c4786068         _pthread_cond_wait
2   JavaScriptCore                  0x34f49a438         scavenger_thread_main
3   libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 6 name: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib          0x3a3940aa8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3a3952fc0         mach_msg2_internal
2   libsystem_kernel.dylib          0x3a3953200         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3a3940fe8         mach_msg
4   CoreFoundation                  0x3286d6ad0         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x3286d7d14         __CFRunLoopRun
6   CoreFoundation                  0x3286dcebc         CFRunLoopRunSpecific
7   CFNetwork                       0x32abdc074         _CFURLStorageSessionDisableCache
8   Foundation                      0x31cdc15a4         __NSThread__start__
9   libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 7 name: GAIThread
0   libsystem_kernel.dylib          0x3a3940aa8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3a3952fc0         mach_msg2_internal
2   libsystem_kernel.dylib          0x3a3953200         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3a3940fe8         mach_msg
4   CoreFoundation                  0x3286d6ad0         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x3286d7d14         __CFRunLoopRun
6   CoreFoundation                  0x3286dcebc         CFRunLoopRunSpecific
7   Foundation                      0x31cda80d0         -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
8   Foundation                      0x31cda7f64         -[NSRunLoop(NSRunLoop) run]
9   OurAppName                      0x210a98870         +[GAI threadMain:]
10  Foundation                      0x31cdc15a4         __NSThread__start__
11  libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 8
0   libsystem_kernel.dylib          0x3a3940fb0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3c477ee40         _pthread_wqthread

Thread 9
0   libsystem_kernel.dylib          0x3a3940fb0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3c477ee40         _pthread_wqthread

Thread 10 name: Heap Helper Thread
0   libsystem_kernel.dylib          0x3a394137c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3c4786068         _pthread_cond_wait
2   JavaScriptCore                  0x34f3f0658         WTF::ParkingLot::parkConditionallyImpl
3   JavaScriptCore                  0x34f3b1088         WTF::Condition::waitUntilUnchecked
4   JavaScriptCore                  0x34f3b1504         WTF::Detail::CallableWrapper::call
5   JavaScriptCore                  0x34f412e10         WTF::Thread::entryPoint
6   JavaScriptCore                  0x34f415098         WTF::wtfThreadEntryPoint
7   libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 11 name: Heap Helper Thread
0   libsystem_kernel.dylib          0x3a394137c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3c4786068         _pthread_cond_wait
2   JavaScriptCore                  0x34f3f0658         WTF::ParkingLot::parkConditionallyImpl
3   JavaScriptCore                  0x34f3b1088         WTF::Condition::waitUntilUnchecked
4   JavaScriptCore                  0x34f3b1504         WTF::Detail::CallableWrapper::call
5   JavaScriptCore                  0x34f412e10         WTF::Thread::entryPoint
6   JavaScriptCore                  0x34f415098         WTF::wtfThreadEntryPoint
7   libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 12 name: Heap Helper Thread
0   libsystem_kernel.dylib          0x3a394137c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3c4786068         _pthread_cond_wait
2   JavaScriptCore                  0x34f3f0658         WTF::ParkingLot::parkConditionallyImpl
3   JavaScriptCore                  0x34f3b1088         WTF::Condition::waitUntilUnchecked
4   JavaScriptCore                  0x34f3b1504         WTF::Detail::CallableWrapper::call
5   JavaScriptCore                  0x34f412e10         WTF::Thread::entryPoint
6   JavaScriptCore                  0x34f415098         WTF::wtfThreadEntryPoint
7   libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 13 name: Heap Helper Thread
0   libsystem_kernel.dylib          0x3a394137c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3c4786068         _pthread_cond_wait
2   JavaScriptCore                  0x34f3f0658         WTF::ParkingLot::parkConditionallyImpl
3   JavaScriptCore                  0x34f3b1088         WTF::Condition::waitUntilUnchecked
4   JavaScriptCore                  0x34f3b1504         WTF::Detail::CallableWrapper::call
5   JavaScriptCore                  0x34f412e10         WTF::Thread::entryPoint
6   JavaScriptCore                  0x34f415098         WTF::wtfThreadEntryPoint
7   libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 14 name: Heap Helper Thread
0   libsystem_kernel.dylib          0x3a394137c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3c4786068         _pthread_cond_wait
2   JavaScriptCore                  0x34f3f0658         WTF::ParkingLot::parkConditionallyImpl
3   JavaScriptCore                  0x34f3b1088         WTF::Condition::waitUntilUnchecked
4   JavaScriptCore                  0x34f3b1504         WTF::Detail::CallableWrapper::call
5   JavaScriptCore                  0x34f412e10         WTF::Thread::entryPoint
6   JavaScriptCore                  0x34f415098         WTF::wtfThreadEntryPoint
7   libsystem_pthread.dylib         0x3c477f6c8         _pthread_start

Thread 15
0   libsystem_kernel.dylib          0x3a3940fb0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3c477ee40         _pthread_wqthread

Thread 16
0   libsystem_kernel.dylib          0x3a3940fb0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3c477ee40         _pthread_wqthread

Thread 17
0   libsystem_pthread.dylib         0x3c477eb90         start_wqthread

Thread 18
0   libsystem_kernel.dylib          0x3a3940fb0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3c477ee40         _pthread_wqthread

Thread 19
0                          0x1c00fbf08         
1                          0x1c00f8848         
2                          0x1c00f7704         
3   libswiftCore.dylib              0x31c641c84         swift_conformsToProtocolMaybeInstantiateSuperclasses
4   libswiftCore.dylib              0x31c64172c         swift_conformsToProtocol
5   AttributeGraph                  0x36e68b80c         AG::LayoutDescriptor::Builder::visit_element
6   AttributeGraph                  0x36e68e830         AG::swift::metadata_visitor::visit_field
7   AttributeGraph                  0x36e68d0e4         AG::swift::metadata::visit
8   AttributeGraph                  0x36e68b8e0         AG::LayoutDescriptor::Builder::visit_element
9   AttributeGraph                  0x36e68e830         AG::swift::metadata_visitor::visit_field
10  AttributeGraph                  0x36e68d0e4         AG::swift::metadata::visit
11  AttributeGraph                  0x36e68b8e0         AG::LayoutDescriptor::Builder::visit_element
12  AttributeGraph                  0x36e68e830         AG::swift::metadata_visitor::visit_field
13  AttributeGraph                  0x36e68d0e4         AG::swift::metadata::visit
14  AttributeGraph                  0x36e68b8e0         AG::LayoutDescriptor::Builder::visit_element
15  AttributeGraph                  0x36e68e830         AG::swift::metadata_visitor::visit_field
16  AttributeGraph                  0x36e68d0e4         AG::swift::metadata::visit
17  AttributeGraph                  0x36e68b8e0         AG::LayoutDescriptor::Builder::visit_element
18  AttributeGraph                  0x36e68e830         AG::swift::metadata_visitor::visit_field
19  AttributeGraph                  0x36e68d0e4         AG::swift::metadata::visit
20  AttributeGraph                  0x36e68b8e0         AG::LayoutDescriptor::Builder::visit_element
21  AttributeGraph                  0x36e68e830         AG::swift::metadata_visitor::visit_field
22  AttributeGraph                  0x36e68d0e4         AG::swift::metadata::visit
23  AttributeGraph                  0x36e68b8e0         AG::LayoutDescriptor::Builder::visit_element
24  AttributeGraph                  0x36e68e830         AG::swift::metadata_visitor::visit_field
25  AttributeGraph                  0x36e68d0e4         AG::swift::metadata::visit
26  AttributeGraph                  0x36e68b8e0         AG::LayoutDescriptor::Builder::visit_element
27  AttributeGraph                  0x36e68e830         AG::swift::metadata_visitor::visit_field
28  AttributeGraph                  0x36e68d0e4         AG::swift::metadata::visit
29  AttributeGraph                  0x36e68b8e0         AG::LayoutDescriptor::Builder::visit_element
30  AttributeGraph                  0x36e68e830         AG::swift::metadata_visitor::visit_field
31  AttributeGraph                  0x36e68d0e4         AG::swift::metadata::visit
32  AttributeGraph                  0x36e68d558         AG::LayoutDescriptor::make_layout
33  AttributeGraph                  0x36e68e904         AG::(anonymous namespace)::LayoutCache::drain_queue
34  libdispatch.dylib               0x337291fd8         _dispatch_client_callout
35  libdispatch.dylib               0x3372a3b88         _dispatch_root_queue_drain
36  libdispatch.dylib               0x3372a4280         _dispatch_worker_thread2
37  libsystem_pthread.dylib         0x3c477edb8         _pthread_wqthread

Thread 20
0   libsystem_kernel.dylib          0x3a3940fb0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3c477ee40         _pthread_wqthread

Thread 21
0   libsystem_kernel.dylib          0x3a3940fb0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3c477ee40         _pthread_wqthread

Thread 22
0   libsystem_kernel.dylib          0x3a3940fb0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3c477ee40         _pthread_wqthread

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000148ea0e40   x1: 0x0000000000000000   x2: 0x00000000000f67d0   x3: 0x0000000000000000
    x4: 0x00000001f92d2078   x5: 0x0000000000000001   x6: 0x0000000000000000   x7: 0x0000000000000001
    x8: 0x0000000000000000   x9: 0x0000000148ea0e40  x10: 0x0000000000000000  x11: 0x0000000200000000
   x12: 0x00000001521efe00  x13: 0x0000000000000010  x14: 0x0000000000000011  x15: 0x0000000063a03849
   x16: 0x0000000000000000  x17: 0x6ae1000148ea0e40  x18: 0x0000000000000000  x19: 0x000000000000000d
   x20: 0x00000001f7ec3000  x21: 0x0000000148ea0e40  x22: 0x0000000000000000  x23: 0x0000000000000001
   x24: 0x4078600000000000  x25: 0x0000000000000000  x26: 0x0000000148ea0c54  x27: 0x00000001f7e90000
   x28: 0x00000001f7e9b000   fp: 0x000000016b9396d0   lr: 0xe953fe01a5270c84   sp: 0x000000016b9395f0
    pc: 0x00000001a5270ce8 cpsr: 0x0000000080001000



EOF

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