Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when unlock the screen #771

Closed
Solipsistmonkey opened this issue Nov 28, 2024 · 20 comments
Closed

Crash when unlock the screen #771

Solipsistmonkey opened this issue Nov 28, 2024 · 20 comments
Labels
bug Something isn't working as expected

Comments

@Solipsistmonkey
Copy link

Solipsistmonkey commented Nov 28, 2024

I believe I was using a keyboard shortcut to move a window to another workspace, but I was pretty distracted

##### AeroSpace Runtime Error #####

Please report to:
    https://github.com/nikitabobko/AeroSpace/issues/new
    Please describe what you did to trigger this error

Message: Window(title: 'Optional("qb – pyproject.toml")', role: 'Optional("AXWindow")', subrole: 'Optional("AXStandardWindow")', identifier: 'nil', modal: 'Optional("false")', windowId: 'Optional("166")') is already unbound
Version: 0.16.0-Beta
Git hash: d172dfd8a92f2d339f3d46a12a297e43e80768ca
Coordinate: /Users/bobko/a/AeroSpace/Sources/AppBundle/tree/TreeNode.swift:115:34 unbindFromParent()
recursionDetectorDuringFailure: false
cli: false

Stacktrace:
0   AeroSpace                           0x0000000104c7b648 $s6Common6errorT_4file4line6column8functionxSS_SSS2iSStlF + 740
1   AeroSpace                           0x0000000104b2b324 $s9AppBundle33restoreClosedWindowsCacheIfNeeded19newlyDetectedWindowSbAA0K0C_tF + 2548
2   AeroSpace                           0x0000000104b18c28 $s9AppBundle9MacWindowC3get3app02axD07startupACSgAA0cA0C_So14AXUIElementRefaSbtFZTf4nnnd_n + 1648
3   AeroSpace                           0x0000000104b14fa0 $sSTsE10compactMapySayqd__Gqd__Sg7ElementQzKXEKlFSaySo14AXUIElementRefaG_9AppBundle6WindowCTg503$s9f55Bundle03MacA0C25detectNewWindowsAndGetAll7startupSayAA6h15CGSb_tFAGSgSo14D9RefaXEfU_AI0kF0CSbTf1cn_nTf4ngn_n + 248
4   AeroSpace                           0x0000000104b0d7ac $s9AppBundle03MacA0C25detectNewWindowsAndGetAll7startupSayAA6WindowCGSb_tF + 256
5   AeroSpace                           0x0000000104afd5d0 $s9AppBundle41detectNewWindowsAndAttachThemToWorkspaces33_9D4CAE07A16011BB7304F8F5007BD739LL7startupySb_tF + 384
6   AeroSpace                           0x0000000104afa9c4 $s9AppBundle14refreshSession26screenIsDefinitelyUnlocked7startup10forceFocus4bodyxSb_S2bxyXEtlFyt_Tg503$s9A70Bundle9MacWindowC14garbageCollect22skipClosedWindowsCacheySb_tFyyXEfU_SSTf1nnnnc_n + 752
7   AeroSpace                           0x0000000104b15410 $s9AppBundle9MacWindowC14garbageCollect22skipClosedWindowsCacheySb_tF + 712
8   AeroSpace                           0x0000000104aff9f8 $s9AppBundle9gcWindowsyyF + 500
9   AeroSpace                           0x0000000104afaed4 $s9AppBundle14refreshSession26screenIsDefinitelyUnlocked7startup10forceFocus4bodyxSb_S2bxyXEtlFyt_Tg503$s9a32Bundle16refreshAndLayout26screenfG31Unlocked7startupySb_SbtFyyXEfU_Tf1nnnnc_n + 644
10  AeroSpace                           0x0000000104a9f824 $s9AppBundle14GlobalObserverC7onNotif33_F1205CFDC13498282252A689C79131F6LLyy10Foundation12NotificationVFZTf4nd_n + 384
11  AeroSpace                           0x0000000104a9eb08 $s10Foundation12NotificationVIeghn_So14NSNotificationCIeyBhy_TR + 116
12  CoreFoundation                      0x000000019f42ab08 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 128
13  CoreFoundation                      0x000000019f4bedb8 ___CFXRegistrationPost_block_invoke + 88
14  CoreFoundation                      0x000000019f4bed00 _CFXRegistrationPost + 440
15  CoreFoundation                      0x000000019f3f9648 _CFXNotificationPost + 768
16  Foundation                          0x00000001a0515464 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
17  AppKit                              0x00000001a2e2abd4 applicationStatusSubsystemCallback + 728
18  LaunchServices                      0x000000019f8b4b20 ___LSScheduleNotificationFunction_block_invoke_2 + 52
19  CoreFoundation                      0x000000019f435a48 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
20  CoreFoundation                      0x000000019f43595c __CFRunLoopDoBlocks + 356
21  CoreFoundation                      0x000000019f434dec __CFRunLoopRun + 2440
22  CoreFoundation                      0x000000019f433e0c CFRunLoopRunSpecific + 608
23  HIToolbox                           0x00000001a9bcf000 RunCurrentEventLoopInMode + 292
24  HIToolbox                           0x00000001a9bcee3c ReceiveNextEventCommon + 648
25  HIToolbox                           0x00000001a9bceb94 _BlockUntilNextEventMatchingListInModeWithFilter + 76
26  AppKit                              0x00000001a2c8c970 _DPSNextEvent + 660
27  AppKit                              0x00000001a347edec -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 700
28  AppKit                              0x00000001a2c7fcb8 -[NSApplication run] + 476
29  AppKit                              0x00000001a2c56f54 NSApplicationMain + 880
30  SwiftUI                             0x00000001cad1d1e0 OUTLINED_FUNCTION_12 + 13968
31  SwiftUI                             0x00000001cb4828ec OUTLINED_FUNCTION_3 + 196
32  SwiftUI                             0x00000001cb87ca5c OUTLINED_FUNCTION_0 + 140
33  AeroSpace                           0x0000000104a9d3ec main + 36
34  dyld                                0x000000019efce0e0 start + 2360
@nikitabobko
Copy link
Owner

I have no idea yet what could cause this crash, but the code that crashes is part of the fix from #445

The only circumstances the code in the stacktrace could be running is when you the screen is locked (or at least it's the only realistic circumstances known to me when macOS reuses window IDs from old closed windows for newly opened windows)

  1. Does it keep crashing? Or it just crashed once and never yet happened again?
  2. Do you remember how many windows you had opened? aerospace list-windows --all --count

@nikitabobko nikitabobko added the bug Something isn't working as expected label Nov 28, 2024
@damian-ryczek
Copy link

I had the same issue twice already. It happened when I locked my Mac for the night with two displays connected, but in the morning, after turning the power back on, the aerospace was already in the crashed state. I had around five windows open.

@nikitabobko nikitabobko changed the title Not entirely sure what Idid, but ran into an error where I needed to restart Aerospace Crash when unlock the screen Nov 29, 2024
@nikitabobko
Copy link
Owner

nikitabobko commented Nov 29, 2024

Can you also please attach crash report from Console.app -> Crash Reports? (It has different format from the crash report in the issue description)

@damian-ryczek
Copy link

damian-ryczek commented Nov 29, 2024

1st

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               AeroSpace [92829]
Path:                  /Applications/AeroSpace.app/Contents/MacOS/AeroSpace
Identifier:            bobko.aerospace
Version:               0.16.0-Beta (???)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-11-28 18:16:48.6991 +0100
OS Version:            macOS 15.1.1 (24B91)
Report Version:        12
Anonymous UUID:        523357D7-C939-2648-3112-66483C193C1C

Sleep/Wake UUID:       4D71837F-5420-4B6A-8C12-966666034584

Time Awake Since Boot: 250000 seconds
Time Since Wake:       33289 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x00000001a743ea08

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [92829]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libswiftCore.dylib            	       0x1a743ea08 _assertionFailure(_:_:file:line:flags:) + 268
1   AeroSpace                     	       0x1047a3844 errorT<A>(_:file:line:column:function:) + 1248
2   AeroSpace                     	       0x104653324 restoreClosedWindowsCacheIfNeeded(newlyDetectedWindow:) + 2548
3   AeroSpace                     	       0x104640c28 specialized static MacWindow.get(app:axWindow:startup:) + 1648
4   AeroSpace                     	       0x10463cfa0 specialized Sequence.compactMap<A>(_:) + 248
5   AeroSpace                     	       0x1046357ac MacApp.detectNewWindowsAndGetAll(startup:) + 256
6   AeroSpace                     	       0x1046255d0 detectNewWindowsAndAttachThemToWorkspaces(startup:) + 384
7   AeroSpace                     	       0x1046229c4 specialized refreshSession<A>(screenIsDefinitelyUnlocked:startup:forceFocus:body:) + 752
8   AeroSpace                     	       0x10463d410 MacWindow.garbageCollect(skipClosedWindowsCache:) + 712
9   AeroSpace                     	       0x1046279f8 gcWindows() + 500
10  AeroSpace                     	       0x104622ed4 specialized refreshSession<A>(screenIsDefinitelyUnlocked:startup:forceFocus:body:) + 644
11  AeroSpace                     	       0x1045c7824 specialized static GlobalObserver.onNotif(_:) + 384
12  AeroSpace                     	       0x1045c6b08 thunk for @escaping @callee_guaranteed @Sendable (@in_guaranteed Notification) -> () + 116
13  CoreFoundation                	       0x1968867ec __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 128
14  CoreFoundation                	       0x19691766c ___CFXRegistrationPost_block_invoke + 88
15  CoreFoundation                	       0x1969175b4 _CFXRegistrationPost + 436
16  CoreFoundation                	       0x19685543c _CFXNotificationPost + 732
17  Foundation                    	       0x1979fdb14 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
18  AppKit                        	       0x19a555668 applicationStatusSubsystemCallback + 728
19  LaunchServices                	       0x196d2be84 ___LSScheduleNotificationFunction_block_invoke_2 + 52
20  CoreFoundation                	       0x1968918c0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
21  CoreFoundation                	       0x1968917d0 __CFRunLoopDoBlocks + 356
22  CoreFoundation                	       0x196890c00 __CFRunLoopRun + 2432
23  CoreFoundation                	       0x19688fbc4 CFRunLoopRunSpecific + 588
24  HIToolbox                     	       0x1a1cfff64 RunCurrentEventLoopInMode + 292
25  HIToolbox                     	       0x1a1d05d54 ReceiveNextEventCommon + 636
26  HIToolbox                     	       0x1a1d05eb8 _BlockUntilNextEventMatchingListInModeWithFilter + 76
27  AppKit                        	       0x19a3bba08 _DPSNextEvent + 660
28  AppKit                        	       0x19acfbe0c -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
29  AppKit                        	       0x19a3aeae0 -[NSApplication run] + 480
30  AppKit                        	       0x19a385364 NSApplicationMain + 888
31  SwiftUI                       	       0x1c4a35340 specialized runApp(_:) + 160
32  SwiftUI                       	       0x1c4ea5ee4 runApp<A>(_:) + 84
33  SwiftUI                       	       0x1c521ef24 static App.main() + 224
34  AeroSpace                     	       0x1045c53ec main + 36
35  dyld                          	       0x196428274 start + 2840

Thread 1::  Dispatch queue: com.apple.root.default-qos
0   libsystem_kernel.dylib        	       0x1967726e4 __accept + 8
1   AeroSpace                     	       0x104827810 Socket.acceptClientConnection(invokeDelegate:) + 452
2   AeroSpace                     	       0x1046300ec closure #3 in startUnixSocketServer() + 148
3   AeroSpace                     	       0x1046328bc thunk for @escaping @callee_guaranteed @Sendable () -> () + 28
4   libdispatch.dylib             	       0x1965f68f8 _dispatch_call_block_and_release + 32
5   libdispatch.dylib             	       0x1965f8658 _dispatch_client_callout + 20
6   libdispatch.dylib             	       0x1965fb7a0 _dispatch_queue_override_invoke + 916
7   libdispatch.dylib             	       0x19660a314 _dispatch_root_queue_drain + 392
8   libdispatch.dylib             	       0x19660ab20 _dispatch_worker_thread2 + 156
9   libsystem_pthread.dylib       	       0x1967a739c _pthread_wqthread + 228
10  libsystem_pthread.dylib       	       0x1967a60f0 start_wqthread + 8

Thread 2:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x196769e34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x19677c5d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1967729d8 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x19676a17c mach_msg + 24
4   CoreFoundation                	       0x196891edc __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x19689073c __CFRunLoopRun + 1212
6   CoreFoundation                	       0x19688fbc4 CFRunLoopRunSpecific + 588
7   AppKit                        	       0x19a4e0b8c _NSEventThread + 148
8   libsystem_pthread.dylib       	       0x1967ab2e4 _pthread_start + 136
9   libsystem_pthread.dylib       	       0x1967a60fc thread_start + 8

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

Thread 4:
0   libsystem_pthread.dylib       	       0x1967a60e8 start_wqthread + 0

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

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

Thread 7:
0   libsystem_pthread.dylib       	       0x1967a60e8 start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000122011408   x1: 0x0000000200000003   x2: 0x0000000122000000   x3: 0x0000000000000000
    x4: 0x0000000000004413   x5: 0x0000000000000013   x6: 0x0000000000000020   x7: 0x0000000000000000
    x8: 0xfffffffe00000000   x9: 0x0000000200000003  x10: 0x0000000000000003  x11: 0x000000000000002b
   x12: 0x0000000122000000  x13: 0x0000000122011420  x14: 0x000000000000001d  x15: 0x00000000ffff7dff
   x16: 0x00000002e89d7484  x17: 0x00000001965d7290  x18: 0x0000000000000000  x19: 0x00000001048c3090
   x20: 0x0000000122011400  x21: 0x0000000000000000  x22: 0x000000000000000b  x23: 0x0000000000000017
   x24: 0x000000000000002d  x25: 0x00000001048bc3e0  x26: 0xf000000000001378  x27: 0x0000000000000000
   x28: 0xd000000000000017   fp: 0x000000016b83ceb0   lr: 0x00000001a743ea08
    sp: 0x000000016b83cde0   pc: 0x00000001a743ea08 cpsr: 0x60001000
   far: 0x0000000000000000  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x1045c0000 -        0x1048dffff bobko.aerospace (0.16.0-Beta) <f8749a76-9a17-3c0e-9f1c-18b26ef753d5> /Applications/AeroSpace.app/Contents/MacOS/AeroSpace
       0x11094c000 -        0x110957fff libobjc-trampolines.dylib (*) <f1242604-dcb7-30a9-a19a-182991e6e645> /usr/lib/libobjc-trampolines.dylib
       0x11418c000 -        0x11482bfff com.apple.AGXMetalG13X (322.10) <e863b7d4-d308-3f26-a59f-9dc04134c15e> /System/Library/Extensions/AGXMetalG13X.bundle/Contents/MacOS/AGXMetalG13X
       0x1a7406000 -        0x1a79acfff libswiftCore.dylib (*) <53497bdd-8c93-3dc1-9ae9-82f27e47fb0a> /usr/lib/swift/libswiftCore.dylib
       0x196814000 -        0x196d08fff com.apple.CoreFoundation (6.9) <ae4610f8-7c5c-3484-858e-cae7457d206e> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1979f4000 -        0x198833fff com.apple.Foundation (6.9) <9b5ba00d-2241-342d-9949-f2f517d6989e> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x19a381000 -        0x19b77cfff com.apple.AppKit (6.9) <49d8b1b6-0ea8-36ad-89fd-a41acf00a742> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x196d09000 -        0x196fdffff com.apple.LaunchServices (1141.1) <aabd792d-cc4d-372f-a17e-ad3050501575> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
       0x1a1bf4000 -        0x1a1efbfff com.apple.HIToolbox (2.1.1) <738685cb-aca1-3dfe-91c5-192bab97a042> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x1c49e9000 -        0x1c61abfff com.apple.SwiftUI (6.1.19.2) <766fb524-278b-3c0c-9c63-2386ec6b2bfd> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
       0x196422000 -        0x1964a47b3 dyld (*) <6beafde4-b011-3e47-8aae-4d7b6e4bb7e8> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x1965b3000 -        0x1965f3ff7 libsystem_malloc.dylib (*) <9d2c8296-72fc-32f0-a2af-ca91f77dd5a4> /usr/lib/system/libsystem_malloc.dylib
       0x196769000 -        0x1967a3ff7 libsystem_kernel.dylib (*) <9fea25a4-e8ca-3f3d-901c-a53ff2bc7217> /usr/lib/system/libsystem_kernel.dylib
       0x1965f4000 -        0x19663afff libdispatch.dylib (*) <9ea577db-73c2-39d8-9fc0-544fa595a142> /usr/lib/system/libdispatch.dylib
       0x1967a4000 -        0x1967b0fff libsystem_pthread.dylib (*) <3b8268be-4e02-3b4a-8b41-baed2bbaacff> /usr/lib/system/libsystem_pthread.dylib

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: 10
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=1.8G written=675K(0%) resident=675K(0%) swapped_out=0K(0%) unallocated=1.8G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
AttributeGraph Data               1024K        1 
CG image                            32K        1 
ColorSync                          512K       26 
CoreAnimation                       48K        3 
CoreGraphics                        48K        3 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                             1.8G       92 
MALLOC guard page                  384K       24 
STACK GUARD                       56.1M        8 
Stack                             11.7M        8 
VM_ALLOCATE                        128K        8 
__AUTH                            2487K      331 
__AUTH_CONST                      33.7M      509 
__CTF                               824        1 
__DATA                            11.0M      488 
__DATA_CONST                      16.2M      513 
__DATA_DIRTY                      1160K      150 
__FONT_DATA                        2352        1 
__LINKEDIT                       590.4M        4 
__OBJC_RW                         2354K        1 
__TEXT                           527.6M      528 
__TPRO_CONST                       272K        2 
mapped file                      211.9M       25 
owned unmapped memory               48K        1 
page table in kernel               675K        1 
shared memory                      864K       12 
===========                     =======  ======= 
TOTAL                              3.2G     2744 



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

{"app_name":"AeroSpace","timestamp":"2024-11-28 18:16:55.00 +0100","app_version":"0.16.0-Beta","slice_uuid":"f8749a76-9a17-3c0e-9f1c-18b26ef753d5","build_version":"","platform":1,"bundleID":"bobko.aerospace","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 15.1.1 (24B91)","roots_installed":0,"name":"AeroSpace","incident_id":"27BB2CDF-CEC6-4165-9AA5-0E01D21083B2"}
{
  "uptime" : 250000,
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,3",
  "coalitionID" : 24460,
  "osVersion" : {
    "train" : "macOS 15.1.1",
    "build" : "24B91",
    "releaseType" : "User"
  },
  "captureTime" : "2024-11-28 18:16:48.6991 +0100",
  "codeSigningMonitor" : 1,
  "incident" : "27BB2CDF-CEC6-4165-9AA5-0E01D21083B2",
  "pid" : 92829,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-11-28 16:04:59.0463 +0100",
  "procStartAbsTime" : 6009269553670,
  "procExitAbsTime" : 6199099952487,
  "procName" : "AeroSpace",
  "procPath" : "\/Applications\/AeroSpace.app\/Contents\/MacOS\/AeroSpace",
  "bundleInfo" : {"CFBundleShortVersionString":"0.16.0-Beta","CFBundleIdentifier":"bobko.aerospace"},
  "storeInfo" : {"deviceIdentifierForVendor":"6643644A-C611-504C-9816-89113A60E10B","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "bobko.aerospace",
  "crashReporterKey" : "523357D7-C939-2648-3112-66483C193C1C",
  "codeSigningID" : "bobko.aerospace",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570425861,
  "codeSigningValidationCategory" : 10,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"4gMZquMDF6rkAxWq5QMTquYDFqrnAxiqFQCA0nIDAJTgAxSqtBcQlA==","atPC":"IAAg1CgAgFKJEoBS6BMAuekHAPlIAIBS6AMAOUApAPAA0DqRYykAkA=="},
  "bootSessionUUID" : "D909A29C-C178-477B-961F-E1E84F8A9A7D",
  "wakeTime" : 33289,
  "sleepWakeUUID" : "4D71837F-5420-4B6A-8C12-966666034584",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x00000001a743ea08","rawCodes":[1,7101213192],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":92829},
  "os_fault" : {"process":"AeroSpace"},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":10},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":7392246,"threadState":{"x":[{"value":4865463304},{"value":8589934595},{"value":4865392640},{"value":0},{"value":17427},{"value":19},{"value":32},{"value":0},{"value":18446744065119617024},{"value":8589934595},{"value":3},{"value":43},{"value":4865392640},{"value":4865463328},{"value":29},{"value":4294934015},{"value":12492567684},{"value":6817673872,"symbolLocation":0,"symbol":"nanov2_try_free_default"},{"value":0},{"value":4371263632},{"value":4865463296},{"value":0},{"value":11},{"value":23},{"value":45},{"value":4371235808},{"value":17293822569102709624},{"value":0},{"value":14987979559889010711}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7101213192},"cpsr":{"value":1610616832},"fp":{"value":6098767536},"sp":{"value":6098767328},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":7101213192,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":231944,"symbol":"_assertionFailure(_:_:file:line:flags:)","symbolLocation":268,"imageIndex":3},{"imageOffset":1980484,"symbol":"errorT<A>(_:file:line:column:function:)","symbolLocation":1248,"imageIndex":0},{"imageOffset":602916,"symbol":"restoreClosedWindowsCacheIfNeeded(newlyDetectedWindow:)","symbolLocation":2548,"imageIndex":0},{"imageOffset":527400,"symbol":"specialized static MacWindow.get(app:axWindow:startup:)","symbolLocation":1648,"imageIndex":0},{"imageOffset":511904,"symbol":"specialized Sequence.compactMap<A>(_:)","symbolLocation":248,"imageIndex":0},{"imageOffset":481196,"symbol":"MacApp.detectNewWindowsAndGetAll(startup:)","symbolLocation":256,"imageIndex":0},{"imageOffset":415184,"symbol":"detectNewWindowsAndAttachThemToWorkspaces(startup:)","symbolLocation":384,"imageIndex":0},{"imageOffset":403908,"symbol":"specialized refreshSession<A>(screenIsDefinitelyUnlocked:startup:forceFocus:body:)","symbolLocation":752,"imageIndex":0},{"imageOffset":513040,"symbol":"MacWindow.garbageCollect(skipClosedWindowsCache:)","symbolLocation":712,"imageIndex":0},{"imageOffset":424440,"symbol":"gcWindows()","symbolLocation":500,"imageIndex":0},{"imageOffset":405204,"symbol":"specialized refreshSession<A>(screenIsDefinitelyUnlocked:startup:forceFocus:body:)","symbolLocation":644,"imageIndex":0},{"imageOffset":30756,"symbol":"specialized static GlobalObserver.onNotif(_:)","symbolLocation":384,"imageIndex":0},{"imageOffset":27400,"symbol":"thunk for @escaping @callee_guaranteed @Sendable (@in_guaranteed Notification) -> ()","symbolLocation":116,"imageIndex":0},{"imageOffset":468972,"symbol":"__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__","symbolLocation":128,"imageIndex":4},{"imageOffset":1062508,"symbol":"___CFXRegistrationPost_block_invoke","symbolLocation":88,"imageIndex":4},{"imageOffset":1062324,"symbol":"_CFXRegistrationPost","symbolLocation":436,"imageIndex":4},{"imageOffset":267324,"symbol":"_CFXNotificationPost","symbolLocation":732,"imageIndex":4},{"imageOffset":39700,"symbol":"-[NSNotificationCenter postNotificationName:object:userInfo:]","symbolLocation":88,"imageIndex":5},{"imageOffset":1918568,"symbol":"applicationStatusSubsystemCallback","symbolLocation":728,"imageIndex":6},{"imageOffset":142980,"symbol":"___LSScheduleNotificationFunction_block_invoke_2","symbolLocation":52,"imageIndex":7},{"imageOffset":514240,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__","symbolLocation":28,"imageIndex":4},{"imageOffset":514000,"symbol":"__CFRunLoopDoBlocks","symbolLocation":356,"imageIndex":4},{"imageOffset":510976,"symbol":"__CFRunLoopRun","symbolLocation":2432,"imageIndex":4},{"imageOffset":506820,"symbol":"CFRunLoopRunSpecific","symbolLocation":588,"imageIndex":4},{"imageOffset":1097572,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":8},{"imageOffset":1121620,"symbol":"ReceiveNextEventCommon","symbolLocation":636,"imageIndex":8},{"imageOffset":1121976,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":76,"imageIndex":8},{"imageOffset":240136,"symbol":"_DPSNextEvent","symbolLocation":660,"imageIndex":6},{"imageOffset":9940492,"symbol":"-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":688,"imageIndex":6},{"imageOffset":187104,"symbol":"-[NSApplication run]","symbolLocation":480,"imageIndex":6},{"imageOffset":17252,"symbol":"NSApplicationMain","symbolLocation":888,"imageIndex":6},{"imageOffset":312128,"symbol":"specialized runApp(_:)","symbolLocation":160,"imageIndex":9},{"imageOffset":4968164,"symbol":"runApp<A>(_:)","symbolLocation":84,"imageIndex":9},{"imageOffset":8609572,"symbol":"static App.main()","symbolLocation":224,"imageIndex":9},{"imageOffset":21484,"symbol":"main","symbolLocation":36,"imageIndex":0},{"imageOffset":25204,"symbol":"start","symbolLocation":2840,"imageIndex":10}]},{"id":7392278,"threadState":{"x":[{"value":4},{"value":0},{"value":6099331420},{"value":5384464002},{"value":0},{"value":2453651468},{"value":105553155408048},{"value":6099326864},{"value":128},{"value":0},{"value":105553155408048},{"value":254333651255296},{"value":16},{"value":105553155429780},{"value":2095104},{"value":2043},{"value":30},{"value":11},{"value":0},{"value":5384463728},{"value":5384464002},{"value":0},{"value":6099331744},{"value":0},{"value":5384463780},{"value":8515238592,"symbolLocation":1536,"symbol":"_dispatch_root_queues"},{"value":9223372041226037760},{"value":14987979559889010718},{"value":4371261488}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4370626576},"cpsr":{"value":1610616832},"fp":{"value":6099332512},"sp":{"value":6099331312},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6819358436},"far":{"value":0}},"queue":"com.apple.root.default-qos","frames":[{"imageOffset":38628,"symbol":"__accept","symbolLocation":8,"imageIndex":13},{"imageOffset":2521104,"symbol":"Socket.acceptClientConnection(invokeDelegate:)","symbolLocation":452,"imageIndex":0},{"imageOffset":458988,"symbol":"closure #3 in startUnixSocketServer()","symbolLocation":148,"imageIndex":0},{"imageOffset":469180,"symbol":"thunk for @escaping @callee_guaranteed @Sendable () -> ()","symbolLocation":28,"imageIndex":0},{"imageOffset":10488,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":14},{"imageOffset":18008,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":14},{"imageOffset":30624,"symbol":"_dispatch_queue_override_invoke","symbolLocation":916,"imageIndex":14},{"imageOffset":90900,"symbol":"_dispatch_root_queue_drain","symbolLocation":392,"imageIndex":14},{"imageOffset":92960,"symbol":"_dispatch_worker_thread2","symbolLocation":156,"imageIndex":14},{"imageOffset":13212,"symbol":"_pthread_wqthread","symbolLocation":228,"imageIndex":15},{"imageOffset":8432,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":15}]},{"id":7392372,"name":"com.apple.NSEventThread","threadState":{"x":[{"value":268451845},{"value":21592279046},{"value":8589934592},{"value":217716187201536},{"value":0},{"value":217716187201536},{"value":2},{"value":4294967295},{"value":18446744073709550527},{"value":2},{"value":0},{"value":0},{"value":0},{"value":50691},{"value":0},{"value":0},{"value":18446744073709551569},{"value":8651903928},{"value":0},{"value":4294967295},{"value":2},{"value":217716187201536},{"value":0},{"value":217716187201536},{"value":6102196328},{"value":8589934592},{"value":21592279046},{"value":21592279046},{"value":4412409862}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6819399120},"cpsr":{"value":4096},"fp":{"value":6102196176},"sp":{"value":6102196096},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6819323444},"far":{"value":0}},"frames":[{"imageOffset":3636,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":13},{"imageOffset":79312,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":13},{"imageOffset":39384,"symbol":"mach_msg_overwrite","symbolLocation":480,"imageIndex":13},{"imageOffset":4476,"symbol":"mach_msg","symbolLocation":24,"imageIndex":13},{"imageOffset":515804,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":4},{"imageOffset":509756,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":4},{"imageOffset":506820,"symbol":"CFRunLoopRunSpecific","symbolLocation":588,"imageIndex":4},{"imageOffset":1440652,"symbol":"_NSEventThread","symbolLocation":148,"imageIndex":6},{"imageOffset":29412,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":15},{"imageOffset":8444,"symbol":"thread_start","symbolLocation":8,"imageIndex":15}]},{"id":7527375,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":15}],"threadState":{"x":[{"value":6103347200},{"value":35775},{"value":6102810624},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6103347200},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6819569896},"far":{"value":0}}},{"id":7527377,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":15}],"threadState":{"x":[{"value":6104494080},{"value":35395},{"value":6103957504},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6104494080},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6819569896},"far":{"value":0}}},{"id":7535205,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":15}],"threadState":{"x":[{"value":6099906560},{"value":51323},{"value":6099369984},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6099906560},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6819569896},"far":{"value":0}}},{"id":7535206,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":15}],"threadState":{"x":[{"value":6100480000},{"value":18587},{"value":6099943424},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6100480000},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6819569896},"far":{"value":0}}},{"id":7535207,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":15}],"threadState":{"x":[{"value":6101053440},{"value":0},{"value":6100516864},{"value":0},{"value":278532},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6101053440},"esr":{"value":0,"description":" Address size fault"},"pc":{"value":6819569896},"far":{"value":0}}}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4368105472,
    "CFBundleShortVersionString" : "0.16.0-Beta",
    "CFBundleIdentifier" : "bobko.aerospace",
    "size" : 3276800,
    "uuid" : "f8749a76-9a17-3c0e-9f1c-18b26ef753d5",
    "path" : "\/Applications\/AeroSpace.app\/Contents\/MacOS\/AeroSpace",
    "name" : "AeroSpace"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4573151232,
    "size" : 49152,
    "uuid" : "f1242604-dcb7-30a9-a19a-182991e6e645",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4632133632,
    "CFBundleShortVersionString" : "322.10",
    "CFBundleIdentifier" : "com.apple.AGXMetalG13X",
    "size" : 6946816,
    "uuid" : "e863b7d4-d308-3f26-a59f-9dc04134c15e",
    "path" : "\/System\/Library\/Extensions\/AGXMetalG13X.bundle\/Contents\/MacOS\/AGXMetalG13X",
    "name" : "AGXMetalG13X",
    "CFBundleVersion" : "322.10"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7100981248,
    "size" : 5926912,
    "uuid" : "53497bdd-8c93-3dc1-9ae9-82f27e47fb0a",
    "path" : "\/usr\/lib\/swift\/libswiftCore.dylib",
    "name" : "libswiftCore.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6820020224,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5197824,
    "uuid" : "ae4610f8-7c5c-3484-858e-cae7457d206e",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "3107"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6838763520,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 14942208,
    "uuid" : "9b5ba00d-2241-342d-9949-f2f517d6989e",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "3107"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6882332672,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 20955136,
    "uuid" : "49d8b1b6-0ea8-36ad-89fd-a41acf00a742",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2575.20.21"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6825218048,
    "CFBundleShortVersionString" : "1141.1",
    "CFBundleIdentifier" : "com.apple.LaunchServices",
    "size" : 2977792,
    "uuid" : "aabd792d-cc4d-372f-a17e-ad3050501575",
    "path" : "\/System\/Library\/Frameworks\/CoreServices.framework\/Versions\/A\/Frameworks\/LaunchServices.framework\/Versions\/A\/LaunchServices",
    "name" : "LaunchServices",
    "CFBundleVersion" : "1141.1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7008632832,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 3178496,
    "uuid" : "738685cb-aca1-3dfe-91c5-192bab97a042",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7593693184,
    "CFBundleShortVersionString" : "6.1.19.2",
    "CFBundleIdentifier" : "com.apple.SwiftUI",
    "size" : 24915968,
    "uuid" : "766fb524-278b-3c0c-9c63-2386ec6b2bfd",
    "path" : "\/System\/Library\/Frameworks\/SwiftUI.framework\/Versions\/A\/SwiftUI",
    "name" : "SwiftUI",
    "CFBundleVersion" : "6.1.19.2"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6815883264,
    "size" : 534452,
    "uuid" : "6beafde4-b011-3e47-8aae-4d7b6e4bb7e8",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6817525760,
    "size" : 266232,
    "uuid" : "9d2c8296-72fc-32f0-a2af-ca91f77dd5a4",
    "path" : "\/usr\/lib\/system\/libsystem_malloc.dylib",
    "name" : "libsystem_malloc.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6819319808,
    "size" : 241656,
    "uuid" : "9fea25a4-e8ca-3f3d-901c-a53ff2bc7217",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6817792000,
    "size" : 290816,
    "uuid" : "9ea577db-73c2-39d8-9fc0-544fa595a142",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6819561472,
    "size" : 53248,
    "uuid" : "3b8268be-4e02-3b4a-8b41-baed2bbaacff",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 6815072256,
  "size" : 4753735680,
  "uuid" : "f66bac4e-1e78-38af-b867-c1cf5daa0302"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)\nWritable regions: Total=1.8G written=675K(0%) resident=675K(0%) swapped_out=0K(0%) unallocated=1.8G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nAttributeGraph Data               1024K        1 \nCG image                            32K        1 \nColorSync                          512K       26 \nCoreAnimation                       48K        3 \nCoreGraphics                        48K        3 \nFoundation                          16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                             1.8G       92 \nMALLOC guard page                  384K       24 \nSTACK GUARD                       56.1M        8 \nStack                             11.7M        8 \nVM_ALLOCATE                        128K        8 \n__AUTH                            2487K      331 \n__AUTH_CONST                      33.7M      509 \n__CTF                               824        1 \n__DATA                            11.0M      488 \n__DATA_CONST                      16.2M      513 \n__DATA_DIRTY                      1160K      150 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       590.4M        4 \n__OBJC_RW                         2354K        1 \n__TEXT                           527.6M      528 \n__TPRO_CONST                       272K        2 \nmapped file                      211.9M       25 \nowned unmapped memory               48K        1 \npage table in kernel               675K        1 \nshared memory                      864K       12 \n===========                     =======  ======= \nTOTAL                              3.2G     2744 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "b9eb1e2159444063beab6492237377da33a2ad59",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "645eb1d0417dab722a215927",
      "factorPackIds" : {

      },
      "deploymentId" : 240000005
    },
    {
      "rolloutId" : "64c17a9925d75a7281053d4c",
      "factorPackIds" : {
        "SIRI_AUDIO_DISABLE_MEDIA_ENTITY_SYNC" : "64d29746ad29a465b3bbeace"
      },
      "deploymentId" : 240000001
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
      "experimentId" : "6643969b3099cf28e049862f",
      "deploymentId" : 400000007
    }
  ]
}
}

2nd

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               AeroSpace [57921]
Path:                  /Applications/AeroSpace.app/Contents/MacOS/AeroSpace
Identifier:            bobko.aerospace
Version:               0.16.0-Beta (???)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-11-28 14:38:36.9931 +0100
OS Version:            macOS 15.1.1 (24B91)
Report Version:        12
Anonymous UUID:        523357D7-C939-2648-3112-66483C193C1C

Sleep/Wake UUID:       4D71837F-5420-4B6A-8C12-966666034584

Time Awake Since Boot: 240000 seconds
Time Since Wake:       20197 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x00000001a743ea08

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [57921]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libswiftCore.dylib            	       0x1a743ea08 _assertionFailure(_:_:file:line:flags:) + 268
1   AeroSpace                     	       0x1010d7844 errorT<A>(_:file:line:column:function:) + 1248
2   AeroSpace                     	       0x100f87324 restoreClosedWindowsCacheIfNeeded(newlyDetectedWindow:) + 2548
3   AeroSpace                     	       0x100f74c28 specialized static MacWindow.get(app:axWindow:startup:) + 1648
4   AeroSpace                     	       0x100f70fa0 specialized Sequence.compactMap<A>(_:) + 248
5   AeroSpace                     	       0x100f697ac MacApp.detectNewWindowsAndGetAll(startup:) + 256
6   AeroSpace                     	       0x100f595d0 detectNewWindowsAndAttachThemToWorkspaces(startup:) + 384
7   AeroSpace                     	       0x100f569c4 specialized refreshSession<A>(screenIsDefinitelyUnlocked:startup:forceFocus:body:) + 752
8   AeroSpace                     	       0x100f71410 MacWindow.garbageCollect(skipClosedWindowsCache:) + 712
9   AeroSpace                     	       0x100f5b9f8 gcWindows() + 500
10  AeroSpace                     	       0x100f56ed4 specialized refreshSession<A>(screenIsDefinitelyUnlocked:startup:forceFocus:body:) + 644
11  AeroSpace                     	       0x100efb824 specialized static GlobalObserver.onNotif(_:) + 384
12  AeroSpace                     	       0x100efab08 thunk for @escaping @callee_guaranteed @Sendable (@in_guaranteed Notification) -> () + 116
13  CoreFoundation                	       0x1968867ec __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 128
14  CoreFoundation                	       0x19691766c ___CFXRegistrationPost_block_invoke + 88
15  CoreFoundation                	       0x1969175b4 _CFXRegistrationPost + 436
16  CoreFoundation                	       0x19685543c _CFXNotificationPost + 732
17  Foundation                    	       0x1979fdb14 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
18  AppKit                        	       0x19a555668 applicationStatusSubsystemCallback + 728
19  LaunchServices                	       0x196d2be84 ___LSScheduleNotificationFunction_block_invoke_2 + 52
20  CoreFoundation                	       0x1968918c0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
21  CoreFoundation                	       0x1968917d0 __CFRunLoopDoBlocks + 356
22  CoreFoundation                	       0x196890c00 __CFRunLoopRun + 2432
23  CoreFoundation                	       0x19688fbc4 CFRunLoopRunSpecific + 588
24  HIToolbox                     	       0x1a1cfff64 RunCurrentEventLoopInMode + 292
25  HIToolbox                     	       0x1a1d05d54 ReceiveNextEventCommon + 636
26  HIToolbox                     	       0x1a1d05eb8 _BlockUntilNextEventMatchingListInModeWithFilter + 76
27  AppKit                        	       0x19a3bba08 _DPSNextEvent + 660
28  AppKit                        	       0x19acfbe0c -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
29  AppKit                        	       0x19a3aeae0 -[NSApplication run] + 480
30  AppKit                        	       0x19a385364 NSApplicationMain + 888
31  SwiftUI                       	       0x1c4a35340 specialized runApp(_:) + 160
32  SwiftUI                       	       0x1c4ea5ee4 runApp<A>(_:) + 84
33  SwiftUI                       	       0x1c521ef24 static App.main() + 224
34  AeroSpace                     	       0x100ef93ec main + 36
35  dyld                          	       0x196428274 start + 2840

Thread 1::  Dispatch queue: com.apple.root.default-qos
0   libsystem_kernel.dylib        	       0x1967726e4 __accept + 8
1   AeroSpace                     	       0x10115b810 Socket.acceptClientConnection(invokeDelegate:) + 452
2   AeroSpace                     	       0x100f640ec closure #3 in startUnixSocketServer() + 148
3   AeroSpace                     	       0x100f668bc thunk for @escaping @callee_guaranteed @Sendable () -> () + 28
4   libdispatch.dylib             	       0x1965f68f8 _dispatch_call_block_and_release + 32
5   libdispatch.dylib             	       0x1965f8658 _dispatch_client_callout + 20
6   libdispatch.dylib             	       0x1965fb7a0 _dispatch_queue_override_invoke + 916
7   libdispatch.dylib             	       0x19660a314 _dispatch_root_queue_drain + 392
8   libdispatch.dylib             	       0x19660ab20 _dispatch_worker_thread2 + 156
9   libsystem_pthread.dylib       	       0x1967a739c _pthread_wqthread + 228
10  libsystem_pthread.dylib       	       0x1967a60f0 start_wqthread + 8

Thread 2:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x196769e34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x19677c5d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1967729d8 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x19676a17c mach_msg + 24
4   CoreFoundation                	       0x196891edc __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x19689073c __CFRunLoopRun + 1212
6   CoreFoundation                	       0x19688fbc4 CFRunLoopRunSpecific + 588
7   AppKit                        	       0x19a4e0b8c _NSEventThread + 148
8   libsystem_pthread.dylib       	       0x1967ab2e4 _pthread_start + 136
9   libsystem_pthread.dylib       	       0x1967a60fc thread_start + 8

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

Thread 4::  Dispatch queue: com.apple.launchservices.open-queue
0   libsystem_kernel.dylib        	       0x196769e34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x19677c5d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1967729d8 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x19676a17c mach_msg + 24
4   libdispatch.dylib             	       0x196613728 _dispatch_mach_send_and_wait_for_reply + 544
5   libdispatch.dylib             	       0x196613ac8 dispatch_mach_send_with_result_and_wait_for_reply + 60
6   libxpc.dylib                  	       0x1964b5e68 xpc_connection_send_message_with_reply_sync + 280
7   LaunchServices                	       0x196e63a10 -[_LSRemoteOpenCall invokeWithError:] + 260
8   LaunchServices                	       0x196e6bf8c _LSOpenStuffWithPreSanitizedURLs + 2272
9   LaunchServices                	       0x196e7a76c _LSOpenAsyncCommonDispatched(objc_object*, NSArray<NSURL*>*, NSURL*, objc_object*, NSDictionary<NSString*, objc_object*>*, NSObject<OS_dispatch_semaphore>*, void (__LSASN const*, unsigned char, __CFError*) block_pointer) + 2332
10  LaunchServices                	       0x196e7ae04 invocation function for block in _LSOpenAsyncCommon(objc_object*, NSArray<NSURL*>*, NSURL*, objc_object*, NSDictionary<NSString*, objc_object*>*, void (__LSASN const*, unsigned char, __CFError*) block_pointer) + 352
11  libdispatch.dylib             	       0x1965f68f8 _dispatch_call_block_and_release + 32
12  libdispatch.dylib             	       0x1965f8658 _dispatch_client_callout + 20
13  libdispatch.dylib             	       0x1965ffc60 _dispatch_lane_serial_drain + 744
14  libdispatch.dylib             	       0x19660079c _dispatch_lane_invoke + 432
15  libdispatch.dylib             	       0x19660b7e8 _dispatch_root_queue_drain_deferred_wlh + 288
16  libdispatch.dylib             	       0x19660b034 _dispatch_workloop_worker_thread + 540
17  libsystem_pthread.dylib       	       0x1967a73d8 _pthread_wqthread + 288
18  libsystem_pthread.dylib       	       0x1967a60f0 start_wqthread + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000156862e08   x1: 0x0000000200000003   x2: 0x000000015600c000   x3: 0x0000000000000002
    x4: 0x0000000000000400   x5: 0x0000000000000013   x6: 0x0000000000000400   x7: 0x0000000000000000
    x8: 0xfffffffe00000000   x9: 0x0000000200000003  x10: 0x0000000000000003  x11: 0x00000000007a4a00
   x12: 0x00000001560081f8  x13: 0x00000000ffff8002  x14: 0x000000000000001f  x15: 0x00000000ffff7dff
   x16: 0x00000002e89d7484  x17: 0x00000001965d7290  x18: 0x0000000000000000  x19: 0x00000001011f7090
   x20: 0x0000000156862e00  x21: 0x0000000000000000  x22: 0x000000000000000b  x23: 0x0000000000000017
   x24: 0x000000000000002d  x25: 0x00000001011f03e0  x26: 0xf00000000000137c  x27: 0x0000000000000000
   x28: 0xd000000000000017   fp: 0x000000016ef08eb0   lr: 0x00000001a743ea08
    sp: 0x000000016ef08de0   pc: 0x00000001a743ea08 cpsr: 0x60001000
   far: 0x0000000000000000  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x100ef4000 -        0x101213fff bobko.aerospace (0.16.0-Beta) <f8749a76-9a17-3c0e-9f1c-18b26ef753d5> /Applications/AeroSpace.app/Contents/MacOS/AeroSpace
       0x10daa0000 -        0x10daabfff libobjc-trampolines.dylib (*) <f1242604-dcb7-30a9-a19a-182991e6e645> /usr/lib/libobjc-trampolines.dylib
       0x10ec40000 -        0x10f2dffff com.apple.AGXMetalG13X (322.10) <e863b7d4-d308-3f26-a59f-9dc04134c15e> /System/Library/Extensions/AGXMetalG13X.bundle/Contents/MacOS/AGXMetalG13X
       0x1a7406000 -        0x1a79acfff libswiftCore.dylib (*) <53497bdd-8c93-3dc1-9ae9-82f27e47fb0a> /usr/lib/swift/libswiftCore.dylib
       0x196814000 -        0x196d08fff com.apple.CoreFoundation (6.9) <ae4610f8-7c5c-3484-858e-cae7457d206e> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1979f4000 -        0x198833fff com.apple.Foundation (6.9) <9b5ba00d-2241-342d-9949-f2f517d6989e> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x19a381000 -        0x19b77cfff com.apple.AppKit (6.9) <49d8b1b6-0ea8-36ad-89fd-a41acf00a742> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x196d09000 -        0x196fdffff com.apple.LaunchServices (1141.1) <aabd792d-cc4d-372f-a17e-ad3050501575> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
       0x1a1bf4000 -        0x1a1efbfff com.apple.HIToolbox (2.1.1) <738685cb-aca1-3dfe-91c5-192bab97a042> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x1c49e9000 -        0x1c61abfff com.apple.SwiftUI (6.1.19.2) <766fb524-278b-3c0c-9c63-2386ec6b2bfd> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
       0x196422000 -        0x1964a47b3 dyld (*) <6beafde4-b011-3e47-8aae-4d7b6e4bb7e8> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x1965b3000 -        0x1965f3ff7 libsystem_malloc.dylib (*) <9d2c8296-72fc-32f0-a2af-ca91f77dd5a4> /usr/lib/system/libsystem_malloc.dylib
       0x196769000 -        0x1967a3ff7 libsystem_kernel.dylib (*) <9fea25a4-e8ca-3f3d-901c-a53ff2bc7217> /usr/lib/system/libsystem_kernel.dylib
       0x1965f4000 -        0x19663afff libdispatch.dylib (*) <9ea577db-73c2-39d8-9fc0-544fa595a142> /usr/lib/system/libdispatch.dylib
       0x1967a4000 -        0x1967b0fff libsystem_pthread.dylib (*) <3b8268be-4e02-3b4a-8b41-baed2bbaacff> /usr/lib/system/libsystem_pthread.dylib
       0x1964a9000 -        0x1964f3fff libxpc.dylib (*) <063693ad-6cf6-38e8-a3c4-149469771f75> /usr/lib/system/libxpc.dylib

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: 10
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=1.8G written=723K(0%) resident=723K(0%) swapped_out=0K(0%) unallocated=1.8G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
AttributeGraph Data               1024K        1 
CG image                            96K        6 
ColorSync                          512K       26 
CoreAnimation                       48K        3 
CoreGraphics                        48K        3 
CoreUI image data                   96K        1 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                             1.8G       90 
MALLOC guard page                  384K       24 
STACK GUARD                       56.1M        5 
Stack                             10.1M        5 
VM_ALLOCATE                         80K        5 
__AUTH                            2487K      331 
__AUTH_CONST                      33.7M      509 
__CTF                               824        1 
__DATA                            11.0M      488 
__DATA_CONST                      16.2M      513 
__DATA_DIRTY                      1160K      150 
__FONT_DATA                        2352        1 
__LINKEDIT                       590.4M        4 
__OBJC_RW                         2354K        1 
__TEXT                           527.6M      528 
__TPRO_CONST                       272K        2 
mapped file                      212.1M       27 
owned unmapped memory               48K        1 
page table in kernel               723K        1 
shared memory                     1408K       14 
===========                     =======  ======= 
TOTAL                              3.2G     2744 



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

{"app_name":"AeroSpace","timestamp":"2024-11-28 14:38:46.00 +0100","app_version":"0.16.0-Beta","slice_uuid":"f8749a76-9a17-3c0e-9f1c-18b26ef753d5","build_version":"","platform":1,"bundleID":"bobko.aerospace","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 15.1.1 (24B91)","roots_installed":0,"name":"AeroSpace","incident_id":"1CCCBC06-ABDA-4C9D-82DF-E47B50BB2180"}
{
  "uptime" : 240000,
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,3",
  "coalitionID" : 24460,
  "osVersion" : {
    "train" : "macOS 15.1.1",
    "build" : "24B91",
    "releaseType" : "User"
  },
  "captureTime" : "2024-11-28 14:38:36.9931 +0100",
  "codeSigningMonitor" : 1,
  "incident" : "1CCCBC06-ABDA-4C9D-82DF-E47B50BB2180",
  "pid" : 57921,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-11-28 09:28:24.3637 +0100",
  "procStartAbsTime" : 5438198009636,
  "procExitAbsTime" : 5884898765994,
  "procName" : "AeroSpace",
  "procPath" : "\/Applications\/AeroSpace.app\/Contents\/MacOS\/AeroSpace",
  "bundleInfo" : {"CFBundleShortVersionString":"0.16.0-Beta","CFBundleIdentifier":"bobko.aerospace"},
  "storeInfo" : {"deviceIdentifierForVendor":"6643644A-C611-504C-9816-89113A60E10B","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "bobko.aerospace",
  "crashReporterKey" : "523357D7-C939-2648-3112-66483C193C1C",
  "codeSigningID" : "bobko.aerospace",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570425861,
  "codeSigningValidationCategory" : 10,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"4gMZquMDF6rkAxWq5QMTquYDFqrnAxiqFQCA0nIDAJTgAxSqtBcQlA==","atPC":"IAAg1CgAgFKJEoBS6BMAuekHAPlIAIBS6AMAOUApAPAA0DqRYykAkA=="},
  "bootSessionUUID" : "D909A29C-C178-477B-961F-E1E84F8A9A7D",
  "wakeTime" : 20197,
  "sleepWakeUUID" : "4D71837F-5420-4B6A-8C12-966666034584",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x00000001a743ea08","rawCodes":[1,7101213192],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":57921},
  "os_fault" : {"process":"AeroSpace"},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":10},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":6910015,"threadState":{"x":[{"value":5746601480},{"value":8589934595},{"value":5737857024},{"value":2},{"value":1024},{"value":19},{"value":1024},{"value":0},{"value":18446744065119617024},{"value":8589934595},{"value":3},{"value":8014336},{"value":5737841144},{"value":4294934530},{"value":31},{"value":4294934015},{"value":12492567684},{"value":6817673872,"symbolLocation":0,"symbol":"nanov2_try_free_default"},{"value":0},{"value":4313804944},{"value":5746601472},{"value":0},{"value":11},{"value":23},{"value":45},{"value":4313777120},{"value":17293822569102709628},{"value":0},{"value":14987979559889010711}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7101213192},"cpsr":{"value":1610616832},"fp":{"value":6156226224},"sp":{"value":6156226016},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":7101213192,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":231944,"symbol":"_assertionFailure(_:_:file:line:flags:)","symbolLocation":268,"imageIndex":3},{"imageOffset":1980484,"symbol":"errorT<A>(_:file:line:column:function:)","symbolLocation":1248,"imageIndex":0},{"imageOffset":602916,"symbol":"restoreClosedWindowsCacheIfNeeded(newlyDetectedWindow:)","symbolLocation":2548,"imageIndex":0},{"imageOffset":527400,"symbol":"specialized static MacWindow.get(app:axWindow:startup:)","symbolLocation":1648,"imageIndex":0},{"imageOffset":511904,"symbol":"specialized Sequence.compactMap<A>(_:)","symbolLocation":248,"imageIndex":0},{"imageOffset":481196,"symbol":"MacApp.detectNewWindowsAndGetAll(startup:)","symbolLocation":256,"imageIndex":0},{"imageOffset":415184,"symbol":"detectNewWindowsAndAttachThemToWorkspaces(startup:)","symbolLocation":384,"imageIndex":0},{"imageOffset":403908,"symbol":"specialized refreshSession<A>(screenIsDefinitelyUnlocked:startup:forceFocus:body:)","symbolLocation":752,"imageIndex":0},{"imageOffset":513040,"symbol":"MacWindow.garbageCollect(skipClosedWindowsCache:)","symbolLocation":712,"imageIndex":0},{"imageOffset":424440,"symbol":"gcWindows()","symbolLocation":500,"imageIndex":0},{"imageOffset":405204,"symbol":"specialized refreshSession<A>(screenIsDefinitelyUnlocked:startup:forceFocus:body:)","symbolLocation":644,"imageIndex":0},{"imageOffset":30756,"symbol":"specialized static GlobalObserver.onNotif(_:)","symbolLocation":384,"imageIndex":0},{"imageOffset":27400,"symbol":"thunk for @escaping @callee_guaranteed @Sendable (@in_guaranteed Notification) -> ()","symbolLocation":116,"imageIndex":0},{"imageOffset":468972,"symbol":"__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__","symbolLocation":128,"imageIndex":4},{"imageOffset":1062508,"symbol":"___CFXRegistrationPost_block_invoke","symbolLocation":88,"imageIndex":4},{"imageOffset":1062324,"symbol":"_CFXRegistrationPost","symbolLocation":436,"imageIndex":4},{"imageOffset":267324,"symbol":"_CFXNotificationPost","symbolLocation":732,"imageIndex":4},{"imageOffset":39700,"symbol":"-[NSNotificationCenter postNotificationName:object:userInfo:]","symbolLocation":88,"imageIndex":5},{"imageOffset":1918568,"symbol":"applicationStatusSubsystemCallback","symbolLocation":728,"imageIndex":6},{"imageOffset":142980,"symbol":"___LSScheduleNotificationFunction_block_invoke_2","symbolLocation":52,"imageIndex":7},{"imageOffset":514240,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__","symbolLocation":28,"imageIndex":4},{"imageOffset":514000,"symbol":"__CFRunLoopDoBlocks","symbolLocation":356,"imageIndex":4},{"imageOffset":510976,"symbol":"__CFRunLoopRun","symbolLocation":2432,"imageIndex":4},{"imageOffset":506820,"symbol":"CFRunLoopRunSpecific","symbolLocation":588,"imageIndex":4},{"imageOffset":1097572,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":8},{"imageOffset":1121620,"symbol":"ReceiveNextEventCommon","symbolLocation":636,"imageIndex":8},{"imageOffset":1121976,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":76,"imageIndex":8},{"imageOffset":240136,"symbol":"_DPSNextEvent","symbolLocation":660,"imageIndex":6},{"imageOffset":9940492,"symbol":"-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":688,"imageIndex":6},{"imageOffset":187104,"symbol":"-[NSApplication run]","symbolLocation":480,"imageIndex":6},{"imageOffset":17252,"symbol":"NSApplicationMain","symbolLocation":888,"imageIndex":6},{"imageOffset":312128,"symbol":"specialized runApp(_:)","symbolLocation":160,"imageIndex":9},{"imageOffset":4968164,"symbol":"runApp<A>(_:)","symbolLocation":84,"imageIndex":9},{"imageOffset":8609572,"symbol":"static App.main()","symbolLocation":224,"imageIndex":9},{"imageOffset":21484,"symbol":"main","symbolLocation":36,"imageIndex":0},{"imageOffset":25204,"symbol":"start","symbolLocation":2840,"imageIndex":10}]},{"id":6910031,"threadState":{"x":[{"value":4},{"value":0},{"value":6157363548},{"value":5764039058},{"value":0},{"value":3160061993},{"value":105553131946624},{"value":6157358992},{"value":128},{"value":0},{"value":105553131946624},{"value":135632940957696},{"value":16},{"value":105553131978040},{"value":2095104},{"value":2043},{"value":30},{"value":40},{"value":0},{"value":5764038784},{"value":5764039058},{"value":0},{"value":6157363872},{"value":0},{"value":5764038836},{"value":8515238592,"symbolLocation":1536,"symbol":"_dispatch_root_queues"},{"value":9223372041168579072},{"value":14987979559889010718},{"value":4313802800}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4313167888},"cpsr":{"value":1610616832},"fp":{"value":6157364640},"sp":{"value":6157363440},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6819358436},"far":{"value":0}},"queue":"com.apple.root.default-qos","frames":[{"imageOffset":38628,"symbol":"__accept","symbolLocation":8,"imageIndex":13},{"imageOffset":2521104,"symbol":"Socket.acceptClientConnection(invokeDelegate:)","symbolLocation":452,"imageIndex":0},{"imageOffset":458988,"symbol":"closure #3 in startUnixSocketServer()","symbolLocation":148,"imageIndex":0},{"imageOffset":469180,"symbol":"thunk for @escaping @callee_guaranteed @Sendable () -> ()","symbolLocation":28,"imageIndex":0},{"imageOffset":10488,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":14},{"imageOffset":18008,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":14},{"imageOffset":30624,"symbol":"_dispatch_queue_override_invoke","symbolLocation":916,"imageIndex":14},{"imageOffset":90900,"symbol":"_dispatch_root_queue_drain","symbolLocation":392,"imageIndex":14},{"imageOffset":92960,"symbol":"_dispatch_worker_thread2","symbolLocation":156,"imageIndex":14},{"imageOffset":13212,"symbol":"_pthread_wqthread","symbolLocation":228,"imageIndex":15},{"imageOffset":8432,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":15}]},{"id":6910056,"name":"com.apple.NSEventThread","threadState":{"x":[{"value":268451845},{"value":21592279046},{"value":8589934592},{"value":210019605807104},{"value":0},{"value":210019605807104},{"value":2},{"value":4294967295},{"value":18446744073709550527},{"value":2},{"value":0},{"value":0},{"value":0},{"value":48899},{"value":512},{"value":0},{"value":18446744073709551569},{"value":8651903928},{"value":0},{"value":4294967295},{"value":2},{"value":210019605807104},{"value":0},{"value":210019605807104},{"value":6159081576},{"value":8589934592},{"value":21592279046},{"value":21592279046},{"value":4412409862}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6819399120},"cpsr":{"value":4096},"fp":{"value":6159081424},"sp":{"value":6159081344},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6819323444},"far":{"value":0}},"frames":[{"imageOffset":3636,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":13},{"imageOffset":79312,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":13},{"imageOffset":39384,"symbol":"mach_msg_overwrite","symbolLocation":480,"imageIndex":13},{"imageOffset":4476,"symbol":"mach_msg","symbolLocation":24,"imageIndex":13},{"imageOffset":515804,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":4},{"imageOffset":509756,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":4},{"imageOffset":506820,"symbol":"CFRunLoopRunSpecific","symbolLocation":588,"imageIndex":4},{"imageOffset":1440652,"symbol":"_NSEventThread","symbolLocation":148,"imageIndex":6},{"imageOffset":29412,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":15},{"imageOffset":8444,"symbol":"thread_start","symbolLocation":8,"imageIndex":15}]},{"id":7290340,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":15}],"threadState":{"x":[{"value":6160805888},{"value":84015},{"value":6160269312},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6160805888},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6819569896},"far":{"value":0}}},{"id":7290861,"threadState":{"x":[{"value":268451845},{"value":17297326606},{"value":0},{"value":29191},{"value":0},{"value":123175367081984},{"value":16384},{"value":0},{"value":18446744073709550527},{"value":16384},{"value":0},{"value":0},{"value":0},{"value":28679},{"value":1049137},{"value":1},{"value":18446744073709551569},{"value":8651922680},{"value":0},{"value":0},{"value":16384},{"value":123175367081984},{"value":0},{"value":29191},{"value":6156771872},{"value":0},{"value":17297326606},{"value":17297326606},{"value":117457422}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6819399120},"cpsr":{"value":4096},"fp":{"value":6156771536},"sp":{"value":6156771456},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6819323444},"far":{"value":0}},"queue":"com.apple.launchservices.open-queue","frames":[{"imageOffset":3636,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":13},{"imageOffset":79312,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":13},{"imageOffset":39384,"symbol":"mach_msg_overwrite","symbolLocation":480,"imageIndex":13},{"imageOffset":4476,"symbol":"mach_msg","symbolLocation":24,"imageIndex":13},{"imageOffset":128808,"symbol":"_dispatch_mach_send_and_wait_for_reply","symbolLocation":544,"imageIndex":14},{"imageOffset":129736,"symbol":"dispatch_mach_send_with_result_and_wait_for_reply","symbolLocation":60,"imageIndex":14},{"imageOffset":52840,"symbol":"xpc_connection_send_message_with_reply_sync","symbolLocation":280,"imageIndex":16},{"imageOffset":1419792,"symbol":"-[_LSRemoteOpenCall invokeWithError:]","symbolLocation":260,"imageIndex":7},{"imageOffset":1453964,"symbol":"_LSOpenStuffWithPreSanitizedURLs","symbolLocation":2272,"imageIndex":7},{"imageOffset":1513324,"symbol":"_LSOpenAsyncCommonDispatched(objc_object*, NSArray<NSURL*>*, NSURL*, objc_object*, NSDictionary<NSString*, objc_object*>*, NSObject<OS_dispatch_semaphore>*, void (__LSASN const*, unsigned char, __CFError*) block_pointer)","symbolLocation":2332,"imageIndex":7},{"imageOffset":1515012,"symbol":"invocation function for block in _LSOpenAsyncCommon(objc_object*, NSArray<NSURL*>*, NSURL*, objc_object*, NSDictionary<NSString*, objc_object*>*, void (__LSASN const*, unsigned char, __CFError*) block_pointer)","symbolLocation":352,"imageIndex":7},{"imageOffset":10488,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":14},{"imageOffset":18008,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":14},{"imageOffset":48224,"symbol":"_dispatch_lane_serial_drain","symbolLocation":744,"imageIndex":14},{"imageOffset":51100,"symbol":"_dispatch_lane_invoke","symbolLocation":432,"imageIndex":14},{"imageOffset":96232,"symbol":"_dispatch_root_queue_drain_deferred_wlh","symbolLocation":288,"imageIndex":14},{"imageOffset":94260,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":540,"imageIndex":14},{"imageOffset":13272,"symbol":"_pthread_wqthread","symbolLocation":288,"imageIndex":15},{"imageOffset":8432,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":15}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4310646784,
    "CFBundleShortVersionString" : "0.16.0-Beta",
    "CFBundleIdentifier" : "bobko.aerospace",
    "size" : 3276800,
    "uuid" : "f8749a76-9a17-3c0e-9f1c-18b26ef753d5",
    "path" : "\/Applications\/AeroSpace.app\/Contents\/MacOS\/AeroSpace",
    "name" : "AeroSpace"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4524212224,
    "size" : 49152,
    "uuid" : "f1242604-dcb7-30a9-a19a-182991e6e645",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4542693376,
    "CFBundleShortVersionString" : "322.10",
    "CFBundleIdentifier" : "com.apple.AGXMetalG13X",
    "size" : 6946816,
    "uuid" : "e863b7d4-d308-3f26-a59f-9dc04134c15e",
    "path" : "\/System\/Library\/Extensions\/AGXMetalG13X.bundle\/Contents\/MacOS\/AGXMetalG13X",
    "name" : "AGXMetalG13X",
    "CFBundleVersion" : "322.10"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7100981248,
    "size" : 5926912,
    "uuid" : "53497bdd-8c93-3dc1-9ae9-82f27e47fb0a",
    "path" : "\/usr\/lib\/swift\/libswiftCore.dylib",
    "name" : "libswiftCore.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6820020224,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5197824,
    "uuid" : "ae4610f8-7c5c-3484-858e-cae7457d206e",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "3107"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6838763520,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 14942208,
    "uuid" : "9b5ba00d-2241-342d-9949-f2f517d6989e",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "3107"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6882332672,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 20955136,
    "uuid" : "49d8b1b6-0ea8-36ad-89fd-a41acf00a742",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2575.20.21"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6825218048,
    "CFBundleShortVersionString" : "1141.1",
    "CFBundleIdentifier" : "com.apple.LaunchServices",
    "size" : 2977792,
    "uuid" : "aabd792d-cc4d-372f-a17e-ad3050501575",
    "path" : "\/System\/Library\/Frameworks\/CoreServices.framework\/Versions\/A\/Frameworks\/LaunchServices.framework\/Versions\/A\/LaunchServices",
    "name" : "LaunchServices",
    "CFBundleVersion" : "1141.1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7008632832,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 3178496,
    "uuid" : "738685cb-aca1-3dfe-91c5-192bab97a042",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7593693184,
    "CFBundleShortVersionString" : "6.1.19.2",
    "CFBundleIdentifier" : "com.apple.SwiftUI",
    "size" : 24915968,
    "uuid" : "766fb524-278b-3c0c-9c63-2386ec6b2bfd",
    "path" : "\/System\/Library\/Frameworks\/SwiftUI.framework\/Versions\/A\/SwiftUI",
    "name" : "SwiftUI",
    "CFBundleVersion" : "6.1.19.2"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6815883264,
    "size" : 534452,
    "uuid" : "6beafde4-b011-3e47-8aae-4d7b6e4bb7e8",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6817525760,
    "size" : 266232,
    "uuid" : "9d2c8296-72fc-32f0-a2af-ca91f77dd5a4",
    "path" : "\/usr\/lib\/system\/libsystem_malloc.dylib",
    "name" : "libsystem_malloc.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6819319808,
    "size" : 241656,
    "uuid" : "9fea25a4-e8ca-3f3d-901c-a53ff2bc7217",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6817792000,
    "size" : 290816,
    "uuid" : "9ea577db-73c2-39d8-9fc0-544fa595a142",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6819561472,
    "size" : 53248,
    "uuid" : "3b8268be-4e02-3b4a-8b41-baed2bbaacff",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6816436224,
    "size" : 307200,
    "uuid" : "063693ad-6cf6-38e8-a3c4-149469771f75",
    "path" : "\/usr\/lib\/system\/libxpc.dylib",
    "name" : "libxpc.dylib"
  }
],
  "sharedCache" : {
  "base" : 6815072256,
  "size" : 4753735680,
  "uuid" : "f66bac4e-1e78-38af-b867-c1cf5daa0302"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)\nWritable regions: Total=1.8G written=723K(0%) resident=723K(0%) swapped_out=0K(0%) unallocated=1.8G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nAttributeGraph Data               1024K        1 \nCG image                            96K        6 \nColorSync                          512K       26 \nCoreAnimation                       48K        3 \nCoreGraphics                        48K        3 \nCoreUI image data                   96K        1 \nFoundation                          16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                             1.8G       90 \nMALLOC guard page                  384K       24 \nSTACK GUARD                       56.1M        5 \nStack                             10.1M        5 \nVM_ALLOCATE                         80K        5 \n__AUTH                            2487K      331 \n__AUTH_CONST                      33.7M      509 \n__CTF                               824        1 \n__DATA                            11.0M      488 \n__DATA_CONST                      16.2M      513 \n__DATA_DIRTY                      1160K      150 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       590.4M        4 \n__OBJC_RW                         2354K        1 \n__TEXT                           527.6M      528 \n__TPRO_CONST                       272K        2 \nmapped file                      212.1M       27 \nowned unmapped memory               48K        1 \npage table in kernel               723K        1 \nshared memory                     1408K       14 \n===========                     =======  ======= \nTOTAL                              3.2G     2744 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "b9eb1e2159444063beab6492237377da33a2ad59",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "645eb1d0417dab722a215927",
      "factorPackIds" : {

      },
      "deploymentId" : 240000005
    },
    {
      "rolloutId" : "64c17a9925d75a7281053d4c",
      "factorPackIds" : {
        "SIRI_AUDIO_DISABLE_MEDIA_ENTITY_SYNC" : "64d29746ad29a465b3bbeace"
      },
      "deploymentId" : 240000001
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
      "experimentId" : "6643969b3099cf28e049862f",
      "deploymentId" : 400000007
    }
  ]
}
}

@Petemir

This comment was marked as duplicate.

@nikitabobko
Copy link
Owner

nikitabobko commented Nov 29, 2024

I still have no idea why it happens, and I still can't reproduce it.

If somebody is up for the journey, you can try to build AeroSpace from sources with the following patch with the debugger attached (I recommend using Xcode):

diff --git a/Sources/AppBundle/GlobalObserver.swift b/Sources/AppBundle/GlobalObserver.swift
index 9f3cfd7..91736bb 100644
--- a/Sources/AppBundle/GlobalObserver.swift
+++ b/Sources/AppBundle/GlobalObserver.swift
@@ -4,9 +4,9 @@ class GlobalObserver {
     private static func onNotif(_ notification: Notification) {
         // Third line of defence against lock screen window. See: closedWindowsCache
         // Second and third lines of defence are technically needed only to avoid potential flickering
-        if (notification.userInfo?[NSWorkspace.applicationUserInfoKey] as? NSRunningApplication)?.bundleIdentifier == lockScreenAppBundleId {
-            return
-        }
+        // if (notification.userInfo?[NSWorkspace.applicationUserInfoKey] as? NSRunningApplication)?.bundleIdentifier == lockScreenAppBundleId {
+        //     return
+        // }
         refreshAndLayout(screenIsDefinitelyUnlocked: false)
     }
 
diff --git a/Sources/AppBundle/layout/refresh.swift b/Sources/AppBundle/layout/refresh.swift
index 34023bb..add23a7 100644
--- a/Sources/AppBundle/layout/refresh.swift
+++ b/Sources/AppBundle/layout/refresh.swift
@@ -60,11 +60,11 @@ private func gc() {
 func gcWindows() {
     // Second line of defence against lock screen. See the first line of defence: closedWindowsCache
     // Second and third lines of defence are technically needed only to avoid potential flickering
-    if NSWorkspace.shared.frontmostApplication?.bundleIdentifier == lockScreenAppBundleId { return }
+    // if NSWorkspace.shared.frontmostApplication?.bundleIdentifier == lockScreenAppBundleId { return }
     let toKill = MacWindow.allWindowsMap.filter { $0.value.axWindow.containingWindowId() == nil }
     // If all windows are "unobservable", it's highly propable that loginwindow might be still active and we are still
     // recovering from unlock
-    if toKill.count == MacWindow.allWindowsMap.count { return }
+    // if toKill.count == MacWindow.allWindowsMap.count { return }
     for window in toKill {
         window.value.garbageCollect(skipClosedWindowsCache: false)
     }
diff --git a/Sources/AppBundle/tree/MacApp.swift b/Sources/AppBundle/tree/MacApp.swift
index 936413e..da39d5a 100644
--- a/Sources/AppBundle/tree/MacApp.swift
+++ b/Sources/AppBundle/tree/MacApp.swift
@@ -19,9 +19,9 @@ final class MacApp: AbstractApp {
     fileprivate static func get(_ nsApp: NSRunningApplication) -> MacApp? {
         // Don't perceive any of the lock screen windows as real windows
         // Otherwise, false positive ax notifications might trigger that lead to gcWindows
-        if nsApp.bundleIdentifier == lockScreenAppBundleId {
-            return nil
-        }
+        // if nsApp.bundleIdentifier == lockScreenAppBundleId {
+        //     return nil
+        // }
         let pid = nsApp.processIdentifier
         if let existing = allAppsMap[pid] {
             return existing

The patch removes all heuristic code that tries to detect locked screen. By droping the heuristics you should make the crash more probable to reproduce (In the best case scenario, it should make the bug 100% reproducible)

The problematic line of code is:

workspace.rootTilingContainer.unbindFromParent()

It should never crash because rootTilingContainer always returns definetely bound TreeNode ("bound" means that the node has its parent). It is somewhat obvious that the node is bound by reading the source code of rootTilingContainer. Nevertheless, your crash reports say that unbindFromParent panicked, since the node was already unbound


The low effort fix for the crash could be:

diff --git a/Sources/AppBundle/tree/TreeNode.swift b/Sources/AppBundle/tree/TreeNode.swift
index 2ea3775..d3c661e 100644
--- a/Sources/AppBundle/tree/TreeNode.swift
+++ b/Sources/AppBundle/tree/TreeNode.swift
@@ -89,7 +89,8 @@ class TreeNode: Equatable {
         return result
     }
 
-    private func unbindIfBound() -> BindingData? {
+    @discardableResult
+    func unbindIfBound() -> BindingData? {
         guard let _parent else { return nil }
 
         let index = _parent._children.remove(element: self) ?? errorT("Can't find child in its parent")
diff --git a/Sources/AppBundle/tree/frozen/closedWindowsCache.swift b/Sources/AppBundle/tree/frozen/closedWindowsCache.swift
index 1e9539f..db0ff5c 100644
--- a/Sources/AppBundle/tree/frozen/closedWindowsCache.swift
+++ b/Sources/AppBundle/tree/frozen/closedWindowsCache.swift
@@ -65,7 +65,7 @@ func restoreClosedWindowsCacheIfNeeded(newlyDetectedWindow: Window) -> Bool {
             MacWindow.get(byId: frozenWindow.id)?.bindAsFloatingWindow(to: workspace)
         }
         let orphans = workspace.rootTilingContainer.allLeafWindowsRecursive
-        workspace.rootTilingContainer.unbindFromParent()
+        workspace.rootTilingContainer.unbindIfBound()
         restoreTreeRecursive(frozenContainer: frozenWorkspace.rootTilingNode, parent: workspace, index: INDEX_BIND_LAST)
         for window in (orphans - workspace.rootTilingContainer.allLeafWindowsRecursive) {
             window.relayoutWindow(on: workspace, forceTile: true)

But it will fix only symptoms, not the root cause, because some invariants will still be broken

@nikitabobko
Copy link
Owner

nikitabobko commented Nov 29, 2024

The only case when restoreClosedWindowsCacheIfNeeded is called is when macOS decides to reuse window ID from the previously closed window for the newly opened window. The only reasonable case known to me when it might happen is when you lock/unlock the screen. (when you lock and unlock the screen, from macOS APIs POV, windows technically "close" and then automatically reopen when you unlock the screen with the same window IDs). AeroSpace relies on that fact that window IDs are reused to restore windows to where they were before you locked the screen.

That's why it's weird for me to hear that people observe the crash when they unplug the dock. I'm curious to know what window died and then restored its window ID (probably it some sort of synthetic window) and why the hell macOS do this? Or it all could be just a manifistation of another bug in AeroSpace.

You can try to debug the following, if you observe the crash in cases other than lock/unlock the screen:

diff --git a/Sources/AppBundle/tree/MacWindow.swift b/Sources/AppBundle/tree/MacWindow.swift
index 321fa2b..11a126e 100644
--- a/Sources/AppBundle/tree/MacWindow.swift
+++ b/Sources/AppBundle/tree/MacWindow.swift
@@ -63,7 +63,11 @@ final class MacWindow: Window, CustomStringConvertible {
     // skipClosedWindowsCache is an optimization when it's definitely not necessary to cache closed window.
     //                        If you are unsure, it's better to pass `false`
     func garbageCollect(skipClosedWindowsCache: Bool) {
-        if !skipClosedWindowsCache { cacheClosedWindowIfNeeded(window: self) }
+        if !skipClosedWindowsCache {
+            // The window will be recorded to closedWindowsCache, to potentially restore it from the cache if it turns out that the reason for closing the window is locking the screen
+            print("--- Window \(app.name) \(windowId) is about to die and will be recorded to closedWindowsCache.")
+            cacheClosedWindowIfNeeded(window: self)
+        }
         if MacWindow.allWindowsMap.removeValue(forKey: windowId) == nil {
             return
         }
diff --git a/Sources/AppBundle/tree/frozen/closedWindowsCache.swift b/Sources/AppBundle/tree/frozen/closedWindowsCache.swift
index 1e9539f..8ab361d 100644
--- a/Sources/AppBundle/tree/frozen/closedWindowsCache.swift
+++ b/Sources/AppBundle/tree/frozen/closedWindowsCache.swift
@@ -50,6 +50,7 @@ func restoreClosedWindowsCacheIfNeeded(newlyDetectedWindow: Window) -> Bool {
     if !closedWindowsCache.windowIds.contains(newlyDetectedWindow.windowId) {
         return false
     }
+    print("--- macOS decided to reuse window ID for this window: \(newlyDetectedWindow). Normally this should only happen when you lock/unlock the screen. It's your case, right, right?...")
     let monitors = monitors
     let topLeftCornerToMonitor = monitors.grouped { $0.rect.topLeftCorner }
 

@Petemir
Copy link

Petemir commented Nov 29, 2024

debugger.log

Ok, I managed to compile the app with the modified code from both comments, and I ran it attached to the debugger. The attached file is the result of unplugging the dock.

@nikitabobko
Copy link
Owner

nikitabobko commented Nov 29, 2024

@Petemir

  1. Did it crash during that debug session?
  2. Can you reliably reproduce the problem?
  3. From your log, macOS decided to reuse window ID for Audiobookshelf app. Is the problem reproducible if you quit it?
  4. It's still very unclear why windows die when you disconnect the dock. Is there anything special about the dock? Do you have monitors connected to the dock or some other special hardware?

@Petemir
Copy link

Petemir commented Nov 29, 2024

@Petemir

1. Did it crash during that debug session?

2. Can you reliably reproduce the problem?

3. From your log, macOS decided to reuse window ID for Audiobookshelf app. Is the problem reproducible if you quit it?

4. It's still very unclear why windows die when you disconnect the dock. Is there anything special about the dock? Do you have monitors connected to the dock or some other special hardware?
  1. Sorry, I misread your previous comments and thought that it shouldn't crash with the patch. No, it didn't crash, so probably the log file was not useful, sorry.
  2. I've been plugging and unplugging the dock a few times with the debugger attached but I couldn't reproduce it so far. I'll come back with a new log when I manage to do it.
  3. No, it's not reproducible. I think that got printed actually when I unplugged the dock. In one of my tries from 2 I got the same message but with another app.
  4. Yes, sorry, I did not make that clear enough on my first post. The DisplayLink adapter is connected to the dock, not to the Mac.

Edit: for sure I can reproduce the "reuse window ID" message with the Android emulator window, by minimizing it to the dock and reopening, or moving it between the different monitors. Doesn't work with other apps, though.

nikitabobko added a commit that referenced this issue Nov 29, 2024
garbageCollect is already always called inside refreshSession

The commit maybe even will _fix
#771
#706
@hoducha

This comment was marked as duplicate.

@nikitabobko nikitabobko pinned this issue Dec 2, 2024
@abigagli

This comment was marked as duplicate.

@minhnhut

This comment was marked as duplicate.

@Petemir
Copy link

Petemir commented Dec 5, 2024

fyi, I've been running the debug build since my last comment (i.e., ~5 days) and it only crashed just now after unlocking the screen. I have to say, nevertheless, that the crashlog is similar to my previous one (somewhat longer, though); furthermore, the window appearing in the "already unbound" line is ChatGPT once again. I can attach it, but I don't know if it will add any new information (and neither the print statements; as I had been running this for a long time, I'm not sure the exact moment that the lines start referring directly to the crash).

Clearly, in any case, I'm not able to consistently reproduce the crash neither with lock/unlock nor with plugging/unplugging the dock. I'll go back to the production build.

nikitabobko added a commit that referenced this issue Dec 5, 2024
This commit should _fix #771

Some functions in the crash stacktrace were inlined, but now I think the
problematic call is `window.relayoutWindow`
nikitabobko added a commit that referenced this issue Dec 5, 2024
…window in the tree couldn't be restored

Related: #771

Motivation: I am not aware of any test case that would lead to problems.
The code change is purely for sanity
@nikitabobko
Copy link
Owner

nikitabobko commented Dec 5, 2024

I didn't manage to reproduce the problem, but I have new theories.

  1. The potential fix was committed
  2. I added more information to the crash report

So if somebody experience the crash in 0.16.2, I'm interested to see the crash log.

Please note that 0.16.1 release is broken, and the crash happening in 0.16.1 is a different one. Update to 0.16.2

@Alienover

This comment was marked as resolved.

@nikitabobko

This comment was marked as resolved.

@brianhuey
Copy link

I didn't manage to reproduce the problem, but I have new theories.

  1. The potential fix was committed
  2. I added more information to the crash report

So if somebody experience the crash in 0.16.2, I'm interested to see the crash log.

Please note that 0.16.1 release is broken, and the crash happening in 0.16.1 is a different one. Update to 0.16.2

Thanks @nikitabobko - Would it be possible to update the brew casks to include 0.16.2?

@nikitabobko
Copy link
Owner

Given that I've not received new crash reports with 0.16.2-Beta, I optimistically assume that the problem is fixed.

@nikitabobko nikitabobko unpinned this issue Dec 12, 2024
@alankritjoshi
Copy link

I am on 0.16.2-beta and I still see this issue. Happens 100% of the time after macos auto locks on idle.

Crash Report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               AeroSpace [89107]
Path:                  /Applications/AeroSpace.app/Contents/MacOS/AeroSpace
Identifier:            bobko.aerospace
Version:               0.16.2-Beta (???)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-12-27 19:59:25.9120 -0800
OS Version:            macOS 15.1.1 (24B91)
Report Version:        12
Anonymous UUID:        447E6711-C9FA-5E2A-750C-42B5ED8C0EE5

Sleep/Wake UUID:       9DBB93EC-197C-4B4C-B656-7C7180B15048

Time Awake Since Boot: 230000 seconds
Time Since Wake:       19217 seconds

System Integrity Protection: disabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x000000010254bbec

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [89107]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   AeroSpace                     	       0x10254bbec mainMonitor.getter + 688
1   AeroSpace                     	       0x10254b68c monitors.getter + 520
2   AeroSpace                     	       0x102545694 specialized refreshSession<A>(screenIsDefinitelyUnlocked:startup:body:) + 328
3   AeroSpace                     	       0x10254f3f4 specialized movedObs(_:ax:notif:data:) + 168
4   HIServices                    	       0x1885f5a80 _XXMIGPostNotification + 896
5   HIServices                    	       0x188626fa0 _XPostNotification + 356
6   HIServices                    	       0x1885d6368 mshMIGPerform + 212
7   CoreFoundation                	       0x181d3a2c8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
8   CoreFoundation                	       0x181d3a1e8 __CFRunLoopDoSource1 + 524
9   CoreFoundation                	       0x181d38b48 __CFRunLoopRun + 2248
10  CoreFoundation                	       0x181d37bc4 CFRunLoopRunSpecific + 588
11  HIToolbox                     	       0x18d1a7f64 RunCurrentEventLoopInMode + 292
12  HIToolbox                     	       0x18d1add54 ReceiveNextEventCommon + 636
13  HIToolbox                     	       0x18d1adeb8 _BlockUntilNextEventMatchingListInModeWithFilter + 76
14  AppKit                        	       0x185863a08 _DPSNextEvent + 660
15  AppKit                        	       0x1861a3e0c -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
16  AppKit                        	       0x185856ae0 -[NSApplication run] + 480
17  AppKit                        	       0x18582d364 NSApplicationMain + 888
18  SwiftUI                       	       0x1afedd340 specialized runApp(_:) + 160
19  SwiftUI                       	       0x1b034dee4 runApp<A>(_:) + 84
20  SwiftUI                       	       0x1b06c6f24 static App.main() + 224
21  AeroSpace                     	       0x1024e90b8 main + 36
22  dyld                          	       0x1818d0274 start + 2840

Thread 1::  Dispatch queue: com.apple.root.default-qos
0   libsystem_kernel.dylib        	       0x181c1a6e4 __accept + 8
1   AeroSpace                     	       0x10274b800 Socket.acceptClientConnection(invokeDelegate:) + 452
2   AeroSpace                     	       0x102552d58 closure #3 in startUnixSocketServer() + 148
3   AeroSpace                     	       0x102555528 thunk for @escaping @callee_guaranteed @Sendable () -> () + 28
4   libdispatch.dylib             	       0x181a9e8f8 _dispatch_call_block_and_release + 32
5   libdispatch.dylib             	       0x181aa0658 _dispatch_client_callout + 20
6   libdispatch.dylib             	       0x181aa37a0 _dispatch_queue_override_invoke + 916
7   libdispatch.dylib             	       0x181ab2314 _dispatch_root_queue_drain + 392
8   libdispatch.dylib             	       0x181ab2b20 _dispatch_worker_thread2 + 156
9   libsystem_pthread.dylib       	       0x181c4f39c _pthread_wqthread + 228
10  libsystem_pthread.dylib       	       0x181c4e0f0 start_wqthread + 8

Thread 2:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x181c11e34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x181c245d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x181c1a9d8 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x181c1217c mach_msg + 24
4   CoreFoundation                	       0x181d39edc __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x181d3873c __CFRunLoopRun + 1212
6   CoreFoundation                	       0x181d37bc4 CFRunLoopRunSpecific + 588
7   AppKit                        	       0x185988b8c _NSEventThread + 148
8   libsystem_pthread.dylib       	       0x181c532e4 _pthread_start + 136
9   libsystem_pthread.dylib       	       0x181c4e0fc thread_start + 8

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


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000600001e28de0   x1: 0x03000001e6d99039   x2: 0x00000001e6d99038   x3: 0x0000600001901870
    x4: 0x00006000019018c0   x5: 0x000000016d918920   x6: 0x0000000000000001   x7: 0x0000000000000000
    x8: 0x00000000000000cc   x9: 0x0000000093e4006a  x10: 0x00000000000000cb  x11: 0x0000000000001860
   x12: 0x00000000000007fb  x13: 0x00000000000007fd  x14: 0x000000009404084f  x15: 0x0000000093e4006a
   x16: 0x03000001e6d99039  x17: 0x0000000000000004  x18: 0x0000000000000000  x19: 0x000000016d918e68
   x20: 0x0000600001e28de0  x21: 0x0000600001901860  x22: 0x0000600001e28e40  x23: 0x0000000000000002
   x24: 0x0000000000000000  x25: 0x0000600001901898  x26: 0x000000010282e000  x27: 0x0000000000000001
   x28: 0x000060000342c300   fp: 0x000000016d918e00   lr: 0x000000010254bbec
    sp: 0x000000016d918d60   pc: 0x000000010254bbec cpsr: 0x60001000
   far: 0x0000000000000000  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x1024e4000 -        0x102803fff bobko.aerospace (0.16.2-Beta) <64a642a4-ab7d-3a95-82b5-84ac1d74fd3b> /Applications/AeroSpace.app/Contents/MacOS/AeroSpace
       0x106e6c000 -        0x106e77fff libobjc-trampolines.dylib (*) <f1242604-dcb7-30a9-a19a-182991e6e645> /usr/lib/libobjc-trampolines.dylib
       0x11aaf8000 -        0x11b21bfff com.apple.AGXMetalG14X (322.10) <f6817cf9-b70f-382a-839f-1fdd973b9138> /System/Library/Extensions/AGXMetalG14X.bundle/Contents/MacOS/AGXMetalG14X
       0x1885ce000 -        0x18863afff com.apple.HIServices (1.22) <2c8d32a6-5281-3cbd-ba46-1eb9fcdd5eab> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
       0x181cbc000 -        0x1821b0fff com.apple.CoreFoundation (6.9) <ae4610f8-7c5c-3484-858e-cae7457d206e> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x18d09c000 -        0x18d3a3fff com.apple.HIToolbox (2.1.1) <738685cb-aca1-3dfe-91c5-192bab97a042> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x185829000 -        0x186c24fff com.apple.AppKit (6.9) <49d8b1b6-0ea8-36ad-89fd-a41acf00a742> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1afe91000 -        0x1b1653fff com.apple.SwiftUI (6.1.19.2) <766fb524-278b-3c0c-9c63-2386ec6b2bfd> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
       0x1818ca000 -        0x18194c7b3 dyld (*) <6beafde4-b011-3e47-8aae-4d7b6e4bb7e8> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x181c11000 -        0x181c4bff7 libsystem_kernel.dylib (*) <9fea25a4-e8ca-3f3d-901c-a53ff2bc7217> /usr/lib/system/libsystem_kernel.dylib
       0x181a9c000 -        0x181ae2fff libdispatch.dylib (*) <9ea577db-73c2-39d8-9fc0-544fa595a142> /usr/lib/system/libdispatch.dylib
       0x181c4c000 -        0x181c58fff libsystem_pthread.dylib (*) <3b8268be-4e02-3b4a-8b41-baed2bbaacff> /usr/lib/system/libsystem_pthread.dylib

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=1.3G resident=0K(0%) swapped_out_or_unallocated=1.3G(100%)
Writable regions: Total=1.4G written=594K(0%) resident=594K(0%) swapped_out=0K(0%) unallocated=1.4G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
AttributeGraph Data               1024K        1 
ColorSync                          512K       26 
CoreAnimation                       16K        1 
CoreGraphics                        64K        4 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                             1.4G       77 
MALLOC guard page                  384K       24 
STACK GUARD                       56.1M        4 
Stack                             9808K        4 
VM_ALLOCATE                        176K        7 
__AUTH                            3297K      429 
__AUTH_CONST                      47.1M      631 
__CTF                               824        1 
__DATA                            16.7M      614 
__DATA_CONST                      18.7M      638 
__DATA_DIRTY                      1735K      203 
__FONT_DATA                        2352        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       590.4M        4 
__OBJC_RW                         2354K        1 
__TEXT                           762.3M      656 
__TPRO_CONST                       272K        2 
mapped file                      214.0M       26 
owned unmapped memory               48K        1 
page table in kernel               594K        1 
shared memory                     1376K       12 
===========                     =======  ======= 
TOTAL                              3.1G     3372 



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

{"app_name":"AeroSpace","timestamp":"2024-12-27 19:59:26.00 -0800","app_version":"0.16.2-Beta","slice_uuid":"64a642a4-ab7d-3a95-82b5-84ac1d74fd3b","build_version":"","platform":1,"bundleID":"bobko.aerospace","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 15.1.1 (24B91)","roots_installed":0,"name":"AeroSpace","incident_id":"03E97429-C02D-470F-9114-AAC856816F69"}
{
  "uptime" : 230000,
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac14,12",
  "coalitionID" : 11332,
  "osVersion" : {
    "train" : "macOS 15.1.1",
    "build" : "24B91",
    "releaseType" : "User"
  },
  "captureTime" : "2024-12-27 19:59:25.9120 -0800",
  "codeSigningMonitor" : 1,
  "incident" : "03E97429-C02D-470F-9114-AAC856816F69",
  "pid" : 89107,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-12-27 19:43:17.0548 -0800",
  "procStartAbsTime" : 5592414293048,
  "procExitAbsTime" : 5615666960819,
  "procName" : "AeroSpace",
  "procPath" : "\/Applications\/AeroSpace.app\/Contents\/MacOS\/AeroSpace",
  "bundleInfo" : {"CFBundleShortVersionString":"0.16.2-Beta","CFBundleIdentifier":"bobko.aerospace"},
  "storeInfo" : {"deviceIdentifierForVendor":"5FE36B02-24A8-5AFC-9B8C-02B82D24AF75","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "bobko.aerospace",
  "crashReporterKey" : "447E6711-C9FA-5E2A-750C-42B5ED8C0EE5",
  "codeSigningID" : "bobko.aerospace",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570425861,
  "codeSigningValidationCategory" : 10,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"rlgJlG3\/\/xcgACDU4AMVqkEAgFIEWAmU4AMWqmNXCZTgAxSqYVcJlA==","atPC":"IAAg1OADFar6VwmUIAAg1IACQPnAA1\/W9E++qf17Aan9QwCRk9JAqQ=="},
  "bootSessionUUID" : "FEE1DDD8-0C97-49C0-A45F-EEF7365CEF0E",
  "wakeTime" : 19217,
  "sleepWakeUUID" : "9DBB93EC-197C-4B4C-B656-7C7180B15048",
  "sip" : "disabled",
  "exception" : {"codes":"0x0000000000000001, 0x000000010254bbec","rawCodes":[1,4334074860],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":89107},
  "os_fault" : {"process":"AeroSpace"},
  "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":25778753,"threadState":{"x":[{"value":105553147891168},{"value":216172790281769017,"symbolLocation":216172782113783809,"symbol":"OBJC_CLASS_$_NSScreen"},{"value":8167985208,"symbolLocation":0,"symbol":"OBJC_CLASS_$_NSScreen"},{"value":105553142487152},{"value":105553142487232},{"value":6133221664},{"value":1},{"value":0},{"value":204},{"value":2481193066},{"value":203},{"value":6240},{"value":2043},{"value":2045},{"value":2483292239},{"value":2481193066},{"value":216172790281769017,"symbolLocation":216172782113783809,"symbol":"OBJC_CLASS_$_NSScreen"},{"value":4},{"value":0},{"value":6133223016},{"value":105553147891168},{"value":105553142487136},{"value":105553147891264},{"value":2},{"value":0},{"value":105553142487192},{"value":4337098752,"symbolLocation":40,"symbol":"_DATA__TtCC7TOMLKit19InternalTOMLDecoder3UDC"},{"value":1},{"value":105553170973440}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4334074860},"cpsr":{"value":1610616832},"fp":{"value":6133222912},"sp":{"value":6133222752},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":4334074860,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":424940,"symbol":"mainMonitor.getter","symbolLocation":688,"imageIndex":0},{"imageOffset":423564,"symbol":"monitors.getter","symbolLocation":520,"imageIndex":0},{"imageOffset":398996,"symbol":"specialized refreshSession<A>(screenIsDefinitelyUnlocked:startup:body:)","symbolLocation":328,"imageIndex":0},{"imageOffset":439284,"symbol":"specialized movedObs(_:ax:notif:data:)","symbolLocation":168,"imageIndex":0},{"imageOffset":162432,"symbol":"_XXMIGPostNotification","symbolLocation":896,"imageIndex":3},{"imageOffset":364448,"symbol":"_XPostNotification","symbolLocation":356,"imageIndex":3},{"imageOffset":33640,"symbol":"mshMIGPerform","symbolLocation":212,"imageIndex":3},{"imageOffset":516808,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__","symbolLocation":60,"imageIndex":4},{"imageOffset":516584,"symbol":"__CFRunLoopDoSource1","symbolLocation":524,"imageIndex":4},{"imageOffset":510792,"symbol":"__CFRunLoopRun","symbolLocation":2248,"imageIndex":4},{"imageOffset":506820,"symbol":"CFRunLoopRunSpecific","symbolLocation":588,"imageIndex":4},{"imageOffset":1097572,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":5},{"imageOffset":1121620,"symbol":"ReceiveNextEventCommon","symbolLocation":636,"imageIndex":5},{"imageOffset":1121976,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":76,"imageIndex":5},{"imageOffset":240136,"symbol":"_DPSNextEvent","symbolLocation":660,"imageIndex":6},{"imageOffset":9940492,"symbol":"-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":688,"imageIndex":6},{"imageOffset":187104,"symbol":"-[NSApplication run]","symbolLocation":480,"imageIndex":6},{"imageOffset":17252,"symbol":"NSApplicationMain","symbolLocation":888,"imageIndex":6},{"imageOffset":312128,"symbol":"specialized runApp(_:)","symbolLocation":160,"imageIndex":7},{"imageOffset":4968164,"symbol":"runApp<A>(_:)","symbolLocation":84,"imageIndex":7},{"imageOffset":8609572,"symbol":"static App.main()","symbolLocation":224,"imageIndex":7},{"imageOffset":20664,"symbol":"main","symbolLocation":36,"imageIndex":0},{"imageOffset":25204,"symbol":"start","symbolLocation":2840,"imageIndex":8}]},{"id":25778757,"threadState":{"x":[{"value":4},{"value":0},{"value":6133786972},{"value":5086660242},{"value":0},{"value":3741018107},{"value":105553175185712},{"value":6133782416},{"value":128},{"value":0},{"value":105553175183360},{"value":2352},{"value":16},{"value":1},{"value":4294966419},{"value":2043},{"value":30},{"value":147},{"value":0},{"value":5086659968},{"value":5086660242},{"value":0},{"value":6133787296},{"value":0},{"value":5086660020},{"value":8167799488,"symbolLocation":1536,"symbol":"_dispatch_root_queues"},{"value":9223372041191582192},{"value":14987979559889010718},{"value":4336805920}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4336171008},"cpsr":{"value":1610616832},"fp":{"value":6133788064},"sp":{"value":6133786864},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6471919332},"far":{"value":0}},"queue":"com.apple.root.default-qos","frames":[{"imageOffset":38628,"symbol":"__accept","symbolLocation":8,"imageIndex":10},{"imageOffset":2521088,"symbol":"Socket.acceptClientConnection(invokeDelegate:)","symbolLocation":452,"imageIndex":0},{"imageOffset":453976,"symbol":"closure #3 in startUnixSocketServer()","symbolLocation":148,"imageIndex":0},{"imageOffset":464168,"symbol":"thunk for @escaping @callee_guaranteed @Sendable () -> ()","symbolLocation":28,"imageIndex":0},{"imageOffset":10488,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":11},{"imageOffset":18008,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":11},{"imageOffset":30624,"symbol":"_dispatch_queue_override_invoke","symbolLocation":916,"imageIndex":11},{"imageOffset":90900,"symbol":"_dispatch_root_queue_drain","symbolLocation":392,"imageIndex":11},{"imageOffset":92960,"symbol":"_dispatch_worker_thread2","symbolLocation":156,"imageIndex":11},{"imageOffset":13212,"symbol":"_pthread_wqthread","symbolLocation":228,"imageIndex":12},{"imageOffset":8432,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":12}]},{"id":25778783,"name":"com.apple.NSEventThread","threadState":{"x":[{"value":268451845},{"value":21592279046},{"value":8589934592},{"value":196825466273792},{"value":0},{"value":196825466273792},{"value":2},{"value":4294967295},{"value":18446744073709550527},{"value":2},{"value":0},{"value":0},{"value":0},{"value":45827},{"value":0},{"value":0},{"value":18446744073709551569},{"value":8304464824},{"value":0},{"value":4294967295},{"value":2},{"value":196825466273792},{"value":0},{"value":196825466273792},{"value":6136651880},{"value":8589934592},{"value":21592279046},{"value":21592279046},{"value":4412409862}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6471960016},"cpsr":{"value":4096},"fp":{"value":6136651728},"sp":{"value":6136651648},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6471884340},"far":{"value":0}},"frames":[{"imageOffset":3636,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":10},{"imageOffset":79312,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":10},{"imageOffset":39384,"symbol":"mach_msg_overwrite","symbolLocation":480,"imageIndex":10},{"imageOffset":4476,"symbol":"mach_msg","symbolLocation":24,"imageIndex":10},{"imageOffset":515804,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":4},{"imageOffset":509756,"symbol":"__CFRunLoopRun","symbolLocation":1212,"imageIndex":4},{"imageOffset":506820,"symbol":"CFRunLoopRunSpecific","symbolLocation":588,"imageIndex":4},{"imageOffset":1440652,"symbol":"_NSEventThread","symbolLocation":148,"imageIndex":6},{"imageOffset":29412,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":12},{"imageOffset":8444,"symbol":"thread_start","symbolLocation":8,"imageIndex":12}]},{"id":25799817,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":12}],"threadState":{"x":[{"value":6134362112},{"value":19751},{"value":6133825536},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6134362112},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6472130792},"far":{"value":0}}}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4333649920,
    "CFBundleShortVersionString" : "0.16.2-Beta",
    "CFBundleIdentifier" : "bobko.aerospace",
    "size" : 3276800,
    "uuid" : "64a642a4-ab7d-3a95-82b5-84ac1d74fd3b",
    "path" : "\/Applications\/AeroSpace.app\/Contents\/MacOS\/AeroSpace",
    "name" : "AeroSpace"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4410753024,
    "size" : 49152,
    "uuid" : "f1242604-dcb7-30a9-a19a-182991e6e645",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4742676480,
    "CFBundleShortVersionString" : "322.10",
    "CFBundleIdentifier" : "com.apple.AGXMetalG14X",
    "size" : 7487488,
    "uuid" : "f6817cf9-b70f-382a-839f-1fdd973b9138",
    "path" : "\/System\/Library\/Extensions\/AGXMetalG14X.bundle\/Contents\/MacOS\/AGXMetalG14X",
    "name" : "AGXMetalG14X",
    "CFBundleVersion" : "322.10"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6582755328,
    "CFBundleShortVersionString" : "1.22",
    "CFBundleIdentifier" : "com.apple.HIServices",
    "size" : 446464,
    "uuid" : "2c8d32a6-5281-3cbd-ba46-1eb9fcdd5eab",
    "path" : "\/System\/Library\/Frameworks\/ApplicationServices.framework\/Versions\/A\/Frameworks\/HIServices.framework\/Versions\/A\/HIServices",
    "name" : "HIServices"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6472581120,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5197824,
    "uuid" : "ae4610f8-7c5c-3484-858e-cae7457d206e",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "3107"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6661193728,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 3178496,
    "uuid" : "738685cb-aca1-3dfe-91c5-192bab97a042",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6534893568,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 20955136,
    "uuid" : "49d8b1b6-0ea8-36ad-89fd-a41acf00a742",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2575.20.21"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7246254080,
    "CFBundleShortVersionString" : "6.1.19.2",
    "CFBundleIdentifier" : "com.apple.SwiftUI",
    "size" : 24915968,
    "uuid" : "766fb524-278b-3c0c-9c63-2386ec6b2bfd",
    "path" : "\/System\/Library\/Frameworks\/SwiftUI.framework\/Versions\/A\/SwiftUI",
    "name" : "SwiftUI",
    "CFBundleVersion" : "6.1.19.2"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6468444160,
    "size" : 534452,
    "uuid" : "6beafde4-b011-3e47-8aae-4d7b6e4bb7e8",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6471880704,
    "size" : 241656,
    "uuid" : "9fea25a4-e8ca-3f3d-901c-a53ff2bc7217",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6470352896,
    "size" : 290816,
    "uuid" : "9ea577db-73c2-39d8-9fc0-544fa595a142",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6472122368,
    "size" : 53248,
    "uuid" : "3b8268be-4e02-3b4a-8b41-baed2bbaacff",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 6467633152,
  "size" : 4753735680,
  "uuid" : "f66bac4e-1e78-38af-b867-c1cf5daa0302"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.3G resident=0K(0%) swapped_out_or_unallocated=1.3G(100%)\nWritable regions: Total=1.4G written=594K(0%) resident=594K(0%) swapped_out=0K(0%) unallocated=1.4G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nAttributeGraph Data               1024K        1 \nColorSync                          512K       26 \nCoreAnimation                       16K        1 \nCoreGraphics                        64K        4 \nFoundation                          16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                             1.4G       77 \nMALLOC guard page                  384K       24 \nSTACK GUARD                       56.1M        4 \nStack                             9808K        4 \nVM_ALLOCATE                        176K        7 \n__AUTH                            3297K      429 \n__AUTH_CONST                      47.1M      631 \n__CTF                               824        1 \n__DATA                            16.7M      614 \n__DATA_CONST                      18.7M      638 \n__DATA_DIRTY                      1735K      203 \n__FONT_DATA                        2352        1 \n__INFO_FILTER                         8        1 \n__LINKEDIT                       590.4M        4 \n__OBJC_RW                         2354K        1 \n__TEXT                           762.3M      656 \n__TPRO_CONST                       272K        2 \nmapped file                      214.0M       26 \nowned unmapped memory               48K        1 \npage table in kernel               594K        1 \nshared memory                     1376K       12 \n===========                     =======  ======= \nTOTAL                              3.1G     3372 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "bb886c50e89da42de5d3c6a0371b2aca4a94907a",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "65a8173205d942272410674b",
      "factorPackIds" : {
        "SIRI_HOME_AUTOMATION_SERVER_FLOW_DEPRECATION" : "65d39fa4cb0e2417d11ce5f6"
      },
      "deploymentId" : 240000001
    },
    {
      "rolloutId" : "661464ecda55e5192b100804",
      "factorPackIds" : {

      },
      "deploymentId" : 240000005
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
      "experimentId" : "6643969b3099cf28e049862f",
      "deploymentId" : 400000007
    }
  ]
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

10 participants