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

PDF preview in ranger using ueberzugpp crashes hyprland #7027

Closed QuantenToast closed 3 months ago

QuantenToast commented 3 months ago

Regression?

Yes

System Info and Version

System/Version info ```sh Hyprland, built from branch main at commit 8a4548e4302b1cc00fca368a7cc2e3171516420c (window: drop ack requirement for applying pending reported size). Date: Tue Jul 23 23:38:58 2024 Tag: v0.41.2-81-g8a4548e4, commits: 4967 flags: (if any) System Information: System name: Linux Node name: joel-garuda-neu Release: 6.10.0-zen1-2-zen Version: #1 ZEN SMP PREEMPT_DYNAMIC Mon, 22 Jul 2024 17:45:00 +0000 GPU information: 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 32 [Radeon RX 7700 XT / 7800 XT] [1002:747e] (rev c8) (prog-if 00 [VGA controller]) 13:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c7) (prog-if 00 [VGA controller]) os-release: NAME="Garuda Linux" PRETTY_NAME="Garuda Linux" ID=garuda ID_LIKE=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://garudalinux.org/" DOCUMENTATION_URL="https://wiki.garudalinux.org/" SUPPORT_URL="https://forum.garudalinux.org/" BUG_REPORT_URL="https://gitlab.com/groups/garuda-linux/" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=garudalinux plugins: ======Config-Start====== Config File: /home/joel/.config/hypr/hyprland.conf: Read Succeeded exec-once = ~/.config/tmux/import_env.sh # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=DP-1, 2560x1440@144, 0x0, 1 monitor=HDMI-A-2, 1920x1080@60, 2560x0, 1 # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch # exec-once = waybar & hyprpaper & firefox # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # Set programs that you use $terminal = alacritty $fileManager = dolphin $menu = tofi-run | xargs -I % hyprctl dispatch exec "%" $dmenu = tofi-drun | xargs -I % hyprctl dispatch exec "%" # Some default env vars. env = XCURSOR_SIZE,24 env = XDG_SESSION_TYPE,wayland env = XDG_CURRENT_DESKTOP,Hyprland env = XDG_SESSION_DESKTOP,Hyprland env = QT_QPA_PLATFORMTHEME,qt6ct # change to qt6ct if you have that env = UDISKIE_DMENU_LAUNCHER,tofi env = TERM,alacritty env = TERMINAL,"alacritty --command" exec-once = waybar exec-once = dunst exec-once = sleep 1 && nm-applet exec-once = sleep 3 && keepassxc exec-once = wl-paste --watch cliphist store exec-once = sleep 1 && hyprpaper exec-once = sleep 1 && betterbird exec-once = sleep 1 && flatpak run com.valvesoftware.Steam exec-once = sleep 1 && flatpak run dev.vencord.Vesktop exec-once = sleep 4 && spotify exec-once = sleep 1 && firefox exec-once = sleep 1 && $terminal exec-once = sleep 1 && nextcloud # exec-once = hypridle source = ~/.config/hypr/binds.conf # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us kb_variant = altgr-intl kb_model = kb_options = ctrl:nocaps kb_rules = numlock_by_default = true follow_mouse = 1 touchpad { natural_scroll = false } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. accel_profile = flat force_no_accel = 1 } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 5 gaps_out = 20 border_size = 2 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) layout = dwindle # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on allow_tearing = false } decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 10 blur { enabled = true size = 3 passes = 1 vibrancy = 0.1696 } drop_shadow = true shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) } animations { enabled = true # 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 = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = true # 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 = false } misc { # See https://wiki.hyprland.org/Configuring/Variables/ for more force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers } xwayland { force_zero_scaling = true } binds { allow_workspace_cycles = true } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more # device { # name = 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 # windowrulev2 = suppressevent maximize, class:(.*) # You'll probably like this. windowrulev2 = float, class:^(nm-tray)$, title:^(nm-tray)$ windowrulev2 = stayfocused, class:^(nm-tray)$, title:^(nm-tray)$ windowrule = move 1660 400, title:^(nm-tray)$ windowrulev2 = float, class:^(org.pulseaudio.pavucontrol)$, title:^(Volume Control)$ windowrulev2 = workspace special:magic, class:^(org.pulseaudio.pavucontrol)$, title:^(Volume Control)$ windowrulev2 = workspace 9 silent,class:(betterbird),title:() windowrulev2 = float,class:(betterbird),title:(An error has occurred) windowrulev2 = suppressevent activate,class:(betterbird),title:(An error has occurred) windowrulev2 = workspace 3 silent,class:(discord),title:() windowrulev2 = workspace 3 silent,class:(vesktop),title:() windowrulev2 = workspace 3 silent,class:(WebCord),title:() windowrulev2 = workspace 3 silent,class:(Spotify),title:() windowrulev2 = workspace 4 silent,class:(steam),title:(Steam) windowrulev2 = workspace 2 silent,class:(firefox),title:() windowrulev2 = workspace special:magic silent,class:(Alacritty),title:() windowrulev2 = fullscreen,class:(Minecraft 1.7.10),title:() windowrulev2 = focusonactivate,class:(betterbird),title:() windowrulev2 = focusonactivate,class:(vesktop),title:() windowrulev2 = focusonactivate,class:(discord),title:() windowrulev2 = focusonactivate,class:(WebCord),title:() windowrulev2 = focusonactivate,class:(firefox),title:() workspace = 3, monitor:HDMI-A-2 workspace = 4, monitor:HDMI-A-2 workspace = 9, monitor:DP-1 workspace = 1, monitor:DP-1, default:true workspace = 2, monitor:HDMI-A-2, default:true Config File: /home/joel/.config/hypr/binds.conf: Read Succeeded # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER # desktop bind = $mainMod, Q, killactive, bind = $mainMod, M, exec, udiskie-dmenu --prompt-text mount: bind = $mainMod, V, togglefloating, bind = $mainMod SHIFT, C, exec, $menu bind = $mainMod, C, exec, $dmenu # bind = $mainMod, P, pseudo, # dwindle # bind = $mainMod, S, togglesplit, # dwindle bind = $mainMod, Print, exec, grim -g "$(slurp -d)" bind = $mainMod CONTROL, Print, exec, grim -g "$(slurp -d)" - | wl-copy bind = $mainMod SHIFT, Print, exec, hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' | grim -g - bind = $mainMod SHIFT CONTROL, Print, exec, hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' | grim -g - - | wl-copy bind = , Print, exec, grim bind = CONTROL, Print, exec, grim - | wl-copy bind = $mainMod, P, exec, cliphist list | tofi | cliphist decode | wl-copy bind = $mainMod, B, exec, ~/.config/tofi/bluetooth/blt-connect.sh bind = $mainMod SHIFT, ESCAPE, exec, ~/.config/tofi/powermenu/type-2/powermenu.sh # apps bind = $mainMod, T, exec, $terminal bind = $mainMod, F, exec, firefox bind = $mainMod, E, exec, alacritty -e ranger # dunst bind = CONTROL, SPACE, exec, dunstctl close bind = CONTROL SHIFT, SPACE, exec, dunstctl close-all bind = CONTROL, code:49, exec, dunstctl history-pop # code:49 == ` bind = CONTROL SHIFT, code:60, exec, dunstctl context # code:60 == . # Move focus with mainMod + vim keys bind = $mainMod, L, movefocus, r bind = $mainMod, H, movefocus, l bind = $mainMod, K, movefocus, u bind = $mainMod, J, movefocus, d # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d # Move windows bind = $mainMod SHIFT, h, movewindow, l bind = $mainMod SHIFT, l, movewindow, r bind = $mainMod SHIFT, k, movewindow, u bind = $mainMod SHIFT, j, movewindow, d # Resize windows bind = $mainMod CONTROL, h, resizeactive, -40 0 bind = $mainMod CONTROL, l, resizeactive, 40 0 bind = $mainMod CONTROL, k, resizeactive, 0 -40 bind = $mainMod CONTROL, j, resizeactive, 0 40 # Center floating window bind = $mainMod, c, centerwindow # 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 # Example special workspace (scratchpad) bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod SHIFT, S, movetoworkspace, special:magic # 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 # media keys # l -> do stuff even when locked # e -> repeats when key is held bindlet=, XF86AudioRaiseVolume, exec, pactl set-sink-volume 0 +5% bindlet=, XF86AudioLowerVolume, exec, pactl set-sink-volume 0 -5% bindle=, XF86MonBrightnessUp, exec, brightnessctl set 5%+ bindle=, XF86MonBrightnessDown, exec, brightnessctl set 5%- # bindle=, XF86Search, exec, launchpad # bindl=, XF86AudioMute, exec, amixer set Master toggle bindlt=, XF86AudioMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle bindli=, XF86AudioPlay, exec, playerctl play-pause # the stupid key is called play , but it toggles bindl=, XF86AudioNext, exec, playerctl next bindl=, XF86AudioPrev, exec, playerctl previous ======Config-End======== ```

Description

If I navigate on a PDF file in ranger, no preview is shown and hyprland crashes.

This works on my laptop using the hyprland package (non-git) build from 918d8340afd652b011b937d29d5eea0be08467f5 running manjaro.

How to reproduce

Activate PDF preview in ranger using ueberzugpp and navigate on a PDF file

Crash reports, logs, images, videos

hyprlandCrashReport104347.txt

vaxerski commented 3 months ago

I have my doubts this is from hyprland as opengl says there has been a context reset but it's not our fault.