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
21.51k stars 900 forks source link

[NVIDIA] Weird display issues #7198

Closed a-usr closed 3 months ago

a-usr commented 3 months ago

Regression?

Yes

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit 2cfc6722fdbc93fd0c5987eeac0d4b96cd0128a7 (). Date: 2024-08-06 Tag: , commits: 2cfc6722fdbc93fd0c5987eeac0d4b96cd0128a7 flags: (if any) System Information: System name: Linux Node name: silenos Release: 6.6.44 Version: #1-NixOS SMP PREEMPT_DYNAMIC Sat Aug 3 06:54:42 UTC 2024 GPU information: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] [10de:2504] (rev a1) (prog-if 00 [VGA controller]) NVRM version: NVIDIA UNIX x86_64 Kernel Module 555.42.02 Mon May 13 17:24:29 UTC 2024 os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.05.20240805.883180e" 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.05 (Uakari)" SUPPORT_END="2024-12-31" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.05 (Uakari)" VERSION_CODENAME=uakari VERSION_ID="24.05" plugins: hy3 by outfoxxed ver 0.1 ======Config-Start====== Config File: /home/usr/.config/hypr/hyprland.conf: Read Succeeded exec-once = /nix/store/8piinp0n24cl145qndjdfzja8x9s5x0k-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/9f1x75xrr67dhkkld546i2crn364p4yw-hy3-hl0.41.2/lib/libhy3.so $mod=SUPER animations { bezier=myBezier, 0.05, 0.9, 0.1, 1.05 animation=windows, 1, 5, myBezier animation=windowsOut, 1, 5, default, popin 80% animation=border, 1, 5, default animation=borderangle, 1, 8, default animation=fade, 1, 7, default animation=workspaces, 1, 6, default animation=specialWorkspace, 1, 3, default, slidevert } cursor { no_hardware_cursors=false } debug { disable_logs=false } decoration { blur { enabled=true passes=1 size=5 vibrancy=0.169600 } rounding=5 } general { layout=hy3 } input { kb_layout=de } bind=$mod SHIFT, Left, hy3:movewindow, l bind=$mod SHIFT, Right, hy3:movewindow, r bind=$mod SHIFT, Up, hy3:movewindow, u bind=$mod SHIFT, Down, hy3:movewindow, d bind=$mod, Left, hy3:movefocus, l bind=$mod, Right, hy3:movefocus, r bind=$mod, Up, hy3:movefocus, u bind=$mod, Down, hy3:movefocus, d bind=$mod, X, hy3:makegroup, h bind=$mod SHIFT, X, hy3:makegroup, v bind=$mod, escape, exec, ags --toggle-window powermenu bind=$mod, F, exec, chromium bind=, Print, exec, grimblast copy area bind=$mod, M, exit bind=$mod, T, exec, foot bind=$mod, Q, killactive bind=ALT, space, exec, ags --toggle-window launcher bind=$mod SHIFT, S, exec, grim -g "$(slurp)" - | tee >(wl-copy) >(swappy -f -) bind=SUPER_SHIFT, C, exec, cliphist list | wofi --show=dmenu | cliphist decode | wl-copy bind=$mod, 1, workspace, 1 bind=$mod SHIFT, 1, movetoworkspace, 1 bind=$mod, 2, workspace, 2 bind=$mod SHIFT, 2, movetoworkspace, 2 bind=$mod, 3, workspace, 3 bind=$mod SHIFT, 3, movetoworkspace, 3 bind=$mod, 4, workspace, 4 bind=$mod SHIFT, 4, movetoworkspace, 4 bind=$mod, 5, workspace, 5 bind=$mod SHIFT, 5, movetoworkspace, 5 bind=$mod, 6, workspace, 6 bind=$mod SHIFT, 6, movetoworkspace, 6 bind=$mod, 7, workspace, 7 bind=$mod SHIFT, 7, movetoworkspace, 7 bind=$mod, 8, workspace, 8 bind=$mod SHIFT, 8, movetoworkspace, 8 bind=$mod, 9, workspace, 9 bind=$mod SHIFT, 9, movetoworkspace, 9 bind=$mod, 0, workspace, 10 bind=$mod SHIFT, 0, movetoworkspace, 10 bind=, F1, togglespecialworkspace, E bindi=, code:122, exec, pamixer -d 5 bindi=, code:123, exec, pamixer -i 5 bindi=, code:173, exec, playerctl previous bindi=, code:171, exec, playerctl next bindi=, code:172, exec, playerctl play-pause bindm=$mod, mouse:274, movewindow bindm=$mod, mouse:272, resizewindow env=XDG_CACHE_DIR,/home/usr/.cache/ env=XDG_CONFIG_HOME,/home/usr/.config/ env=ELECTRON_OZONE_PLATFORM_HINT,auto env=NIXOS_OZONE_WL,1 exec-once=hyprpaper exec-once=wl-paste --type text --watch cliphist store exec-once=wl-paste --type image --watch cliphist store exec-once=ags monitor=Unknown-1, disable windowrule=fullscreen, title:(HELLDIVERS™ 2) windowrule=fullscreen, title:(Titanfall 2) windowrulev2=workspace special:E silent, class:(vesktop) ======Config-End======== ```

Description

After the Explicit sync fix MR Ive started to experience some weird issues with seemingly random apps.

For example when launching Alacritty, the window is stuck on before the shell gets launched. According to debug output by alacritty it receives keyboard and mouse events, however It appears that the shell is never launched, and alacritty also doesnt respond to the kill dispatcher. These wierd occurences arent limited to Alacritty however. OBS also has issues with resizing the window, and also refuses to respond to the kill dispatcher. And MPV freezes on the first frame and doesnt play the video.

Upon bisecting the MR I found that 158bbaaf88764e2a1e19ca1e3a11af541374432e first introduces this behaviour.

How to reproduce

  1. Build Hyprland from 158bbaaf88764e2a1e19ca1e3a11af541374432e ( when using nix flakes with
    hyprland.url = "git+https://github.com/hyprwm/Hyprland/?submodules=1&ref=explicit-sync&rev=158bbaaf88764e2a1e19ca1e3a11af541374432e";

    )

  2. Try to start Alacritty
  3. Profit

Crash reports, logs, images, videos

Im using the 555 drivers

hypr_bad_4.txt

https://github.com/user-attachments/assets/c77f27e7-435a-443d-a92f-d677dab1c0f3

Couldn't give any feedback before the mr merge because i was at work

Fxzzi commented 3 months ago

alacritty launching fine for me. nvidia-open-beta-dkms 560.31.02, hyprland-git 0.41.2.r169.b0a70f63-1

image

a-usr commented 3 months ago

Weirdly enough the attatched video wont work, but here is one frame ( with alacritty in the middle and 2 foot instances to the sides) image

a-usr commented 3 months ago

And here is OBS: image

a-usr commented 3 months ago

This is so stupid

vaxerski commented 3 months ago

the commit you bisected doesn't make sense as a regressor

a-usr commented 3 months ago

Im aware

MahouShoujoMivutilde commented 3 months ago

Try updating to b0a70f63e3865eaa77f0b78a04b230aa583bc95c, it works for me and seems like it fixed at least 3 other issues recently.

vaxerski commented 3 months ago

try updating the driver or disabling explicit sync as well

a-usr commented 3 months ago

Try updating to b0a70f6, it works for me and seems like it fixed at least 3 other issues recently.

I did that before I first noticed the issue

try updating the driver or disabling explicit sync as well

Will do

a-usr commented 3 months ago

explicit sync doesnt seem to change anything (unless Im doing it wrong) :

https://github.com/user-attachments/assets/81368ae2-0a03-448b-a370-321b3c4326c3

Ill try updating the driver now

a-usr commented 3 months ago

Updating the driver (to 560.28.03) works! (WHY???????)

Fxzzi commented 3 months ago

Updating the driver (to 560.28.03) works! (WHY???????)

Maybe some egl-wayland shenanigans, did u try egl-wayland from source?

U can close this issue now

a-usr commented 3 months ago

Maybe some egl-wayland shenanigans, did u try egl-wayland from source?

No, I didn't.

U can close this issue now

Alr