Skip to content

0.18.0 unbound TreeNode crash #1297

@nikitabobko

Description

@nikitabobko

Hey! Firstly, thanks for creating such a kickass project. I previously used macOS custom keybinds to switch between numbered workspaces, but hated the default transition as well as the lack of flexibility. v0.18.x looks like a very exciting release, and I'm sure a lot of hard work has gone into it!

I wish I could give more details as to what I'm doing to trigger this, but I have absolutely no idea. It seems to just crash while I'm working in JetBrains IntelliJ IDEA Ultimate.

Edit: I've updated to v0.18.1-beta, hoping that may help.

Edit: Seems that v0.18.1-beta causes the wallpaper to pop up whenever switching spaces. Guess I'll try downgrading to v0.17.1.

##### 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: 
    AppBundle.MacWindow is already unbound. The stacktrace where it was unbound:
    0   AeroSpace                           0x0000000100420c1c $s6Common19getStringStacktraceSSyF + 44
    1   AeroSpace                           0x00000001002b6430 $s9AppBundle8TreeNodeC13unbindIfBound33_C0BD111AB6D9D19A3A8697678A2C07EFLLAA11BindingDataVSgyF + 684
    2   AeroSpace                           0x00000001002b66dc $s9AppBundle8TreeNodeC16unbindFromParentAA11BindingDataVyF + 28
    3   AeroSpace                           0x00000001002968b0 $s9AppBundle19validateStillPopups33_EA737387E8EE73FEB20FFAD7FE91D51ELLyyYaKFTY25_ + 56
    4   AeroSpace                           0x0000000100294751 $s9AppBundle21normalizeLayoutReasonyyYaKFTQ4_ + 1
    5   AeroSpace                           0x0000000100286ed1 $s9AppBundle25runRefreshSessionBlocking_16layoutWorkspacesy6Common0dE5EventO_SbtYaKFyyYaKXEfU_yyYaKXEfU_TQ6_ + 1
    6   AeroSpace                           0x00000001002149d1 $s9AppBundle17runRefreshSession_26screenIsDefinitelyUnlockedy6Common0dE5EventO_SbtFyyYaKcfU_TATQ0_ + 1
    7   libswift_Concurrency.dylib          0x0000000277514461 $ss9TaskLocalC13withValueImpl_9operation9isolation4file4lineqd__xn_qd__yYaKXEScA_pSgYiSSSutYaKlFTQ1_ + 1
    8   libswift_Concurrency.dylib          0x0000000277514109 $ss9TaskLocalC9withValue_9operation9isolation4file4lineqd__x_qd__yYaKXEScA_pSgYiSSSutYaKlFTQ1_ + 1
    9   AeroSpace                           0x00000001002868dd $s9AppBundle25runRefreshSessionBlocking_16layoutWorkspacesy6Common0dE5EventO_SbtYaKFyyYaKXEfU_TQ1_ + 1
    10  AeroSpace                           0x00000001002149d1 $s9AppBundle17runRefreshSession_26screenIsDefinitelyUnlockedy6Common0dE5EventO_SbtFyyYaKcfU_TATQ0_ + 1
    11  libswift_Concurrency.dylib          0x0000000277514461 $ss9TaskLocalC13withValueImpl_9operation9isolation4file4lineqd__xn_qd__yYaKXEScA_pSgYiSSSutYaKlFTQ1_ + 1
    12  libswift_Concurrency.dylib          0x0000000277514109 $ss9TaskLocalC9withValue_9operation9isolation4file4lineqd__x_qd__yYaKXEScA_pSgYiSSSutYaKlFTQ1_ + 1
    13  AeroSpace                           0x0000000100285e59 $s9AppBundle25runRefreshSessionBlocking_16layoutWorkspacesy6Common0dE5EventO_SbtYaKFTQ1_ + 1
    14  AeroSpace                           0x0000000100286609 $s9AppBundle17runRefreshSession_26screenIsDefinitelyUnlockedy6Common0dE5EventO_SbtFyyYaKcfU_TQ1_ + 1
    15  AeroSpace                           0x00000001002149d1 $s9AppBundle17runRefreshSession_26screenIsDefinitelyUnlockedy6Common0dE5EventO_SbtFyyYaKcfU_TATQ0_ + 1
    16  libswift_Concurrency.dylib          0x000000027754883d _ZL23completeTaskWithClosurePN5swift12AsyncContextEPNS_10SwiftErrorE + 1
Version: 0.18.0-Beta
Git hash: 30bc81f925a8e13b5130e81a9af4bcaf4b29284a
refreshSessionEvent: ax(AXUIElementDestroyed)
Date: 2025-04-14 13:13:08 +0000
Thread name: 
Is main thread: true
axTaskLocalAppThreadToken: PID: 65178 ID: com.jetbrains.intellij
macOS version: Version 15.4 (Build 24E248)
Coordinate: AppBundle/TreeNode.swift:121:32 unbindFromParent()
recursionDetectorDuringTermination: false
cli: false
Monitor count: 1
Displays have separate spaces: false

Stacktrace:
0   AeroSpace                           0x0000000100420248 $s6Common4dieT_4file4line6column8functionxSS_SSS2iSStlF + 2256
1   AeroSpace                           0x00000001002b67e8 $s9AppBundle8TreeNodeC16unbindFromParentAA11BindingDataVyF + 296
2   AeroSpace                           0x00000001002afa50 $s9AppBundle9MacWindowC14garbageCollect22skipClosedWindowsCacheySb_tF + 240
3   AeroSpace                           0x0000000100287480 $s9AppBundle7refresh33_9D4CAE07A16011BB7304F8F5007BD739LLyyYaKFTY2_ + 292
4   AeroSpace                           0x0000000100286bdd $s9AppBundle25runRefreshSessionBlocking_16layoutWorkspacesy6Common0dE5EventO_SbtYaKFyyYaKXEfU_yyYaKXEfU_TQ0_ + 1
5   AeroSpace                           0x00000001002149d1 $s9AppBundle17runRefreshSession_26screenIsDefinitelyUnlockedy6Common0dE5EventO_SbtFyyYaKcfU_TATQ0_ + 1
6   libswift_Concurrency.dylib          0x0000000277514461 $ss9TaskLocalC13withValueImpl_9operation9isolation4file4lineqd__xn_qd__yYaKXEScA_pSgYiSSSutYaKlFTQ1_ + 1
7   libswift_Concurrency.dylib          0x0000000277514109 $ss9TaskLocalC9withValue_9operation9isolation4file4lineqd__x_qd__yYaKXEScA_pSgYiSSSutYaKlFTQ1_ + 1
8   AeroSpace                           0x00000001002868dd $s9AppBundle25runRefreshSessionBlocking_16layoutWorkspacesy6Common0dE5EventO_SbtYaKFyyYaKXEfU_TQ1_ + 1
9   AeroSpace                           0x00000001002149d1 $s9AppBundle17runRefreshSession_26screenIsDefinitelyUnlockedy6Common0dE5EventO_SbtFyyYaKcfU_TATQ0_ + 1
10  libswift_Concurrency.dylib          0x0000000277514461 $ss9TaskLocalC13withValueImpl_9operation9isolation4file4lineqd__xn_qd__yYaKXEScA_pSgYiSSSutYaKlFTQ1_ + 1
11  libswift_Concurrency.dylib          0x0000000277514109 $ss9TaskLocalC9withValue_9operation9isolation4file4lineqd__x_qd__yYaKXEScA_pSgYiSSSutYaKlFTQ1_ + 1
12  AeroSpace                           0x0000000100285e59 $s9AppBundle25runRefreshSessionBlocking_16layoutWorkspacesy6Common0dE5EventO_SbtYaKFTQ1_ + 1
13  AeroSpace                           0x0000000100286609 $s9AppBundle17runRefreshSession_26screenIsDefinitelyUnlockedy6Common0dE5EventO_SbtFyyYaKcfU_TQ1_ + 1
14  AeroSpace                           0x00000001002149d1 $s9AppBundle17runRefreshSession_26screenIsDefinitelyUnlockedy6Common0dE5EventO_SbtFyyYaKcfU_TATQ0_ + 1
15  libswift_Concurrency.dylib          0x000000027754883d _ZL23completeTaskWithClosurePN5swift12AsyncContextEPNS_10SwiftErrorE + 1

Originally posted by @wolveix in #1295

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashregressionThe behavior changed between versions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions