alacritty: Crash on Wayland when unplugging mouse

I often switch my keyboard and mouse back and forth from host to specific VMs with a KVM switch, and thus generate a lot of plug/unplug event. I’m using the sway/Wayland combo on an up to date Debian testing.

Alacritty will randomly crash on unplug events. It’s not systematic, but I can reliably reproduce it with around 2 to 5 events. I’ve verified it is specifically the mouse, either directly plugged to the USB controller or through the USB switch. The keyboard doesn’t seem to cause any issue unplugged by itself.

The issue was already present in 0.4.1, can’t tell before that, I’m only a recent user.

System

OS: Linux, Debian testing/bullseye Version: 0.4.2 Linux/BSD: Wayland, sway

Logs

Crashes:

wl_display@1: error 0: invalid object 59
thread 'main' panicked at 'failed to dispatch wayland events: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', src/libcore/result.rs:1165:5
stack backtrace:
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', src/libcore/result.rs:1165:5
   0:     0x55bf30a678cc - backtrace::backtrace::libunwind::trace::h65597d255cb1398b
                               at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
   1:     0x55bf30a678cc - backtrace::backtrace::trace_unsynchronized::hd4f479d7150ec4a0
                               at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
   2:     0x55bf30a678cc - std::sys_common::backtrace::_print_fmt::h015072984a2b172c
                               at src/libstd/sys_common/backtrace.rs:77
   3:     0x55bf30a678cc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h6df05d3335f32194
                               at src/libstd/sys_common/backtrace.rs:61
   4:     0x55bf3092489c - core::fmt::write::h1f444f4312eb6c27
                               at src/libcore/fmt/mod.rs:1028
   5:     0x55bf30a67116 - std::io::Write::write_fmt::h8d147888220078ef
                               at src/libstd/io/mod.rs:1412
   6:     0x55bf30a66d8e - std::sys_common::backtrace::_print::h8a6df0fa81d6af62
                               at src/libstd/sys_common/backtrace.rs:65
   7:     0x55bf30a66d8e - std::sys_common::backtrace::print::h6f05b4733407e509
                               at src/libstd/sys_common/backtrace.rs:50
   8:     0x55bf30a66d8e - std::panicking::default_hook::{{closure}}::h0d0a23bd02315dd8
                               at src/libstd/panicking.rs:188
   9:     0x55bf30a66533 - std::panicking::default_hook::h8d15a9aecb4efac6
                               at src/libstd/panicking.rs:205
  10:     0x55bf30a66533 - std::panicking::rust_panic_with_hook::hbe174577402a475d
                               at src/libstd/panicking.rs:464
  11:     0x55bf30a660ae - std::panicking::continue_panic_fmt::h4d855dad868accf3
                               at src/libstd/panicking.rs:373
  12:     0x55bf30a79f36 - rust_begin_unwind
                               at src/libstd/panicking.rs:302
  13:     0x55bf3091eb7d - core::panicking::panic_fmt::hdeb7979ab6591473
                               at src/libcore/panicking.rs:139
  14:     0x55bf30924ec6 - core::result::unwrap_failed::h054dd680e6fcd38b
                               at src/libcore/result.rs:1165
  15:     0x55bf307d7c1f - core::result::Result<T,E>::expect::h07ceed7f2e3b5cc5
                               at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libcore/result.rs:960
  16:     0x55bf307d7c1f - winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_return::h6728fee0ce814338
                               at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.22.0/src/platform_impl/linux/wayland/event_loop.rs:490
  17:     0x55bf3071e192 - alacritty::event::Processor<N>::run::h67f8eb794e473901
                               at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.22.0/src/platform_impl/linux/mod.rs:634
  18:     0x55bf30788ad8 - alacritty::run::hdc6efe053112a08a
                               at alacritty/src/main.rs:206
  19:     0x55bf30788ad8 - alacritty::main::h659c8e6f49c82ab6
                               at alacritty/src/main.rs:112
  20:     0x55bf30867053 - std::rt::lang_start::{{closure}}::h551e50cfdbefc8f2
                               at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/rt.rs:61
  21:     0x55bf3078150e - main
  22:     0x7f55da682e0b - __libc_start_main
  23:     0x55bf3070a94a - _start
  24:                0x0 - <unknown>
stack backtrace:
   0:     0x55bf30a678cc - backtrace::backtrace::libunwind::trace::h65597d255cb1398b
                               at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
   1:     0x55bf30a678cc - backtrace::backtrace::trace_unsynchronized::hd4f479d7150ec4a0
                               at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
   2:     0x55bf30a678cc - std::sys_common::backtrace::_print_fmt::h015072984a2b172c
                               at src/libstd/sys_common/backtrace.rs:77
   3:     0x55bf30a678cc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h6df05d3335f32194
                               at src/libstd/sys_common/backtrace.rs:61
   4:     0x55bf3092489c - core::fmt::write::h1f444f4312eb6c27
                               at src/libcore/fmt/mod.rs:1028
   5:     0x55bf30a67116 - std::io::Write::write_fmt::h8d147888220078ef
                               at src/libstd/io/mod.rs:1412
   6:     0x55bf30a66d8e - std::sys_common::backtrace::_print::h8a6df0fa81d6af62
                               at src/libstd/sys_common/backtrace.rs:65
   7:     0x55bf30a66d8e - std::sys_common::backtrace::print::h6f05b4733407e509
                               at src/libstd/sys_common/backtrace.rs:50
   8:     0x55bf30a66d8e - std::panicking::default_hook::{{closure}}::h0d0a23bd02315dd8
                               at src/libstd/panicking.rs:188
   9:     0x55bf30a66533 - std::panicking::default_hook::h8d15a9aecb4efac6
                               at src/libstd/panicking.rs:205
  10:     0x55bf30a66533 - std::panicking::rust_panic_with_hook::hbe174577402a475d
                               at src/libstd/panicking.rs:464
  11:     0x55bf30a660ae - std::panicking::continue_panic_fmt::h4d855dad868accf3
                               at src/libstd/panicking.rs:373
  12:     0x55bf30a79f36 - rust_begin_unwind
                               at src/libstd/panicking.rs:302
  13:     0x55bf3091eb7d - core::panicking::panic_fmt::hdeb7979ab6591473
                               at src/libcore/panicking.rs:139
  14:     0x55bf30924ec6 - core::result::unwrap_failed::h054dd680e6fcd38b
                               at src/libcore/result.rs:1165
  15:     0x55bf30a5a789 - core::result::Result<T,E>::unwrap::h97d20e54e446e7f2
                               at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libcore/result.rs:933
  16:     0x55bf30a5a789 - smithay_clipboard::threaded::clipboard_thread::h5c55222952a5a4be
                               at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/smithay-clipboard-0.4.0/src/threaded.rs:511
  17:     0x55bf30a4e40a - smithay_clipboard::threaded::ThreadedClipboard::new_from_external::{{closure}}::hf16a1b5ae5a9812d
                               at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/smithay-clipboard-0.4.0/src/threaded.rs:105
  18:     0x55bf30a4e40a - std::sys_common::backtrace::__rust_begin_short_backtrace::h8060cf3448488c6f
                               at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/sys_common/backtrace.rs:129
  19:     0x55bf30a4a9b1 - std::panicking::try::h7e18accf357475fe
                               at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/thread/mod.rs:469
  20:     0x55bf30a4a9b1 - std::panic::catch_unwind::hdc63d1e80b5016af
                               at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panic.rs:396
  21:     0x55bf30a4a9b1 - std::thread::Builder::spawn_unchecked::{{closure}}::h3f44f64b79e502fc

Font/Terminal size:

[2020-05-27 16:58:46.442747933] [INFO] Welcome to Alacritty
[2020-05-27 16:58:46.443814172] [INFO] No configuration file found
[2020-05-27 16:58:46.477155667] [DEBUG] Estimated DPR: 1
[2020-05-27 16:58:46.477188404] [DEBUG] Estimated Cell Size: 9 x 17
[2020-05-27 16:58:46.477200279] [DEBUG] Estimated Dimensions: None
[2020-05-27 16:58:46.503168378] [INFO] Device pixel ratio: 1
[2020-05-27 16:58:46.507317108] [INFO] Initializing glyph cache...
[2020-05-27 16:58:46.546144352] [INFO] ... finished initializing glyph cache in 0.038804215s
[2020-05-27 16:58:46.546176952] [INFO] Cell Size: 9 x 17
[2020-05-27 16:58:46.546185331] [INFO] Padding: 0 x 0
[2020-05-27 16:58:46.546194284] [INFO] Width: 800, Height: 600
[2020-05-27 16:58:46.547328055] [INFO] PTY Dimensions: Line(35) x Column(88)
[2020-05-27 16:58:46.548517235] [INFO] Initialisation complete
[2020-05-27 16:58:46.552112391] [DEBUG] New num_cols is 141 and num_lines is 40
[2020-05-27 16:58:46.553401575] [INFO] Width: 1276, Height: 682

Keyboard and bindings: alacritty --print-events

[2020-05-27 17:01:03.549367828] [INFO] Welcome to Alacritty
[2020-05-27 17:01:03.549521933] [INFO] No configuration file found
[2020-05-27 17:01:03.615888211] [INFO] Device pixel ratio: 1
[2020-05-27 17:01:03.620436233] [INFO] Initializing glyph cache...
[2020-05-27 17:01:03.662399260] [INFO] ... finished initializing glyph cache in 0.041939445s
[2020-05-27 17:01:03.662430637] [INFO] Cell Size: 9 x 17
[2020-05-27 17:01:03.662438007] [INFO] Padding: 0 x 0
[2020-05-27 17:01:03.662446288] [INFO] Width: 800, Height: 600
[2020-05-27 17:01:03.663612140] [INFO] PTY Dimensions: Line(35) x Column(88)
[2020-05-27 17:01:03.664662208] [INFO] Initialisation complete
[2020-05-27 17:01:03.664687863] [INFO] glutin event: NewEvents(Init)
[2020-05-27 17:01:03.664711154] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.664728795] [INFO] glutin event: RedrawRequested(WindowId(Wayland(WindowId(94279674437360))))
[2020-05-27 17:01:03.664737919] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.667396884] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 206826496 }, requested_resume: None })
[2020-05-27 17:01:03.667436187] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.667444391] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.667701207] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 207131227 }, requested_resume: None })
[2020-05-27 17:01:03.667764720] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: Resized(PhysicalSize { width: 1076, height: 922 }) }
[2020-05-27 17:01:03.667845225] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: Focused(true) }
[2020-05-27 17:01:03.667861647] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: ModifiersChanged((empty)) }
[2020-05-27 17:01:03.667871511] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.667880104] [INFO] glutin event: RedrawRequested(WindowId(Wayland(WindowId(94279674437360))))
[2020-05-27 17:01:03.667885698] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.669289338] [INFO] Width: 1076, Height: 922
[2020-05-27 17:01:03.670862323] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 210292067 }, requested_resume: None })
[2020-05-27 17:01:03.670897778] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.670906279] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.674818332] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 214247996 }, requested_resume: None })
[2020-05-27 17:01:03.690029492] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: CursorEntered { device_id: DeviceId(Wayland(DeviceId)) } }
[2020-05-27 17:01:03.690057650] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: CursorMoved { device_id: DeviceId(Wayland(DeviceId)), position: PhysicalPosition { x: 755.21484375, y: 756.87109375 }, modifiers: (empty) } }
[2020-05-27 17:01:03.690067688] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.690073376] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.690116739] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 229546781 }, requested_resume: None })
[2020-05-27 17:01:03.690141705] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.690150824] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.691170357] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 230600483 }, requested_resume: None })
[2020-05-27 17:01:03.691188655] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.691195270] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.715879214] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 255308662 }, requested_resume: None })
[2020-05-27 17:01:03.715930725] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: KeyboardInput { device_id: DeviceId(Wayland(DeviceId)), input: KeyboardInput { scancode: 28, state: Released, virtual_keycode: Some(Return), modifiers: (empty) }, is_synthetic: false } }
[2020-05-27 17:01:03.715950038] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.715960691] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.715977110] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 255407264 }, requested_resume: None })
[2020-05-27 17:01:03.715989276] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.715998601] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.795560861] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 334990519 }, requested_resume: None })
[2020-05-27 17:01:03.795598323] [INFO] glutin event: UserEvent(Wakeup)
[2020-05-27 17:01:03.795611230] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.795620127] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.796355828] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 335785693 }, requested_resume: None })
[2020-05-27 17:01:03.796385308] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.796396570] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.796657429] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 336087395 }, requested_resume: None })
[2020-05-27 17:01:03.798896414] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.798917991] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.803641267] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 343071104 }, requested_resume: None })
[2020-05-27 17:01:03.803668096] [INFO] glutin event: UserEvent(Wakeup)
[2020-05-27 17:01:03.803675626] [INFO] glutin event: UserEvent(Wakeup)
[2020-05-27 17:01:03.803681326] [INFO] glutin event: UserEvent(Wakeup)
[2020-05-27 17:01:03.803686567] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.803691973] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.804458136] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 343888268 }, requested_resume: None })
[2020-05-27 17:01:03.804484477] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.804490983] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.804511966] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 343942133 }, requested_resume: None })
[2020-05-27 17:01:03.804522166] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.804528292] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:03.821024889] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246289, tv_nsec: 360454548 }, requested_resume: None })
[2020-05-27 17:01:03.821083465] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:03.821093031] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:10.066735703] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246295, tv_nsec: 606164458 }, requested_resume: None })
[2020-05-27 17:01:10.066855115] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:10.066899478] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:10.213837830] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246295, tv_nsec: 753266843 }, requested_resume: None })
[2020-05-27 17:01:10.213937769] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:10.213969583] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:10.358091398] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246295, tv_nsec: 897520334 }, requested_resume: None })
[2020-05-27 17:01:10.358196747] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:10.358231570] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:10.417716803] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246295, tv_nsec: 957145573 }, requested_resume: None })
[2020-05-27 17:01:10.417829467] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:10.417859850] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:10.553702179] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246296, tv_nsec: 93131485 }, requested_resume: None })
[2020-05-27 17:01:10.553778413] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:10.553800138] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:14.362674413] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246299, tv_nsec: 902103918 }, requested_resume: None })
[2020-05-27 17:01:14.364814954] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: ModifiersChanged((empty)) }
[2020-05-27 17:01:14.364860964] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: Focused(false) }
[2020-05-27 17:01:14.364886739] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: Focused(true) }
[2020-05-27 17:01:14.364908778] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: ModifiersChanged((empty)) }
[2020-05-27 17:01:14.364929967] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:14.364950435] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:14.365363109] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246299, tv_nsec: 904793069 }, requested_resume: None })
[2020-05-27 17:01:14.365392209] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:14.365403471] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:14.418298398] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246299, tv_nsec: 957727700 }, requested_resume: None })
[2020-05-27 17:01:14.421884933] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: ModifiersChanged((empty)) }
[2020-05-27 17:01:14.421943031] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: Focused(false) }
[2020-05-27 17:01:14.421966366] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: Focused(true) }
[2020-05-27 17:01:14.422069324] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: ModifiersChanged((empty)) }
[2020-05-27 17:01:14.422137676] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:14.422157956] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:14.513273351] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246300, tv_nsec: 52703027 }, requested_resume: None })
[2020-05-27 17:01:14.513320475] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: ModifiersChanged((empty)) }
[2020-05-27 17:01:14.513337254] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: Focused(false) }
[2020-05-27 17:01:14.513349014] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: Focused(true) }
[2020-05-27 17:01:14.513359907] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: ModifiersChanged((empty)) }
[2020-05-27 17:01:14.513370957] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: ModifiersChanged((empty)) }
[2020-05-27 17:01:14.513382285] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: Focused(false) }
[2020-05-27 17:01:14.513392957] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: Focused(true) }
[2020-05-27 17:01:14.513403332] [INFO] glutin event: WindowEvent { window_id: WindowId(Wayland(WindowId(94279674437360))), event: ModifiersChanged((empty)) }
[2020-05-27 17:01:14.513423492] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:14.513433627] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:14.573382395] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246300, tv_nsec: 112811963 }, requested_resume: None })
[2020-05-27 17:01:14.573458133] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:14.573469803] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:14.573483139] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246300, tv_nsec: 112913348 }, requested_resume: None })
[2020-05-27 17:01:14.573494106] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:14.573501367] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:14.587507340] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246300, tv_nsec: 126937001 }, requested_resume: None })
[2020-05-27 17:01:14.587564965] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:14.587576723] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:16.486029511] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246302, tv_nsec: 25458414 }, requested_resume: None })
[2020-05-27 17:01:16.486150264] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:16.486195896] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:16.590121934] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246302, tv_nsec: 129550799 }, requested_resume: None })
[2020-05-27 17:01:16.590220810] [INFO] glutin event: MainEventsCleared
[2020-05-27 17:01:16.590245652] [INFO] glutin event: RedrawEventsCleared
[2020-05-27 17:01:16.590492266] [INFO] glutin event: NewEvents(WaitCancelled { start: Instant { tv_sec: 246302, tv_nsec: 129922366 }, requested_resume: None })

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

This is a wlroots issue (https://github.com/swaywm/wlroots/issues/2227). Submitting a PR in a bit.

Sure. Alacritty doesn’t crash anymore with this patch. The clipboard stopped working, but I guess that’s expected.

I forgot to mention a small detail, my mouse has a lot of buttons, part of them are actually exposed as a keyboard to the OS.

❯ ls /dev/input/by-id/usb-Logitech_Gaming_Mouse_G600_2F48875E6DD20017-*
/dev/input/by-id/usb-Logitech_Gaming_Mouse_G600_2F48875E6DD20017-event-if01
/dev/input/by-id/usb-Logitech_Gaming_Mouse_G600_2F48875E6DD20017-event-mouse
/dev/input/by-id/usb-Logitech_Gaming_Mouse_G600_2F48875E6DD20017-if01-event-kbd
/dev/input/by-id/usb-Logitech_Gaming_Mouse_G600_2F48875E6DD20017-mouse