Open sullyj3 opened 3 weeks ago
The log indicates it crashes at the pointer.motion()
call:
pub fn move_cursor(&mut self, location: Point<f64, Logical>) {
let under = self.niri.surface_under_and_global_space(location);
self.niri
.maybe_activate_pointer_constraint(location, &under);
self.niri.pointer_focus.clone_from(&under);
let pointer = &self.niri.seat.get_pointer().unwrap();
pointer.motion(
self,
under.surface,
&MotionEvent {
location,
serial: SERIAL_COUNTER.next_serial(),
time: get_monotonic_time().as_millis() as u32,
},
);
pointer.frame(self);
// We moved the pointer, show it.
self.niri.pointer_hidden = false;
// FIXME: granular
self.niri.queue_redraw_all();
}
Is this a smithay bug?
Uhh, huh. I guess it's trying to send leave
to the just-destroyed surface? This might be a Smithay bug, yeah, probably worth bringing it up there.
Niri occasionally panics when closing a window.
I'm not sure exactly how to repro. It's happened 3 or 4 times so far. So far I've only had it happen with wezterm, but that's the window I open and close most frequently.
``` Jun 12 13:57:02 dorian niri[588410]: thread 'main' panicked at /home/james/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wayland-backend-0.3.3/src/sys/server_impl/mod.rs:1097:56: Jun 12 13:57:02 dorian niri[588410]: called `Result::unwrap()` on an `Err` value: InvalidId Jun 12 13:57:02 dorian niri[588410]: stack backtrace: Jun 12 13:57:02 dorian niri[588410]: 0: rust_begin_unwind Jun 12 13:57:02 dorian niri[588410]: at /rustc/36153f1a4e3162f0a143c7b3e468ecb3beb0008e/library/std/src/panicking.rs:652:5 Jun 12 13:57:02 dorian niri[588410]: 1: core::panicking::panic_fmt Jun 12 13:57:02 dorian niri[588410]: at /rustc/36153f1a4e3162f0a143c7b3e468ecb3beb0008e/library/core/src/panicking.rs:72:14 Jun 12 13:57:02 dorian niri[588410]: 2: core::result::unwrap_failed Jun 12 13:57:02 dorian niri[588410]: at /rustc/36153f1a4e3162f0a143c7b3e468ecb3beb0008e/library/core/src/result.rs:1658:5 Jun 12 13:57:02 dorian niri[588410]: 3: unwrapjournalctl --user -u niri --since "10 minutes ago" > niri.log
System Information
11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz