Cmd+Q crash on SwiftUI MacOS Monterrey App - macos

After distributing a SwiftUI App to some testers they report a crash when exiting the App with keyboard (CMD+Q). I have tried to replicate the same behavior but I am not able to reproduce it, even with the same OS version. It only crashes when exiting through command, if they go through menu -> Exit App it works fine. I have tried to create another menu item to exit and the result is the same, so apparently is something related to the command itself.
The App is distributed outside the Mac App Store with Developer ID and I have replicated the same behavior in another App I used to test some SwiftUI layouts. This App was stripped from every feature but a Hello World Swift UI View and it kept crashing.
Here is the stack trace:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: TBBT SwiftUI [32839]
Path: /private/var/folders/*/TBBT SwiftUI.app/Contents/MacOS/TBBT SwiftUI
Identifier: es.rodrigo.TBBT-SwiftUII
Version: 1.0 (1)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 502
Date/Time: 2022-03-25 12:35:57.9606 +0100
OS Version: macOS 12.2.1 (21D62)
Report Version: 12
Anonymous UUID: B5863DFC-2F6F-8EEC-A27D-4C1EBA1A58CB
Time Awake Since Boot: 19000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Codes: 0x0000000000000001, 0x0000000000000010
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [32839]
VM Region Info: 0x10 is not in any region. Bytes before following region: 4338548720
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 102990000-102994000 [ 16K] r-x/r-x SM=COW .../TBBT SwiftUI
Application Specific Information:
objc_msgSend() selector name: copy
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x1ab5a8320 objc_msgSend + 32
1 AppKit 0x1ae4f3960 -[NSMenu _populateFromSidebandUpdatersOfSign:withEventRef:] + 84
2 AppKit 0x1ae4f35a4 -[NSMenu _populateWithEventRef:] + 124
3 AppKit 0x1ae61ae94 -[NSCarbonMenuImpl _carbonPopulateEvent:handlerCallRef:] + 372
4 AppKit 0x1ae61ab70 NSSLMMenuEventHandler + 728
5 HIToolbox 0x1b4357418 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1116
6 HIToolbox 0x1b4356884 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 356
7 HIToolbox 0x1b4356714 SendEventToEventTargetWithOptions + 44
8 HIToolbox 0x1b43a8a64 SendMenuPopulate(MenuData*, OpaqueEventTargetRef*, unsigned int, double, unsigned int, OpaqueEventRef*, unsigned char, unsigned char*) + 356
9 HIToolbox 0x1b43a8804 PopulateMenu(MenuData*, OpaqueEventTargetRef*, CheckMenuData*, unsigned int, double) + 128
10 HIToolbox 0x1b43a7f34 Check1MenuForKeyEvent(MenuData*, CheckMenuData*) + 192
11 HIToolbox 0x1b43a7ac4 CheckMenusForKeyEvent(MenuData*, CheckMenuData*) + 576
12 HIToolbox 0x1b43a781c _IsMenuKeyEvent(MenuData*, OpaqueEventRef*, unsigned int, MenuData**, unsigned short*) + 656
13 HIToolbox 0x1b43a7554 IsMenuKeyEvent + 136
14 AppKit 0x1ae7d5fc8 +[NSCarbonMenuImpl _menuItemWithKeyEquivalentMatchingEventRef:inMenu:includingDisabledItems:] + 204
15 AppKit 0x1ae61a718 _NSFindMenuItemMatchingCommandKeyEvent + 208
16 AppKit 0x1ae635f24 -[NSMenu performKeyEquivalent:] + 376
17 AppKit 0x1aeaaa65c routeKeyEquivalent + 580
18 AppKit 0x1ae4abd30 -[NSApplication(NSEvent) sendEvent:] + 1176
19 AppKit 0x1ae765010 -[NSApplication _handleEvent:] + 76
20 AppKit 0x1ae32d9dc -[NSApplication run] + 636
21 AppKit 0x1ae2ff088 NSApplicationMain + 1064
22 SwiftUI 0x1d02494c4 specialized runApp(_:) + 148
23 SwiftUI 0x1d0d73a40 runApp<A>(_:) + 260
24 SwiftUI 0x1d0803658 static App.main() + 128
25 TBBT SwiftUI 0x102993534 static TBBT_SwiftUIApp.$main() + 24 (TBBT_SwiftUIApp.swift:10) [inlined]
26 TBBT SwiftUI 0x102993534 main + 36
27 dyld 0x102be90f4 start + 520
Thread 1:
0 libsystem_pthread.dylib 0x1ab718010 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x1ab718010 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x1ab718010 start_wqthread + 0
Thread 4:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x1ab6e1954 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1ab6e1d00 mach_msg + 76
2 CoreFoundation 0x1ab7e8ed8 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1ab7e7390 __CFRunLoopRun + 1212
4 CoreFoundation 0x1ab7e6734 CFRunLoopRunSpecific + 600
5 AppKit 0x1ae4a9fb0 _NSEventThread + 196
6 libsystem_pthread.dylib 0x1ab71d240 _pthread_start + 148
7 libsystem_pthread.dylib 0x1ab718024 thread_start + 8
Thread 5:
0 libsystem_pthread.dylib 0x1ab718010 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00006000027400b4 x1: 0x00000001f5c92979 x2: 0x000000016d46e7a0 x3: 0x000000016d46e7e0
x4: 0x0000000000000010 x5: 0x0000000000000000 x6: 0x000000016d46dd94 x7: 0x000000016d46dd88
x8: 0x000060000323d080 x9: 0x0000000000000001 x10: 0x6ae16000027400b4 x11: 0x0000000000000004
x12: 0x00000000c3000002 x13: 0x0000000000000000 x14: 0x00000000c3000004 x15: 0x0000000000000000
x16: 0x0000000000000000 x17: 0x000000020614d138 x18: 0x0000000110033940 x19: 0x000060000274c8c0
x20: 0x00000001f5c92979 x21: 0x000060000274de80 x22: 0x0000000000000000 x23: 0x00003872f316d080
x24: 0x00000002048079fc x25: 0x0000000000000009 x26: 0x000000016d46ebc0 x27: 0x0000000000000001
x28: 0x0000000000000002 fp: 0x000000016d46ea90 lr: 0x00000001ae4f3960
sp: 0x000000016d46ea60 pc: 0x00000001ab5a8320 cpsr: 0x20001000
far: 0x0000000000000010 esr: 0x92000006 (Data Abort) byte read Translation fault
Binary Images:
0x1ab5a2000 - 0x1ab5ddfff libobjc.A.dylib (*) <2eb32e1d-90cb-3256-8681-9034085a06a6> /usr/lib/libobjc.A.dylib
0x1ae2fb000 - 0x1af1b1fff com.apple.AppKit (6.9) <8701760d-31b6-37eb-be77-ffb39921dd22> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x1b434c000 - 0x1b467bfff com.apple.HIToolbox (2.1.1) <b5a3fe9a-833b-3697-ac9c-1e9e8eb11bac> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x1d01b7000 - 0x1d119efff com.apple.SwiftUI (3.3.1) <b5f32ad6-34b1-31d5-bdb5-60ac30e963e6> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
0x102990000 - 0x102993fff es.rodrigo.TBBT-SwiftUII (1.0) <0d402cc9-0796-39c6-b71d-9e9a1dbfd998> /private/var/folders/*/TBBT SwiftUI.app/Contents/MacOS/TBBT SwiftUI
0x102be4000 - 0x102c43fff dyld (*) <d21a73ea-79cd-36eb-8ac9-2c5cf5181a27> /usr/lib/dyld
0x1ab716000 - 0x1ab722fff libsystem_pthread.dylib (*) <f7b2eccf-e6f1-3109-ae81-9028c0b8332a> /usr/lib/system/libsystem_pthread.dylib
0x1ab6e0000 - 0x1ab715fff libsystem_kernel.dylib (*) <384945e6-dd71-37e5-9a3d-84fff14a1e60> /usr/lib/system/libsystem_kernel.dylib
0x1ab764000 - 0x1abca7fff com.apple.CoreFoundation (6.9) <35473de6-c433-332c-aee0-013fd5f6d4fd> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 21
thread_create: 1
thread_set_state: 760
VM Region Summary:
ReadOnly portion of Libraries: Total=997.9M resident=0K(0%) swapped_out_or_unallocated=997.9M(100%)
Writable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 384K 3
Activity Tracing 256K 1
CG backing stores 2944K 8
CG image 96K 3
ColorSync 576K 25
CoreAnimation 256K 11
CoreGraphics 48K 3
CoreUI image data 1136K 8
Foundation 48K 2
Kernel Alloc Once 32K 1
MALLOC 305.8M 52
MALLOC guard page 192K 10
MALLOC_MEDIUM (reserved) 960.0M 8 reserved VM address space (unallocated)
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
STACK GUARD 56.1M 6
Stack 10.6M 6
VM_ALLOCATE 1.0G 15
__AUTH 2401K 250
__AUTH_CONST 17.9M 427
__DATA 11.5M 412
__DATA_CONST 15.1M 433
__DATA_DIRTY 1533K 163
__FONT_DATA 4K 1
__LINKEDIT 575.9M 4
__OBJC_CONST 2565K 201
__OBJC_RO 82.1M 1
__OBJC_RW 3104K 1
__TEXT 422.0M 449
__UNICODE 588K 1
dyld private memory 1024K 1
mapped file 158.7M 23
shared memory 992K 19
=========== ======= =======
TOTAL 3.9G 2549
TOTAL, minus reserved VM space 2.6G 2549
-----------
Full Report
-----------
{"app_name":"TBBT SwiftUI","timestamp":"2022-03-25 12:35:58.00 +0100","app_version":"1.0","slice_uuid":"0d402cc9-0796-39c6-b71d-9e9a1dbfd998","build_version":"1","platform":1,"bundleID":"es.rodrigo.TBBT-SwiftUII","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.2.1 (21D62)","incident_id":"829399C8-38C2-49C9-87F9-E011CF03D34A","name":"TBBT SwiftUI"}
{
"uptime" : 19000,
"procLaunch" : "2022-03-25 12:35:45.7386 +0100",
"procRole" : "Foreground",
"version" : 2,
"userID" : 502,
"deployVersion" : 210,
"modelCode" : "MacBookPro17,1",
"procStartAbsTime" : 462229239163,
"coalitionID" : 3069,
"osVersion" : {
"train" : "macOS 12.2.1",
"build" : "21D62",
"releaseType" : "User"
},
"captureTime" : "2022-03-25 12:35:57.9606 +0100",
"incident" : "829399C8-38C2-49C9-87F9-E011CF03D34A",
"bug_type" : "309",
"pid" : 32839,
"procExitAbsTime" : 462522162289,
"translated" : false,
"cpuType" : "ARM-64",
"procName" : "TBBT SwiftUI",
"procPath" : "\/private\/var\/folders\/*\/TBBT SwiftUI.app\/Contents\/MacOS\/TBBT SwiftUI",
"bundleInfo" : {"CFBundleShortVersionString":"1.0","CFBundleVersion":"1","CFBundleIdentifier":"es.rodrigo.TBBT-SwiftUII"},
"storeInfo" : {"deviceIdentifierForVendor":"AEE05FD5-64A2-50DC-989B-3C01A08912AB","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "es.rodrigo.TBBT-SwiftUII",
"crashReporterKey" : "B5863DFC-2F6F-8EEC-A27D-4C1EBA1A58CB",
"sip" : "enabled",
"vmRegionInfo" : "0x10 is not in any region. Bytes before following region: 4338548720\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n __TEXT 102990000-102994000 [ 16K] r-x\/r-x SM=COW ...\/TBBT SwiftUI",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000001, 0x0000000000000010","rawCodes":[1,16],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000010"},
"termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":32839},
"vmregioninfo" : "0x10 is not in any region. Bytes before following region: 4338548720\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n __TEXT 102990000-102994000 [ 16K] r-x\/r-x SM=COW ...\/TBBT SwiftUI",
"asi" : {"objc":["objc_msgSend() selector name: copy"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":1,"thread_set_state":760,"task_for_pid":21},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":254335,"threadState":{"x":[{"value":105553157423284},{"value":8418568569,"objc-selector":"copy"},{"value":6128330656},{"value":6128330720},{"value":16},{"value":0},{"value":6128328084},{"value":6128328072},{"value":105553168945280},{"value":1},{"value":7701542390937682100},{"value":4},{"value":3271557122},{"value":0},{"value":3271557124},{"value":0},{"value":0},{"value":8691962168},{"value":4563614016},{"value":105553157474496},{"value":8418568569,"objc-selector":"copy"},{"value":105553157480064},{"value":0},{"value":62066355785856},{"value":8665463292,"symbolLocation":4,"symbol":"_MergedGlobals"},{"value":9},{"value":6128331712},{"value":1},{"value":2}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7219394912},"cpsr":{"value":536875008},"fp":{"value":6128331408},"sp":{"value":6128331360},"esr":{"value":2449473542,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":7169803040,"matchesCrashFrame":1},"far":{"value":16}},"queue":"com.apple.main-thread","frames":[{"imageOffset":25376,"symbol":"objc_msgSend","symbolLocation":32,"imageIndex":0},{"imageOffset":2066784,"symbol":"-[NSMenu _populateFromSidebandUpdatersOfSign:withEventRef:]","symbolLocation":84,"imageIndex":1},{"imageOffset":2065828,"symbol":"-[NSMenu _populateWithEventRef:]","symbolLocation":124,"imageIndex":1},{"imageOffset":3276436,"symbol":"-[NSCarbonMenuImpl _carbonPopulateEvent:handlerCallRef:]","symbolLocation":372,"imageIndex":1},{"imageOffset":3275632,"symbol":"NSSLMMenuEventHandler","symbolLocation":728,"imageIndex":1},{"imageOffset":46104,"symbol":"DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)","symbolLocation":1116,"imageIndex":2},{"imageOffset":43140,"symbol":"SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)","symbolLocation":356,"imageIndex":2},{"imageOffset":42772,"symbol":"SendEventToEventTargetWithOptions","symbolLocation":44,"imageIndex":2},{"imageOffset":379492,"symbol":"SendMenuPopulate(MenuData*, OpaqueEventTargetRef*, unsigned int, double, unsigned int, OpaqueEventRef*, unsigned char, unsigned char*)","symbolLocation":356,"imageIndex":2},{"imageOffset":378884,"symbol":"PopulateMenu(MenuData*, OpaqueEventTargetRef*, CheckMenuData*, unsigned int, double)","symbolLocation":128,"imageIndex":2},{"imageOffset":376628,"symbol":"Check1MenuForKeyEvent(MenuData*, CheckMenuData*)","symbolLocation":192,"imageIndex":2},{"imageOffset":375492,"symbol":"CheckMenusForKeyEvent(MenuData*, CheckMenuData*)","symbolLocation":576,"imageIndex":2},{"imageOffset":374812,"symbol":"_IsMenuKeyEvent(MenuData*, OpaqueEventRef*, unsigned int, MenuData**, unsigned short*)","symbolLocation":656,"imageIndex":2},{"imageOffset":374100,"symbol":"IsMenuKeyEvent","symbolLocation":136,"imageIndex":2},{"imageOffset":5091272,"symbol":"+[NSCarbonMenuImpl _menuItemWithKeyEquivalentMatchingEventRef:inMenu:includingDisabledItems:]","symbolLocation":204,"imageIndex":1},{"imageOffset":3274520,"symbol":"_NSFindMenuItemMatchingCommandKeyEvent","symbolLocation":208,"imageIndex":1},{"imageOffset":3387172,"symbol":"-[NSMenu performKeyEquivalent:]","symbolLocation":376,"imageIndex":1},{"imageOffset":8058460,"symbol":"routeKeyEquivalent","symbolLocation":580,"imageIndex":1},{"imageOffset":1772848,"symbol":"-[NSApplication(NSEvent) sendEvent:]","symbolLocation":1176,"imageIndex":1},{"imageOffset":4628496,"symbol":"-[NSApplication _handleEvent:]","symbolLocation":76,"imageIndex":1},{"imageOffset":207324,"symbol":"-[NSApplication run]","symbolLocation":636,"imageIndex":1},{"imageOffset":16520,"symbol":"NSApplicationMain","symbolLocation":1064,"imageIndex":1},{"imageOffset":599236,"symbol":"specialized runApp(_:)","symbolLocation":148,"imageIndex":3},{"imageOffset":12307008,"symbol":"runApp<A>(_:)","symbolLocation":260,"imageIndex":3},{"imageOffset":6604376,"symbol":"static App.main()","symbolLocation":128,"imageIndex":3},{"symbol":"static TBBT_SwiftUIApp.$main()","inline":true,"imageIndex":4,"imageOffset":13620,"symbolLocation":24,"sourceLine":10,"sourceFile":"TBBT_SwiftUIApp.swift"},{"imageOffset":13620,"sourceFile":"Demo.swift","symbol":"main","symbolLocation":36,"imageIndex":4},{"imageOffset":20724,"symbol":"start","symbolLocation":520,"imageIndex":5}]},{"id":254377,"frames":[{"imageOffset":8208,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":254380,"frames":[{"imageOffset":8208,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":254387,"frames":[{"imageOffset":8208,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":254394,"name":"com.apple.NSEventThread","frames":[{"imageOffset":6484,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":7},{"imageOffset":7424,"symbol":"mach_msg","symbolLocation":76,"imageIndex":7},{"imageOffset":544472,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":8},{"imageOffset":537488,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":8},{"imageOffset":534324,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":8},{"imageOffset":1765296,"symbol":"_NSEventThread","symbolLocation":196,"imageIndex":1},{"imageOffset":29248,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":8228,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":254531,"frames":[{"imageOffset":8208,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64e",
"base" : 7169777664,
"size" : 245760,
"uuid" : "2eb32e1d-90cb-3256-8681-9034085a06a6",
"path" : "\/usr\/lib\/libobjc.A.dylib",
"name" : "libobjc.A.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7217328128,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.AppKit",
"size" : 15429632,
"uuid" : "8701760d-31b6-37eb-be77-ffb39921dd22",
"path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
"name" : "AppKit",
"CFBundleVersion" : "2113.30.116"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7318323200,
"CFBundleShortVersionString" : "2.1.1",
"CFBundleIdentifier" : "com.apple.HIToolbox",
"size" : 3342336,
"uuid" : "b5a3fe9a-833b-3697-ac9c-1e9e8eb11bac",
"path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
"name" : "HIToolbox"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7786426368,
"CFBundleShortVersionString" : "3.3.1",
"CFBundleIdentifier" : "com.apple.SwiftUI",
"size" : 16678912,
"uuid" : "b5f32ad6-34b1-31d5-bdb5-60ac30e963e6",
"path" : "\/System\/Library\/Frameworks\/SwiftUI.framework\/Versions\/A\/SwiftUI",
"name" : "SwiftUI",
"CFBundleVersion" : "3.3.1"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4338548736,
"CFBundleShortVersionString" : "1.0",
"CFBundleIdentifier" : "es.rodrigo.TBBT-SwiftUII",
"size" : 16384,
"uuid" : "0d402cc9-0796-39c6-b71d-9e9a1dbfd998",
"path" : "\/private\/var\/folders\/*\/TBBT SwiftUI.app\/Contents\/MacOS\/TBBT SwiftUI",
"name" : "TBBT SwiftUI",
"CFBundleVersion" : "1"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 4340989952,
"size" : 393216,
"uuid" : "d21a73ea-79cd-36eb-8ac9-2c5cf5181a27",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7171301376,
"size" : 53248,
"uuid" : "f7b2eccf-e6f1-3109-ae81-9028c0b8332a",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7171080192,
"size" : 221184,
"uuid" : "384945e6-dd71-37e5-9a3d-84fff14a1e60",
"path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7171620864,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.CoreFoundation",
"size" : 5521408,
"uuid" : "35473de6-c433-332c-aee0-013fd5f6d4fd",
"path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
"name" : "CoreFoundation",
"CFBundleVersion" : "1856.107"
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"sharedCache" : {
"base" : 7168131072,
"size" : 3091218432,
"uuid" : "296eb28e-6aeb-3129-8fa6-feb92261a4eb"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=997.9M resident=0K(0%) swapped_out_or_unallocated=997.9M(100%)\nWritable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 384K 3 \nActivity Tracing 256K 1 \nCG backing stores 2944K 8 \nCG image 96K 3 \nColorSync 576K 25 \nCoreAnimation 256K 11 \nCoreGraphics 48K 3 \nCoreUI image data 1136K 8 \nFoundation 48K 2 \nKernel Alloc Once 32K 1 \nMALLOC 305.8M 52 \nMALLOC guard page 192K 10 \nMALLOC_MEDIUM (reserved) 960.0M 8 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 56.1M 6 \nStack 10.6M 6 \nVM_ALLOCATE 1.0G 15 \n__AUTH 2401K 250 \n__AUTH_CONST 17.9M 427 \n__DATA 11.5M 412 \n__DATA_CONST 15.1M 433 \n__DATA_DIRTY 1533K 163 \n__FONT_DATA 4K 1 \n__LINKEDIT 575.9M 4 \n__OBJC_CONST 2565K 201 \n__OBJC_RO 82.1M 1 \n__OBJC_RW 3104K 1 \n__TEXT 422.0M 449 \n__UNICODE 588K 1 \ndyld private memory 1024K 1 \nmapped file 158.7M 23 \nshared memory 992K 19 \n=========== ======= ======= \nTOTAL 3.9G 2549 \nTOTAL, minus reserved VM space 2.6G 2549 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "60da5e84ab0ca017dace9abf",
"factorPackIds" : {
},
"deploymentId" : 240000008
},
{
"rolloutId" : "607844aa04477260f58a8077",
"factorPackIds" : {
"SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
},
"deploymentId" : 240000066
},
{
"rolloutId" : "602ad4dac86151000cf27e46",
"factorPackIds" : {
"SIRI_DICTATION_ASSETS" : "61fb0e87c773c43cde3bb80e"
},
"deploymentId" : 240000303
},
{
"rolloutId" : "5ffde50ce2aacd000d47a95f",
"factorPackIds" : {
},
"deploymentId" : 240000123
},
{
"rolloutId" : "601d9415f79519000ccd4b69",
"factorPackIds" : {
"SIRI_TEXT_TO_SPEECH" : "622657ce37186c771d5404ad"
},
"deploymentId" : 240000416
},
{
"rolloutId" : "5fc94383418129005b4e9ae0",
"factorPackIds" : {
},
"deploymentId" : 240000287
}
],
"experiments" : [
]
}
}

Related

DeviceAgent-Runner quit unexpectedly

I made a simple Xamarin.iOS app with a UI Test App project just to learn how to make automated UI test. I am using VSMac 2019 and following the documentation here:
https://learn.microsoft.com/en-us/appcenter/test-cloud/frameworks/uitest/
I installed the Xamarin.TestCloud.Agent nugget in my iOS project and added in my FinishedLaunching method:
#if ENABLE_TEST_CLOUD
Xamarin.Calabash.Start();
#endif
My AppInitializer class in my UI Test App project:
public class AppInitializer
{
public static IApp StartApp(Platform platform)
{
// TODO: If the iOS or Android app being tested is included in the solution
// then open the Unit Tests window, right click Test Apps, select Add App Project
// and select the app projects that should be tested.
//
// The iOS project should have the Xamarin.TestCloud.Agent NuGet package
// installed. To start the Test Cloud Agent the following code should be
// added to the FinishedLaunching method of the AppDelegate:
//
// #if ENABLE_TEST_CLOUD
// Xamarin.Calabash.Start();
// #endif
if (platform == Platform.Android)
{
return ConfigureApp
.Android
// TODO: Update this path to point to your Android app and uncomment the
// code if the app is not included in the solution.
//.ApkFile ("../../../Droid/bin/Debug/xamarinforms.apk")
.StartApp();
}
return ConfigureApp.iOS
.EnableLocalScreenshots()
.DeviceIdentifier("3C0B5D32-8722-4A1C-BA6B-C13B3E3D3952")
.InstalledApp("com.drake.MyAppTest")
.StartApp();
}
}
It opens my simulator, installs the DeviceAgent app but then immediately crashes with this report:
------------------------------------- Translated Report (Full Report Below)
Incident Identifier: 42E3018F-F6AD-4A2D-BC85-F56CF5043C19
CrashReporter Key: CEC4770B-BEBD-CF8B-2D6A-E9045B038C60 Hardware
Model: MacBookPro16,1 Process: DeviceAgent-Runner
[81642] Path:
/Users/USER/Library/Developer/CoreSimulator/Devices/3C0B5D32-8722-4A1C-BA6B-C13B3E3D3952/data/Containers/Bundle/Application/96AEC496-0C00-46F8-82DD-53187D30D145/DeviceAgent-Runner.app/DeviceAgent-Runner Identifier: com.apple.test.DeviceAgent-Runner Version:
2.2.3 (1605115037) Code Type: X86-64 (Native) Role: Non UI Parent Process: launchd_sim [81025] Coalition:
com.apple.CoreSimulator.SimDevice.3C0B5D32-8722-4A1C-BA6B-C13B3E3D3952
[28614] Responsible Process: SimulatorTrampoline [1005]
Date/Time: 2023-01-10 16:15:23.1423 -0500 Launch Time:
2023-01-10 16:15:22.7223 -0500 OS Version: macOS 13.0.1
(22A400) Release Type: User Report Version: 104
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000 Triggered by Thread: 0
Last Exception Backtrace: 0 CoreFoundation
0x7ff80042889b __exceptionPreprocess + 226 1 libobjc.A.dylib
0x7ff80004dba3 objc_exception_throw + 48 2 Foundation 0x7ff800b87271 -[NSMutableDictionary(NSMutableDictionary) classForCoder] + 0 3 XCTest
0x10ac8c700 _XCTestMain + 761 4 DeviceAgent-Runner
0x10a69702d -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
5 DeviceAgent-Runner 0x10a696f2b
_XCTRunnerRunTests + 0 6 CoreFoundation 0x7ff800387dd9 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12 7
CoreFoundation 0x7ff800387592 __CFRunLoopDoBlocks
406 8 CoreFoundation 0x7ff800381e38 __CFRunLoopRun + 948 9 CoreFoundation 0x7ff8003816a7 CFRunLoopRunSpecific + 560 10 GraphicsServices
0x7ff809cb128a GSEventRunModal + 139 11 UIKitCore 0x111f20ad3 -[UIApplication _run] + 994 12 UIKitCore 0x111f259ef UIApplicationMain + 123 13 DeviceAgent-Runner 0x10a6971f5 main + 183 14 dyld_sim 0x10a84f2bf start_sim + 10 15 dyld
0x1167cb310 start + 2432
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0
libsystem_kernel.dylib 0x7ff83611d30e __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff836175f7b pthread_kill +
263 2 libsystem_c.dylib 0x7ff800132fe0 abort + 130
3 libc++abi.dylib 0x7ff800258742 abort_message +
241 4 libc++abi.dylib 0x7ff80024995d
demangling_terminate_handler() + 266 5 libobjc.A.dylib
0x7ff800032082 _objc_terminate() + 96 6 libc++abi.dylib 0x7ff800257b65 std::__terminate(void (*)()) + 8 7 libc++abi.dylib 0x7ff80025a3a4 __cxa_rethrow + 99 8
libobjc.A.dylib 0x7ff80004dd0d
objc_exception_rethrow + 37 9 CoreFoundation
0x7ff800381769 CFRunLoopRunSpecific + 754 10 GraphicsServices
0x7ff809cb128a GSEventRunModal + 139 11 UIKitCore 0x111f20ad3 -[UIApplication _run] + 994 12 UIKitCore 0x111f259ef UIApplicationMain + 123 13 DeviceAgent-Runner 0x10a6971f5 main + 183 14 dyld_sim 0x10a84f2bf start_sim + 10 15 dyld
0x1167cb310 start + 2432
Thread 1: 0 libsystem_pthread.dylib 0x7ff836171c58
start_wqthread + 0
Thread 2:: Dispatch queue: AXCodeLoader 0 CoreFoundation
0x7ff80036007e -[__NSCFString retain] + 5 1 AccessibilityUtilities 0x7ff809d43c4f -[AXCodeLoader
_accessibilityCodeItemMatchingName:type:path:] + 703 2 AccessibilityUtilities 0x7ff809d43f9e -[AXCodeLoader
_associateAccessibilityCodeItemWithLoadedCodeItem:] + 334 3 AccessibilityUtilities 0x7ff809d41b41 __36-[AXCodeLoader
_addTrackedCodeItem:]_block_invoke + 273 4 libdispatch.dylib 0x7ff80013b7fb _dispatch_call_block_and_release + 12 5 libdispatch.dylib 0x7ff80013ca3a
_dispatch_client_callout + 8 6 libdispatch.dylib 0x7ff800144346 _dispatch_lane_serial_drain + 949 7 libdispatch.dylib
0x7ff800144fe3 _dispatch_lane_invoke + 400 8 libdispatch.dylib 0x7ff800151b46 _dispatch_workloop_worker_thread + 870 9 libsystem_pthread.dylib 0x7ff836172ce3 _pthread_wqthread +
326 10 libsystem_pthread.dylib 0x7ff836171c67
start_wqthread + 15
Thread 3: 0 libsystem_pthread.dylib 0x7ff836171c58
start_wqthread + 0
Thread 4:: com.apple.uikit.eventfetch-thread 0
libsystem_kernel.dylib 0x7ff8361166a2 mach_msg2_trap + 10
1 libsystem_kernel.dylib 0x7ff83612467d
mach_msg2_internal + 82 2 libsystem_kernel.dylib
0x7ff83611d71a mach_msg_overwrite + 723 3 libsystem_kernel.dylib
0x7ff836116989 mach_msg + 19 4 CoreFoundation 0x7ff80038788e __CFRunLoopServiceMachPort + 145 5 CoreFoundation
0x7ff800381fdf __CFRunLoopRun + 1371 6 CoreFoundation 0x7ff8003816a7 CFRunLoopRunSpecific + 560 7 Foundation 0x7ff800c568b4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213 8 Foundation 0x7ff800c56b2d
-[NSRunLoop(NSRunLoop) runUntilDate:] + 72 9 UIKitCore 0x111ff6286 -[UIEventFetcher threadMain] + 535 10 Foundation 0x7ff800c8011b NSThread__start + 1009 11 libsystem_pthread.dylib 0x7ff836176259 _pthread_start + 125
12 libsystem_pthread.dylib 0x7ff836171c7b thread_start +
15
Thread 5: 0 libsystem_pthread.dylib 0x7ff836171c58
start_wqthread + 0
Thread 6: 0 libsystem_pthread.dylib 0x7ff836171c58
start_wqthread + 0
Thread 0 crashed with X86 Thread State (64-bit): rax:
0x0000000000000000 rbx: 0x00000001168692c0 rcx: 0x00007ff7b5868748
rdx: 0x0000000000000000 rdi: 0x0000000000000103 rsi:
0x0000000000000006 rbp: 0x00007ff7b5868770 rsp: 0x00007ff7b5868748
r8: 0x00007ff7b5868610 r9: 0x00007ff7b5868870 r10:
0x0000000000000000 r11: 0x0000000000000246 r12: 0x0000000000000103
r13: 0x0000003000000008 r14: 0x0000000000000006 r15:
0x0000000000000016 rip: 0x00007ff83611d30e rfl: 0x0000000000000246
cr2: 0x00007ff800132f5e Logical CPU: 0 Error Code:
0x02000148 Trap Number: 133
Binary Images:
0x7ff836115000 - 0x7ff83614eff7 libsystem_kernel.dylib () <0c2fd2c9-777c-3355-b70f-7b1b6e9d1b0b>
/usr/lib/system/libsystem_kernel.dylib
0x7ff836170000 - 0x7ff83617bff7 libsystem_pthread.dylib () <13b5e252-77d1-31e1-888d-1c5f4426ea87>
/usr/lib/system/libsystem_pthread.dylib
0x7ff8000b5000 - 0x7ff800139ff7 libsystem_c.dylib () <8a60f5c1-ea1f-352b-b778-967be44e3677>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_c.dylib
0x7ff800248000 - 0x7ff80025dffb libc++abi.dylib ()
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++abi.dylib
0x7ff80002c000 - 0x7ff80005ffe9 libobjc.A.dylib () <2a7a213a-fdb2-311c-81d7-efdfd9ddf25a>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib
0x7ff800303000 - 0x7ff80068bffc com.apple.CoreFoundation (6.9) <2be0f79f-8b25-3614-9e7e-dbac565f72dd>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x7ff809cae000 - 0x7ff809cb5ff2 com.apple.GraphicsServices (1.0) <16365e42-1d5c-363d-84d1-3bb290a43253>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1110df000 - 0x112baafff com.apple.UIKitCore (1.0)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x10a695000 - 0x10a69afff com.apple.test.DeviceAgent-Runner (2.2.3)
<21a4d4bc-72d4-3a0e-9786-17e33f61a799>
/Users/USER/Library/Developer/CoreSimulator/Devices/3C0B5D32-8722-4A1C-BA6B-C13B3E3D3952/data/Containers/Bundle/Application/96AEC496-0C00-46F8-82DD-53187D30D145/DeviceAgent-Runner.app/DeviceAgent-Runner
0x10a84d000 - 0x10a8acfff dyld_sim () <6fb74554-3370-3677-93d4-7f7a01ea6a80>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
0x1167c5000 - 0x11685cfff dyld () <28fd2071-57f3-3873-87bf-e4f674a82de6> /usr/lib/dyld
0x7ff809cb6000 - 0x7ff809e5dff1 com.apple.AccessibilityUtilities (1.0.0)
<50cb8d29-b910-3d47-9032-8587768224fa>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AccessibilityUtilities.framework/AccessibilityUtilities
0x7ff80013a000 - 0x7ff800185ff3 libdispatch.dylib () <59be51c1-e9f3-3a60-8108-cd70ae082897>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib
0x7ff8006fe000 - 0x7ff80102eff4 com.apple.Foundation (6.9) <86cd050d-44fc-3045-a1f3-8ad5047b329e>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation
0x10ac01000 - 0x10acf5fff com.apple.dt.XCTest (1.0)
/Users/USER/Library/Developer/CoreSimulator/Devices/3C0B5D32-8722-4A1C-BA6B-C13B3E3D3952/data/Containers/Bundle/Application/96AEC496-0C00-46F8-82DD-53187D30D145/DeviceAgent-Runner.app/Frameworks/XCTest.framework/XCTest
EOF
----------- Full Report
{"app_name":"DeviceAgent-Runner","timestamp":"2023-01-10 16:15:23.00
-0500","app_version":"2.2.3","slice_uuid":"21a4d4bc-72d4-3a0e-9786-17e33f61a799","build_version":"1605115037","platform":7,"bundleID":"com.apple.test.DeviceAgent-Runner","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS
13.0.1 (22A400)","roots_installed":0,"name":"DeviceAgent-Runner","incident_id":"42E3018F-F6AD-4A2D-BC85-F56CF5043C19"}
{ "uptime" : 310000, "procRole" : "Non UI", "version" : 2,
"userID" : 501, "deployVersion" : 210, "modelCode" :
"MacBookPro16,1", "coalitionID" : 28614, "osVersion" : {
"train" : "macOS 13.0.1",
"build" : "22A400",
"releaseType" : "User" }, "captureTime" : "2023-01-10 16:15:23.1423 -0500", "incident" :
"42E3018F-F6AD-4A2D-BC85-F56CF5043C19", "pid" : 81642, "cpuType" :
"X86-64", "roots_installed" : 0, "bug_type" : "309",
"procLaunch" : "2023-01-10 16:15:22.7223 -0500", "procStartAbsTime"
: 317186299226018, "procExitAbsTime" : 317186718671602, "procName"
: "DeviceAgent-Runner", "procPath" :
"/Users/USER/Library/Developer/CoreSimulator/Devices/3C0B5D32-8722-4A1C-BA6B-C13B3E3D3952/data/Containers/Bundle/Application/96AEC496-0C00-46F8-82DD-53187D30D145/DeviceAgent-Runner.app/DeviceAgent-Runner",
"bundleInfo" :
{"CFBundleShortVersionString":"2.2.3","CFBundleVersion":"1605115037","CFBundleIdentifier":"com.apple.test.DeviceAgent-Runner"},
"storeInfo" :
{"deviceIdentifierForVendor":"37FA7600-3C07-5A77-BDA0-2BC56C48EE9E","thirdParty":true},
"parentProc" : "launchd_sim", "parentPid" : 81025, "coalitionName"
:
"com.apple.CoreSimulator.SimDevice.3C0B5D32-8722-4A1C-BA6B-C13B3E3D3952",
"crashReporterKey" : "CEC4770B-BEBD-CF8B-2D6A-E9045B038C60",
"responsiblePid" : 1005, "responsibleProc" : "SimulatorTrampoline",
"wakeTime" : 2282, "bridgeVersion" :
{"build":"20P420","train":"7.0"}, "sleepWakeUUID" :
"0F2539EC-DDFE-4381-82F1-C578B4701148", "sip" : "enabled",
"exception" : {"codes":"0x0000000000000000,
0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"asiBacktraces" : ["0 CoreFoundation
0x00007ff8004288ab __exceptionPreprocess + 242\n1 libobjc.A.dylib
0x00007ff80004dba3 objc_exception_throw + 48\n2 Foundation
0x00007ff800b87271 -[NSMutableDictionary(NSMutableDictionary)
classForCoder] + 0\n3 XCTest
0x000000010ac8c700 _XCTestMain + 761\n4 DeviceAgent-Runner
0x000000010a69702d -[_XCTRunnerAppDelegate
applicationWillResignActive:] + 0\n5 DeviceAgent-Runner
0x000000010a696f2b _XCTRunnerRunTests + 0\n6 CoreFoundation
0x00007ff800387dd9 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12\n7
CoreFoundation 0x00007ff800387592
__CFRunLoopDoBlocks + 406\n8 CoreFoundation 0x00007ff800381e38 __CFRunLoopRun + 948\n9 CoreFoundation
0x00007ff8003816a7 CFRunLoopRunSpecific + 560\n10 GraphicsServices
0x00007ff809cb128a GSEventRunModal + 139\n11 UIKitCore
0x0000000111f20ad3 -[UIApplication _run] + 994\n12 UIKitCore
0x0000000111f259ef UIApplicationMain + 123\n13 DeviceAgent-Runner
0x000000010a6971f5 main + 183\n14 dyld
0x000000010a84f2bf start_sim + 10\n15 ???
0x00000001167cb310 0x0 + 4672238352"], "extMods" :
{"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":18},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"lastExceptionBacktrace" :
[{"imageOffset":1202331,"symbol":"__exceptionPreprocess","symbolLocation":226,"imageIndex":5},{"imageOffset":138147,"symbol":"objc_exception_throw","symbolLocation":48,"imageIndex":4},{"imageOffset":4756081,"symbol":"-[NSMutableDictionary(NSMutableDictionary)
classForCoder]","symbolLocation":0,"imageIndex":13},{"imageOffset":571136,"symbol":"_XCTestMain","symbolLocation":761,"imageIndex":14},{"imageOffset":8237,"symbol":"-[_XCTRunnerAppDelegate
applicationWillResignActive:]","symbolLocation":0,"imageIndex":8},{"imageOffset":7979,"symbol":"_XCTRunnerRunTests","symbolLocation":0,"imageIndex":8},{"imageOffset":544217,"symbol":"CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK","symbolLocation":12,"imageIndex":5},{"imageOffset":542098,"symbol":"__CFRunLoopDoBlocks","symbolLocation":406,"imageIndex":5},{"imageOffset":519736,"symbol":"__CFRunLoopRun","symbolLocation":948,"imageIndex":5},{"imageOffset":517799,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":5},{"imageOffset":12938,"symbol":"GSEventRunModal","symbolLocation":139,"imageIndex":6},{"imageOffset":14949075,"symbol":"-[UIApplication
_run]","symbolLocation":994,"imageIndex":7},{"imageOffset":14969327,"symbol":"UIApplicationMain","symbolLocation":123,"imageIndex":7},{"imageOffset":8693,"symbol":"main","symbolLocation":183,"imageIndex":8},{"imageOffset":8895,"symbol":"start_sim","symbolLocation":10,"imageIndex":9},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":10}],
"faultingThread" : 0, "threads" :
[{"triggered":true,"id":3080438,"threadState":{"r13":{"value":206158430216},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":140701879141904},"cr2":{"value":140703129874270},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":140701879142512},"r15":{"value":22},"rbx":{"value":4672885440,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140704035754766,"matchesCrashFrame":1},"rbp":{"value":140701879142256},"rsp":{"value":140701879142216},"r12":{"value":259},"rcx":{"value":140701879142216},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":33550,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":24443,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":516064,"symbol":"abort","symbolLocation":130,"imageIndex":2},{"imageOffset":67394,"symbol":"abort_message","symbolLocation":241,"imageIndex":3},{"imageOffset":6493,"symbol":"demangling_terminate_handler()","symbolLocation":266,"imageIndex":3},{"imageOffset":24706,"symbol":"_objc_terminate()","symbolLocation":96,"imageIndex":4},{"imageOffset":64357,"symbol":"std::__terminate(void
(*)())","symbolLocation":8,"imageIndex":3},{"imageOffset":74660,"symbol":"__cxa_rethrow","symbolLocation":99,"imageIndex":3},{"imageOffset":138509,"symbol":"objc_exception_rethrow","symbolLocation":37,"imageIndex":4},{"imageOffset":517993,"symbol":"CFRunLoopRunSpecific","symbolLocation":754,"imageIndex":5},{"imageOffset":12938,"symbol":"GSEventRunModal","symbolLocation":139,"imageIndex":6},{"imageOffset":14949075,"symbol":"-[UIApplication
_run]","symbolLocation":994,"imageIndex":7},{"imageOffset":14969327,"symbol":"UIApplicationMain","symbolLocation":123,"imageIndex":7},{"imageOffset":8693,"symbol":"main","symbolLocation":183,"imageIndex":8},{"imageOffset":8895,"symbol":"start_sim","symbolLocation":10,"imageIndex":9},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":10}]},{"id":3080469,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":3080470,"queue":"AXCodeLoader","frames":[{"imageOffset":381054,"symbol":"-[__NSCFString
retain]","symbolLocation":5,"imageIndex":5},{"imageOffset":580687,"symbol":"-[AXCodeLoader
_accessibilityCodeItemMatchingName:type:path:]","symbolLocation":703,"imageIndex":11},{"imageOffset":581534,"symbol":"-[AXCodeLoader
_associateAccessibilityCodeItemWithLoadedCodeItem:]","symbolLocation":334,"imageIndex":11},{"imageOffset":572225,"symbol":"__36-[AXCodeLoader
_addTrackedCodeItem:]_block_invoke","symbolLocation":273,"imageIndex":11},{"imageOffset":6139,"symbol":"_dispatch_call_block_and_release","symbolLocation":12,"imageIndex":12},{"imageOffset":10810,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":12},{"imageOffset":41798,"symbol":"_dispatch_lane_serial_drain","symbolLocation":949,"imageIndex":12},{"imageOffset":45027,"symbol":"_dispatch_lane_invoke","symbolLocation":400,"imageIndex":12},{"imageOffset":97094,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":870,"imageIndex":12},{"imageOffset":11491,"symbol":"_pthread_wqthread","symbolLocation":326,"imageIndex":1},{"imageOffset":7271,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":1}]},{"id":3080471,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":3080472,"name":"com.apple.uikit.eventfetch-thread","frames":[{"imageOffset":5794,"symbol":"mach_msg2_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":63101,"symbol":"mach_msg2_internal","symbolLocation":82,"imageIndex":0},{"imageOffset":34586,"symbol":"mach_msg_overwrite","symbolLocation":723,"imageIndex":0},{"imageOffset":6537,"symbol":"mach_msg","symbolLocation":19,"imageIndex":0},{"imageOffset":542862,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":145,"imageIndex":5},{"imageOffset":520159,"symbol":"__CFRunLoopRun","symbolLocation":1371,"imageIndex":5},{"imageOffset":517799,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":5},{"imageOffset":5605556,"symbol":"-[NSRunLoop(NSRunLoop)
runMode:beforeDate:]","symbolLocation":213,"imageIndex":13},{"imageOffset":5606189,"symbol":"-[NSRunLoop(NSRunLoop)
runUntilDate:]","symbolLocation":72,"imageIndex":13},{"imageOffset":15823494,"symbol":"-[UIEventFetcher
threadMain]","symbolLocation":535,"imageIndex":7},{"imageOffset":5775643,"symbol":"NSThread__start","symbolLocation":1009,"imageIndex":13},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":3080473,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":3080474,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]}],
"usedImages" : [ {
"source" : "P",
"arch" : "x86_64",
"base" : 140704035721216,
"size" : 237560,
"uuid" : "0c2fd2c9-777c-3355-b70f-7b1b6e9d1b0b",
"path" : "/usr/lib/system/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib" }, {
"source" : "P",
"arch" : "x86_64",
"base" : 140704036093952,
"size" : 49144,
"uuid" : "13b5e252-77d1-31e1-888d-1c5f4426ea87",
"path" : "/usr/lib/system/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib" }, {
"source" : "P",
"arch" : "x86_64",
"base" : 140703129358336,
"size" : 544760,
"uuid" : "8a60f5c1-ea1f-352b-b778-967be44e3677",
"path" : "/Applications/Xcode.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" : "x86_64",
"base" : 140703131009024,
"size" : 90108,
"uuid" : "ae8cbd53-0926-3251-b648-6f32d9330a50",
"path" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++abi.dylib",
"name" : "libc++abi.dylib" }, {
"source" : "P",
"arch" : "x86_64",
"base" : 140703128797184,
"size" : 212970,
"uuid" : "2a7a213a-fdb2-311c-81d7-efdfd9ddf25a",
"path" : "/Applications/Xcode.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" : "x86_64",
"base" : 140703131774976,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.CoreFoundation",
"size" : 3706877,
"uuid" : "2be0f79f-8b25-3614-9e7e-dbac565f72dd",
"path" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation",
EDIT
I noticed in the logs of the test result window:
023-01-10 21:04:33.843 DeviceAgent-Runner[90901:3282302] Running
tests... 2023-01-10 21:04:33.845 DeviceAgent-Runner[90901:3282302]
Unable to load configuration data from specified path ; error: The
file name is invalid. 2023-01-10 21:04:33.845
DeviceAgent-Runner[90901:3282302] Unable to load configuration data
from specified path ; error: The file name is invalid. 2023-01-10
21:04:33.848 DeviceAgent-Runner[90901:3282302] Found most recent test
bundle at NSBundle
</Users/drake/Library/Developer/CoreSimulator/Devices/B7B33614-1706-4361-8A0F-EE12175686CC/data/Containers/Bundle/Application/8CD92CE7-5550-4E8A-99B8-BCC0DD6147F9/DeviceAgent-Runner.app/PlugIns/DeviceAgent.xctest>
(not yet loaded) 2023-01-10 21:04:33.848
DeviceAgent-Runner[90901:3282302] Found most recent test configuration
in bundle:
/Users/drake/Library/Developer/CoreSimulator/Devices/B7B33614-1706-4361-8A0F-EE12175686CC/data/Containers/Bundle/Application/8CD92CE7-5550-4E8A-99B8-BCC0DD6147F9/DeviceAgent-Runner.app/PlugIns/DeviceAgent.xctest/CBX.xctestconfiguration
2023-01-10 21:04:33.850 DeviceAgent-Runner[90901:3282302] clearing out
IDE related attributes 2023-01-10 21:04:33.850
DeviceAgent-Runner[90901:3282302] Running with configuration
<XCTestConfiguration: 0x600000a245b0> 2023-01-10 21:04:33.854
DeviceAgent-Runner[90901:3282302] *** Assertion failure in void
_XCTestMain(XCTestConfiguration *__strong _Nonnull)(), /Library/Caches/com.apple.xbs/Sources/XCTest_Sim/XCTest-14460.20/Sources/XCTestFramework/Harness/XCTestMain.m:213
2023-01-10 21:04:33.856 DeviceAgent-Runner[90901:3282302] ***
Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'No test bundle found at
file:///private/var/containers/Bundle/Application/21A83AF9-FACE-FACE-FACE-00605F990879/UITest-Runner.app/PlugIns/UITest.xctest'
2023-01-10 21:04:34.158 xcodebuild[90891:3282023] [MT]
IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2023-01-10 21:04:34.158 xcodebuild[90891:3282023] [MT]
IDETestOperationsObserverDebug: 1.940 elapsed -- Testing started
completed. 2023-01-10 21:04:34.158 xcodebuild[90891:3282023] [MT]
IDETestOperationsObserverDebug: 1.940 sec, +1.940 sec -- end
2023-01-10 21:04:34.217 xcodebuild[90891:3282023] [MT] IDEResultKit:
Warning: While writing a result bundle to
/var/folders/jn/t9rq3scj2v13v8cmvl7kw2h80000gn/T/xdb/logs/2023.01.10.210431/DerivedData/Logs/Test/Test-Transient
Testing-2023.01.10_21-04-32--0500.xcresult, not all contents have been
imported, as the Staging directory still contains the following
files/directories: ["1_Test"]
Do I need to include a path to a configuration somewhere?
EDIT 2
I notice there is no reference to Xamarin.Calabash if I remove the #if ENABLE_TEST_CLOUD. Is there another package I need to add to my project?
Check the location of UITest.xctest. The error message in your edit indicates there is no test bundle.
No test bundle found at file:///private/var/containers/Bundle/Application/21A83AF9-FACE-FACE-FACE-00605F990879/UITest-Runner.app/PlugIns/UITest.xctest

Library not loaded: #rpath/Toast.framework/Toast when debugging flutter app

Today when I start debugging the flutter(v2.10.3) app with android studio in macOS 12.5 with M1 chip, shows error like this:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: 6F929B73-3F57-461A-BC03-F534D610C50E
CrashReporter Key: 4B9AAD75-30E1-0E03-1197-562F10CD6CAA
Hardware Model: MacBookPro18,1
Process: Runner [20899]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/911ED020-A317-4E0E-AA48-A2369DD9EED8/data/Containers/Bundle/Application/CA725FC8-C3B4-4FC1-91DD-77DE7A74CC3F/Runner.app/Runner
Identifier: com.earth.dolphin
Version: 1.0.0 (1.0.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd_sim [17981]
Coalition: com.apple.CoreSimulator.SimDevice.911ED020-A317-4E0E-AA48-A2369DD9EED8 [4058]
Responsible Process: SimulatorTrampoline [17866]
Date/Time: 2022-07-30 12:28:46.6656 +0800
Launch Time: 2022-07-30 12:28:46.6099 +0800
OS Version: macOS 12.5 (21G72)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD 1 Library missing
Library not loaded: #rpath/Toast.framework/Toast
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/911ED020-A317-4E0E-AA48-A2369DD9EED8/data/Containers/Bundle/Application/CA725FC8-C3B4-4FC1-91DD-77DE7A74CC3F/Runner.app/Runner
Reason: tried: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/Toast.framework/Toast' (no such file), '/usr/lib/swift/Toast.framework/Toast' (no such file), '/Users/xiaoqiangjiang/Library/Developer/CoreSimulator/Devices/911ED020-A317-4E0E-AA48-A2369DD9EED8/data/Containers/Bundle/Application/CA725FC8-C3B4-4FC1-91DD-77DE7A74CC3F/Runner.app/Frameworks/Toast.framework/Toast' (no such file), '/Users/xiaoqiangjiang/Library/Developer/CoreSimulator/Devices/911ED020-A317-4E0E-AA48-A2369DD9EED8/data/Containers/Bundle/Application/CA725FC8-C3B4-4FC1-91DD-77DE7A74CC3F/Runner.app/Frameworks/Toast.framework/Toast' (no such file), '/Users
(terminated at launch; ignore backtrace)
Triggered by Thread: 0
Thread 0 Crashed:
0 dyld 0x1046efe98 __abort_with_payload + 8
1 dyld 0x1046f7024 abort_with_payload_wrapper_internal + 104
2 dyld 0x1046f7058 abort_with_payload + 16
3 dyld_sim 0x1045d411c abort_with_payload + 40
4 dyld_sim 0x1045a54f4 dyld4::halt(char const*) + 324
5 dyld_sim 0x1045a19d4 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 2468
6 dyld_sim 0x1045a1bf4 _dyld_sim_prepare + 376
7 dyld 0x1046aa4c4 dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 1052
8 dyld 0x1046a9274 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 248
9 dyld 0x1046a906c start + 488
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000001 x2: 0x000000016b9747a0 x3: 0x00000000000000ee
x4: 0x000000016b9743a0 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000020 x9: 0x0000000000000010 x10: 0x0000000000000000 x11: 0x207972617262694c
x12: 0x0000000000000027 x13: 0x0000000000000032 x14: 0x000000000013bc60 x15: 0x0000000000000000
x16: 0x0000000000000209 x17: 0x00000000000fde70 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016b9743a0 x21: 0x00000000000000ee x22: 0x000000016b9747a0 x23: 0x0000000000000001
x24: 0x0000000000000006 x25: 0x000000016b975108 x26: 0x00000001045f00c8 x27: 0x0000000000000000
x28: 0x000000016b975038 fp: 0x000000016b974360 lr: 0x00000001046f7024
sp: 0x000000016b974320 pc: 0x00000001046efe98 cpsr: 0x00001000
far: 0x0000000104624000 esr: 0x56000080 Address size fault
Binary Images:
0x1046a4000 - 0x104703fff dyld (*) <75627683-a780-32ad-ae34-cf86dd23a26b> /usr/lib/dyld
0x1045a0000 - 0x1045dbfff dyld_sim (*) <67298116-bb18-3438-b22e-8d2b9d4618e9> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed
EOF
-----------
Full Report
-----------
{"app_name":"Runner","timestamp":"2022-07-30 12:28:46.00 +0800","app_version":"1.0.0","slice_uuid":"791b909c-b70e-34e2-9813-fc2da9cfbed7","build_version":"1.0.0","platform":7,"bundleID":"com.earth.dolphin","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.5 (21G72)","incident_id":"6F929B73-3F57-461A-BC03-F534D610C50E","name":"Runner"}
{
"uptime" : 6400,
"procLaunch" : "2022-07-30 12:28:46.6099 +0800",
"procRole" : "Foreground",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro18,1",
"procStartAbsTime" : 155477543631,
"coalitionID" : 4058,
"osVersion" : {
"train" : "macOS 12.5",
"build" : "21G72",
"releaseType" : "User"
},
"captureTime" : "2022-07-30 12:28:46.6656 +0800",
"incident" : "6F929B73-3F57-461A-BC03-F534D610C50E",
"bug_type" : "309",
"pid" : 20899,
"procExitAbsTime" : 155477977313,
"translated" : false,
"cpuType" : "ARM-64",
"procName" : "Runner",
"procPath" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/911ED020-A317-4E0E-AA48-A2369DD9EED8\/data\/Containers\/Bundle\/Application\/CA725FC8-C3B4-4FC1-91DD-77DE7A74CC3F\/Runner.app\/Runner",
"bundleInfo" : {"CFBundleShortVersionString":"1.0.0","CFBundleVersion":"1.0.0","CFBundleIdentifier":"com.earth.dolphin"},
"storeInfo" : {"deviceIdentifierForVendor":"240CB839-BD26-57B4-8B0B-8DD4C99F160A","thirdParty":true},
"parentProc" : "launchd_sim",
"parentPid" : 17981,
"coalitionName" : "com.apple.CoreSimulator.SimDevice.911ED020-A317-4E0E-AA48-A2369DD9EED8",
"crashReporterKey" : "4B9AAD75-30E1-0E03-1197-562F10CD6CAA",
"responsiblePid" : 17866,
"responsibleProc" : "SimulatorTrampoline",
"sleepWakeUUID" : "FEBE014E-816D-4438-913C-962DA1859BCB",
"sip" : "enabled",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"termination" : {"code":1,"flags":518,"namespace":"DYLD","indicator":"Library missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Library not loaded: #rpath\/Toast.framework\/Toast","Referenced from: \/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/911ED020-A317-4E0E-AA48-A2369DD9EED8\/data\/Containers\/Bundle\/Application\/CA725FC8-C3B4-4FC1-91DD-77DE7A74CC3F\/Runner.app\/Runner","Reason: tried: '\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/swift\/Toast.framework\/Toast' (no such file), '\/usr\/lib\/swift\/Toast.framework\/Toast' (no such file), '\/Users\/xiaoqiangjiang\/Library\/Developer\/CoreSimulator\/Devices\/911ED020-A317-4E0E-AA48-A2369DD9EED8\/data\/Containers\/Bundle\/Application\/CA725FC8-C3B4-4FC1-91DD-77DE7A74CC3F\/Runner.app\/Frameworks\/Toast.framework\/Toast' (no such file), '\/Users\/xiaoqiangjiang\/Library\/Developer\/CoreSimulator\/Devices\/911ED020-A317-4E0E-AA48-A2369DD9EED8\/data\/Containers\/Bundle\/Application\/CA725FC8-C3B4-4FC1-91DD-77DE7A74CC3F\/Runner.app\/Frameworks\/Toast.framework\/Toast' (no such file), '\/Users"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":134213,"threadState":{"x":[{"value":6},{"value":1},{"value":6100043680},{"value":238},{"value":6100042656},{"value":0},{"value":0},{"value":0},{"value":32},{"value":16},{"value":0},{"value":2340027244252129612},{"value":39},{"value":50},{"value":1293408},{"value":0},{"value":521},{"value":1039984},{"value":0},{"value":0},{"value":6100042656},{"value":238},{"value":6100043680},{"value":1},{"value":6},{"value":6100046088},{"value":4368302280,"symbolLocation":0,"symbol":"gProcessInfo"},{"value":0},{"value":6100045880}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4369379364},"cpsr":{"value":4096},"fp":{"value":6100042592},"sp":{"value":6100042528},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":4369350296,"matchesCrashFrame":1},"far":{"value":4368515072}},"frames":[{"imageOffset":310936,"symbol":"__abort_with_payload","symbolLocation":8,"imageIndex":0},{"imageOffset":340004,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":104,"imageIndex":0},{"imageOffset":340056,"symbol":"abort_with_payload","symbolLocation":16,"imageIndex":0},{"imageOffset":213276,"symbol":"abort_with_payload","symbolLocation":40,"imageIndex":1},{"imageOffset":21748,"symbol":"dyld4::halt(char const*)","symbolLocation":324,"imageIndex":1},{"imageOffset":6612,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":2468,"imageIndex":1},{"imageOffset":7156,"symbol":"_dyld_sim_prepare","symbolLocation":376,"imageIndex":1},{"imageOffset":25796,"symbol":"dyld4::prepareSim(dyld4::RuntimeState&, char const*)","symbolLocation":1052,"imageIndex":0},{"imageOffset":21108,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":248,"imageIndex":0},{"imageOffset":20588,"symbol":"start","symbolLocation":488,"imageIndex":0}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64e",
"base" : 4369039360,
"size" : 393216,
"uuid" : "75627683-a780-32ad-ae34-cf86dd23a26b",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4367974400,
"size" : 245760,
"uuid" : "67298116-bb18-3438-b22e-8d2b9d4618e9",
"path" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/dyld_sim",
"name" : "dyld_sim"
}
],
"vmSummary" : "ReadOnly portion of Libraries: Total=4912K resident=0K(0%) swapped_out_or_unallocated=4912K(100%)\nWritable regions: Total=10.0M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=10.0M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8176K 1 \nVM_ALLOCATE 16K 1 \n__DATA 112K 5 \n__DATA_CONST 384K 4 \n__LINKEDIT 1728K 5 \n__TEXT 3200K 4 \ndyld private memory 2048K 2 \n=========== ======= ======= \nTOTAL 71.3M 23 \n",
"legacyInfo" : {
"threadTriggered" : {
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "5fb4245a1bbfe8005e33a1e1",
"factorPackIds" : {
},
"deploymentId" : 240000015
},
{
"rolloutId" : "61af99aeda72d16a4beb7756",
"factorPackIds" : {
"SIRI_DIALOG_ASSETS" : "62b9afba7e9ada388efffaa0"
},
"deploymentId" : 240000271
}
],
"experiments" : [
]
},
"reportNotes" : [
"dyld_process_snapshot_get_shared_cache failed"
]
}
Model: MacBookPro18,1, BootROM 7459.141.1, proc 10:8:2 processors, 32 GB, SMC
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3456 x 2234 Retina, Main, MirrorOff, Online
Display: dolphin’s MacBook Pro, 3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition), MirrorOff
Memory Module: LPDDR5
AirPort: Wi-Fi, wl0: Apr 6 2022 05:55:54 version 20.90.45.0.8.7.118 FWID 01-e7138ff2
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
The flutter app start on iPhone XR emulator and suddenly exists. I did not change the project code recently, why did this happen? what should I do to fixed this problem? The android studio version is:
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 19, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.5
GC: G1 Young Generation, G1 Old Generation
Memory: 2280M
Cores: 10
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: Dart (212.5744), org.moe.community (1.4.10), com.thoughtworks.gauge (212.4746.52), org.jetbrains.kotlin (212-1.7.10-release-333-AS5457.46), io.flutter (69.0.2)
Finally I found upgrade the ruby-macho version greater than 2.5.1 could fix this problem:
➜ ios git:(main) ✗ sudo gem install ruby-macho
Password:
Fetching ruby-macho-3.0.0.gem
Successfully installed ruby-macho-3.0.0
Parsing documentation for ruby-macho-3.0.0
Installing ri documentation for ruby-macho-3.0.0
Done installing documentation for ruby-macho after 0 seconds
1 gem installed
more information could fetch from here: https://github.com/flutter/flutter/issues/92896

Xcode 13.2.1 Crashes on launch on Monterey

I just did a clean install on my mac with the latest MacOS Monterey, since then I had problems launching Xcode. I try to downgrade to Xcode 12 but it also can't launch with a different set of errors. I have removed the Xcode and reinstalled as well, but keep getting the errors the following errors.
When I launch Xcode I see an error stating that
Xcode quit unexpectedly. Click Reopen to open the application again. Click Report to see more detailed information and send a report to apple. "
The following is the information in the bug report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Xcode [13028]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 13.2.1 (19586)
Build Info: IDEFrameworks-19586000000000000~2 (13C100)
App Item ID: 497799835
App External ID: 845961054
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2021-12-29 21:05:14.8494 +0800
OS Version: macOS 12.1 (21C52)
Report Version: 12
Anonymous UUID: 761BB2D2-9587-496F-A99B-28153F166DE4
Sleep/Wake UUID: EFC592FD-C240-4939-B494-F1EDB25D5747
Time Awake Since Boot: 29000 seconds
Time Since Wake: 3461 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
dlopen(#rpath/libIDEApplicationLoader.dylib, 0x0001): tried:(security policy does not allow # path expansion)
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff81d9e5112 __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff81da1b214 pthread_kill + 263
2 libsystem_c.dylib 0x7ff81d967d10 abort + 123
3 Xcode 0x1019c3537 main.cold.1 + 38
4 Xcode 0x1019c2d42 main + 336
5 dyld 0x1102154fe start + 462
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000110290600 rcx: 0x00007ff7be53f978 rdx: 0x0000000000000000
rdi: 0x0000000000000103 rsi: 0x0000000000000006 rbp: 0x00007ff7be53f9a0 rsp: 0x00007ff7be53f978
r8: 0x00007fe49080a038 r9: 0xfffeffffffffffff r10: 0x0000000000000000 r11: 0x0000000000000246
r12: 0x0000000000000103 r13: 0x00007fe49011f760 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007ff81d9e5112 rfl: 0x0000000000000246 cr2: 0x00007ff860821e00
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x7ff81d9de000 - 0x7ff81da14fff libsystem_kernel.dylib (*) <5aa1e5be-b5b8-3a02-9885-a8c99e0ca378> /usr/lib/system/libsystem_kernel.dylib
0x7ff81da15000 - 0x7ff81da20fff libsystem_pthread.dylib (*) <6c7561b4-4b92-3f45-921e-abe669299844> /usr/lib/system/libsystem_pthread.dylib
0x7ff81d8e6000 - 0x7ff81d96efff libsystem_c.dylib (*) <e58814cc-dcb7-35a5-badc-e367ed3ac207> /usr/lib/system/libsystem_c.dylib
0x1019c0000 - 0x1019c3fff com.apple.dt.Xcode (13.2.1) <c1d00c9f-cea5-312a-b16d-c9bb36eebb41> /Applications/Xcode.app/Contents/MacOS/Xcode
0x110210000 - 0x11027bfff dyld (*) <cef5a27a-d50b-3020-af03-1734b19bc8c5> /usr/lib/dyld
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=885.5M resident=0K(0%) swapped_out_or_unallocated=885.5M(100%)
Writable regions: Total=155.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.1M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Kernel Alloc Once 8K 1
MALLOC 27.1M 14
MALLOC guard page 24K 5
MALLOC_MEDIUM (reserved) 120.0M 1 reserved VM address space (unallocated)
STACK GUARD 56.0M 1
Stack 8192K 1
VM_ALLOCATE 8K 2
__DATA 18.1M 287
__DATA_CONST 13.8M 191
__DATA_DIRTY 736K 109
__FONT_DATA 4K 1
__LINKEDIT 641.0M 7
__OBJC_RO 81.8M 1
__OBJC_RW 3136K 2
__TEXT 244.5M 309
__UNICODE 588K 1
dyld private memory 1024K 1
shared memory 8K 1
=========== ======= =======
TOTAL 1.2G 935
TOTAL, minus reserved VM space 1.1G 935
-----------
Full Report
-----------
{"app_name":"Xcode","timestamp":"2021-12-29 21:05:14.00 +0800","app_version":"13.2.1","slice_uuid":"c1d00c9f-cea5-312a-b16d-c9bb36eebb41","adam_id":"497799835","build_version":"19586","platform":1,"bundleID":"com.apple.dt.Xcode","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.1 (21C52)","incident_id":"2E4381E6-5319-48ED-95E1-7B6DE4E39E11","name":"Xcode"}
{
"uptime" : 29000,
"procLaunch" : "2021-12-29 21:05:14.8301 +0800",
"procRole" : "Default",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "iMac15,1",
"procStartAbsTime" : 29888813166473,
"coalitionID" : 4955,
"osVersion" : {
"train" : "macOS 12.1",
"build" : "21C52",
"releaseType" : "User"
},
"captureTime" : "2021-12-29 21:05:14.8494 +0800",
"incident" : "2E4381E6-5319-48ED-95E1-7B6DE4E39E11",
"bug_type" : "309",
"pid" : 13028,
"procExitAbsTime" : 29888831985917,
"cpuType" : "X86-64",
"procName" : "Xcode",
"procPath" : "\/Applications\/Xcode.app\/Contents\/MacOS\/Xcode",
"bundleInfo" : {"CFBundleShortVersionString":"13.2.1","CFBundleVersion":"19586","CFBundleIdentifier":"com.apple.dt.Xcode"},
"buildInfo" : {"ProjectName":"IDEFrameworks","SourceVersion":"19586000000000000","ProductBuildVersion":"13C100","BuildVersion":"2"},
"storeInfo" : {"storeCohortMetadata":"10|date=1640779200000&sf=143473&pgtp=Search&pgid=osx&prpg=Genre_133005&ctxt=Search&issrch=1&imptyp=lockup&kind=macSoftware&lngid=2","itemID":"497799835","deviceIdentifierForVendor":"3397027C-A430-5AB7-960B-AD9958C5155F","thirdParty":true,"softwareVersionExternalIdentifier":"845961054"},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.apple.dt.Xcode",
"crashReporterKey" : "761BB2D2-9587-496F-A99B-28153F166DE4",
"wakeTime" : 3461,
"sleepWakeUUID" : "EFC592FD-C240-4939-B494-F1EDB25D5747",
"sip" : "enabled",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"asi" : {"Xcode":["dlopen(#rpath\/libIDEApplicationLoader.dylib, 0x0001): tried:(security policy does not allow # path expansion)"],"libsystem_c.dylib":["abort() called"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":294397,"threadState":{"r13":{"value":140619646367584},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":140619653619768},"cr2":{"value":140704747757056},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":18446462598732840959},"r15":{"value":22},"rbx":{"value":4566091264,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703625531666,"matchesCrashFrame":1},"rbp":{"value":140702026824096},"rsp":{"value":140702026824056},"r12":{"value":259},"rcx":{"value":140702026824056},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":28946,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":25108,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":531728,"symbol":"abort","symbolLocation":123,"imageIndex":2},{"imageOffset":13623,"symbol":"main.cold.1","symbolLocation":38,"imageIndex":3},{"imageOffset":11586,"symbol":"main","symbolLocation":336,"imageIndex":3},{"imageOffset":21758,"symbol":"start","symbolLocation":462,"imageIndex":4}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703625502720,
"size" : 225280,
"uuid" : "5aa1e5be-b5b8-3a02-9885-a8c99e0ca378",
"path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703625728000,
"size" : 49152,
"uuid" : "6c7561b4-4b92-3f45-921e-abe669299844",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703624486912,
"size" : 561152,
"uuid" : "e58814cc-dcb7-35a5-badc-e367ed3ac207",
"path" : "\/usr\/lib\/system\/libsystem_c.dylib",
"name" : "libsystem_c.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4321968128,
"CFBundleShortVersionString" : "13.2.1",
"CFBundleIdentifier" : "com.apple.dt.Xcode",
"size" : 16384,
"uuid" : "c1d00c9f-cea5-312a-b16d-c9bb36eebb41",
"path" : "\/Applications\/Xcode.app\/Contents\/MacOS\/Xcode",
"name" : "Xcode",
"CFBundleVersion" : "19586"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4565565440,
"size" : 442368,
"uuid" : "cef5a27a-d50b-3020-af03-1734b19bc8c5",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
}
],
"sharedCache" : {
"base" : 140703622500352,
"size" : 15216738304,
"uuid" : "40432a03-88d3-305f-9c0c-e7549e71d927"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=885.5M resident=0K(0%) swapped_out_or_unallocated=885.5M(100%)\nWritable regions: Total=155.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.1M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nKernel Alloc Once 8K 1 \nMALLOC 27.1M 14 \nMALLOC guard page 24K 5 \nMALLOC_MEDIUM (reserved) 120.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 56.0M 1 \nStack 8192K 1 \nVM_ALLOCATE 8K 2 \n__DATA 18.1M 287 \n__DATA_CONST 13.8M 191 \n__DATA_DIRTY 736K 109 \n__FONT_DATA 4K 1 \n__LINKEDIT 641.0M 7 \n__OBJC_RO 81.8M 1 \n__OBJC_RW 3136K 2 \n__TEXT 244.5M 309 \n__UNICODE 588K 1 \ndyld private memory 1024K 1 \nshared memory 8K 1 \n=========== ======= ======= \nTOTAL 1.2G 935 \nTOTAL, minus reserved VM space 1.1G 935 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "5fc94383418129005b4e9ae0",
"factorPackIds" : {
},
"deploymentId" : 240000196
},
{
"rolloutId" : "601d9415f79519000ccd4b69",
"factorPackIds" : {
"SIRI_TEXT_TO_SPEECH" : "61c11dcd2cb6041dc630dc63"
},
"deploymentId" : 240000357
},
{
"rolloutId" : "607844aa04477260f58a8077",
"factorPackIds" : {
"SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
},
"deploymentId" : 240000066
},
{
"rolloutId" : "5ffde50ce2aacd000d47a95f",
"factorPackIds" : {
},
"deploymentId" : 240000090
},
{
"rolloutId" : "602ad4dac86151000cf27e46",
"factorPackIds" : {
"SIRI_DICTATION_ASSETS" : "6193d03f2171a2330e561dfc"
},
"deploymentId" : 240000290
},
{
"rolloutId" : "60da5e84ab0ca017dace9abf",
"factorPackIds" : {
},
"deploymentId" : 240000008
}
],
"experiments" : [
]
}
}
Model: iMac15,1, BootROM 432.40.8.0.1, 4 processors, Quad-Core Intel Core i7, 4 GHz, 32 GB, SMC 2.23f11
Graphics: AMD Radeon R9 M295X, AMD Radeon R9 M295X, PCIe, 4 GB
Display: iMac, Retina 5K (5120 x 2880), Main, MirrorOff, Online
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x0000, 0x000000000000000000000000000000000000
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 0/DIMM1, 8 GB, DDR3, 1600 MHz, 0x0000, 0x000000000000000000000000000000000000
Memory Module: BANK 1/DIMM1, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x142), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1710.3)
AirPort:
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: APPLE SSD SD0128F, 121.33 GB
Serial ATA Device: Samsung SSD 850 EVO 500GB, 500.11 GB
USB Device: USB30Bus
USB Device: My Passport 25AA
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: FaceTime HD Camera (Built-in)
USB Device: USB2.0 Hub
USB Device: Gaming Mouse G402
USB Device: QuickFire Rapid keyboard
Thunderbolt Bus: iMac, Apple Inc., 26.1

