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.54k stars 820 forks source link

Vulkan(?) not working after AQ-merge #7037

Open Dsverre opened 1 month ago

Dsverre commented 1 month ago

Regression?

Yes

System Info and Version

System/Version info ```sh Hyprland, built from branch main at commit 4beac91cbd791657cc53d6e483eb41bf4df1ec0c (keybinds: add safeguard to mousebinds (7034)). Date: Thu Jul 25 00:19:15 2024 Tag: v0.41.2-94-g4beac91c, commits: 4980 flags: (if any) System Information: System name: Linux Release: 6.10.0-arch1-2 Version: #1 SMP PREEMPT_DYNAMIC Mon, 22 Jul 2024 17:28:23 +0000 GPU information: 67:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev 12) (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/xxx/.config/hypr/hyprland.conf: Read Succeeded # # 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=DP-2,2560x1440,0x0,1.25,transform,1 monitor=DP-1,3440x1440,1152x0,1 monitor=eDP-1,1920x1200,4592x0,1 # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch exec-once = hyprpaper & nm-applet --indicator & waybar & blueman-applet exec-once = /usr/lib/geoclue-2.0/demos/agent & gammastep-indicator exec-once = /usr/lib/polkit-kde-authentication-agent-1 exec-once = solaar --window=hide exec-once = swayidle -w exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = wl-paste --type text --watch cliphist store #Stores only text data exec-once = wl-paste --type image --watch cliphist store #Stores only image data exec-once = hyprctl setcursor Catppuccin-Latte-Teal-Cursors 24 exec-once = hyprctl dispatch exec [workspace 1 silent] google-chrome-stable exec-once = hyprctl dispatch exec [workspace 2] firefox exec-once = hyprctl dispatch exec [workspace special silent] obsidian exec-once = copyq --start-server # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # Some default env vars. env = XCURSOR_SIZE,24 env = QT_QPA_PLATFORM,wayland env = GDK_BACKEND,wayland env = XDG_CURRENT_DESKTOP,Hyprland env = XDG_SESSION_TYPE,wayland env = XDG_SESSION_DESKTOP,Hyprland env = SSH_AUTH_SOCK,$XDG_RUNTIME_DIR/ssh-agent.socket #env = DRI_PRIME,1 #env = WLR_DRM_DEVICES,/dev/dri/card1 # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = no kb_variant = kb_model = kb_options = kb_rules = follow_mouse = 1 touchpad { natural_scroll = 1 disable_while_typing = 1 } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 2 gaps_out = 5 border_size = 2 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 # Example config for blur blur { enabled = true size = 3 passes = 1 } drop_shadow = yes shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) } animations { enabled = yes # 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 no_gaps_when_only = true special_scale_factor = 0.9 } master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more new_status = master } gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = on } misc { enable_swallow = true swallow_regex = ^(kitty)$ disable_hyprland_logo = true } # unscale XWayland xwayland { force_zero_scaling = true } # 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, Q, exec, kitty --single-instance bind = $mainMod, Q, exec, foot bind = $mainMod, C, killactive, bind = $mainMod, M, exit, bind = $mainMod, E, exec, thunar bind = $mainMod, V, togglefloating, bind = $mainMod SHIFT, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, F, fullscreen, bind = $mainMod, A, togglegroup bind = $mainMod SHIFT, A, changegroupactive, f bind = $mainMod CTRL, A, moveoutofgroup bind = ALT, Alt_L, exec, rofi -modes "drun,run,ssh" -show drun -show-icons -ssh-client "env TERM=xterm ssh" bind = $mainMod, P, exec, rofi -show p -modi p:rofi-power-menu bind = $mainMod, L, exec, swaylock --clock --indicator --screenshots --effect-scale 0.4 --effect-vignette 0.2:0.5 --effect-blur 4x2 --datestr "%a %e.%m.%Y" --timestr "%k:%M" bind = $mainMod, S, exec, grim -g "$(slurp)" - | swappy -f - #bind = $mainMod SHIFT, Z, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy bind = $mainMod SHIFT, Z, exec, copyq toggle | cliphist decode | wl-copy bind = $mainMod, K, exec, ~/.config/div/stash.sh # Media binds binde = , xf86monbrightnessup, exec, brightnessctl set 10%+ binde = , xf86monbrightnessdown, exec, brightnessctl set 10%- binde = , xf86audioraisevolume, exec, wpctl set-volume -l 1.5 @DEFAULT_SINK@ 5%+ binde = , xf86audiolowervolume, exec, wpctl set-volume -l 1.5 @DEFAULT_SINK@ 5%- bind = , xf86audiomute, exec, wpctl set-mute @DEFAULT_SINK@ toggle bindl = , XF86audioplay, exec, dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause bind = , XF86audioprev, exec, dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous bind = , XF86audionext, exec, dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next # Move focus with mainMod + arrow keys bind = $mainMod SHIFT, left, movefocus, l bind = $mainMod SHIFT, right, movefocus, r bind = $mainMod SHIFT, up, movefocus, u bind = $mainMod SHIFT, down, movefocus, d # Move between workspaces bind = $mainMod, left, workspace, e-1 bind = $mainMod, right, workspace, e+1 # Using the special workspace bind = $mainMod, up, movetoworkspace, special bind = $mainMod, down, togglespecialworkspace # 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, movetoworkspacesilent, 1 bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 bind = $mainMod SHIFT, 0, movetoworkspacesilent, 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 # Window rules windowrulev2 = opacity 0.8 0.8,class:^(foot|kitty|Spotify)$ #windowrulev2 = opacity 0.8 0.8,title:^(Spotify)$ windowrulev2 = opacity 0.95 0.95,class:^(code-oss|obsidian)$ windowrulev2 = float,class:^(com.github.hluk.copyq|org.kde.polkit-kde-authentication-agent-1|galculator|solaar|org.pulseaudio.pavucontrol|F5 VPN)$ windowrulev2 = workspace 7 silent,title:(F5 VPN) layerrule = blur,waybar ======Config-End======== ```

Description

When trying to run zed-editor or vkcube-wayland, the processes crash with the output wl_display#1: error 2: no memory. Vkcube runs with no problems and zed in xwayland mode runs with no problems.

Tried to revert to a Hyprland version I had in cache that was from before the AQ-merge(0.41.2-r43), and here zed runs with no problems in wayland and vkcube-wayland runs with no problems. So apparently there is something iffy with Vulkan after the AQ-merge.

How to reproduce

I'm not sure. Had some discussion with people on the discord and none of them seem to be able to reproduce it. But since stuff work before the AQ-merge and not after, it seems probable to me that there is something here, but I have no clue what it could be.

Crash reports, logs, images, videos

vkcube-wayland_log.txt zed_log.txt

vaxerski commented 1 month ago

this might be a driver bug but I'll see (cuz I can also repro but iirc it was the same before aq)

gulafaran commented 1 month ago

i cant with either my igpu intel or dgpu nvidia one

gulafaran commented 1 month ago

i cant with either my igpu intel or dgpu nvidia one

reproduce i mean

vaxerski commented 1 month ago

it's cuz vkcube uses a legacy dmabuf protocol and fails to create a buffer

theoparis commented 1 month ago

I got the same error with https://github.com/WhoStoleMyCoffee/kfiles/ which uses wgpu/winit which I assume is similar to zed. For some reason using a custom wayland only mesa built from source instead of the arch linux packages fixed it temporarily.

ApproachingApathy commented 2 weeks ago

This is happening since 0.42 on my amd gpu. Downgrading to 0.41 fixes it for me. Using amdvlk.

riturajborpujari commented 2 weeks ago

I'm getting the same error for vkcube-wayland i.e., wl_display#1: error 2: no memory The same error is happening for zed too

robbe8441 commented 1 week ago

im also getting that error also i did get some more detailed log when using the vulkan debug layer if that helps @ log.txt