hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.66k stars 830 forks source link

Couldn't read (5)% #6580

Closed DADA30000 closed 2 months ago

DADA30000 commented 3 months ago

Bug or Regression?

Bug

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit d1340bd1d8eedd274283e0cb2568a3ed67b58c81 (). Date: 2024-06-17 Tag: , commits: d1340bd1d8eedd274283e0cb2568a3ed67b58c81 flags: (if any) System Information: System name: Linux Node name: nixos Release: 6.8.12 Version: #1-NixOS SMP PREEMPT_DYNAMIC Thu May 30 07:49:53 UTC 2024 GPU information: Flags: bus master, VGA palette snoop, 66MHz, medium devsel, latency 64, NUMA node 0, IOMMU group 11 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117 [GeForce GTX 1650] [10de:1f82] (rev a1) (prog-if 00 [VGA controller]) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.11.20240616.b60ebf5" DOCUMENTATION_URL="https://nixos.org/learn.html" HOME_URL="https://nixos.org/" ID=nixos IMAGE_ID="" IMAGE_VERSION="" LOGO="nix-snowflake" NAME=NixOS PRETTY_NAME="NixOS 24.11 (Vicuna)" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.11 (Vicuna)" VERSION_CODENAME=vicuna VERSION_ID="24.11" plugins: hyprexpo by Vaxry ver 1.0 ======Config-Start====== Config File: /home/l0lk3k/.config/hypr/hyprland.conf: Read Succeeded exec-once = /nix/store/y29cbwfiwb9nyi4db4apk9dgylzdjm1v-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target plugin=/nix/store/abcgxxd6z5bpddjkva09hkmzwxyjfx47-hyprexpo-0.1/lib/libhyprexpo.so env = GTK_THEME,Materia-dark env = XCURSOR_THEME,Bibata-Modern-Classic env = ENABLE_VKBASALT,1 env = FZF_DEFAULT_COMMAND,locate ~ env = QT_STYLE_OVERRIDE,kvantum env = GDK_BACKEND,wayland,x11 env = CLUTTER_BACKEND,wayland env = MOZ_ENABLE_WAYLAND,1 env = MOZ_DISABLE_RDD_SANDBOX,1 env = _JAVA_AWT_WM_NONREPARENTING=1 env = QT_AUTO_SCREEN_SCALE_FACTOR,1 env = QT_QPA_PLATFORM,wayland;xcb env = LIBVA_DRIVER_NAME,nvidia env = GBM_BACKEND,nvidia-drm env = __GLX_VENDOR_LIBRARY_NAME,nvidia env = __NV_PRIME_RENDER_OFFLOAD,1 env = __VK_LAYER_NV_optimus,NVIDIA_only env = PROTON_ENABLE_NGX_UPDATER,1 env = NVD_BACKEND,direct env = __GL_GSYNC_ALLOWED,1 env = __GL_VRR_ALLOWED,1 env = WLR_DRM_NO_ATOMIC,1 env = WLR_USE_LIBINPUT,1 env = MOZ_X11_EGL,1 env = VDPAU_DRIVER,nvidia env = EDITOR,nvim env = VISUAL,nvim env = __GL_MaxFramesAllowed,1 env = TERMINAL,kitty bind=ALT,R,submap,passthrough submap=passthrough bind=,escape,submap,reset submap=reset monitor=Unknown-1,disabled monitor=HDMI-A-1,1920x1080@60,0x0,1 windowrule = animation [popin] ([default]), ^(wlogout)$ windowrule = pin, ^(polkit-gnome-authentication-agent-1)$ windowrulev2 = immediate, class:^(org.freedesktop.Xwayland)$ windowrule = windowdance,title:^(Rhythm Doctor)$ windowrule = noanim, class:^(ueberzugpp)$ windowrule = noanim, title:^(ueberzugpp)$ windowrule = forceinput,title:^(Rhythm Doctor)$ windowrule = float,^(org.kde.polkit-kde-authentication-agent-1)$ windowrule = opacity 0.99 0.99,^(Thunderbird)$ windowrule = opacity 0.99 override 0.99 override, ^(firefox)$ windowrule = opacity 0.99 override 0.99 override, ^(floorp)$ windowrule = opacity 0.99 override 0.99 override, ^(mercury-default)$ windowrule = opacity 0.99 override 0.99 override, ^(filezilla)$ exec-once = ulimit -c 0 exec-once = /nix/store/$(echo $(ls -la /nix/store | grep polkit-gnome | grep '^d' | awk '{print $9}') | cut -d ' ' -f 1)/libexec/polkit-gnome-authentication-agent-1 exec-once = /usr/lib/xdg-desktop-portal-hyprland & waybar & hyprpaper & firefox & swaync & vesktop --enable-blink-features=MiddleClickAutoscroll exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = sleep 10; gpu-screen-recorder -w screen -q ultra -a "$(pactl get-default-sink).monitor" -f 60 -r 300 -c mp4 -o ~/Games/Replays exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store env = XCURSOR_SIZE,24 env = LIBVA_DRIVER_NAME,nvidia env = XDG_SESSION_TYPE,wayland env = GBM_BACKEND,nvidia_drm env = __GLX_VENDOR_LIBRARY_NAME,nvidia input { kb_layout = us,ru kb_variant = kb_model = kb_options = grp:alt_shift_toggle kb_rules = repeat_delay = 200 follow_mouse = 1 touchpad { natural_scroll = false } sensitivity = 1 accel_profile = flat } general { gaps_in = 5 gaps_out = 5 border_size = 0 col.active_border = rgb(4575da) rgb(6804b5) col.inactive_border = rgb(595959) layout = dwindle allow_tearing = false } decoration { rounding = 10 blur { enabled = true popups = true popups_ignorealpha = 0.0 ignore_opacity = true size = 10 brightness = 0.8 passes = 3 noise = 0 vibrancy = 0 } drop_shadow = yes shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) } animations { enabled = true first_launch_animation = true bezier = aaaa, 0.2, 0.7, 0.7, 1 bezier = fade, 0.165, 0.84, 0.44, 1 bezier = slidein, 0.39, 0.575, 0.565, 1 bezier = myBezier, 0.05, 0.9, 0.1, 1.05 bezier = linear, 0.0, 0.0, 0.0, 0.0 bezier = woosh, 0.445, 0.05, 0, 1 animation = windowsMove, 1, 5, default animation = layers, 1, 2, woosh, slide animation = windowsIn, 1, 2, fade, popin 90% animation = windows, 1, 7, default, slide animation = windowsOut, 1, 3, fade, popin 90% animation = fadeSwitch, 1, 7, default animation = fadeOut, 1, 3, fade ##animation = fadeIn animation = workspaces, 1, 4, woosh, slide } debug { enable_stdout_logs = false disable_logs = true } dwindle { pseudotile = true preserve_split = true } gestures { workspace_swipe = false } misc { enable_swallow = true animate_manual_resizes = false animate_mouse_windowdragging = false swallow_regex = ^(kitty|lutris|alacritty)$ swallow_exception_regex = ^(ncspot)$ force_default_wallpaper = 2 } binds { scroll_event_delay = 50 } $mainMod = SUPER bind = $mainMod_CTRL, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy bind = , Print, exec, hyprshot -m region bind = SHIFT, Print, exec, hyprshot -m window bind = ALT, Print, exec, hyprshot -m output bind = CTRL, Print, exec, hyprshot -m region -r | swappy -f - bind = CTRL_SHIFT, Print, exec, hyprshot -m window -r | swappy -f - bind = CTRL_ALT, Print, exec, hyprshot -m output -r | swappy -f - bind = $mainMod, F1, exec, gamemode.sh bind = $mainMod, F2, exec, sheesh.sh bind = $mainMod_CTRL, Q, exec, neovide --frame none +term +startinsert "+set laststatus=0 ruler" "+set cmdheight=0" "+map :tabnew +term" bind = $mainMod, O, exec, killall -SIGUSR1 .waybar-wrapped bind = $mainMod, Q, exec, kitty bind = $mainMod_CTRL, C, exec, hyprctl kill bind = $mainMod, C, killactive, bind = $mainMod, M, exec, wlogout -b 2 -L 500px -R 500px -c 30px -r 30px, bind = $mainMod, E, exec, nemo bind = $mainMod, V, togglefloating, bindr = $mainMod, $mainMod_L, exec, pkill rofi || $(rofi -show drun -show-icons) bindr = $mainMod_CTRL, $mainMod_L, exec, pkill rofi || $(rofi -show run) bind = $mainMod, P, pseudo, bind = $mainMod, J, togglesplit, bind = $mainMod_CTRL, R, exec, killall -SIGUSR1 gpu-screen-recorder && notify-send "GPU-Screen-Recorder" "Повтор успешно сохранён" bind = $mainMod, F, exec, hyprctl dispatch fullscreen bind = $mainMod_CTRL, F, fakefullscreen bind = $mainMod, Space, hyprexpo:expo, toggle bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 bind = $mainMod, 4, workspace, 4 bind = $mainMod, 5, workspace, 5 bind = $mainMod, 6, workspace, 6 bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod SHIFT, S, movetoworkspace, special:magic bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 bindm = $mainMod, mouse:272, movewindow layerrule = blur,waybar layerrule = blur,swaync-notification-window bindm = $mainMod, mouse:273, resizewindow exec-once=hyprctl setcursor Bibata-Modern-Classic 24 layerrule = ignorezero, waybar layerrule = ignorezero, swaync-notification-window layerrule = blur, swaync-control-center layerrule = ignorezero, swaync-control-center layerrule = ignorezero, rofi layerrule = blur, notifications layerrule = blur, gtk-layer-shell layerrule = blur, logout_dialog layerrule = blur, launcher layerrule = blur, wofi layerrule = noanim, selection layerrule = blur, rofi layerrule = animation popin 90%, rofi layerrule = animation slide left, swaync-control-center plugin { hyprexpo { columns = 3 gap_size = 5 bg_col = rgb(111111) workspace_method = first 1 enable_gesture = true gesture_distance = 300 gesture_positive = true } } ======Config-End======== ```

