Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WM crash when previewing PDF with Ueberzugpp (in alacritty) #2178

Closed
3 tasks done
TyrHeimdalEVE opened this issue Jan 8, 2025 · 3 comments
Closed
3 tasks done

WM crash when previewing PDF with Ueberzugpp (in alacritty) #2178

TyrHeimdalEVE opened this issue Jan 8, 2025 · 3 comments
Labels
invalid This doesn't seem right

Comments

@TyrHeimdalEVE
Copy link

What system are you running Yazi on?

Linux Wayland

What terminal are you running Yazi in?

alacritty 0.14.0 (22a44757)

yazi --debug output

Yazi
    Version: 0.4.3 (21f6a92 2025-01-06)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.83.0 (90b35a62 2024-11-26)

Ya
    Version: 0.4.3 (21f6a92 2025-01-06)

Emulator
    Brand.from_env      : Some(Alacritty)
    Emulator.detect     : Emulator { kind: Left(Alacritty), light: false, cell_size: None }
    Emulator.detect_full: Ok(Emulator { kind: Right(Unknown { kgp: false, sixel: false }), light: false, cell_size: None })

Adapter
    Adapter.matches: Wayland

Desktop
    XDG_SESSION_TYPE           : Some("wayland")
    WAYLAND_DISPLAY            : Some("wayland-1")
    DISPLAY                    : Some(":0")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: Some("0bd541f2fd902dbfa04c3ea2ccf679395e316887_1736322513_1838700584")
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

NVIM
    NVIM          : false
    Neovim version: 0.10.3

Variables
    SHELL           : Some("/bin/zsh")
    EDITOR          : Some("nvim")
    VISUAL          : None
    YAZI_FILE_ONE   : None
    YAZI_CONFIG_HOME: None
    YAZI_ZOXIDE_OPTS: None
    FZF_DEFAULT_OPTS: None

Text Opener
    default     : Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block-create: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block-rename: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })

Multiplexers
    TMUX               : 0
    tmux version       : tmux 3.5a
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file          : 5.46
    ueberzugpp    : 2.9.6
    ffmpeg/ffprobe: 7.1 / 7.1
    pdftoppm      : 25.01.0
    magick        : 7.1.1-43
    fzf           : 0.57.0
    fd/fdfind     : 10.2.0 / No such file or directory (os error 2)
    rg            : 14.1.1
    chafa         : 1.14.5
    zoxide        : 0.9.6
    7z/7zz        : 24.09 / No such file or directory (os error 2)
    jq            : 1.7.1

Clipboard
    wl-copy/paste: 2.2.1 / 2.2.1
    xclip        : 0.13
    xsel         : No such file or directory (os error 2)

Describe the bug

As the title says, when previewing PDF files in yazi (inside alacritty), the entire Hyprland session dies.

Testing with kitty, this does not happen.

Minimal reproducer

  • Install Arch
  • Use Hyprland Window Manager
  • Install alacritty
  • Install poppler to handle previewing of PDF files
  • Start yazi with alacritty -e yazi

Anything else?

Tested both yazi and yazi-nightly-bin, both causes the same issue.

Checklist

  • I tried the latest nightly build, and the issue is still reproducible
  • I updated the debug information (yazi --debug) input box to the nightly that I tried
  • I can reproduce it after disabling all custom configs/plugins (mv ~/.config/yazi ~/.config/yazi-backup)
@TyrHeimdalEVE TyrHeimdalEVE added the bug Something isn't working label Jan 8, 2025
@sxyazi
Copy link
Owner

sxyazi commented Jan 8, 2025

Alacritty doesn't support any image protocol by itself, so Yazi uses ueberzugpp for it.

Please confirm if this is a bug in ueberzugpp, https://yazi-rs.github.io/docs/image-preview#debug-ueberzug

@sxyazi sxyazi added the waiting on op Waiting for more information from the original poster label Jan 8, 2025
@TyrHeimdalEVE
Copy link
Author

2025-01-09T00:21:10.302563Z DEBUG yazi_adapter::drivers::ueberzug: `ueberzugpp layer -so wayland` command: {"action":"add","identifier":"yazi","x":181,"y":1,"max_width":55,"max_height":36,"path":"/tmp/yazi-1000/2173a22040fe7d9b9e28701311dc8dee"}
$~ ueberzugpp layer -so wayland
{"action":"add","identifier":"yazi","x":181,"y":1,"max_width":55,"max_height":36,"path":"/tmp/yazi-1000/2173a22040fe7d9b9e28701311dc8dee"}
<ENTER>

... * CRASH* ...

So yep, looks like a bug in ueberzugpp then. 👍

@github-actions github-actions bot removed the waiting on op Waiting for more information from the original poster label Jan 9, 2025
@sxyazi
Copy link
Owner

sxyazi commented Jan 9, 2025

Thanks for confirming. In this case, I suggest reporting it to ueberzugpp for support since this isn't an issue with Yazi itself.

In the meantime, you can uninstall ueberzugpp so that Yazi won't use it, or use this trick to force Yazi to use Chafa as a temporary workaround:

XDG_SESSION_TYPE= WAYLAND_DISPLAY= DISPLAY= yazi

Closing as not Yazi, nothing can be done here

@sxyazi sxyazi closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
@sxyazi sxyazi added invalid This doesn't seem right and removed bug Something isn't working labels Jan 9, 2025
@sxyazi sxyazi changed the title WM crash when previewing PDF (in alacritty) WM crash when previewing PDF with Ueberzugpp (in alacritty) Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants