alacritty: Panic on screen unlock

Sometimes when I resume/unlock my laptop, alacritty crashes with the panic below.

Which operating system does the issue occur on? Fedora 29 x86_64 I’ve built alacritty from version 9ba7c4fae4d927e109c7981f7e11ca7acdc14eb3.

If on linux, are you using X11 or Wayland? Wayland (Gnome 3.30.2)

wl_registry@2: error 0: invalid global wl_output (39)
thread 'main' panicked at 'Wayland connection lost.: Os { code: 71, kind: Other, message: "Protocol error" }', src/libcore/result.rs:997:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
   1: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:70
   2: std::panicking::default_hook::{{closure}}
             at src/libstd/sys_common/backtrace.rs:58
             at src/libstd/panicking.rs:200
   3: std::panicking::default_hook
             at src/libstd/panicking.rs:215
   4: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:478
   5: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:385
   6: rust_begin_unwind
             at src/libstd/panicking.rs:312
   7: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
   8: core::result::unwrap_failed
             at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libcore/macros.rs:16
   9: <core::result::Result<T, E>>::expect
             at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libcore/result.rs:825
  10: winit::platform::platform::wayland::event_loop::EventsLoop::poll_events
             at ./.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.18.1/src/platform/linux/wayland/event_loop.rs:169
  11: winit::platform::platform::EventsLoop::poll_events
             at ./.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.18.1/src/platform/linux/mod.rs:504
  12: winit::EventsLoop::poll_events
             at ./.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.18.1/src/lib.rs:273
  13: alacritty::window::Window::poll_events
             at ./src/3rd-party/alacritty/src/window.rs:208
  14: <alacritty::event::Processor<N>>::process_events
             at ./src/3rd-party/alacritty/src/event.rs:536
  15: alacritty::run
             at src/main.rs:221
  16: alacritty::main
             at src/main.rs:102
  17: std::rt::lang_start::{{closure}}
             at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libstd/rt.rs:64
  18: std::panicking::try::do_call
             at src/libstd/rt.rs:49
             at src/libstd/panicking.rs:297
  19: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:92
  20: std::rt::lang_start_internal
             at src/libstd/panicking.rs:276
             at src/libstd/panic.rs:388
             at src/libstd/rt.rs:48
  21: std::rt::lang_start
             at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libstd/rt.rs:64
  22: main
  23: __libc_start_main
  24: _start

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 22 (14 by maintainers)

Most upvoted comments

@kchibisov thread 'main' panicked at 'Wayland connection lost. doesn’t look like a sway crash to me. So while sway shouldn’t crash, it’s seemingly caused by a crash in alacritty, which also shouldn’t happen.

I interpret this as alacritty crashing as a consequence of sway crashing, rather than the other way around.

In any case, if sway crashes, then there is a sway bug worth reporting to them. An ill-behaving wayland client should not be able to crash the compositor.

If sway crashing for you, it’s a sway bug.

According to the exchanges that occured upstream about this issue ( see https://gitlab.freedesktop.org/wayland/wayland/issues/10 ), there is no good solution currently, except notifying Gnome about this issue so that they stop creating then deleting wl_ouput globals in a short timespan.

Are you running sway master + wlroots master? If not , please, try to repro on them. And also our master.

Some (but not all) of my Alacritty instances are crashing on Sway from time to time when I focus them (they basically crash instantly after I switch to them). Unfortunately I didn’t find a way to reproduce these crashes yet 😮

Example console outputs from my last few Alacritty crashes:

Mar 18 20:31:00 jarvis sway[1338]: thread 'main' panicked at 'Wayland connection lost.: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }', src/libcore/result.rs:1188:5
Mar 18 20:31:00 jarvis sway[1338]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Mar 18 20:31:01 jarvis sway[1338]: wl_registry@2: error 0: invalid global wl_output (35)
Mar 18 20:31:01 jarvis sway[1338]: thread 'main' panicked at 'Wayland connection lost.: Os { code: 71, kind: Other, message: "Protocol error" }', src/libcore/result.rs:1188:5
Mar 18 20:31:01 jarvis sway[1338]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Mar 18 20:31:01 jarvis sway[1338]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 71, kind: Other, message: "Protocol error" }', src/libcore/result.rs:1188:5
[...]
Apr 06 15:56:30 jarvis sway[1338]: wl_registry@2: error 0: invalid global wl_output (40)
Apr 06 15:56:30 jarvis sway[1338]: thread 'main' panicked at 'Wayland connection lost.: Os { code: 71, kind: Other, message: "Protocol error" }', src/libcore/result.rs:1188:5
Apr 06 15:56:30 jarvis sway[1338]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Apr 06 15:56:30 jarvis sway[1338]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 71, kind: Other, message: "Protocol error" }', src/libcore/result.rs:1188:5
Apr 06 15:57:48 jarvis sway[1338]: wl_registry@2: error 0: invalid global wl_output (40)
Apr 06 15:57:48 jarvis sway[1338]: thread 'main' panicked at 'Wayland connection lost.: Os { code: 71, kind: Other, message: "Protocol error" }', src/libcore/result.rs:1188:5
Apr 06 15:57:48 jarvis sway[1338]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Apr 06 15:57:48 jarvis sway[1338]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 71, kind: Other, message: "Protocol error" }', src/libcore/result.rs:1188:5
[...]
Apr 09 13:03:51 jarvis sway[1338]: wl_registry@2: error 0: invalid global wl_output (42)
Apr 09 13:03:51 jarvis sway[1338]: thread 'mainthread '' panicked at '<unnamed>Wayland connection lost.: Os { code: 71, kind: Other, message: "Protocol error" }' panicked at '', called `Result::unwrap()` on an `>
Apr 09 13:03:51 jarvis sway[1338]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[...]
Apr 13 15:41:16 jarvis sway[1338]: wl_registry@2: error 0: invalid global wl_output (45)
Apr 13 15:41:16 jarvis sway[1338]: thread 'main' panicked at 'Wayland connection lost.: Os { code: 71, kind: Other, message: "Protocol error" }', src/libcore/result.rs:1188:5
Apr 13 15:41:16 jarvis sway[1338]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Apr 13 15:41:42 jarvis sway[1338]: Deleted log file at "/tmp/Alacritty-15978.log"
Apr 13 15:41:42 jarvis sway[1338]: wl_registry@2: error 0: invalid global wl_output (45)
Apr 13 15:41:42 jarvis sway[1338]: thread 'main' panicked at 'failed to dispatch wayland events: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/winit/src/platform_>
Apr 13 15:41:42 jarvis sway[1338]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Unfortunately I didn’t use WAYLAND_DEBUG and RUST_BACKTRACE when those crashes occurred.

Regarding my setup: At least the last crash was with Alacritty 0.4.2, Sway 1.4, Wayland 1.18, and wayland-protocols 1.20.


Update: I just lost all Alacritty terminals on one of my Sway workspaces. This is unfortunately getting SUPER frustrating, I might have to switch to the X11/XWayland backend 😮

Backtraces:
Apr 27 19:38:26 jarvis sway[1403]: wl_registry@2: error 0: invalid global wl_output (55)
Apr 27 19:38:26 jarvis sway[1403]: thread 'main' panicked at 'Wayland connection lost.: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/winit/src/platform_impl/linux/wayland/event_loop.rs:546:13
Apr 27 19:38:26 jarvis sway[1403]: stack backtrace:
Apr 27 19:38:26 jarvis sway[1403]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/smithay-clipboard/src/threaded.rs:511:30
Apr 27 19:38:26 jarvis sway[1403]:    0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
Apr 27 19:38:26 jarvis sway[1403]:    1: core::fmt::write
Apr 27 19:38:26 jarvis sway[1403]:    2: std::io::Write::write_fmt
Apr 27 19:38:26 jarvis sway[1403]:    3: std::panicking::default_hook::{{closure}}
Apr 27 19:38:26 jarvis sway[1403]:    4: std::panicking::rust_panic_with_hook
Apr 27 19:38:26 jarvis sway[1403]:    5: rust_begin_unwind
Apr 27 19:38:26 jarvis sway[1403]:    6: core::panicking::panic_fmt
Apr 27 19:38:26 jarvis sway[1403]:    7: core::result::unwrap_failed
Apr 27 19:38:26 jarvis sway[1403]:    8: core::result::Result<T,E>::expect
Apr 27 19:38:26 jarvis sway[1403]:              at /build/rustc-1.42.0-src/src/libcore/result.rs:991
Apr 27 19:38:26 jarvis sway[1403]:    9: winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_return
Apr 27 19:38:26 jarvis sway[1403]:              at /build/alacritty-0.4.2-vendor.tar.gz/winit/src/platform_impl/linux/wayland/event_loop.rs:546
Apr 27 19:38:26 jarvis sway[1403]:   10: alacritty::event::Processor<N>::run
Apr 27 19:38:26 jarvis sway[1403]:              at /build/alacritty-0.4.2-vendor.tar.gz/winit/src/platform_impl/linux/mod.rs:634
Apr 27 19:38:26 jarvis sway[1403]:   11: alacritty::run
Apr 27 19:38:26 jarvis sway[1403]:              at alacritty/src/main.rs:206
Apr 27 19:38:26 jarvis sway[1403]:   12: alacritty::main
Apr 27 19:38:26 jarvis sway[1403]:              at alacritty/src/main.rs:112
Apr 27 19:38:27 jarvis sway[1403]:   13: std::rt::lang_start::{{closure}}
Apr 27 19:38:27 jarvis sway[1403]:              at /build/rustc-1.42.0-src/src/libstd/rt.rs:67
Apr 27 19:38:27 jarvis sway[1403]:   14: main
Apr 27 19:38:27 jarvis sway[1403]:   15: __libc_start_main
Apr 27 19:38:27 jarvis sway[1403]:   16: _start
Apr 27 19:38:27 jarvis sway[1403]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Apr 27 19:38:27 jarvis sway[1403]: stack backtrace:
Apr 27 19:38:27 jarvis sway[1403]:    0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
Apr 27 19:38:27 jarvis sway[1403]:    1: core::fmt::write
Apr 27 19:38:27 jarvis sway[1403]:    2: std::io::Write::write_fmt
Apr 27 19:38:27 jarvis sway[1403]:    3: std::panicking::default_hook::{{closure}}
Apr 27 19:38:27 jarvis sway[1403]:    4: std::panicking::rust_panic_with_hook
Apr 27 19:38:27 jarvis sway[1403]:    5: rust_begin_unwind
Apr 27 19:38:27 jarvis sway[1403]:    6: core::panicking::panic_fmt
Apr 27 19:38:27 jarvis sway[1403]:    7: core::result::unwrap_failed
Apr 27 19:38:27 jarvis sway[1403]:    8: core::result::Result<T,E>::unwrap
Apr 27 19:38:27 jarvis sway[1403]:              at /build/rustc-1.42.0-src/src/libcore/result.rs:963
Apr 27 19:38:27 jarvis sway[1403]:    9: smithay_clipboard::threaded::clipboard_thread
Apr 27 19:38:27 jarvis sway[1403]:              at /build/alacritty-0.4.2-vendor.tar.gz/smithay-clipboard/src/threaded.rs:511
Apr 27 19:38:27 jarvis sway[1403]:   10: smithay_clipboard::threaded::ThreadedClipboard::new_from_external::{{closure}}
Apr 27 19:38:27 jarvis sway[1403]:              at /build/alacritty-0.4.2-vendor.tar.gz/smithay-clipboard/src/threaded.rs:105
Apr 27 19:38:27 jarvis sway[1403]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Apr 27 19:38:27 jarvis chromium[16753]: [16778:16778:0427/193827.077223:ERROR:gl_surface_presentation_helper.cc(259)] GetVSyncParametersIfAvailable() failed for 1282048 times!
Apr 27 19:38:27 jarvis su[5666]: pam_unix(su:session): session closed for user root
Apr 27 19:38:36 jarvis chromium[16753]: [16778:16778:0427/193836.924677:ERROR:gl_surface_presentation_helper.cc(259)] GetVSyncParametersIfAvailable() failed for 1282304 times!
Apr 27 19:38:54 jarvis chromium[16753]: [16778:16778:0427/193854.576891:ERROR:gl_surface_presentation_helper.cc(259)] GetVSyncParametersIfAvailable() failed for 1282560 times!
Apr 27 19:38:57 jarvis sway[1403]: wl_registry@2: error 0: invalid global wl_output (55)
Apr 27 19:38:57 jarvis sway[1403]: thread 'main' panicked at 'Wayland connection lost.: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/winit/src/platform_impl/linux/wayland/event_loop.rs:546:13
Apr 27 19:38:57 jarvis sway[1403]: stack backtrace:
Apr 27 19:38:57 jarvis sway[1403]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/smithay-clipboard/src/threaded.rs:511:30
Apr 27 19:38:58 jarvis sway[1403]:    0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
Apr 27 19:38:58 jarvis sway[1403]:    1: core::fmt::write
Apr 27 19:38:58 jarvis sway[1403]:    2: std::io::Write::write_fmt
Apr 27 19:38:58 jarvis sway[1403]:    3: std::panicking::default_hook::{{closure}}
Apr 27 19:38:58 jarvis sway[1403]:    4: std::panicking::rust_panic_with_hook
Apr 27 19:38:58 jarvis sway[1403]:    5: rust_begin_unwind
Apr 27 19:38:58 jarvis sway[1403]:    6: core::panicking::panic_fmt
Apr 27 19:38:58 jarvis sway[1403]:    7: core::result::unwrap_failed
Apr 27 19:38:58 jarvis sway[1403]:    8: winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_return
Apr 27 19:38:58 jarvis sway[1403]:    9: alacritty::event::Processor<N>::run
Apr 27 19:38:58 jarvis sway[1403]:   10: alacritty::main
Apr 27 19:38:58 jarvis sway[1403]:   11: std::rt::lang_start::{{closure}}
Apr 27 19:38:58 jarvis sway[1403]:   12: main
Apr 27 19:38:58 jarvis sway[1403]:   13: __libc_start_main
Apr 27 19:38:58 jarvis sway[1403]:   14: _start
Apr 27 19:38:58 jarvis sway[1403]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Apr 27 19:38:58 jarvis sway[1403]: stack backtrace:
Apr 27 19:38:58 jarvis sway[1403]:    0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
Apr 27 19:38:58 jarvis sway[1403]:    1: core::fmt::write
Apr 27 19:38:58 jarvis sway[1403]:    2: std::io::Write::write_fmt
Apr 27 19:38:58 jarvis sway[1403]:    3: std::panicking::default_hook::{{closure}}
Apr 27 19:38:58 jarvis sway[1403]:    4: std::panicking::rust_panic_with_hook
Apr 27 19:38:58 jarvis sway[1403]:    5: rust_begin_unwind
Apr 27 19:38:58 jarvis sway[1403]:    6: core::panicking::panic_fmt
Apr 27 19:38:58 jarvis sway[1403]:    7: core::result::unwrap_failed
Apr 27 19:38:58 jarvis sway[1403]:    8: smithay_clipboard::threaded::clipboard_thread
Apr 27 19:38:58 jarvis sway[1403]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Apr 27 19:38:59 jarvis chromium[16753]: [16778:16778:0427/193859.888821:ERROR:gl_surface_presentation_helper.cc(259)] GetVSyncParametersIfAvailable() failed for 1282816 times!
Apr 27 19:39:00 jarvis sway[1403]: wl_registry@2: error 0: invalid global wl_output (55)
Apr 27 19:39:00 jarvis sway[1403]: thread 'main' panicked at 'Wayland connection lost.: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/winit/src/platform_impl/linux/wayland/event_loop.rs:546:13
Apr 27 19:39:00 jarvis sway[1403]: stack backtrace:
Apr 27 19:39:00 jarvis sway[1403]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/smithay-clipboard/src/threaded.rs:511:30
Apr 27 19:39:00 jarvis sway[1403]:    0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
Apr 27 19:39:00 jarvis sway[1403]:    1: core::fmt::write
Apr 27 19:39:00 jarvis sway[1403]:    2: std::io::Write::write_fmt
Apr 27 19:39:00 jarvis sway[1403]:    3: std::panicking::default_hook::{{closure}}
Apr 27 19:39:00 jarvis sway[1403]:    4: std::panicking::rust_panic_with_hook
Apr 27 19:39:00 jarvis sway[1403]:    5: rust_begin_unwind
Apr 27 19:39:00 jarvis sway[1403]:    6: core::panicking::panic_fmt
Apr 27 19:39:00 jarvis sway[1403]:    7: core::result::unwrap_failed
Apr 27 19:39:00 jarvis sway[1403]:    8: winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_return
Apr 27 19:39:00 jarvis sway[1403]:    9: alacritty::event::Processor<N>::run
Apr 27 19:39:00 jarvis sway[1403]:   10: alacritty::main
Apr 27 19:39:00 jarvis sway[1403]:   11: std::rt::lang_start::{{closure}}
Apr 27 19:39:00 jarvis sway[1403]:   12: main
Apr 27 19:39:00 jarvis sway[1403]:   13: __libc_start_main
Apr 27 19:39:00 jarvis sway[1403]:   14: _start
Apr 27 19:39:00 jarvis sway[1403]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Apr 27 19:39:00 jarvis sway[1403]: stack backtrace:
Apr 27 19:39:00 jarvis sway[1403]:    0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
Apr 27 19:39:00 jarvis sway[1403]:    1: core::fmt::write
Apr 27 19:39:00 jarvis sway[1403]:    2: std::io::Write::write_fmt
Apr 27 19:39:00 jarvis sway[1403]:    3: std::panicking::default_hook::{{closure}}
Apr 27 19:39:00 jarvis sway[1403]:    4: std::panicking::rust_panic_with_hook
Apr 27 19:39:00 jarvis sway[1403]:    5: rust_begin_unwind
Apr 27 19:39:00 jarvis sway[1403]:    6: core::panicking::panic_fmt
Apr 27 19:39:00 jarvis sway[1403]:    7: core::result::unwrap_failed
Apr 27 19:39:00 jarvis sway[1403]:    8: smithay_clipboard::threaded::clipboard_thread
Apr 27 19:39:00 jarvis sway[1403]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Apr 27 19:39:01 jarvis sway[1403]: wl_registry@2: error 0: invalid global wl_output (55)
Apr 27 19:39:01 jarvis sway[1403]: thread 'main' panicked at 'failed to dispatch wayland events: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/winit/src/platform_impl/linux/wayland/event_loop.rs:490:21
Apr 27 19:39:01 jarvis sway[1403]: stack backtrace:
Apr 27 19:39:01 jarvis sway[1403]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/smithay-clipboard/src/threaded.rs:511:30
Apr 27 19:39:01 jarvis sway[1403]:    0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
Apr 27 19:39:01 jarvis sway[1403]:    1: core::fmt::write
Apr 27 19:39:01 jarvis sway[1403]:    2: std::io::Write::write_fmt
Apr 27 19:39:01 jarvis sway[1403]:    3: std::panicking::default_hook::{{closure}}
Apr 27 19:39:01 jarvis sway[1403]:    4: std::panicking::rust_panic_with_hook
Apr 27 19:39:01 jarvis sway[1403]:    5: rust_begin_unwind
Apr 27 19:39:01 jarvis sway[1403]:    6: core::panicking::panic_fmt
Apr 27 19:39:01 jarvis sway[1403]:    7: core::result::unwrap_failed
Apr 27 19:39:01 jarvis sway[1403]:    8: core::result::Result<T,E>::expect
Apr 27 19:39:01 jarvis sway[1403]:              at /build/rustc-1.42.0-src/src/libcore/result.rs:991
Apr 27 19:39:01 jarvis sway[1403]:    9: winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_return
Apr 27 19:39:01 jarvis sway[1403]:              at /build/alacritty-0.4.2-vendor.tar.gz/winit/src/platform_impl/linux/wayland/event_loop.rs:490
Apr 27 19:39:01 jarvis sway[1403]:   10: alacritty::event::Processor<N>::run
Apr 27 19:39:01 jarvis sway[1403]:              at /build/alacritty-0.4.2-vendor.tar.gz/winit/src/platform_impl/linux/mod.rs:634
Apr 27 19:39:01 jarvis sway[1403]:   11: alacritty::run
Apr 27 19:39:01 jarvis sway[1403]:              at alacritty/src/main.rs:206
Apr 27 19:39:01 jarvis sway[1403]:   12: alacritty::main
Apr 27 19:39:01 jarvis sway[1403]:              at alacritty/src/main.rs:112
Apr 27 19:39:01 jarvis sway[1403]:   13: std::rt::lang_start::{{closure}}
Apr 27 19:39:01 jarvis sway[1403]:              at /build/rustc-1.42.0-src/src/libstd/rt.rs:67
Apr 27 19:39:01 jarvis sway[1403]:   14: main
Apr 27 19:39:01 jarvis sway[1403]:   15: __libc_start_main
Apr 27 19:39:01 jarvis sway[1403]:   16: _start
Apr 27 19:39:01 jarvis sway[1403]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Apr 27 19:39:01 jarvis sway[1403]: stack backtrace:
Apr 27 19:39:01 jarvis sway[1403]:    0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
Apr 27 19:39:01 jarvis sway[1403]:    1: core::fmt::write
Apr 27 19:39:01 jarvis sway[1403]:    2: std::io::Write::write_fmt
Apr 27 19:39:01 jarvis sway[1403]:    3: std::panicking::default_hook::{{closure}}
Apr 27 19:39:01 jarvis sway[1403]:    4: std::panicking::rust_panic_with_hook
Apr 27 19:39:01 jarvis sway[1403]:    5: rust_begin_unwind
Apr 27 19:39:01 jarvis sway[1403]:    6: core::panicking::panic_fmt
Apr 27 19:39:01 jarvis sway[1403]:    7: core::result::unwrap_failed
Apr 27 19:39:01 jarvis sway[1403]:    8: core::result::Result<T,E>::unwrap
Apr 27 19:39:01 jarvis sway[1403]:              at /build/rustc-1.42.0-src/src/libcore/result.rs:963
Apr 27 19:39:01 jarvis sway[1403]:    9: smithay_clipboard::threaded::clipboard_thread
Apr 27 19:39:01 jarvis sway[1403]:              at /build/alacritty-0.4.2-vendor.tar.gz/smithay-clipboard/src/threaded.rs:511
Apr 27 19:39:01 jarvis sway[1403]:   10: smithay_clipboard::threaded::ThreadedClipboard::new_from_external::{{closure}}
Apr 27 19:39:01 jarvis sway[1403]:              at /build/alacritty-0.4.2-vendor.tar.gz/smithay-clipboard/src/threaded.rs:105
Apr 27 19:39:01 jarvis sway[1403]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Apr 27 19:39:01 jarvis su[7366]: pam_unix(su:session): session closed for user root
Apr 27 19:39:01 jarvis sway[1403]: wl_registry@2: error 0: invalid global wl_output (55)
Apr 27 19:39:01 jarvis sway[1403]: thread 'main' panicked at 'Wayland connection lost.: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/winit/src/platform_impl/linux/wayland/event_loop.rs:546:13
Apr 27 19:39:01 jarvis sway[1403]: stack backtrace:
Apr 27 19:39:01 jarvis sway[1403]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 71, kind: Other, message: "Protocol error" }', /build/alacritty-0.4.2-vendor.tar.gz/smithay-clipboard/src/threaded.rs:511:30
Apr 27 19:39:01 jarvis sway[1403]:    0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
Apr 27 19:39:01 jarvis sway[1403]:    1: core::fmt::write
Apr 27 19:39:01 jarvis sway[1403]:    2: std::io::Write::write_fmt
Apr 27 19:39:01 jarvis sway[1403]:    3: std::panicking::default_hook::{{closure}}
Apr 27 19:39:01 jarvis sway[1403]:    4: std::panicking::rust_panic_with_hook
Apr 27 19:39:01 jarvis sway[1403]:    5: rust_begin_unwind
Apr 27 19:39:01 jarvis sway[1403]:    6: core::panicking::panic_fmt
Apr 27 19:39:01 jarvis sway[1403]:    7: core::result::unwrap_failed
Apr 27 19:39:01 jarvis sway[1403]:    8: winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_return
Apr 27 19:39:01 jarvis sway[1403]:    9: alacritty::event::Processor<N>::run
Apr 27 19:39:01 jarvis sway[1403]:   10: alacritty::main
Apr 27 19:39:01 jarvis sway[1403]:   11: std::rt::lang_start::{{closure}}
Apr 27 19:39:01 jarvis sway[1403]:   12: main
Apr 27 19:39:01 jarvis sway[1403]:   13: __libc_start_main
Apr 27 19:39:01 jarvis sway[1403]:   14: _start
Apr 27 19:39:01 jarvis sway[1403]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Apr 27 19:39:01 jarvis sway[1403]: stack backtrace:
Apr 27 19:39:01 jarvis sway[1403]:    0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
Apr 27 19:39:01 jarvis sway[1403]:    1: core::fmt::write
Apr 27 19:39:01 jarvis sway[1403]:    2: std::io::Write::write_fmt
Apr 27 19:39:01 jarvis sway[1403]:    3: std::panicking::default_hook::{{closure}}
Apr 27 19:39:01 jarvis sway[1403]:    4: std::panicking::rust_panic_with_hook
Apr 27 19:39:01 jarvis sway[1403]:    5: rust_begin_unwind
Apr 27 19:39:01 jarvis sway[1403]:    6: core::panicking::panic_fmt
Apr 27 19:39:01 jarvis sway[1403]:    7: core::result::unwrap_failed
Apr 27 19:39:01 jarvis sway[1403]:    8: smithay_clipboard::threaded::clipboard_thread
Apr 27 19:39:01 jarvis sway[1403]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

sway started crashing on me this week while coming out of lock/sleep

@nixpulvis I read this sentence as sway crashing. If we also crashed during its crash I don’t mind this crash. As you can see an issue that connection to sway was lost.

If we crash after screen unlock but everything else continues to run, then it’s our issue.

@kchibisov thread 'main' panicked at 'Wayland connection lost. doesn’t look like a sway crash to me. So while sway shouldn’t crash, it’s seemingly caused by a crash in alacritty, which also shouldn’t happen.

@blitz Can you verify if this is still broken? The upstream issue is closed, but I don’t think this is resolved yet.

So I guess this is tracked upstream in https://github.com/Smithay/wayland-rs/issues/203 now.

This is a hard program crash, so there’s no way to just ignore it.

However you might have some success trying to launch it using XWayland, you can do that by running Alacritty with WAYLAND_DISPLAY= alacritty.

Could you reproduce this while running the winit example with the env variable WAYLAND_DEBUG=1 and provide the log here?