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

            Bug ID: 528862
           Summary: kwin_wayland crashes on startup in
                    InputRedirection::syncTabletWithMouse() during pointer
                    motion
    Classification: Plasma
           Product: kwin
      Version First unspecified
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: wayland-generic
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

## Description

KWin (Wayland) crashed with SIGSEGV during session startup, right after logging
in
following a reboot. The crash happens while InputRedirection is still being set
up
(Application::createInput -> setupInputBackends -> addInputBackend), when
libinput
delivers a pointer motion event. It looks like
PointerInputRedirection::processMotion()
calls InputRedirection::syncTabletWithMouse() before the tablet/input state is
fully
initialized.

There is no drawing tablet or pen attached. The only pointing device is the
built-in
Synaptics touchpad (SYNA2BA6:00 06CB:CEFE). The touchpad was probably moved
while the
session was loading.

KWin restarted on its own and the session kept working, but the crash also
caused
several imsettings D-Bus services to fail with exit status 1.

DrKonqi logged: "KCrash metadata not marked complete."

## Steps to reproduce

1. Reboot and log in to a Plasma Wayland session.
2. Move the touchpad while the session is starting.
3. kwin_wayland crashes once and restarts.

Reproducibility: seen once so far, right after a large system upgrade (~315
packages).

## System information

- Distro: Fedora 45 (KDE Plasma)
- Plasma / KWin: 6.8.3 (kwin-6.8.3-1.fc45)
- KDE Frameworks: 6.32.0
- Qt: 6.11.2
- libinput: 1.32.0
- Mesa: 26.2.6
- Kernel: 7.3.3-300.fc45.x86_64
- Session: Wayland
- Graphics: Hybrid laptop. NVIDIA GeForce RTX 4070 Max-Q (proprietary driver
620.70.06)
  + AMD Radeon 610M (Raphael iGPU)
- Input: Synaptics touchpad SYNA2BA6:00 06CB:CEFE, no tablet

## Backtrace (crashing thread)

```
#0  __pthread_kill_implementation (libc.so.6)
#1  raise (libc.so.6)
#2  KCrash::defaultCrashHandler(int) (libKF6Crash.so.6)
#3  __restore_rt (libc.so.6)
#4  KWin::InputRedirection::syncTabletWithMouse() const (libkwin.so.6 +
0x4a5194)
#5  KWin::PointerInputRedirection::processMotion(QPointF const&, QPointF
const&, std::chrono::microseconds, KWin::InputDevice*) (libkwin.so.6 +
0x54d344)
#6  doActivate<false>(QObject*, int, void**) (libQt6Core.so.6)
#7  KWin::InputDevice::pointerMotion(...) (libkwin.so.6 + 0x3b0768)
#8  KWin::LibInput::Connection::processEvents() (libkwin.so.6 + 0x746e12)
#9 
KWin::InputRedirection::addInputBackend(std::unique_ptr<KWin::InputBackend>&&)
(libkwin.so.6 + 0x4a76e3)
#10 KWin::InputRedirection::setupInputBackends() (libkwin.so.6 + 0x4a78cf)
#11 KWin::InputRedirection::InputRedirection(QObject*) (libkwin.so.6 +
0x4a0155)
#12 KWin::InputRedirection::create(QObject*) (libkwin.so.6 + 0x4a0229)
#13 KWin::Application::createInput() (libkwin.so.6 + 0x4e31cd)
#14 KWin::ApplicationWayland::performStartup() (kwin_wayland + 0x94161)
#15 KWin::Application::start() (libkwin.so.6)
#16 main (kwin_wayland)
```

Note: the trace has no debug symbols. If needed, I can install kwin-debuginfo
and
provide a symbolized backtrace with `coredumpctl gdb`.

## Attachment (optional)

~/.cache/kcrash-metadata/kwin_wayland.6faf4f005f1144bdb67b3206185f2cad.2457.ini

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

Reply via email to