alacritty: Crashing on GNOME Wayland

I’m using zellij inside alacritty on Ubuntu 22.04.

Sometimes when selecting text in zellij, alacritty crashes. The panic message is shown below.

zellij copies the selected text into the system clipboard, so this might be related.

System

OS: Linux (Ubuntu 22.04) Version: alacritty 0.12.0-dev (2a2d38fc) Linux/BSD: Wayland

Logs

Output:

Unsupported modifier, resource creation failed.
XXX: resource creation failed
Unsupported modifier, resource creation failed.
XXX: resource creation failed
Unsupported modifier, resource creation failed.
XXX: resource creation failed
Unsupported modifier, resource creation failed.
XXX: resource creation failed
Unsupported modifier, resource creation failed.
XXX: resource creation failed
wl_shm_pool@28: error 2: shrinking pool invalid
thread 'main' panicked at 'failed to dispatch wayland event queue: Os { code: 71, kind: Uncategorized, message: "Protocol error" }', alacritty/src/event.rs:1438:30
stack backtrace:
   0: rust_begin_unwind
             at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/panicking.rs:142:14
   2: core::result::unwrap_failed
             at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/result.rs:1814:5
   3: core::result::Result<T,E>::expect
             at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/result.rs:1064:23
   4: alacritty::event::Processor::run::{{closure}}
             at ./tools/alacritty/alacritty/src/event.rs:1436:25
   5: winit::platform_impl::platform::sticky_exit_callback
             at ./.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.27.4/src/platform_impl/linux/mod.rs:849:9
   6: winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_return
             at ./.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.27.4/src/platform_impl/linux/wayland/event_loop/mod.rs:539:13
   7: winit::platform_impl::platform::EventLoop<T>::run_return
             at ./.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.27.4/src/platform_impl/linux/mod.rs:748:56
   8: <winit::event_loop::EventLoop<T> as winit::platform::run_return::EventLoopExtRunReturn>::run_return
             at ./.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.27.4/src/platform/run_return.rs:62:9
   9: alacritty::event::Processor::run
             at ./tools/alacritty/alacritty/src/event.rs:1370:25
  10: alacritty::alacritty
             at ./tools/alacritty/alacritty/src/main.rs:189:18
  11: alacritty::main
             at ./tools/alacritty/alacritty/src/main.rs:83:17
  12: core::ops::function::FnOnce::call_once
             at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/ops/function.rs:248:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 32 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Well since I can’t reproduce this, it would be nice if someone could build Alacritty without wayland-csd-adwaita feature just remove this line:

https://github.com/alacritty/alacritty/blob/d92a8a0e16eda3df7566e5c995aa0d258b6b76f7/alacritty/Cargo.toml#L91

And confirm that going back to default decorations indeed solves the problem.

I tried this, and it doesn’t seem to crash any more when wayland-csd-adwaita is removed.

I have reproduced this problem about 10 times now. it looks like a race to me. It happens when when a lot of output appears very fast. For me it has nothing to do with selecting. But I’m also using zellij over ssh.

I’ve run it with alacritty -o window.decorations=none for a couple of hours now, and so far I’ve not been able to reproduce the crash.

I have a Intel graphics card, so Nvidia shouldn’t be an issue.