Skip to content

Instantly share code, notes, and snippets.

@mbrandonw
Last active April 6, 2023 19:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbrandonw/8ea305e8b7ec169b3e04990e749a1236 to your computer and use it in GitHub Desktop.
Save mbrandonw/8ea305e8b7ec169b3e04990e749a1236 to your computer and use it in GitHub Desktop.
Bug reports related to Swift's existential types.

Unbound memory growth when using existential with primary associated type in SwiftUI view

FB12101395, apple/swift issue #64974

Run the following code in a simulator, tap the “Go” button, and notice that the application freezes:

import SwiftUI

struct ContentView: View {
  var body: some View {
    NavigationStack {
      NavigationLink("Go") {
        DemoView()
      }
    }
  }
}

protocol Foo<A> {
  associatedtype A
}
struct Bar: Foo {
  typealias A = Int
}

struct DemoView: View {
  let foo: any Foo<Int> = Bar()
  var body: some View {
    EmptyView()
  }
}

If you open the Debug Navigator in Xcode you will notice that the memory keeps growing.

This happens in Xcode 14.2+Swift 5.7 as well as Xcode 14.3+Swift 5.8.

Leaks instrument crashes when using existentials

FB12101499, apple/swift issue #64978

I have a simple project attached to this feedback that shows an application which crashes the Leaks instrument when run:

  • Unzip the project
  • Open the project in Xcode
  • Run cmd+I to build for instruments
  • Select the Leaks instrument
  • Start the instrument

Notice that the instrument immediately crashes. Here is a sample crash log:

Click to expand
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: BC60B6A5-1C0C-4208-9671-49574186C541
CrashReporter Key:   526438CC-5F9C-689D-DA9F-472272723A4A
Hardware Model:      MacBookPro18,1
Process:             existential-profile-bug [9646]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/E6C5A6B5-C163-464E-A6C5-75A0876710F6/data/Containers/Bundle/Application/1D4FC916-1EB7-45AC-AAAF-A91D5F47A6F1/existential-profile-bug.app/existential-profile-bug
Identifier:          co.pointfree.existential-profile-bug
Version:             1.0 (1)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd_sim [1443]
Coalition:           com.apple.CoreSimulator.SimDevice.E6C5A6B5-C163-464E-A6C5-75A0876710F6 [1334]
Responsible Process: SimulatorTrampoline [1074]

Date/Time:           2023-04-06 11:18:38.3054 -0700
Launch Time:         2023-04-06 11:18:37.6414 -0700
OS Version:          macOS 13.1 (22C65)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread:  0

Kernel Triage:
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib                 0x1b17e40cc __pthread_kill + 8
1   libsystem_pthread.dylib                0x1b18381e8 pthread_kill + 256
2   libsystem_c.dylib                      0x18012873c abort + 124
3   libswiftCore.dylib                     0x18bffdf90 demangleFatal(unsigned int, char const*, char*) + 128
4   libswiftCore.dylib                     0x18bffdf10 swift::Demangle::__runtime::fatal(unsigned int, char const*, ...) + 32
5   libswiftCore.dylib                     0x18bfc58b4 swift::Demangle::__runtime::failAssert(char const*, unsigned int, swift::Demangle::__runtime::Node*, char const*) + 104
6   libswiftCore.dylib                     0x18bfc5f2c swift::Demangle::__runtime::Node::addChild(swift::Demangle::__runtime::Node*, swift::Demangle::__runtime::NodeFactory&) + 584
7   libswiftCore.dylib                     0x18bf9aaf4 copyGenericClassObjCName(swift::TargetClassMetadata<swift::InProcess, swift::TargetAnyClassMetadataObjCInterop<swift::InProcess> >*) + 228
8   libobjc.A.dylib                        0x18003a4bc objc_class::installMangledNameForLazilyNamedClass() + 100
9   libobjc.A.dylib                        0x1800401f8 objc_class::demangledName(bool) + 72
10  liboainject.dylib                      0x104e4ead4 0x104e48000 + 27348
11  libobjc.A.dylib                        0x180033f5c initializeNonMetaClass + 676
12  libobjc.A.dylib                        0x180035700 initializeAndMaybeRelock(objc_class*, objc_object*, locker_mixin<lockdebug::lock_mixin<objc_lock_base_t> >&, bool) + 192
13  libobjc.A.dylib                        0x1800430cc lookUpImpOrForward + 612
14  libobjc.A.dylib                        0x18002f2e0 _objc_msgSend_uncached + 64
15  libswiftCore.dylib                     0x18bfc368c swift_instantiateObjCClass + 24
16  libswiftCore.dylib                     0x18bf91ef8 _swift_initClassMetadataImpl(swift::TargetClassMetadata<swift::InProcess, swift::TargetAnyClassMetadataObjCInterop<swift::InProcess> >*, swift::ClassLayoutFlags, unsigned long, swift::TypeLayout const* const*, unsigned long*, bool) + 2944
17  libswiftCore.dylib                     0x18bf623b4 type metadata completion function for WritableKeyPath + 28
18  libswiftCore.dylib                     0x18bf8e2b0 _swift_getGenericMetadata(swift::MetadataRequest, void const* const*, swift::TargetTypeContextDescriptor<swift::InProcess> const*) + 1688
19  libswiftCore.dylib                     0x18bf707b8 __swift_instantiateGenericMetadata + 28
20  libswiftCore.dylib                     0x18bdbfacc _swift_getKeyPath(pattern:arguments:) + 128
21  existential-profile-bug                0x104bfb514 Model.init() + 12 (ContentView.swift:11) [inlined]
22  existential-profile-bug                0x104bfb514 Model.__allocating_init() + 32 (ContentView.swift:10) [inlined]
23  existential-profile-bug                0x104bfb514 ContentView.init() + 32 (ContentView.swift:15) [inlined]
24  existential-profile-bug                0x104bfb514 closure #1 in existential_profile_bugApp.body.getter + 48 (existential_profile_bugApp.swift:14)
25  SwiftUI                                0x10bd81b6c 0x10b184000 + 12573548
26  existential-profile-bug                0x104bfb5d4 existential_profile_bugApp.body.getter + 92 (existential_profile_bugApp.swift:13) [inlined]
27  existential-profile-bug                0x104bfb5d4 protocol witness for App.body.getter in conformance existential_profile_bugApp + 116 (<compiler-generated>:12)
28  SwiftUI                                0x10b5a10e8 0x10b184000 + 4313320
29  SwiftUI                                0x10bd653a0 0x10b184000 + 12456864
30  SwiftUI                                0x10b5a0860 0x10b184000 + 4311136
31  SwiftUI                                0x10bd65568 0x10b184000 + 12457320
32  SwiftUI                                0x10b507a00 0x10b184000 + 3684864
33  AttributeGraph                         0x19d23fe34 AG::Graph::UpdateStack::update() + 512
34  AttributeGraph                         0x19d240534 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 428
35  AttributeGraph                         0x19d247fdc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 324
36  AttributeGraph                         0x19d25e300 AGGraphGetValue + 216
37  SwiftUI                                0x10bd65458 0x10b184000 + 12457048
38  SwiftUI                                0x10bd6554c 0x10b184000 + 12457292
39  SwiftUI                                0x10b507a00 0x10b184000 + 3684864
40  AttributeGraph                         0x19d23fe34 AG::Graph::UpdateStack::update() + 512
41  AttributeGraph                         0x19d240534 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 428
42  AttributeGraph                         0x19d247fdc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 324
43  AttributeGraph                         0x19d25e300 AGGraphGetValue + 216
44  SwiftUI                                0x10bd828d4 0x10b184000 + 12576980
45  SwiftUI                                0x10b48f1e0 0x10b184000 + 3191264
46  AttributeGraph                         0x19d23fe34 AG::Graph::UpdateStack::update() + 512
47  AttributeGraph                         0x19d240534 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 428
48  AttributeGraph                         0x19d2477e0 AG::Graph::value_ref(AG::AttributeID, AGSwiftMetadata const*, unsigned char&) + 160
49  AttributeGraph                         0x19d25e348 AGGraphGetValue + 288
50  SwiftUI                                0x10b59fa0c 0x10b184000 + 4307468
51  SwiftUI                                0x10c3a2400 0x10b184000 + 18998272
52  SwiftUI                                0x10c39e344 0x10b184000 + 18981700
53  SwiftUI                                0x10c39ed18 0x10b184000 + 18984216
54  UIKitCore                              0x1075fa7cc +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 940
55  UIKitCore                              0x1080303c8 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 880
56  UIKitCore                              0x108030850 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 368
57  UIKitCore                              0x107b8f2a0 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 260
58  FrontBoardServices                     0x184e58bfc -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 316
59  FrontBoardServices                     0x184e7f638 __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.61 + 92
60  FrontBoardServices                     0x184e64704 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 160
61  FrontBoardServices                     0x184e7f2dc __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke + 296
62  libdispatch.dylib                      0x180134708 _dispatch_client_callout + 16
63  libdispatch.dylib                      0x180138644 _dispatch_block_invoke_direct + 376
64  FrontBoardServices                     0x184e9ef14 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 44
65  FrontBoardServices                     0x184e9ee08 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 176
66  FrontBoardServices                     0x184e9ef48 -[FBSSerialQueue _performNextFromRunLoopSource] + 24
67  CoreFoundation                         0x18039ac6c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
68  CoreFoundation                         0x18039abb4 __CFRunLoopDoSource0 + 172
69  CoreFoundation                         0x18039a37c __CFRunLoopDoSources0 + 320
70  CoreFoundation                         0x180394958 __CFRunLoopRun + 748
71  CoreFoundation                         0x180394254 CFRunLoopRunSpecific + 584
72  GraphicsServices                       0x188eb7c9c GSEventRunModal + 160
73  UIKitCore                              0x10802eff0 -[UIApplication _run] + 868
74  UIKitCore                              0x108032f3c UIApplicationMain + 124
75  SwiftUI                                0x10c0db34c 0x10b184000 + 16085836
76  SwiftUI                                0x10c0db1ec 0x10b184000 + 16085484
77  SwiftUI                                0x10b8d3474 0x10b184000 + 7664756
78  existential-profile-bug                0x104bfb42c static existential_profile_bugApp.$main() + 24 (existential_profile_bugApp.swift:10) [inlined]
79  existential-profile-bug                0x104bfb42c main + 36
80  dyld_sim                               0x104f0d514 start_sim + 20
81  dyld                                   0x1050b9e50 start + 2544

Thread 1:
0   libsystem_pthread.dylib                0x1b18336b8 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib                0x1b18336b8 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib                0x1b18336b8 start_wqthread + 0

Thread 4:: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib                 0x1b17dc2ac mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x1b17ed154 mach_msg2_internal + 76
2   libsystem_kernel.dylib                 0x1b17e44b8 mach_msg_overwrite + 536
3   libsystem_kernel.dylib                 0x1b17dc61c mach_msg + 20
4   CoreFoundation                         0x18039a4a8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                         0x180394ad4 __CFRunLoopRun + 1128
6   CoreFoundation                         0x180394254 CFRunLoopRunSpecific + 584
7   Foundation                             0x180b994bc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8   Foundation                             0x180b996e0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9   UIKitCore                              0x1080ce714 -[UIEventFetcher threadMain] + 404
10  Foundation                             0x180bbede0 __NSThread__start__ + 704
11  libsystem_pthread.dylib                0x1b18384e4 _pthread_start + 116
12  libsystem_pthread.dylib                0x1b18336cc thread_start + 8

Thread 5:
0   libsystem_pthread.dylib                0x1b18336b8 start_wqthread + 0

Thread 6:
0   libsystem_pthread.dylib                0x1b18336b8 start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x00000000100fe4d0   x5: 0x0000000000000010   x6: 0x000000018bffe000   x7: 0x0000000000000000
    x8: 0x000000010514c240   x9: 0x8af9925f2d87607b  x10: 0x3262363178302065  x11: 0x7369203034353130
   x12: 0x2030343531303262  x13: 0x646e696b0a3a7369  x14: 0x6e614d657079543d  x15: 0x000a0a676e696c67
   x16: 0x0000000000000148  x17: 0x3b26000000000000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x000000010514c240  x21: 0x0000000000000103  x22: 0x000000010514c320  x23: 0x000000016b2011b8
   x24: 0x000000000000000b  x25: 0x000000000000000c  x26: 0x0000000000000000  x27: 0x000000018c028790
   x28: 0x00000001ba22bdf0   fp: 0x000000016b2010c0   lr: 0x00000001b18381e8
    sp: 0x000000016b2010a0   pc: 0x00000001b17e40cc cpsr: 0x40001000
   far: 0x0000000105798000  esr: 0x56000080  Address size fault

Binary Images:
       0x1b17db000 -        0x1b1812ff7 libsystem_kernel.dylib (*) <eb0327ee-cb9c-37ed-ab6a-e9af74e814f0> /usr/lib/system/libsystem_kernel.dylib
       0x1b1831000 -        0x1b183dff3 libsystem_pthread.dylib (*) <51c613e3-4abf-359c-b275-2608bb1be0b6> /usr/lib/system/libsystem_pthread.dylib
       0x1800b6000 -        0x180130ffb libsystem_c.dylib (*) <6b3ced39-3f0d-3bb2-a2b1-34062cf5c8eb> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_c.dylib
       0x18bcae000 -        0x18c10efff libswiftCore.dylib (*) <f59b0c69-ee28-3da5-8293-34a59d3375bc> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswiftCore.dylib
       0x18002c000 -        0x180060f1f libobjc.A.dylib (*) <dfe7d97e-d1bd-38d9-b8f1-5c58d6bbf6ad> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib
       0x104e48000 -        0x104e4ffff liboainject.dylib (*) <f8b7c5ef-5d40-3d13-9f16-3030540b266f> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/DVTInstrumentsFoundation.framework/liboainject.dylib
       0x104bf8000 -        0x104c53fff co.pointfree.existential-profile-bug (1.0) <db1db2f0-7f12-361a-a9ee-a896c3302c95> /Users/USER/Library/Developer/CoreSimulator/Devices/E6C5A6B5-C163-464E-A6C5-75A0876710F6/data/Containers/Bundle/Application/1D4FC916-1EB7-45AC-AAAF-A91D5F47A6F1/existential-profile-bug.app/existential-profile-bug
       0x10b184000 -        0x10c747fff com.apple.SwiftUI (4.4.36.1.102) <d1594f8f-331a-3fab-a631-124e563569fe> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/SwiftUI.framework/SwiftUI
       0x19d237000 -        0x19d272fff com.apple.AttributeGraph (4.0.28) <5b08a072-334e-385f-ba3e-94ae3c5d306a> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AttributeGraph.framework/AttributeGraph
       0x1075b0000 -        0x108c93fff com.apple.UIKitCore (1.0) <6726ae46-2599-3f92-adca-c48a0512d4ea> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
       0x184e52000 -        0x184ee6fff com.apple.FrontBoardServices (812.106) <27de4127-9c41-3ae7-b6c0-d00b0bcd38cd> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
       0x180131000 -        0x180177fff libdispatch.dylib (*) <392b7c55-8c38-3dea-b7af-c3d7f518e987> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib
       0x180315000 -        0x1806c3fff com.apple.CoreFoundation (6.9) <132e87d0-14ac-310c-a5e9-3d9c921cc8ea> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
       0x188eb4000 -        0x188ebcfff com.apple.GraphicsServices (1.0) <8e24edb2-1c99-3652-9ef0-e66191675515> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
       0x104f0c000 -        0x104f5bfff dyld_sim (*) <4eba7f04-0a30-3166-8a68-9125b8a1d5f9> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
       0x1050b4000 -        0x10513ffff dyld (*) <487cfdeb-9b07-39bf-bfb9-970b61aea2d1> /usr/lib/dyld
       0x18073a000 -        0x180f8bfff com.apple.Foundation (6.9) <e7f2a1f0-fb2c-3074-a4ea-e5853bffcee4> /Applications/Xcode-14.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation

EOF

-----------
Full Report
-----------

{"app_name":"existential-profile-bug","timestamp":"2023-04-06 11:18:38.00 -0700","app_version":"1.0","slice_uuid":"db1db2f0-7f12-361a-a9ee-a896c3302c95","build_version":"1","platform":7,"bundleID":"co.pointfree.existential-profile-bug","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.1 (22C65)","roots_installed":0,"name":"existential-profile-bug","incident_id":"BC60B6A5-1C0C-4208-9671-49574186C541"}
{
  "uptime" : 5400,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,1",
  "coalitionID" : 1334,
  "osVersion" : {
    "train" : "macOS 13.1",
    "build" : "22C65",
    "releaseType" : "User"
  },
  "captureTime" : "2023-04-06 11:18:38.3054 -0700",
  "incident" : "BC60B6A5-1C0C-4208-9671-49574186C541",
  "pid" : 9646,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-04-06 11:18:37.6414 -0700",
  "procStartAbsTime" : 129893077659,
  "procExitAbsTime" : 129908986980,
  "procName" : "existential-profile-bug",
  "procPath" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/E6C5A6B5-C163-464E-A6C5-75A0876710F6\/data\/Containers\/Bundle\/Application\/1D4FC916-1EB7-45AC-AAAF-A91D5F47A6F1\/existential-profile-bug.app\/existential-profile-bug",
  "bundleInfo" : {"CFBundleShortVersionString":"1.0","CFBundleVersion":"1","CFBundleIdentifier":"co.pointfree.existential-profile-bug"},
  "storeInfo" : {"deviceIdentifierForVendor":"B6B0B12D-ECD0-5D34-A595-8F425A53DAE8","thirdParty":true},
  "parentProc" : "launchd_sim",
  "parentPid" : 1443,
  "coalitionName" : "com.apple.CoreSimulator.SimDevice.E6C5A6B5-C163-464E-A6C5-75A0876710F6",
  "crashReporterKey" : "526438CC-5F9C-689D-DA9F-472272723A4A",
  "responsiblePid" : 1074,
  "responsibleProc" : "SimulatorTrampoline",
  "wakeTime" : 2909,
  "sleepWakeUUID" : "7F65571B-3D87-4C62-9F8A-B80F275DCCFD",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "ktriageinfo" : "VM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\n",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":14,"thread_set_state":510,"task_for_pid":49},"targeted":{"thread_create":1,"thread_set_state":0,"task_for_pid":1},"warnings":1},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":157532,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":269477072},{"value":16},{"value":6643769344,"symbolLocation":112,"symbol":"reportError(unsigned int, char const*)"},{"value":0},{"value":4380213824,"symbolLocation":0,"symbol":"_main_thread"},{"value":10014196183918403707},{"value":3630523835711758437},{"value":8316213578322751792},{"value":2319411211158958690},{"value":7236837559684985705},{"value":7953723514987041853},{"value":2826189117418599},{"value":328},{"value":4262094097352753152},{"value":0},{"value":6},{"value":4380213824,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":4380214048,"symbolLocation":224,"symbol":"_main_thread"},{"value":6092231096},{"value":11},{"value":12},{"value":0},{"value":6643943312,"symbolLocation":8,"symbol":"class metadata base offset for ReferenceWritableKeyPath"},{"value":7417806320,"symbolLocation":17496,"symbol":"InitialAllocationPool"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7273153000},"cpsr":{"value":1073745920},"fp":{"value":6092230848},"sp":{"value":6092230816},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7272808652,"matchesCrashFrame":1},"far":{"value":4386816000}},"queue":"com.apple.main-thread","frames":[{"imageOffset":37068,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":29160,"symbol":"pthread_kill","symbolLocation":256,"imageIndex":1},{"imageOffset":468796,"symbol":"abort","symbolLocation":124,"imageIndex":2},{"imageOffset":3473296,"symbol":"demangleFatal(unsigned int, char const*, char*)","symbolLocation":128,"imageIndex":3},{"imageOffset":3473168,"symbol":"swift::Demangle::__runtime::fatal(unsigned int, char const*, ...)","symbolLocation":32,"imageIndex":3},{"imageOffset":3242164,"symbol":"swift::Demangle::__runtime::failAssert(char const*, unsigned int, swift::Demangle::__runtime::Node*, char const*)","symbolLocation":104,"imageIndex":3},{"imageOffset":3243820,"symbol":"swift::Demangle::__runtime::Node::addChild(swift::Demangle::__runtime::Node*, swift::Demangle::__runtime::NodeFactory&)","symbolLocation":584,"imageIndex":3},{"imageOffset":3066612,"symbol":"copyGenericClassObjCName(swift::TargetClassMetadata<swift::InProcess, swift::TargetAnyClassMetadataObjCInterop<swift::InProcess> >*)","symbolLocation":228,"imageIndex":3},{"imageOffset":58556,"symbol":"objc_class::installMangledNameForLazilyNamedClass()","symbolLocation":100,"imageIndex":4},{"imageOffset":82424,"symbol":"objc_class::demangledName(bool)","symbolLocation":72,"imageIndex":4},{"imageOffset":27348,"imageIndex":5},{"imageOffset":32604,"symbol":"initializeNonMetaClass","symbolLocation":676,"imageIndex":4},{"imageOffset":38656,"symbol":"initializeAndMaybeRelock(objc_class*, objc_object*, locker_mixin<lockdebug::lock_mixin<objc_lock_base_t> >&, bool)","symbolLocation":192,"imageIndex":4},{"imageOffset":94412,"symbol":"lookUpImpOrForward","symbolLocation":612,"imageIndex":4},{"imageOffset":13024,"symbol":"_objc_msgSend_uncached","symbolLocation":64,"imageIndex":4},{"imageOffset":3233420,"symbol":"swift_instantiateObjCClass","symbolLocation":24,"imageIndex":3},{"imageOffset":3030776,"symbol":"_swift_initClassMetadataImpl(swift::TargetClassMetadata<swift::InProcess, swift::TargetAnyClassMetadataObjCInterop<swift::InProcess> >*, swift::ClassLayoutFlags, unsigned long, swift::TypeLayout const* const*, unsigned long*, bool)","symbolLocation":2944,"imageIndex":3},{"imageOffset":2835380,"symbol":"type metadata completion function for WritableKeyPath","symbolLocation":28,"imageIndex":3},{"imageOffset":3015344,"symbol":"_swift_getGenericMetadata(swift::MetadataRequest, void const* const*, swift::TargetTypeContextDescriptor<swift::InProcess> const*)","symbolLocation":1688,"imageIndex":3},{"imageOffset":2893752,"symbol":"__swift_instantiateGenericMetadata","symbolLocation":28,"imageIndex":3},{"imageOffset":1120972,"symbol":"_swift_getKeyPath(pattern:arguments:)","symbolLocation":128,"imageIndex":3},{"symbol":"Model.init()","inline":true,"imageIndex":6,"imageOffset":13588,"symbolLocation":12,"sourceLine":11,"sourceFile":"ContentView.swift"},{"symbol":"Model.__allocating_init()","inline":true,"imageIndex":6,"imageOffset":13588,"symbolLocation":32,"sourceLine":10,"sourceFile":"ContentView.swift"},{"symbol":"ContentView.init()","inline":true,"imageIndex":6,"imageOffset":13588,"symbolLocation":32,"sourceLine":15,"sourceFile":"ContentView.swift"},{"imageOffset":13588,"sourceLine":14,"sourceFile":"existential_profile_bugApp.swift","symbol":"closure #1 in existential_profile_bugApp.body.getter","imageIndex":6,"symbolLocation":48},{"imageOffset":12573548,"imageIndex":7},{"symbol":"existential_profile_bugApp.body.getter","inline":true,"imageIndex":6,"imageOffset":13780,"symbolLocation":92,"sourceLine":13,"sourceFile":"existential_profile_bugApp.swift"},{"imageOffset":13780,"sourceLine":12,"sourceFile":"<compiler-generated>","symbol":"protocol witness for App.body.getter in conformance existential_profile_bugApp","imageIndex":6,"symbolLocation":116},{"imageOffset":4313320,"imageIndex":7},{"imageOffset":12456864,"imageIndex":7},{"imageOffset":4311136,"imageIndex":7},{"imageOffset":12457320,"imageIndex":7},{"imageOffset":3684864,"imageIndex":7},{"imageOffset":36404,"symbol":"AG::Graph::UpdateStack::update()","symbolLocation":512,"imageIndex":8},{"imageOffset":38196,"symbol":"AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int)","symbolLocation":428,"imageIndex":8},{"imageOffset":69596,"symbol":"AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, unsigned char&, long)","symbolLocation":324,"imageIndex":8},{"imageOffset":160512,"symbol":"AGGraphGetValue","symbolLocation":216,"imageIndex":8},{"imageOffset":12457048,"imageIndex":7},{"imageOffset":12457292,"imageIndex":7},{"imageOffset":3684864,"imageIndex":7},{"imageOffset":36404,"symbol":"AG::Graph::UpdateStack::update()","symbolLocation":512,"imageIndex":8},{"imageOffset":38196,"symbol":"AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int)","symbolLocation":428,"imageIndex":8},{"imageOffset":69596,"symbol":"AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, unsigned char&, long)","symbolLocation":324,"imageIndex":8},{"imageOffset":160512,"symbol":"AGGraphGetValue","symbolLocation":216,"imageIndex":8},{"imageOffset":12576980,"imageIndex":7},{"imageOffset":3191264,"imageIndex":7},{"imageOffset":36404,"symbol":"AG::Graph::UpdateStack::update()","symbolLocation":512,"imageIndex":8},{"imageOffset":38196,"symbol":"AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int)","symbolLocation":428,"imageIndex":8},{"imageOffset":67552,"symbol":"AG::Graph::value_ref(AG::AttributeID, AGSwiftMetadata const*, unsigned char&)","symbolLocation":160,"imageIndex":8},{"imageOffset":160584,"symbol":"AGGraphGetValue","symbolLocation":288,"imageIndex":8},{"imageOffset":4307468,"imageIndex":7},{"imageOffset":18998272,"imageIndex":7},{"imageOffset":18981700,"imageIndex":7},{"imageOffset":18984216,"imageIndex":7},{"imageOffset":305100,"symbol":"+[UIScene _sceneForFBSScene:create:withSession:connectionOptions:]","symbolLocation":940,"imageIndex":9},{"imageOffset":11011016,"symbol":"-[UIApplication _connectUISceneFromFBSScene:transitionContext:]","symbolLocation":880,"imageIndex":9},{"imageOffset":11012176,"symbol":"-[UIApplication workspace:didCreateScene:withTransitionContext:completion:]","symbolLocation":368,"imageIndex":9},{"imageOffset":6156960,"symbol":"-[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:]","symbolLocation":260,"imageIndex":9},{"imageOffset":27644,"symbol":"-[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:]","symbolLocation":316,"imageIndex":10},{"imageOffset":185912,"symbol":"__92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.61","symbolLocation":92,"imageIndex":10},{"imageOffset":75524,"symbol":"-[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]","symbolLocation":160,"imageIndex":10},{"imageOffset":185052,"symbol":"__92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke","symbolLocation":296,"imageIndex":10},{"imageOffset":14088,"symbol":"_dispatch_client_callout","symbolLocation":16,"imageIndex":11},{"imageOffset":30276,"symbol":"_dispatch_block_invoke_direct","symbolLocation":376,"imageIndex":11},{"imageOffset":315156,"symbol":"__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__","symbolLocation":44,"imageIndex":10},{"imageOffset":314888,"symbol":"-[FBSSerialQueue _targetQueue_performNextIfPossible]","symbolLocation":176,"imageIndex":10},{"imageOffset":315208,"symbol":"-[FBSSerialQueue _performNextFromRunLoopSource]","symbolLocation":24,"imageIndex":10},{"imageOffset":547948,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__","symbolLocation":24,"imageIndex":12},{"imageOffset":547764,"symbol":"__CFRunLoopDoSource0","symbolLocation":172,"imageIndex":12},{"imageOffset":545660,"symbol":"__CFRunLoopDoSources0","symbolLocation":320,"imageIndex":12},{"imageOffset":522584,"symbol":"__CFRunLoopRun","symbolLocation":748,"imageIndex":12},{"imageOffset":520788,"symbol":"CFRunLoopRunSpecific","symbolLocation":584,"imageIndex":12},{"imageOffset":15516,"symbol":"GSEventRunModal","symbolLocation":160,"imageIndex":13},{"imageOffset":11005936,"symbol":"-[UIApplication _run]","symbolLocation":868,"imageIndex":9},{"imageOffset":11022140,"symbol":"UIApplicationMain","symbolLocation":124,"imageIndex":9},{"imageOffset":16085836,"imageIndex":7},{"imageOffset":16085484,"imageIndex":7},{"imageOffset":7664756,"imageIndex":7},{"symbol":"static existential_profile_bugApp.$main()","inline":true,"imageIndex":6,"imageOffset":13356,"symbolLocation":24,"sourceLine":10,"sourceFile":"existential_profile_bugApp.swift"},{"imageOffset":13356,"sourceFile":"ContentView.swift","symbol":"main","symbolLocation":36,"imageIndex":6},{"imageOffset":5396,"symbol":"start_sim","symbolLocation":20,"imageIndex":14},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":15}]},{"id":157565,"frames":[{"imageOffset":9912,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":157570,"frames":[{"imageOffset":9912,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":157571,"frames":[{"imageOffset":9912,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":157572,"name":"com.apple.uikit.eventfetch-thread","frames":[{"imageOffset":4780,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":74068,"symbol":"mach_msg2_internal","symbolLocation":76,"imageIndex":0},{"imageOffset":38072,"symbol":"mach_msg_overwrite","symbolLocation":536,"imageIndex":0},{"imageOffset":5660,"symbol":"mach_msg","symbolLocation":20,"imageIndex":0},{"imageOffset":545960,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":156,"imageIndex":12},{"imageOffset":522964,"symbol":"__CFRunLoopRun","symbolLocation":1128,"imageIndex":12},{"imageOffset":520788,"symbol":"CFRunLoopRunSpecific","symbolLocation":584,"imageIndex":12},{"imageOffset":4584636,"symbol":"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]","symbolLocation":208,"imageIndex":16},{"imageOffset":4585184,"symbol":"-[NSRunLoop(NSRunLoop) runUntilDate:]","symbolLocation":60,"imageIndex":16},{"imageOffset":11659028,"symbol":"-[UIEventFetcher threadMain]","symbolLocation":404,"imageIndex":9},{"imageOffset":4738528,"symbol":"__NSThread__start__","symbolLocation":704,"imageIndex":16},{"imageOffset":29924,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":9932,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":157573,"frames":[{"imageOffset":9912,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":157574,"frames":[{"imageOffset":9912,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 7272771584,
    "size" : 229368,
    "uuid" : "eb0327ee-cb9c-37ed-ab6a-e9af74e814f0",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 7273123840,
    "size" : 53236,
    "uuid" : "51c613e3-4abf-359c-b275-2608bb1be0b6",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 6443196416,
    "size" : 503804,
    "uuid" : "6b3ced39-3f0d-3bb2-a2b1-34062cf5c8eb",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 6640295936,
    "size" : 4591616,
    "uuid" : "f59b0c69-ee28-3da5-8293-34a59d3375bc",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/swift\/libswiftCore.dylib",
    "name" : "libswiftCore.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 6442631168,
    "size" : 216864,
    "uuid" : "dfe7d97e-d1bd-38d9-b8f1-5c58d6bbf6ad",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4377051136,
    "size" : 32768,
    "uuid" : "f8b7c5ef-5d40-3d13-9f16-3030540b266f",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/PrivateFrameworks\/DVTInstrumentsFoundation.framework\/liboainject.dylib",
    "name" : "liboainject.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4374626304,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "co.pointfree.existential-profile-bug",
    "size" : 376832,
    "uuid" : "db1db2f0-7f12-361a-a9ee-a896c3302c95",
    "path" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/E6C5A6B5-C163-464E-A6C5-75A0876710F6\/data\/Containers\/Bundle\/Application\/1D4FC916-1EB7-45AC-AAAF-A91D5F47A6F1\/existential-profile-bug.app\/existential-profile-bug",
    "name" : "existential-profile-bug",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4481105920,
    "CFBundleShortVersionString" : "4.4.36.1.102",
    "CFBundleIdentifier" : "com.apple.SwiftUI",
    "size" : 22822912,
    "uuid" : "d1594f8f-331a-3fab-a631-124e563569fe",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/Frameworks\/SwiftUI.framework\/SwiftUI",
    "name" : "SwiftUI",
    "CFBundleVersion" : "4.4.36.1.102"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 6931312640,
    "CFBundleShortVersionString" : "4.0.28",
    "CFBundleIdentifier" : "com.apple.AttributeGraph",
    "size" : 245760,
    "uuid" : "5b08a072-334e-385f-ba3e-94ae3c5d306a",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/PrivateFrameworks\/AttributeGraph.framework\/AttributeGraph",
    "name" : "AttributeGraph",
    "CFBundleVersion" : "4.0.28"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4418371584,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.UIKitCore",
    "size" : 24002560,
    "uuid" : "6726ae46-2599-3f92-adca-c48a0512d4ea",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/PrivateFrameworks\/UIKitCore.framework\/UIKitCore",
    "name" : "UIKitCore",
    "CFBundleVersion" : "6441.1.101"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 6524575744,
    "CFBundleShortVersionString" : "812.106",
    "CFBundleIdentifier" : "com.apple.FrontBoardServices",
    "size" : 610304,
    "uuid" : "27de4127-9c41-3ae7-b6c0-d00b0bcd38cd",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/PrivateFrameworks\/FrontBoardServices.framework\/FrontBoardServices",
    "name" : "FrontBoardServices",
    "CFBundleVersion" : "812.106"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 6443700224,
    "size" : 290816,
    "uuid" : "392b7c55-8c38-3dea-b7af-c3d7f518e987",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 6445682688,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 3862528,
    "uuid" : "132e87d0-14ac-310c-a5e9-3d9c921cc8ea",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/Frameworks\/CoreFoundation.framework\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1971"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 6592086016,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.GraphicsServices",
    "size" : 36864,
    "uuid" : "8e24edb2-1c99-3652-9ef0-e66191675515",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/PrivateFrameworks\/GraphicsServices.framework\/GraphicsServices",
    "name" : "GraphicsServices",
    "CFBundleVersion" : "1.0"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4377853952,
    "size" : 327680,
    "uuid" : "4eba7f04-0a30-3166-8a68-9125b8a1d5f9",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/dyld_sim",
    "name" : "dyld_sim"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4379590656,
    "size" : 573440,
    "uuid" : "487cfdeb-9b07-39bf-bfb9-970b61aea2d1",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 6450028544,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 8724480,
    "uuid" : "e7f2a1f0-fb2c-3074-a4ea-e5853bffcee4",
    "path" : "\/Applications\/Xcode-14.3.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/System\/Library\/Frameworks\/Foundation.framework\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "1971"
  }
],
  "sharedCache" : {
  "base" : 6442450944,
  "size" : 1394393088,
  "uuid" : "c9cea246-69cd-32a5-926c-c4dfe86339a0"
},
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6112e3d2fc54bc3389840661",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "641cde63126e771815adf9f8"
      },
      "deploymentId" : 240000372
    },
    {
      "rolloutId" : "62699e1ec1ff2978b47f6c3b",
      "factorPackIds" : {
        "SIRI_FIND_MY_CONFIGURATION_FILES" : "631f72d1de559130376df1fb"
      },
      "deploymentId" : 240000023
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "c28e4ee6-1b08-4f90-8e05-2809e78310a3",
      "experimentId" : "6317d2003d24842ff850182a",
      "deploymentId" : 400000013
    }
  ]
}
}

This project is using a 3rd party dependency called swift-dependencies, which gives one access to a controllable continuous clock modeled as a any Clock<Duration>. The existential with primary associated type seems to be the culprit of the crash. If I swap it out with a concrete AnyClock type eraser, then the instrument runs fine without crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment