-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
macOS 14 Sonoma #1772
Comments
Upgrade to yabai v5.0.6 and stop using brew services. There is a launchd interface directly in yabai now. |
thank you! This works :) |
@0xCUB3 have you had any issues with yabai segfaulting over and over? I did the same thing as mentioned (upgrading to yabai v5.0.6 and using yabai --install-service) but when starting the service it runs for about a minute, then segfaults. Looking at the logs it seems to be failing on:
But I've tried removing yabai from accessibility, restarting the service, and adding it back when it asked for the permission, and that didn't change anything. (Apologies if I shouldn't post this here, just using this as I'm having a similar issue.) |
remove all other "yabai" instances from accessibility and then try again. Make sure yabai is on the latest version too. |
I've made sure to remove all the other instances, and I'm using yabai from the latest GitHub release. |
Interesting. I followed the same steps and had no issues. Someone else will have to chime in. |
You should keep in mind that Sonoma is in developer preview 1 and the issues you experience are likely macOS issues/bugs, that will be fixed in later previews. This is even more likely considering you seem to be having issues using the accessiblity API, which is a publicly documented and fairly stable API (stable as in Apple very rarely, if ever, does breaking changes to this API). |
yeah that's correct; the issues will likely resolve themselves over time. I mostly upgraded to test my own apps to see if they work 🤪 |
Yeah, that's most likely what's happening here. It's not too much of an issue, but I just wanted to see if it's happening to anybody else. |
Okay, after trying a few more things, the segfault seems to be caused by After removing that line from my yabairc and re-running yabai, I've had it running for about 5 minutes now with no segfaults. Previously, it would immediately segfault when switching windows by moving the mouse to another window. What I find especially odd, though, is that Amethyst's implementation of focus_follows_mouse works just fine, even with yabai running as the window manager and Amethyst being disabled. EDIT: Line 1218 in fa966c7
|
It is not functional. It segfaults every focus switch. Gotta rollback the OS now |
yes it started doing it for me again, even with the switch to the built-in launchd interface. |
it seems to be either an issue with the focus-switching code, or how macOS Sonoma handles it. |
I can confirm this. Other yabai window-specific commands like |
When yabai focuses a window it is a mix of private APIs, reverse engineered events that are sent directly to an application, and the AX API. This combination is necessary as a workaround to a problem where the wrong window will receive focus in a multi-monitor setup. See #102 for history. Window focusing has worked this way ever since yabai v1.0.6. I don't know if this is broken in Sonoma, or if the crash that is observed now are happening because of issues that Apple will resolve in later versions of Sonoma, as they are still on the first developer beta. I am personally not going to care much about issues that arise, until they ship the ~3rd public beta release. |
Little update to this, 2nd beta seems to still be broken w/ yabai. It also seems they recently deprecated a lot of things, so it might have something to do with that? UPDATE: I thought yabai had been working, but the bug still seems to be present. |
Again, 3rd beta has the same issues. Seems that Apple most likely changed something with the APIs that yabai uses, considering I've also seen lots of API deprecation warnings in numerous apps. |
After upgrading I am unable to switch spaces focus. Anybody else experiencing this issue? |
I'm fully aware that I don't deserve support as a Sonoma Public Beta user (sorry, I couldn't resist installing it), but maybe someone can help me out anyway! 😁 What I did: I uninstalled yabai with
I did install Xcode 15 Beta (4), but I still get the message saying Xcode is outdated. Also, I'm unsure what does Yabai mean by "or delete it"? 🤔 Should I delete the Xcode 15 beta again? Not sure if that's going to help. Full output:
|
Update (to whom it concerns): after installing Xcode 15 Beta, you need to run this command:
This lets you install Yabai 5.0.6 again. |
I switched to Sonoma, reinstalled yabai and switched to Xcode-beta. Window swap, warp, mirror, padding, rotate, toggle float, grid mode, toggle split and opacity all work as expected. However, focusing windows and spaces doesn't work. Focusing windows occasionally causes all windows to switch around randomly after about 3 seconds, and occasionally it will work a single time but not work after that. So for now I've gone back to Ventura... I hope you will be able to eventually figure out a fix, I couldn't use macOS without yabai - it's so good |
I am also unable to switch spaces since switching to Sonoma beta: |
@JacquesCherbuin my experience is identical to yours. I didn't switch back to Ventura (I think the only way is to restore from a Time Machine backup, and that would take forever and is not without risks). Besides, I like everything else in Sonoma too much. Yabai is the only third-party app that is causing me trouble 😁 But that was totally to be expected, of course. Nonetheless, I'm holding my breath for a Yabai update and I hope @koekeishiya won't let us wait until the final release! 🙊 |
I'm also experiencing the focusing issue. I hope this gets addressed :( |
Same issue here, every three seconds yabai "reset" and refocus. With this, it is impossible to use Yabai, so I stopped the service and hope we have a fix soon to be used again. |
You can apply this patch to the master branch (ea4eb84) to make window focus work without segfaulting.
As I have mentioned before; if this software is critical to your workflow you should refrain from upgrading to a beta OS. |
Perfect! For those of you who don't know how to apply this patch, you need to switch to the dev version of yabai, which runs off of the latest commit. As @koekeishiya mentioned, however, run this at your own risk and don't run beta versions of macOS unless you understand all of the risks involved |
I've already made up my mind. The current iteration of window borders will be removed. |
I personally love the window borders. Haven't noticed many issues with them, if any, but if it's for the best of the project, than it must be removed! It will be missed /: |
if the window borders are gone, does that mean the blur bg is gone as well? |
Removing the window borders makes modal keymaps for skhdrc unusable (; https://gist.github.com/ryan-mooore/016b0d10e3dcc138e429570d0752fbad |
Probably because of these lines on that config:
Comment those out and see if it works. You most likely will need to remove:
From the end of the commands where it ends with those, i.e This is the first time I saw a config like this and will try it when I get home as I found it interesting. |
Yes, I know. I'm just expressing my nostalgia for the window border. I may need to install Hammerspoon or something else to achieve indication. Modal keymaps are difficult to use without an indicator. |
Very true, I updated yesterday and I did notice great improvement though without the borders. I turned windows opacity on to minimal just to get some kind of indication, I'm also using the window control buttons from mac as my indicator of what windows is active for now. Guess is something I'll have to see how well I adapt to it. |
I totally understand the decision. And I appreciate the work you're doing it. But damn, I'd be lying if I say I don't miss the border. I do notice the performance gain, but like 87% of my RICE aesthetic is gone now due the lack of window borders. Also, it's hard to know which window has the focus since I try to hide titlebar whenever I can (iTerms, Firefox, VSCode, Neovide). |
Something in SketchyBar might help us here https://github.com/FelixKratz/SketchyBar |
having the same problem here on MacOS 14.0 Sonoma , yabai stopping randomly from time to time |
Hey guys, I also was an avid user of window borders before this update, yesterday I made a small workaround to make sketchybar display the current skhd current mode (that was previously done by the window border colors). If anybody wants to take a similar approach, here is a gist. |
yep same here, switching desktops is not working for me. Although maximizing panes or swapping their positions is working. |
Adding on to say I'm also experiencing issues where yabai randomly stops. I'll run This issue does not happen when I run err.log, and out.log don't show any helpful information AFAICT yabai -v: output of `/tmp/yabai_$USER.out.log`Pretty much all my settings, and resize events done at startup
^^^ This is basically the repeated output of `/tmp/yabai_$USER.err.log```` could not locate the space to act on! could not locate the space to act on! could not locate the space to act on! could not locate the space to act on! ```yabairc
Edits: Adding details - macos version, yabai version, yabairc |
Does it work for you guys in version 6.0.0 ? I can't seem to make it work. Am I missing somthing to make it work ? @codekcv @gldtn @saurabhsharan @diocletiann @ZirixCZ @frigaut @0xCUB3 Big thanks to all yabai contributors. |
From HEAD now everything seems to work fine ! |
Can someone else confirm that everything works properly on Sonoma when using |
Yes, for me everything works on Sonoma as before. |
@frigaut Do you use yabai with SIP disabled + scripting additions? I'm especially interested/concerned about instant virtual spaces switching. |
@devnoname120 yes, I use yabai with SIP disabled + scripting addition, and "instant" space switching is working fine. |
Yes, space switching has been working on Sonoma 14.1.1 w/ Yabai 6.0.1 HEAD If you want to do a quick update you can try my lil script out here: #1904 (comment) This keeps me from having to go to the wiki every time I want to update Yabai, and it takes care of all the scripting addition reconfiguration. |
is space switching working on sonoma 14.2 Beta3? |
I suppose you mean 14.2 beta 3? |
yep sorry about that 😆 |
Works fine on 14.1.2. |
No output on ❯ yabai -v ❯ csrutil status just updated to sonoma 14.2 today |
The public release of 14.2 is just around the corner now! @koekeishiya, does this mean that a fix for 14.2 is ready and tested on RC2, and you're waiting for the public release to unleash it? 😉 |
aint it already out tho? i got it without beta enabled |
You're correct; macOS 14.2 was publicly released two days ago. I was using the latest beta (Release Candidate 2) prior to that, but it has the same build number (23C64) as the public release, so there was no update on my end. Now, we're having a partially broken situation with Yabai again. This is expected due to the nature of the application, but I'm hopeful that @koekeishiya will provide us with an update soon to make his users happy once again! 🙂 |
I found the root cause. It was |
Yes, yes, it's the first day...
The good news is that yabai is functional. The bad news is that it randomly just stops working, restarts itself, works again, and the cycle continues. Sometimes when I try to start yabai manually, I get this error:
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing;
/bin/launchctl bootstrap gui/501 /Users/me/Library/LaunchAgents/homebrew.mxcl.yabai.plist
exited with 5.The text was updated successfully, but these errors were encountered: