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.72k stars 837 forks source link

Hyprland Crashes several minutes after hypridle & hyprlock #6508

Open dingiso opened 3 months ago

dingiso commented 3 months ago

Bug or Regression?

Bug

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit ea2501d4556f84d3de86a4ae2f4b22a474555b9f (props: bump version to 0.41.0). Date: Mon Jun 10 14:23:06 2024 Tag: v0.41.0, commits: 4794 flags: (if any) System Information: System name: Linux Node name: ArchLu Release: 6.9.4-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Wed, 12 Jun 2024 20:17:17 +0000 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation Raptor Lake-S GT1 [UHD Graphics 770] [8086:a780] (rev 04) (prog-if 00 [VGA controller]) 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1080] [10de:1b80] (rev a1) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ======Config-Start====== Config File: /home/dingisoul/.config/hypr/hyprland.conf: Read Succeeded #AUTOGENERATED HYPR CONFIG. #PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT, #OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS. # # Please note not all available settings / options are set here. # For a full list, see the wiki # # autogenerated = 1 # remove this line to remove the warning # See https://wiki.hyprland.org/Configuring/Monitors/ # monitor=,preferred,auto,auto monitor=HDMI-A-1,preferred,0x0,auto monitor=DP-1,preferred,2560x0,auto monitor=DP-1,transform,3 # monitor=HDMI-A-2,preferred,0x0,auto monitor=DP-4,preferred,2560x0,auto monitor=DP-4,transform,3 # xwayland xwayland { force_zero_scaling = true } workspace=HDMI-A-1,1 workspace=DP-1,2 # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute idle exec-once = pidof hypridle || hypridle exec-once = nutstore # Execute your favorite apps at launch exec-once = waybar & hyprpaper & firefox & cfw & netease-cloud-music-gtk4 & mako exec-once =[workspace 9 silent] linuxqq exec-once =[workspace 9 silent] thunderbird exec-once =[workspace 9 silent] wechat-universal exec-once =[workspace 2 silent] goldendict # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us kb_variant = kb_model = kb_options = kb_rules = follow_mouse = 1 touchpad { natural_scroll = no } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 4 gaps_out = 5 border_size = 3 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) layout = dwindle } decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 10 blur { enabled = yes size = 3 passes = yes new_optimizations = on } drop_shadow = yes shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) dim_special = 0 } animations { enabled = no # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = borderangle, 1, 8, default animation = fade, 1, 7, default animation = workspaces, 1, 6, default } dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = yes # you probably want this } master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more new_is_master = true } gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = off } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more #device:epic mouse V1 { #sensitivity = -0.5 #} # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, Return, exec, kitty bind = $mainMod SHIFT, minus, movetoworkspace, special bind = $mainMod, minus, togglespecialworkspace bind = $mainMod, d, exec, rofi -show drun bind = $mainMod SHIFT, s, exec, grimshot save area bind = $mainMod SHIFT, q, killactive, bind = $mainMod, M, exit, bind = $mainMod, V, togglefloating, bind = $mainMod, w, togglegroup, bind = $mainMod, q, changegroupactive, bind = $mainMod, R, exec, wofi --show drun bind = $mainMod, s, pseudo, # dwindle bind = $mainMod, e, togglesplit, # dwindle bind = $mainMod, p, exec, playerctl -p NeteaseCloudMusicGtk4 play-pause bind = $mainMod, n, exec, netease-cloud-music-gtk4 bind = $mainMod, f, fullscreen bind = $mainMod ALT, l, exec, hyprlock bind = $mainMod SHIFT, f, fakefullscreen bind=$mainMod SHIFT,c,exec,hyprctl reload # goldendcit bind = CTRL, g, exec, goldendict $(wl-paste -n) # group bind=$mainMod SHIFT,h,movewindoworgroup,l bind=$mainMod SHIFT,j,movewindoworgroup,d bind=$mainMod SHIFT,l,movewindoworgroup,r bind=$mainMod SHIFT,k,movewindoworgroup,u # bind=CTRLSHIFT,h,moveintogroup,l # bind=CTRLSHIFT,j,moveintogroup,d # bind=CTRLSHIFT,l,moveintogroup,r # bind=CTRLSHIFT,k,moveintogroup,u # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, lp, movefocus, u bind = $mainMod, down, movefocus, d # Move focus with mainMod + hjkl keys bind = $mainMod, h, movefocus, l bind = $mainMod, l, movefocus, r bind = $mainMod, j, movefocus, u bind = $mainMod, k, movefocus, d # Switch workspaces with mainMod + [0-9] 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 # Move active window to a workspace with mainMod + SHIFT + [0-9] 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 # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow ======Config-End======== ```

Description

I have encountered crash of hyprland after hypridle trigger hyprlock for several minutes. I output the xwayland log and it shows that

(EE) failed to read Wayland events: Connection reset by peer

I will ask it in xserver gitlab too. Any insight or advice is welcome. Thanks, Dingisoul

How to reproduce

Wait several minutes after hypridle

Crash reports, logs, images, videos

The Hyprland Crash Report is attached here. Could someone help me have a look at it and find if there is something wrong. hyprlandCrashReport1271.txt

vaxerski commented 3 months ago

check now

dingiso commented 3 months ago

Thanks vaxerski,

I am testing on the newest git version

dingiso commented 3 months ago

The crash does not happened over the last idle, it is solved.

Thanks, Dingisoul

dingiso commented 1 month ago

Dear maintainers,

The same crash issue has resurfaced in the latest version of Hyprland under identical circumstances as previously reported.

System Version Info

System/Version info ```shell Hyprland, built from branch at commit 918d8340afd652b011b937d29d5eea0be08467f5 (flake.lock: update). Date: Tue Jun 25 12:06:02 2024 Tag: v0.41.2, commits: 4886 flags: (if any) System Information: System name: Linux Node name: ArchLu Release: 6.9.10-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Thu, 18 Jul 2024 18:06:13 +0000 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation Raptor Lake-S GT1 [UHD Graphics 770] [8086:a780] (rev 04) (prog-if 00 [VGA controller]) 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1080] [10de:1b80] (rev a1) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ======Config-Start====== Config File: /home/dingisoul/.config/hypr/hyprland.conf: Read Succeeded #AUTOGENERATED HYPR CONFIG. #PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT, #OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS. # # Please note not all available settings / options are set here. # For a full list, see the wiki # # autogenerated = 1 # remove this line to remove the warning # See https://wiki.hyprland.org/Configuring/Monitors/ # monitor=,preferred,auto,auto monitor=HDMI-A-1,preferred,0x0,auto monitor=DP-1,preferred,2560x0,auto monitor=DP-1,transform,3 # monitor=HDMI-A-2,preferred,0x0,auto monitor=DP-4,preferred,2560x0,auto monitor=DP-4,transform,3 # xwayland #xwayland { # force_zero_scaling = true #} workspace=HDMI-A-1,1 workspace=DP-1,2 # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute idle exec-once = pidof hypridle || hypridle # Execute your favorite apps at launch exec-once = waybar & hyprpaper & firefox & cfw & netease-cloud-music-gtk4 & mako & fcitx5 & nutstore exec-once =[workspace 9 silent] linuxqq exec-once =[workspace 9 silent] thunderbird exec-once =[workspace 9 silent] wechat-universal exec-once =[workspace 2 silent] goldendict # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us kb_variant = kb_model = kb_options = kb_rules = follow_mouse = 1 touchpad { natural_scroll = no } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 4 gaps_out = 5 border_size = 3 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) layout = dwindle } decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 10 blur { enabled = yes size = 3 passes = yes new_optimizations = on } drop_shadow = yes shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) dim_special = 0 } animations { enabled = no # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = borderangle, 1, 8, default animation = fade, 1, 7, default animation = workspaces, 1, 6, default } dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = yes # you probably want this } master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more new_status = inherit } gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = off } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more #device:epic mouse V1 { #sensitivity = -0.5 #} # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, Return, exec, kitty bind = $mainMod SHIFT, minus, movetoworkspace, special bind = $mainMod, minus, togglespecialworkspace bind = $mainMod, d, exec, rofi -show drun bind = $mainMod SHIFT, s, exec, grimshot save area bind = $mainMod SHIFT, q, killactive, bind = $mainMod, M, exit, bind = $mainMod, V, togglefloating, bind = $mainMod, w, togglegroup, bind = $mainMod, q, changegroupactive, bind = $mainMod, R, exec, wofi --show drun bind = $mainMod, s, pseudo, # dwindle bind = $mainMod, e, togglesplit, # dwindle bind = $mainMod, p, exec, playerctl -p NeteaseCloudMusicGtk4 play-pause bind = $mainMod, n, exec, netease-cloud-music-gtk4 bind = $mainMod, f, fullscreen bind = $mainMod ALT, l, exec, hyprlock bind = $mainMod ALT, x, exec, warpd --hint bind = $mainMod SHIFT, f, fakefullscreen bind=$mainMod SHIFT,c,exec,hyprctl reload # goldendcit bind = CTRL, g, exec, goldendict $(wl-paste -n) # group bind=$mainMod SHIFT,h,movewindoworgroup,l bind=$mainMod SHIFT,j,movewindoworgroup,d bind=$mainMod SHIFT,l,movewindoworgroup,r bind=$mainMod SHIFT,k,movewindoworgroup,u # bind=CTRLSHIFT,h,moveintogroup,l # bind=CTRLSHIFT,j,moveintogroup,d # bind=CTRLSHIFT,l,moveintogroup,r # bind=CTRLSHIFT,k,moveintogroup,u # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, lp, movefocus, u bind = $mainMod, down, movefocus, d # Move focus with mainMod + hjkl keys bind = $mainMod, h, movefocus, l bind = $mainMod, l, movefocus, r bind = $mainMod, j, movefocus, u bind = $mainMod, k, movefocus, d # Switch workspaces with mainMod + [0-9] 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 # Move active window to a workspace with mainMod + SHIFT + [0-9] 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 # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow ======Config-End======== ```

Description

I have encountered crash of hyprland after hypridle trigger hyprlock for several minutes.

How to reproduce

Wait several minutes after hypridle

Crash Reports

The Hyprland Crash Report is attached here. Could someone help me have a look at it and find if there is something wrong.

hyprlandCrashReport1239.txt

Thanks, Dingisoul

vaxerski commented 1 month ago

can you try on git