https://bugs.kde.org/show_bug.cgi?id=528824
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #4 from [email protected] --- Same root cause, different crash path, and a deterministic reproducer. Fedora 45, kwin-6.8.3-1.fc45, Qt 6.11.2, KF 6.32.0, libinput 1.32.0, kernel 7.3.3-300.fc45, amdgpu. Started after upgrading from kwin 6.8.2-3. Device: Wacom Intuos Pro L (PTH-860, 056a:0358) on USB, with the pen resting on the tablet surface (tool in proximity). With the pen in proximity, kwin_wayland segfaults on every start, both in the SDDM greeter and in the user session: 12 crashes in one boot and no desktop. Lifting the pen off the tablet and restarting sddm gives a normal session. Here the event is a tablet tool event, not pointer motion, so the crash is in Workspace::activeOutput() rather than syncTabletWithMouse(): #4 KWin::Workspace::activeOutput() const (libkwin.so.6 + 0x67a684) #5 KWin::LibInput::tabletToolPosition(KWin::LibInput::TabletToolEvent*) (libkwin.so.6 + 0x73d3f7) #6 KWin::LibInput::Connection::processEvents() (libkwin.so.6 + 0x748163) #7 KWin::InputRedirection::addInputBackend(std::unique_ptr<KWin::InputBackend>&&) (libkwin.so.6 + 0x4a76e3) #8 KWin::InputRedirection::setupInputBackends() (libkwin.so.6 + 0x4a78cf) #9 KWin::InputRedirection::InputRedirection(QObject*) (libkwin.so.6 + 0x4a0155) #10 KWin::InputRedirection::create(QObject*) (libkwin.so.6 + 0x4a0229) #11 KWin::Application::createInput() (libkwin.so.6 + 0x4e31cd) #12 KWin::ApplicationWayland::performStartup() (kwin_wayland + 0x94161) #13 KWin::Application::start() (libkwin.so.6 + 0x4dd2c4) This fits the analysis in comment 3: processEvents() runs inside the InputRedirection constructor, and at that point the workspace does not exist yet either. A guard only in PointerInputRedirection::processMotion() would therefore not fix this path. The initial libinput queue should not be dispatched until startup has finished. Steps to reproduce: 1. Plug in a Wacom tablet and leave the pen lying on it. 2. Start kwin_wayland 6.8.3 (boot or log in). 3. kwin crashes every time until the pen is removed. -- You are receiving this mail because: You are watching all bug changes.