Description

When changing configuration, home-manager gives me an error, Couldn't read (5), and when I try to run hyprctl reload it gives me this error Couldn't read (5)% (it also has a lot of spaces for some reason)

How to reproduce

Run hyprctl reload using latest hyprland from git on NixOS with home-manager

Crash reports, logs, images, videos

No response

vaxerski commented 3 months ago

@fufexan ?

fufexan commented 3 months ago

Honestly no clue. I got that too once, when I ran hyprctl dispatch dpms on eDP-1, and then couldn't reproduce ever again, either with that command or any other hyprctl command.

nhosama commented 3 months ago

I'm also getting this output while running hyprctl reload: Couldn't read (5) (with a lot of newline after that). The command works though.

Version:

Hyprland, built from branch main at commit d1340bd1d8eedd274283e0cb2568a3ed67b58c81  (keybinds: ignore missing keysyms if no other methods match).
Date: Mon Jun 17 17:53:51 2024
Tag: v0.41.1-40-gd1340bd1, commits: 4858

EDIT: It doesn't occur on the default (autogenerated) config. It just shows ok then.

nhosama commented 3 months ago

This issue has something to do with exec and exec-once. Because when I comment that part out of my config, everything becomes okay again.

EDIT: I don't know why, but it happens randomly. The only way I continuously found that error is by running hyprctl reload -r.

leiserfg commented 2 months ago

To me it happens all the time if I use -r

alekgr commented 2 months ago

one thing I did notice on my arch that I have compiled hyprland from source systeminfo works great but on my arch hyprland-git install on my other computer I get the error

entailz commented 2 months ago

i get couldn't read as well when attempting to dpms off

commit: c1e21719a2fff2fa9549f00053ac40173da54af9

DADA30000 commented 2 months ago

even after cleaning up my config it still appears

new config ```sh Hyprland, built from branch at commit fabc30df52ab5d2c369fc8acd4ff909a6ba3b8ac (). Date: 2024-06-19 Tag: , commits: fabc30df52ab5d2c369fc8acd4ff909a6ba3b8ac flags: (if any) System Information: System name: Linux Node name: nixos Release: 6.9.3-zen1 Version: #1-NixOS ZEN SMP PREEMPT_DYNAMIC Tue Jan 1 00:00:00 UTC 1980 GPU information: Flags: bus master, VGA palette snoop, 66MHz, medium devsel, latency 64, NUMA node 0, IOMMU group 11 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117 [GeForce GTX 1650] [10de:1f82] (rev a1) (prog-if 00 [VGA controller]) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.11.20240616.b60ebf5" DOCUMENTATION_URL="https://nixos.org/learn.html" HOME_URL="https://nixos.org/" ID=nixos IMAGE_ID="" IMAGE_VERSION="" LOGO="nix-snowflake" NAME=NixOS PRETTY_NAME="NixOS 24.11 (Vicuna)" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.11 (Vicuna)" VERSION_CODENAME=vicuna VERSION_ID="24.11" plugins: ======Config-Start====== Config File: /home/l0lk3k/.config/hypr/hyprland.conf: Read Succeeded exec-once = /nix/store/y29cbwfiwb9nyi4db4apk9dgylzdjm1v-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target $mod=SUPER animations { bezier=fade, 0.165, 0.84, 0.44, 1 bezier=woosh, 0.445, 0.05, 0, 1 animation=windowsMove, 1, 5, default animation=layers, 1, 2, woosh, slide animation=windowsIn, 1, 2, fade, popin 90% animation=windows, 1, 7, default, slide animation=windowsOut, 1, 3, fade, popin 90% animation=fadeSwitch, 1, 7, default animation=fadeOut, 1, 3, fade animation=workspaces, 1, 4, woosh, slide enabled=true first_launch_animation=true } binds { scroll_event_delay=50 } debug { disable_logs=true enable_stdout_logs=false } decoration { blur { brightness=0.800000 enabled=true ignore_opacity=true noise=0 passes=3 popups=true popups_ignorealpha=0.000000 size=10 vibrancy=0 } col.shadow=rgba(1a1a1aee) drop_shadow=yes rounding=10 shadow_range=4 shadow_render_power=3 } dwindle { preserve_split=true pseudotile=true } general { allow_tearing=false border_size=0 col.active_border=rgb(4575da) rgb(6804b5) col.inactive_border=rgb(595959) gaps_in=5 gaps_out=5 layout=dwindle } gestures { workspace_swipe=true } input { touchpad { natural_scroll=false } accel_profile=flat follow_mouse=1 kb_layout=us,ru kb_options=grp:alt_shift_toggle repeat_delay=200 sensitivity=1 } misc { animate_manual_resizes=false animate_mouse_windowdragging=false enable_swallow=true force_default_wallpaper=2 swallow_exception_regex=^(ncspot)$ swallow_regex=^(kitty|lutris|bottles|alacritty)$ } plugin { hyprexpo { bg_col=rgb(111111) columns=3 enable_gesture=true gap_size=5 gesture_distance=300 gesture_positive=true workspace_method=first 1 } } bind=, Print, exec, hyprshot -m region bind=SHIFT, Print, exec, hyprshot -m window bind=ALT, Print, exec, hyprshot -m output bind=CTRL, Print, exec, hyprshot -m region -r | swappy -f - bind=CTRL_SHIFT, Print, exec, hyprshot -m window -r | swappy -f - bind=CTRL_ALT, Print, exec, hyprshot -m output -r | swappy -f - bind=ALT,R,submap,passthrough bind=$mod_CTRL, Q, exec, neovide --frame none +term +startinsert '+set laststatus=0 ruler' '+set cmdheight=0' '+map :tabnew +term' bind=$mod_CTRL, C, exec, hyprctl kill bind=$mod_CTRL, R, exec, killall -SIGUSR1 gpu-screen-recorder && notify-send 'GPU-Screen-Recorder' 'Повтор успешно сохранён' bind=$mod_CTRL, F, fakefullscreen bind=$mod_CTRL, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy bind=$mod, F1, exec, gamemode.sh bind=$mod, F2, exec, sheesh.sh bind=$mod, O, exec, killall -SIGUSR1 .waybar-wrapped bind=$mod, Q, exec, kitty bind=$mod, C, killactive, bind=$mod, M, exec, wlogout -b 2 -L 500px -R 500px -c 30px -r 30px, bind=$mod, E, exec, nemo bind=$mod, V, togglefloating, bind=$mod, P, pseudo, bind=$mod, J, togglesplit, bind=$mod, F, exec, hyprctl dispatch fullscreen bind=$mod, left, movefocus, l bind=$mod, right, movefocus, r bind=$mod, up, movefocus, u bind=$mod, down, movefocus, d bind=$mod, 1, workspace, 1 bind=$mod, 2, workspace, 2 bind=$mod, 3, workspace, 3 bind=$mod, 4, workspace, 4 bind=$mod, 5, workspace, 5 bind=$mod, 6, workspace, 6 bind=$mod, 7, workspace, 7 bind=$mod, 8, workspace, 8 bind=$mod, 9, workspace, 9 bind=$mod, 0, workspace, 10 bind=$mod SHIFT, 1, movetoworkspace, 1 bind=$mod SHIFT, 2, movetoworkspace, 2 bind=$mod SHIFT, 3, movetoworkspace, 3 bind=$mod SHIFT, 4, movetoworkspace, 4 bind=$mod SHIFT, 5, movetoworkspace, 5 bind=$mod SHIFT, 6, movetoworkspace, 6 bind=$mod SHIFT, 7, movetoworkspace, 7 bind=$mod SHIFT, 8, movetoworkspace, 8 bind=$mod SHIFT, 9, movetoworkspace, 9 bind=$mod SHIFT, 0, movetoworkspace, 10 bind=$mod, S, togglespecialworkspace, magic bind=$mod SHIFT, S, movetoworkspace, special:magic bind=$mod, mouse_down, workspace, e+1 bind=$mod, mouse_up, workspace, e-1 bindm=$mod, mouse:272, movewindow bindm=$mod, mouse:273, resizewindow bindr=$mod, $mod_L, exec, pkill rofi || $(rofi -show drun -show-icons) bindr=$mod_CTRL, $mod_L, exec, pkill rofi || $(rofi -show run) exec-once=~/bot/start-bot.sh exec-once=/nix/store/6vha3cbnljkipp0cmvnzk92hphakgwr3-polkit-gnome-0.105/libexec/polkit-gnome-authentication-agent-1 exec-once=waybar & hyprpaper & firefox & swaync & vesktop --enable-blink-features=MiddleClickAutoscroll exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once=sleep 10; gpu-screen-recorder -w screen -q ultra -a '$(pactl get-default-sink).monitor' -f 60 -r 300 -c mp4 -o ~/Games/Replays exec-once=wl-paste --type text --watch cliphist store exec-once=wl-paste --type image --watch cliphist store exec-once=hyprctl setcursor Bibata-Modern-Classic 24 layerrule=blur, waybar layerrule=blur, rofi layerrule=blur, wofi layerrule=blur, launcher layerrule=blur, logout_dialog layerrule=blur, notifications layerrule=blur, gtk-layer-shell layerrule=blur, swaync-control-center layerrule=blur, swaync-notification-window layerrule=noanim, selection layerrule=ignorezero, swaync-control-center layerrule=ignorezero, rofi layerrule=ignorezero, waybar layerrule=ignorezero, swaync-notification-window layerrule=animation popin 90%, rofi layerrule=animation popin 90%, logout_dialog layerrule=animation slide left, swaync-control-center windowrule=pin, ^(polkit-gnome-authentication-agent-1)$ submap=passthrough bind=,escape,submap,reset submap=reset ======Config-End======== ```
DADA30000 commented 2 months ago

It also happens with completely empty config

DADA30000 commented 2 months ago

I'm also getting this output while running hyprctl reload: Couldn't read (5) (with a lot of newline after that). The command works though.

Version:

Hyprland, built from branch main at commit d1340bd1d8eedd274283e0cb2568a3ed67b58c81  (keybinds: ignore missing keysyms if no other methods match).
Date: Mon Jun 17 17:53:51 2024
Tag: v0.41.1-40-gd1340bd1, commits: 4858

EDIT: It doesn't occur on the default (autogenerated) config. It just shows ok then.

And also it happens on autogenerated config for me too