ITADN

yabai: could not acquire lock-file! abort..

#2770OpenNoahCodeGG 创建于 2026-03-31
N
NoahCodeGGcommented
## Description I'm experiencing persistent `yabai: could not acquire lock-file! abort..` errors in my log file (`/tmp/yabai_$USER.err.log`). This causes significant delays (~3 seconds) when executing yabai commands. ## Symptoms - Commands like `yabai -m space --focus 2` take approximately **3 seconds** to execute - The error `yabai: could not acquire lock-file! abort..` appears repeatedly in the error log - Only a **full system reboot** temporarily resolves the issue, but it recurs after some time ## Environment - **macOS version**: 26.4 (Build 25E246) - macOS Tahoe - **yabai version**: v7.1.18 - **SIP status**: Disabled ## Diagnostic Information **Lock file status:** ``` ls -la /tmp/yabai_USER.lock -rw------- 1 noahcode wheel 0 Mar 30 09:29 /tmp/yabai_noahcode.lock ``` **Running yabai processes:** ``` pgrep -la yabai 1690 yabai ``` Only **one** yabai process is running, yet the lock file cannot be acquired. ## What I've tried I have already attempted the following solutions found in previous issues, **none of which permanently resolved the problem**: - Removing the lock file manually (`rm /tmp/yabai_$USER.lock`) - Restarting yabai service (`yabai --restart-service`) - Stopping and starting yabai (`yabai --stop-service && yabai --start-service`) - Killing all yabai processes (`killall yabai`) - Checking for multiple yabai instances (`pgrep -la yabai`) ## Steps to Reproduce 1. Start yabai normally 2. Use yabai for some time 3. Run any yabai command, e.g., `yabai -m space --focus 2` 4. Observe ~3 second delay before command executes 5. Check `/tmp/yabai_$USER.err.log` for lock-file errors ## Expected Behavior Commands should execute immediately without delay. ## Relevant Log Output ``` yabai: could not acquire lock-file! abort.. yabai: could not acquire lock-file! abort.. yabai: could not acquire lock-file! abort.. yabai: could not acquire lock-file! abort.. yabai: could not acquire lock-file! abort.. yabai: could not acquire lock-file! abort.. yabai: could not acquire lock-file! abort.. yabai: could not acquire lock-file! abort.. yabai: could not acquire lock-file! abort.. yabai: could not acquire lock-file! abort.. ```
0 条评论