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

AeroSpace crash when open Xcode windows #706

Open
nikitabobko opened this issue Nov 15, 2024 · 7 comments
Open

AeroSpace crash when open Xcode windows #706

nikitabobko opened this issue Nov 15, 2024 · 7 comments
Labels
bug Something isn't working as expected

Comments

@nikitabobko
Copy link
Owner

          The snapshot version of AeroSpace occasionally crashes when opening new Xcode windows. I haven't been able to consistently reproduce the issue yet.
##### 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("ReleaseNotesKit-HostApp — Announcement.swift")', role: 'Optional("AXWindow")', subrole: 'Optional("AXStandardWindow")', identifier: 'Optional("Xcode.WorkspaceWindow")', modal: 'Optional("false")', windowId: 'Optional("174698")') is already unbound
Version: 0.0.0-SNAPSHOT
Git hash: 00cbb633178066858edb42c0c60ba8625da38976
Coordinate: /Users/felix/Developer/Swift/Vendor/AeroSpace/Sources/AppBundle/tree/TreeNode.swift:114:34 unbindFromParent()
recursionDetectorDuringFailure: false
cli: false

Stacktrace:
0   AeroSpace                           0x0000000104a776bc $s6Common6errorT_4file4line6column8functionxSS_SSS2iSStlF + 744
1   AeroSpace                           0x000000010491d9d0 $s9AppBundle8TreeNodeC16unbindFromParentAA11BindingDataVyF + 236
2   AeroSpace                           0x00000001049181fc $s9AppBundle9MacWindowC14garbageCollectyyF + 124
3   AeroSpace                           0x000000010490304c $s9AppBundle9gcWindowsyyF + 1004
4   AeroSpace                           0x00000001048fe5c0 $s9AppBundle14refreshSession7startup10forceFocus4bodyxSb_SbxyXEtlFyt_Tg503$s9A45Bundle16refreshAndLayout7startupySb_tFyyXEfU_Tf1nnnc_n + 552
5   AeroSpace                           0x0000000104907558 $s9AppBundle8movedObs_2ax5notif4dataySo13AXObserverRefa_So011AXUIElementI0aSo08CFStringI0aSvSgtFTf4dddn_n + 168
6   HIServices                          0x00000001a3429a80 _XXMIGPostNotification + 896
7   HIServices                          0x00000001a345afa0 _XPostNotification + 356
8   HIServices                          0x00000001a340a368 mshMIGPerform + 212
9   CoreFoundation                      0x000000019cb6e2c8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
10  CoreFoundation                      0x000000019cb6e1e8 __CFRunLoopDoSource1 + 524
11  CoreFoundation                      0x000000019cb6cb48 __CFRunLoopRun + 2248
12  CoreFoundation                      0x000000019cb6bbc4 CFRunLoopRunSpecific + 588
13  HIToolbox                           0x00000001a7fdbf64 RunCurrentEventLoopInMode + 292
14  HIToolbox                           0x00000001a7fe1bb4 ReceiveNextEventCommon + 220
15  HIToolbox                           0x00000001a7fe1eb8 _BlockUntilNextEventMatchingListInModeWithFilter + 76
16  AppKit                              0x00000001a0697a08 _DPSNextEvent + 660
17  AppKit                              0x00000001a0fd7e0c -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
18  AppKit                              0x00000001a068aae0 -[NSApplication run] + 480
19  AppKit                              0x00000001a0661364 NSApplicationMain + 888
20  SwiftUI                             0x00000001cad10340 $s7SwiftUI6runAppys5NeverOSo21NSApplicationDelegate_So11NSResponderCXcFTf4e_nAA07TestingdG0C_Tg5Tm + 160
21  SwiftUI                             0x00000001cb180ee4 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 84
22  SwiftUI                             0x00000001cb4f9f24 $s7SwiftUI3AppPAAE4mainyyFZ + 224
23  AeroSpace                           0x00000001048a16b8 main + 36
24  dyld                                0x000000019c704274 start + 2840

Originally posted by @FelixLisczyk in #445 (comment)

@nikitabobko nikitabobko added the bug Something isn't working as expected label Nov 15, 2024
@nikitabobko
Copy link
Owner Author

If somebody finds the reproducer it'd be helpful to share it

@nikitabobko
Copy link
Owner Author

The bug is most probably introduced in 405dec8 or 964e5b1

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
@nikitabobko nikitabobko pinned this issue Dec 5, 2024
@nikitabobko
Copy link
Owner Author

nikitabobko commented Dec 5, 2024

Version 0.16.2 contain more information in the crash report. I'm interested to see new crash reports

(I couldn't reproduce the problem on my machine)

@FelixLisczyk
Copy link

I've experienced some occasional crashes over the past few days. I've installed the latest beta version and will share a crash report once it happens again.

@nikitabobko
Copy link
Owner Author

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

Users are welcome to send crash reports (either here or in the new issue), if the problem is still there

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

I still experience occasional crashes, about once a week, when opening an Xcode project from the command line using the command: open "project-name.xcworkspace".

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

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

Message: Windows always have parent
Version: 0.16.2-Beta
Git hash: 21336ad382539b35fdc94b4fbd55408e10b101f8
Coordinate: /Users/bobko/a/AeroSpace/Sources/AppBundle/tree/Window.swift:7:72 parent
recursionDetectorDuringFailure: false
cli: false
Displays have separate spaces: false

Stacktrace:
0   AeroSpace                           0x0000000102b4f104 $s6Common6errorT_4file4line6column8functionxSS_SSS2iSStlF + 1076
1   AeroSpace                           0x00000001029efa8c $s9AppBundle6WindowC6parentAA21NonLeafTreeNodeObject_pvg + 140
2   AeroSpace                           0x00000001029eea7c $s9AppBundle8TreeNodeC13nodeWorkspaceAA0F0CSgvg + 64
3   AeroSpace                           0x00000001029cb424 $s9AppBundle16updateFocusCacheyyAA6WindowCSgF + 68
4   AeroSpace                           0x00000001029cd6e8 $s9AppBundle14refreshSession26screenIsDefinitelyUnlocked7startup4bodyxSb_SbxyXEtlFyt_Tg503$s9a32Bundle16refreshAndLayout26screenfG31Unlocked7startupySb_SbtFyyXEfU_Tf1nnnc_n + 412
5   AeroSpace                           0x0000000102973d14 $s9AppBundle14GlobalObserverC7onNotif33_F1205CFDC13498282252A689C79131F6LLyy10Foundation12NotificationVFZTf4nd_n + 380
6   AeroSpace                           0x0000000102972fec $s10Foundation12NotificationVIeghn_So14NSNotificationCIeyBhy_TR + 116
7   CoreFoundation                      0x000000018aa7534c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 128
8   CoreFoundation                      0x000000018ab0620c ___CFXRegistrationPost_block_invoke + 88
9   CoreFoundation                      0x000000018ab06154 _CFXRegistrationPost + 436
10  CoreFoundation                      0x000000018aa43f9c _CFXNotificationPost + 732
11  Foundation                          0x000000018bbfdfd4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
12  AppKit                              0x000000018e7829e8 applicationStatusSubsystemCallback + 728
13  LaunchServices                      0x000000018af1b118 ___LSScheduleNotificationFunction_block_invoke_2 + 52
14  CoreFoundation                      0x000000018aa80420 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
15  CoreFoundation                      0x000000018aa80330 __CFRunLoopDoBlocks + 356
16  CoreFoundation                      0x000000018aa7f118 __CFRunLoopRun + 824
17  CoreFoundation                      0x000000018aa7e724 CFRunLoopRunSpecific + 588
18  HIToolbox                           0x0000000195fd6530 RunCurrentEventLoopInMode + 292
19  HIToolbox                           0x0000000195fdc348 ReceiveNextEventCommon + 676
20  HIToolbox                           0x0000000195fdc508 _BlockUntilNextEventMatchingListInModeWithFilter + 76
21  AppKit                              0x000000018e5e9034 _DPSNextEvent + 660
22  AppKit                              0x000000018ef4d2d4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
23  AppKit                              0x000000018e5dc060 -[NSApplication run] + 480
24  AppKit                              0x000000018e5b2854 NSApplicationMain + 888
25  SwiftUI                             0x00000001b96cfa6c $s7SwiftUI6runAppys5NeverOSo21NSApplicationDelegate_So11NSResponderCXcFTf4e_nAA07TestingdG0C_Tg5Tm + 160
26  SwiftUI                             0x00000001b9b433f8 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 140
27  SwiftUI                             0x00000001b9ebef38 $s7SwiftUI3AppPAAE4mainyyFZ + 224
28  AeroSpace                           0x00000001029710b8 main + 36
29  dyld                                0x000000018a618274 start + 2840

@nikitabobko
Copy link
Owner Author

@nikitabobko nikitabobko reopened this Dec 18, 2024
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

2 participants