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 freezes when debugging Xcode with "My Mac (Designed for iPad)" as destination #526

Open
3 tasks done
FriedSnowman opened this issue Sep 21, 2024 · 2 comments
Open
3 tasks done

Comments

@FriedSnowman
Copy link

Aerospace will freeze and become extremely unresponsive when debugging an Xcode iOS project using "My Mac (Designed for iPad)" destination.

Reproduction:

  • Make a blank iOS project
  • Write code that will crash
import SwiftUI

struct ContentView: View {
    var body: some View {
        VStack { }
            .onAppear {
                let a: String? = nil
                var b: String = ""
                b = a!
            }
    }
}
  • Run as My Mac (Designed for iPad)
  • As soon as the app launches and crashes, Aerospace will become barely responsive until the debugging session stops.

aerospace debug-windows doesn't work because the crashed application isn't visible nor interactable. No crash logs because Aerospace never crashes.

OS: Version 15.0 (24A335)
Xcode: Version 16.0 (16A242d)

Checklist

aerospace CLI client version: 0.14.2-Beta 0cb8dbdfc5ee73b8cbc200f175f467ebead55201
AeroSpace.app server version: 0.14.2-Beta 0cb8dbdfc5ee73b8cbc200f175f467ebead55201
@jakenvac
Copy link
Contributor

jakenvac commented Oct 3, 2024

Although not obvious, I think this is a duplicate of #497

When an app's main thread is blocked (like a crashed app or an app stopped at a breakpoint) the AX (accessibility) API's can't communicate effectively with the problem app and causes a hang.

Currently there is no workaround, although some ideation has happened on the linked issue.

@patricorgi
Copy link

patricorgi commented Dec 1, 2024

I have a similar problem but with apps which need a long time to quit, e.g. calibre (a book library app) and Transmission (a torrent downloader). These apps take a few seconds to quit when pressing Command + q. During this quitting time, the apps are completely irresponsive, which seems to be affecting AeroSpace as well - I'm not able to switch to a different workspace even with Mission Control. Is there a way to mitigate or avoid these freezes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants