https://bugs.kde.org/show_bug.cgi?id=529271

            Bug ID: 529271
           Summary: kwin_wayland crashes in
                    InputRedirection::syncTabletWithMouse at startup with
                    drawing tablet connected (regression in 6.8.3)
    Classification: Plasma
           Product: kwin
      Version First 6.8.3
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Application: kwin_wayland (6.8.3)

ApplicationNotResponding [ANR]: false
Qt Version: 6.11.2
Frameworks Version: 6.32.0
Operating System: Linux 7.3.4-300.fc45.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 45 (KDE Plasma Desktop Edition)"
DrKonqi: 6.8.3 [CoredumpBackend]

-- Information about the crash:
Since updating to KWin 6.8.3 (installed 2026-11-16), kwin_wayland segfaults in
InputRedirection::syncTabletWithMouse(), called from
PointerInputRedirection::processMotion(), during startup (performStartup ->
createInput -> setupInputBackends) when a UGTABLET / XP-Pen Deco 01 V3 drawing
tablet (USB 28bd:0947) is connected. No crashes occurred with 6.8.1 (Nov 7-16)
with the same libinput 1.32.0.

The tablet has "Sync with mouse pointer" enabled in System Settings -> Drawing
Tablet, which matches the crashing function.

The same crash, with an identical backtrace, happened 3 times:
- 2026-11-17 17:13 (user session)
- 2026-11-22 03:09 (plasma-login greeter's KWin instance; the greeter and
wallpaper then aborted because the Wayland compositor was gone)
- 2026-11-22 17:17 (user session startup, this report)

What I was doing: I was browsing in Firefox and clicked a link a friend had
sent me in WhatsApp Web. Suddenly all input devices stopped responding
(keyboard, mouse and tablet, on every USB port), including VT switching
(Ctrl+Alt+F3). The display kept working normally: pressing the power button
still showed the Plasma logout screen. I had to hard power off. After
rebooting, KWin crashed during session startup with the tablet connected, which
produced this report.

Workaround: unplugging the tablet before boot and plugging it in after login.

System: Fedora 45, KWin 6.8.3-1.fc45, Plasma 6.8.3, KF 6.32.0, Qt 6.11.2,
libinput 1.32.0, Mesa 26.2.7, AMD GPU, Wayland.

Note: the backtrace shows syncTabletWithMouse() being called with this=0x0
while InputRedirection is still being constructed
(InputRedirection::InputRedirection → setupInputBackends → addInputBackend →
processEvents). A pointer motion event is apparently dispatched before the
InputRedirection singleton is assigned.

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#5  KWin::InputRedirection::syncTabletWithMouse (this=0x0) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/input.cpp:3383
#6  0x00007fec56f4d344 in KWin::PointerInputRedirection::processMotion
(this=0x55cb051bcb50, delta=..., deltaNonAccelerated=..., time=...,
device=0x55cb055f92d0) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/pointer_input.cpp:252
#7  0x00007fec53dfaa37 in QtPrivate::QSlotObjectBase::call (this=<optimized
out>, r=0x55cb051bcb50, a=<optimized out>) at
/usr/src/debug/qt6-qtbase-6.11.2-3.fc45.x86_64/src/corelib/kernel/qobjectdefs_impl.h:462
#8  doActivate<false> (sender=<optimized out>, signal_index=<optimized out>,
argv=argv@entry=0x7ffd98e7aad0) at
/usr/src/debug/qt6-qtbase-6.11.2-3.fc45.x86_64/src/corelib/kernel/qobject.cpp:4393
[...]
#11 KWin::InputDevice::pointerMotion (this=<optimized out>, _t1=..., _t2=...,
_t3=std::chrono::duration = { 43095701us }, _t4=<optimized out>) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/redhat-linux-build/src/kwin_autogen/include/moc_inputdevice.cpp:738
#12 0x00007fec57146e12 in KWin::LibInput::Connection::processEvents
(this=0x55cb054a9f30) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/backends/libinput/connection.cpp:390
#13 0x00007fec56ea76e3 in KWin::InputRedirection::addInputBackend
(this=this@entry=0x55cb05198510, inputBackend=...) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/input.cpp:3376
#14 0x00007fec56ea78cf in KWin::InputRedirection::setupInputBackends
(this=0x55cb05198510) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/input.cpp:3390
#15 0x00007fec56ea0155 in KWin::InputRedirection::InputRedirection
(this=0x55cb05198510, parent=<optimized out>, this=<optimized out>,
parent=<optimized out>) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/input.cpp:2938
#16 0x00007fec56ea0229 in KWin::InputRedirection::create
(parent=0x7ffd98e7b550) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/input.cpp:2926
#17 0x00007fec56ee31cd in KWin::Application::createInput (this=<optimized out>)
at /usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/main.cpp:243
#18 0x000055caeb0e9161 in KWin::ApplicationWayland::performStartup
(this=0x7ffd98e7b550) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/main_wayland.cpp:150
#19 0x00007fec56edd2c4 in KWin::Application::start
(this=this@entry=0x7ffd98e7b550) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/main.cpp:115
#20 0x000055caeb0dea51 in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/kwin-6.8.3-1.fc45.x86_64/src/main_wayland.cpp:709


Reported using DrKonqi

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to