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

[bug] Load failed: 5: Input/output error #1749

Closed
believerd opened this issue May 18, 2023 · 4 comments
Closed

[bug] Load failed: 5: Input/output error #1749

believerd opened this issue May 18, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@believerd
Copy link

believerd commented May 18, 2023

The size of plist file is not enough which leads to incomplete text.
Same for the skhd.

@koekeishiya
Copy link
Owner

Can you post the contents of the file that gets written?

@believerd
Copy link
Author

believerd commented May 18, 2023

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.koekeishiya.yabai</string>
    <key>ProgramArguments</key>
    <array>
        <string>/opt/homebrew/bin/yabai</string>
    </array>
    <key>EnvironmentVariables</key>
    <dict>
        <key>PATH</key>
        <string>/opt/homebrew/opt/openjdk@17/bin:/opt/homebrew/opt/zstd/bin ...

It looks something like this, a long PATH string with no closing tag </string> .
The file size is 4kb which I believe is fixed, so when PATH hits the limit, everything else is gone(see populate_plist in header file). I got this working by shortening the PATH and edited it manually.

@koekeishiya
Copy link
Owner

Right, that is one heck of a path then.

@koekeishiya koekeishiya added the bug Something isn't working label May 18, 2023
koekeishiya added a commit that referenced this issue May 18, 2023
@koekeishiya koekeishiya added the addressed on master; not released Fixed upstream, but not yet released label May 18, 2023
@koekeishiya
Copy link
Owner

Fixed on master.

@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label May 21, 2023
shinyquagsire23 pushed a commit to shinyquagsire23/yabai that referenced this issue Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants