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

Error while trying to launch aerospace #370

Closed
RFillion opened this issue Aug 11, 2024 · 7 comments
Closed

Error while trying to launch aerospace #370

RFillion opened this issue Aug 11, 2024 · 7 comments

Comments

@RFillion
Copy link

Here's the log :

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

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

Message: Can't listen to socket /tmp/bobko.aerospace.sock The operation couldn’t be completed. (Socket.Socket.Error error 1.)
Version: 0.14.0-Beta
Git hash: 96ae7a761f5f969b21e00345629558e005d125c5
Coordinate: /Users/bobko/a/AeroSpace/Sources/AppBundle/server.swift:9:60 startServer()
recursionDetectorDuringFailure: false
cli: false

Stacktrace:
0   AeroSpace                           0x00000001024df4a8 $s6Common6errorT_4file4line6column8functionxSS_SSS2iSStlFs5NeverO_Tg5 + 740
1   AeroSpace                           0x00000001024f826c $ss6ResultO6CommonE10getOrThrow_4file4line6column8functionxSS_SSS2iSStF + 360
2   AeroSpace                           0x0000000102382064 $s9AppBundle11startServeryyF + 736
3   AeroSpace                           0x0000000102373974 $s9AppBundle04initaB0yyF + 500
4   AeroSpace                           0x000000010231f4a8 $s9AeroSpace0aB3AppV7SwiftUI0C0AadEPxycfCTW + 80
5   SwiftUI                             0x00000001b608aea8 OUTLINED_FUNCTION_0 + 124
6   AeroSpace                           0x000000010231f558 main + 36
7   dyld                                0x00000001897220e0 start + 2360
@nikitabobko
Copy link
Owner

Try restarting AeroSpace/macOS 🤷 #141

I've never observed this error

@NeverALegend
Copy link

I bumped into the same issue and I restarted after reading #141. Is there multiple user support? I can only launch one aerospace instance, if 2 users are logged in then the issue occurs.

@RFillion
Copy link
Author

Yes I have two users on my mac for my job and for personal use. I will restart aerospace.

@NeverALegend
Copy link

@nikitabobko Let me preface this with I have zero knowledge of Swift, but after looking around the project. I found that in server.swift the .sock file is being created, right? Would changing the .sock file created there to say something like /tmp/\(Bundle.appId).\(NSUserName()).sock do the trick?

In my non-existent knowledge of how the .sock file is being created it seems like it's a permissions error, instead of dealing with file permissions, can this be changed easily to a more unique identifier to allow multiple users? Of course, I'm not sure if this will be a simple fix

I'm willing to test this and learn something from a new language while I'm at it.

@nikitabobko
Copy link
Owner

Multi-user problem should be fixed in 0.14.1. Can somebody please verify?

@NeverALegend
Copy link

I reinstalled and so far so good! I tested with the .sock file that was there as the error occurred without removing it and I was able to fast-switch without issues. I also restarted for good measure and it's still working as intended.

Thank you for the quick fix!

@arthurbellis
Copy link

I just ran into this same issue, and was thrilled to find the fix already landed. Thanks!

jakenvac pushed a commit to jakenvac/AeroSpace that referenced this issue Aug 16, 2024
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

4 participants