How to resolve code line from Mbed crash dump on Windows 10?

An Mbed code is throwing the crash dump below and I wish to find the line corresponding to the given PC. I'm on Windows though, so the simple "addr2line" is not available. I tried addr2line with Ubuntu shell on Windows, but it gives ??:?
What is the best tool on Windows 10 to perform address-to-line resolution from ARM ELF?
++ MbedOS Fault Handler ++
FaultType: HardFault
Context:
R0: 0
R1: 2000A0C8
R2: 1
R3: 14
R4: 20007854
R5: 2000A0
R6: 68
R7: 0
R8: 0
R9: 0
R10: 0
R11: 0
R12: 29FC1
SP : 2000A8B8
LR : 2C007
PC : 2000A0C8
xPSR : 0
PSP : 2000A898
MSP : 2003FFC0
CPUID: 410FC241
HFSR : 40000000
MMFSR: 0
BFSR : 0
UFSR : 2
DFSR : 0
AFSR : 0
Mode : Thread
Priv : Privileged
Stack: PSP
-- MbedOS Fault Handler --

Interpreting Section object in kernel dump

I'm trying to track down issues with a 3thParty application. The path currently being investigated is to look into a Section object that get's created in each process: rpsPdf10.mutex.
If the name of the object is any indication for it's intended usage, I'm not sure why they choose a Section object and use it as a Mutex but that's likely largely irrelevant.
Using LiveKd I've issued following command's trying to get detailed info of the Section object
0: kd>!process 0 0 3thParty.exe
...
PROCESS fffffa800ea80060
SessionId: 0 Cid: 0a00 Peb: fffdf000 ParentCid: 014c
DirBase: 99349000 ObjectTable: fffff8a004448bf0 HandleCount: 338.
Image: 3thParty.exe
...
0: kd> !handle 0 7 fffffa800ea80060
...
08 fffff8a012e26710 Section rpsPdf10.mutex
...
0: kd> !object fffff8a012e26710
Object: fffff8a012e26710 Type: (fffffa800cd7cea0) Section
ObjectHeader: fffff8a012e266e0 (new version)
HandleCount: 38 PointerCount: 39
Directory Object: fffff8a00a980080 Name: rpsPdf10.mutex
0: kd> dt nt!_FILE_OBJECT fffff8a012e26710
+0x000 Type : 0n256
+0x002 Size : 0n0
+0x008 DeviceObject : 0x000000000008dfb0 _DEVICE_OBJECT
+0x010 Vpb : 0xfffffa80c0000001 _VPB
+0x018 FsContext : (null)
+0x020 FsContext2 : 0xfffffa8000000034 Void
+0x028 SectionObjectPointer : 0xfffff8a0102d7820 _SECTION_OBJECT_POINTERS
+0x030 PrivateCacheMap : 0x0000000000001000 Void
+0x038 FinalStatus : 0n73728
+0x040 RelatedFileObject : 0x63536153030a040c _FILE_OBJECT
+0x048 LockOperation : 0x74 't'
+0x049 DeletePending : 0 ''
+0x04a ReadAccess : 0x65 'e'
+0x04b WriteAccess : 0 ''
+0x04c DeleteAccess : 0x73 's'
+0x04d SharedRead : 0 ''
+0x04e SharedWrite : 0x74 't'
The string 't' 'e' 's' 't' in the output definitely sticks out so
either I'm following a wrong path -> tx to Blabb, this is certain. It's not a fileobject but the question remains how to find out more information about the Section object. It's still curious and/or a rather unfortunate coincidence that following the section and control area pointers I derived from the fileobject info do seem correct?!
or there's something wrong with the Section object
or ... ?
tldr;
Following the _SECTION_OBJECT_POINTERS of the _FILE_OBJECT structure above, I arrive at a
NumberOfMappedViews of 0x26 (= HandleCount: 38)
NumberOfUserReferences of 0x27 (= PointerCount: 39)
so for the moment I assume the path I've followed is correct.
0: kd> dt nt!_SECTION_OBJECT_POINTERS 0xfffff8a0102d7820
+0x000 DataSectionObject : 0xfffffa800fbed900 Void
+0x008 SharedCacheMap : 0x0008000000000001 Void
+0x010 ImageSectionObject : 0x0000000000000001 Void
0: kd> dt nt!_CONTROL_AREA 0xfffffa800fbed900
+0x000 Segment : 0xfffff8a0102d7820 _SEGMENT
+0x008 DereferenceList : _LIST_ENTRY [ 0x0000000000000000 - 0x0000000000000000 ]
+0x018 NumberOfSectionReferences : 1
+0x020 NumberOfPfnReferences : 0
+0x028 NumberOfMappedViews : 0x26
+0x030 NumberOfUserReferences : 0x27
Edit
The object header looks like this
0: kd> dt nt!_OBJECT_HEADER fffff8a012e266e0
+0x000 PointerCount : 0n39
+0x008 HandleCount : 0n38
+0x008 NextToFree : 0x00000000`00000026 Void
+0x010 Lock : _EX_PUSH_LOCK
+0x018 TypeIndex : 0x21 '!'
+0x019 TraceFlags : 0 ''
+0x01a InfoMask : 0xa ''
+0x01b Flags : 0 ''
+0x020 ObjectCreateInfo : 0xfffffa80`0e505140 _OBJECT_CREATE_INFORMATION
+0x020 QuotaBlockCharged : 0xfffffa80`0e505140 Void
+0x028 SecurityDescriptor : 0xfffff8a0`1ba076a8 Void
+0x030 Body : _QUAD
Edit 2
following #blabb's answer adjusting for architecture
0: kd> ? #$proc
Evaluate expression: -6047068061600 = fffffa80`0ea80060
0: kd> dx (char *)#$proc->ImageFileName
(char *)#$proc->ImageFileName : 0xfffffa800ea80340 : [Type: char *] : "3thParty.exe"
0: kd> !handle 0 0 #$proc section
...
0474: Object: fffff8a012e26710 GrantedAccess: 000f0007
...
0: kd> !object fffff8a012e26710
Object: fffff8a012e26710 Type: (fffffa800cd7cea0) Section
ObjectHeader: fffff8a012e266e0 (new version)
HandleCount: 38 PointerCount: 39
Directory Object: fffff8a00a980080 Name: rpsPdf10.mutex
0: kd> ?? (unsigned long) (#FIELD_OFFSET(nt!_OBJECT_HEADER, Body))
unsigned long 0x30
0: kd> dt nt!_object_header 0xfffff8a012e26710-0x30
+0x000 PointerCount : 0n39
+0x008 HandleCount : 0n38
+0x008 NextToFree : 0x00000000`00000026 Void
+0x010 Lock : _EX_PUSH_LOCK
+0x018 TypeIndex : 0x21 '!'
+0x019 TraceFlags : 0 ''
+0x01a InfoMask : 0xa ''
+0x01b Flags : 0 ''
+0x020 ObjectCreateInfo : 0xfffffa80`0e505140 _OBJECT_CREATE_INFORMATION
+0x020 QuotaBlockCharged : 0xfffffa80`0e505140 Void
+0x028 SecurityDescriptor : 0xfffff8a0`1ba076a8 Void
+0x030 Body : _QUAD
0: kd> x nt!ObTypeIndexTable
fffff800`01a70c00 nt!ObTypeIndexTable = <no type information>
0: kd> dt -r1 nt!_SECTION_OBJECT 0xfffff8a012e26710
+0x000 StartingVa : 0x00000022`00000100 Void
+0x008 EndingVa : 0x00000000`0008dfb0 Void
+0x010 Parent : 0xfffffa80`c0000001 Void
+0x018 LeftChild : (null)
+0x020 RightChild : 0xfffffa80`00000034 Void
+0x028 Segment : 0xfffff8a0`102d7820 _SEGMENT_OBJECT
+0x000 BaseAddress : 0xfffffa80`0fbed900 Void
+0x008 TotalNumberOfPtes : 1
+0x010 SizeOfSegment : _LARGE_INTEGER 0x1
+0x018 NonExtendedPtes : 0x1000
+0x01c ImageCommitment : 0
+0x020 ControlArea : (null)
+0x028 Subsection : (null)
+0x030 MmSectionFlags : 0xfffffa80`10987b10 _MMSECTION_FLAGS
+0x038 MmSubSectionFlags : 0x00000000`03400000 _MMSUBSECTION_FLAGS
0: kd> dc 0xfffff8a012e26710-0x30-0x50
fffff8a0`12e26690 030c0408 f4636553 0e1a02e0 fffffa80 ....Sec.........
fffff8a0`12e266a0 00000048 000000b8 0000001c fffffa80 H...............
fffff8a0`12e266b0 0e505140 fffffa80 00000000 00000000 #QP.............
fffff8a0`12e266c0 0a980080 fffff8a0 001c001c 00000000 ................
fffff8a0`12e266d0 10eb8770 fffff8a0 00000000 00000008 p...............
fffff8a0`12e266e0 00000027 00000000 00000026 00000000 '.......&.......
fffff8a0`12e266f0 00000000 00000000 000a0021 fffff8a0 ........!.......
fffff8a0`12e26700 0e505140 fffffa80 1ba076a8 fffff8a0 #QP......v......
0: kd> !pool 0xfffff8a012e26710-0x30-0x50 2
Pool page fffff8a012e26690 region is Paged pool
*fffff8a012e26690 size: c0 previous size: 80 (Allocated) *Sect (Protected)
Pooltag Sect : Section objects
This is a 32 bit machine running windows 7
Commands used are architecture agnostic but pointer arithmetic are arch dependent
Current process
kd> ? #$proc
Evaluate expression: -2061895528 = 8519f898
Process Name From EPROCESS->ImageFileName
kd> dx (char *)#$proc->ImageFileName
(char *)#$proc->ImageFileName : 0xffffffff8519fa04 : "windbg.exe" [Type: char *]
lets Search For Some Section Handles in this process
the TypeName is CaseSensitive
kd> !handle 0 3 #$proc Section
Searching for handles of type Section
PROCESS 8519f898 SessionId: 1 Cid: 0138 Peb: 7ffd8000 ParentCid: 0d04
DirBase: 7e257560 ObjectTable: b91a3520 HandleCount: 254.
Image: windbg.exe
Handle table at b91a3520 with 254 entries in use
00c0: Object: 9a10bc58 GrantedAccess: 00000004 Entry: 9945b180
Object: 9a10bc58 Type: (84eb6040) Section
ObjectHeader: 9a10bc40 (new version)
HandleCount: 6 PointerCount: 6
!handle 0 3 flag dumps object specific information which can be reverified using !object {object address}
kd> !object 9a10bc58
Object: 9a10bc58 Type: (84eb6040) Section
ObjectHeader: 9a10bc40 (new version)
HandleCount: 6 PointerCount: 6
each object has an objectheader in 32 bit it is 18 bytes prior to object address that is sizeof(nt!_OBJECT_HEADER- sizeof(obheader->Body)) body is embedded in HEADER as the last member and is variable sized
kd> ?? (unsigned long ) (#FIELD_OFFSET(nt!_OBJECT_HEADER , Body))
unsigned long 0x18
_OBJECT_HEADER is as follows (though sizes haven't changed there are differences between new version header and old version header)
kd> dt nt!_object_header 9a10bc58-0x18
+0x000 PointerCount : 0n6
+0x004 HandleCount : 0n6
+0x004 NextToFree : 0x00000006 Void
+0x008 Lock : _EX_PUSH_LOCK
+0x00c TypeIndex : 0x21 '!'
+0x00d TraceFlags : 0 ''
+0x00e InfoMask : 0x8 ''
+0x00f Flags : 0 ''
+0x010 ObjectCreateInfo : 0x82f7aa00 _OBJECT_CREATE_INFORMATION
+0x010 QuotaBlockCharged : 0x82f7aa00 Void
+0x014 SecurityDescriptor : (null)
+0x018 Body : _QUAD
the old version header had _OBJECT_TYPE directly in the header
the new version is an index into an array
here the type index is 0x21
the array of Type is at
kd> x nt!ObTypeIndexTable
82f88580 nt!ObTypeIndexTable = <no type information>
you can write a script like this to dump all the types
function log(instr)
{
host.diagnostics.debugLog(instr + "\n");
}
function exec (cmdstr)
{
return host.namespace.Debugger.Utility.Control.ExecuteCommand(cmdstr);
}
function dumptypeindex()
{
var cpob = host.createPointerObject
var titab = exec("x nt!ObTypeIndexTable").First().substr(0,8)
var obtype = cpob(host.parseInt64(titab , 16),"nt","_OBJECT_TYPE **")
var i = 2
while(obtype[i] !=0 )
{
log("index = "+i+"\t"+ host.memory.readWideString(obtype[i].Name.Buffer))
i++
}
}
executing this script would yield the types as follows
kd> .scriptload c:\wdscr\dumptypeindex.js
JavaScript script successfully loaded from 'c:\dumptypeindex.js'
kd> dx #$scriptContents.dumptypeindex()
index = 2 Type
index = 3 Directory
index = 4 SymbolicLink
index = 5 Token
index = 6 Job
index = 7 Process
index = 8 Thread
index = 9 UserApcReserve
index = 10 IoCompletionReserve
index = 11 DebugObject
index = 12 Event
index = 13 EventPair
index = 14 Mutant
index = 15 Callback
index = 16 Semaphore
index = 17 Timer
index = 18 Profile
index = 19 KeyedEvent
index = 20 WindowStation
index = 21 Desktop
index = 22 TpWorkerFactory
index = 23 Adapter
index = 24 Controller
index = 25 Device
index = 26 Driver
index = 27 IoCompletion
index = 28 File
index = 29 TmTm
index = 30 TmTxȂ؃扏楄
index = 31 TmRm
index = 32 TmEn
index = 33 Section
index = 34 Session
index = 35 Key
index = 36 ALPC Port
index = 37 PowerRequest
index = 38 WmiGuid
index = 39 EtwRegistration
index = 40 EtwConsumer
index = 41 FilterConnectionPort
index = 42 FilterCommunicationPort
index = 43 PcwObject
notice 0x21 = 0n33 = Section
given that we have a Section
we can dump the Section Object
kd> dt -r1 nt!_SECTION_OBJECT 9a10bc58
+0x000 StartingVa : 0x90f87b44 Void
+0x004 EndingVa : 0x82efb58a Void
+0x008 Parent : 0xc0802000 Void
+0x00c LeftChild : (null)
+0x010 RightChild : 0xc0c0a280 Void
+0x014 Segment : 0x995ed8d8 _SEGMENT_OBJECT
+0x000 BaseAddress : 0x86b65740 Void
+0x004 TotalNumberOfPtes : 0xdf
+0x008 SizeOfSegment : _LARGE_INTEGER 0x000000df`00080000
+0x010 NonExtendedPtes : 0xdf000
+0x014 ImageCommitment : 0
+0x018 ControlArea : (null)
+0x01c Subsection : (null)
+0x020 MmSectionFlags : 0x869f52a8 _MMSECTION_FLAGS
+0x024 MmSubSectionFlags : 0x02ea0000 _MMSUBSECTION_FLAGS
an object is preceded by object header which is preceded by the pool_header
kd> dc 9a10bc58-0x18-0x18
9a10bc28 060b0204 f4636553 00000720 00000070 ....Sec. ...p...
9a10bc38 00000000 00000000 00000006 00000006 ................
9a10bc48 00000000 00080021 82f7aa00 00000000 ....!...........
9a10bc58 90f87b44 82efb58a c0802000 00000000 D{....... ......
9a10bc68 c0c0a280 995ed8d8 000df000 00000000 ......^.........
9a10bc78 00012000 00000004 0670020b 6666744e . ........p.Ntff
9a10bc88 00f00702 00000a48 0000c0fe 00020000 ....H...........
9a10bc98 00000000 00000002 00000000 00000000 ................
notice the Sec tag Sect is used by SectionObjects
d> !pool 9a10bc58-0x18-0x18 2
Pool page 9a10bc28 region is Paged pool
*9a10bc28 size: 58 previous size: 20 (Allocated) *Sect (Protected)
Pooltag Sect : Section objects

Resources