ITADN

'Value is already destroyed' crash

#1921Opennikitabobko 创建于 2026-01-29
bugcrash
N
nikitabobkocommented
Steps to reproduce: 1. Have AeroSpace and Sketchybar started 2. Start up Electron app via terminal. Open multiple windows. All Electron app windows occupy a single space. 3. Cmd+q while Electron app is focused to quit app. Expected result: App quits, aerospace stays running. Actual result: Aerospace crashes. ### Additional info ```shell $ aerospace -v aerospace CLI client version: 0.20.2-Beta 1a8128c53b231bac7e46917468d50b4f15ad30f7 AeroSpace.app server version: 0.20.2-Beta 1a8128c53b231bac7e46917468d50b4f15ad30f7 ``` ``` ##### AeroSpace Runtime Error ##### Please report to: https://github.com/nikitabobko/AeroSpace/discussions/categories/potential-bugs Please describe what you did to trigger this error Message: Value is already destroyed Version: 0.20.2-Beta Git hash: 1a8128c53b231bac7e46917468d50b4f15ad30f7 refreshSessionEvent: socketServer Date: 2026-01-28 18:35:49 +0000 Thread name: AxAppThread PID: 15514 ID: com.github.Electron Is main thread: false axTaskLocalAppThreadToken: PID: 15514 ID: com.github.Electron macOS version: Version 14.8.3 (Build 23J220) Coordinate: AppBundle/ThreadGuardedValue.swift:10:42 threadGuarded recursionDetectorDuringTermination: false cli: false Monitor count: 3 Displays have separate spaces: true Stacktrace: 0 AeroSpace 0x0000000104f7d4ac $s6Common4dieT_4file4line6column8functionxSS_SSS2iSStlF + 2056 1 AeroSpace 0x0000000104e16d30 $s9AppBundle03MacA0C10withWindow33_EF43F3E35B745B4CDFE17DB804FA328CLLyxSgs6UInt32V_AFSo14AXUIElementRefa_AA10RunLoopJobCtYbKctYaKlFAfLYbKcfU_AA4RectV_Tg5 + 244 2 AeroSpace 0x0000000104e1a99c $s9AppBundle03MacA0C10withWindow33_EF43F3E35B745B4CDFE17DB804FA328CLLyxSgs6UInt32V_AFSo14AXUIElementRefa_AA10RunLoopJobCtYbKctYaKlFAfLYbKcfU_AA4RectV_TG5 + 28 3 AeroSpace 0x0000000104ddbb60 $s9AppBundle03MacA0C10withWindow33_EF43F3E35B745B4CDFE17DB804FA328CLLyxSgs6UInt32V_AFSo14AXUIElementRefa_AA10RunLoopJobCtYbKctYaKlFAfLYbKcfU_AA4RectV_TG5TA + 24 4 AeroSpace 0x0000000104e16208 $sSo8NSThreadC9AppBundleE9runInLoopyxxAC03RunF3JobCYbKcYaKlFxyYaKXEfU_yScCyxs5Error_pGXEfU_yAFYbcfU_AC4RectVSg_Tg5 + 168 5 AeroSpace 0x0000000104dbfdc0 $s9AppBundle13RunLoopAction33_A4959B6FE60031823DBA1501F5438AC4LLC6actionyyF + 216 6 AeroSpace 0x0000000104dbfdfc $s9AppBundle13RunLoopAction33_A4959B6FE60031823DBA1501F5438AC4LLC6actionyyFTo + 24 7 Foundation 0x000000018be0f028 __NSThreadPerformPerform + 264 8 CoreFoundation 0x000000018acbe3b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 9 CoreFoundation 0x000000018acbe34c __CFRunLoopDoSource0 + 176 10 CoreFoundation 0x000000018acbe0bc __CFRunLoopDoSources0 + 244 11 CoreFoundation 0x000000018acbcca8 __CFRunLoopRun + 828 12 CoreFoundation 0x000000018acbc314 CFRunLoopRunSpecific + 608 13 CoreFoundation 0x000000018ad3a33c CFRunLoopRun + 64 14 AeroSpace 0x0000000104dc6a14 $s9AppBundle03MacA0C13getOrRegisteryACSgSo20NSRunningApplicationCYaKFZyyYbcfU_yyXEfU_ + 1100 15 AeroSpace 0x0000000104dc6594 $s9AppBundle03MacA0C13getOrRegisteryACSgSo20NSRunningApplicationCYaKFZyyYbcfU_ + 120 16 AeroSpace 0x0000000104dc6298 $sIegh_IeyBh_TR + 28 17 Foundation 0x000000018bdeabb0 __NSThread__start__ + 716 18 libsystem_pthread.dylib 0x000000018abdef3c _pthread_start + 136 19 libsystem_pthread.dylib 0x000000018abd9d24 thread_start + 8 ``` _Originally posted by @jinusean in https://github.com/nikitabobko/AeroSpace/discussions/1920_ ## Discussions https://github.com/nikitabobko/AeroSpace/discussions/1971
5 条评论