Bug 513454 - Kwin crashes in KWin::LibInput::Connection::handleEvent() after switching screen off by lid
Summary: Kwin crashes in KWin::LibInput::Connection::handleEvent() after switching scr...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: libinput (other bugs)
Version First Reported In: 6.5.4
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-16 23:13 UTC by Dm
Modified: 2025-12-23 08:56 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dm 2025-12-16 23:13:58 UTC
SUMMARY
Kwin crashes after switching screen switched off and on by lid, if screen is off by delay, there was no bug

STEPS TO REPRODUCE
1. Set up the screen to switch off on lid closed
2. Close the lid
3. Open
4. Screen does not switch on
5. Press some keyboard buttons
6. Kwin crashes, and restarts

SOFTWARE/OS VERSIONS
Operating System: KDE neon User Edition
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.14.0-37-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 16 ГиБ of RAM (15.3 ГиБ usable)
Graphics Processor 1: Intel® UHD Graphics 630
Graphics Processor 2: NVIDIA GeForce GTX 1050 Ti with Max-Q Design
Manufacturer: Dell Inc.
Product Name: XPS 15 9570

ADDITIONAL INFORMATION
SDDM is set to start with Wayland (no x11)
Comment 1 David Redondo 2025-12-17 15:48:14 UTC
If something crashed, we need a backtrace of it so we can figure out what's going on. Can you please attach a backtrace of the crash using the coredumpctl command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?
Thanks!
Comment 2 Dm 2025-12-17 16:56:42 UTC
(In reply to David Redondo from comment #1)
> If something crashed, we need a backtrace of it so we can figure out what's
> going on. Can you please attach a backtrace of the crash using the
> coredumpctl command-line program, as detailed in
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?
> Thanks!

           PID: 1946 (kwin_wayland)
           UID: 1000 (dimetroseus)
           GID: 1000 (dimetroseus)
        Signal: 11 (SEGV)
     Timestamp: Wed 2025-12-17 01:52:20 MSK (18h ago)
  Command Line: /usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayland-fd 9 --xwayland-display :0 --xwayland-xauthority /run/user/1000/xauth_HVSRTm --xwayland
    Executable: /usr/bin/kwin_wayland
 Control Group: /user.slice/user-1000.slice/user@1000.service/session.slice/plasma-kwin_wayland.service
          Unit: user@1000.service
     User Unit: plasma-kwin_wayland.service
         Slice: user-1000.slice
     Owner UID: 1000 (dimetroseus)
       Boot ID: f24d13e35a954c81b51ff0a674682fc2
    Machine ID: 6d39e5bfa0cd4a92a94bcdcab45569ea
      Hostname: DellNote
       Storage: /var/lib/systemd/coredump/core.kwin_wayland.1000.f24d13e35a954c81b51ff0a674682fc2.1946.1765925540000000.zst (present)
  Size on Disk: 9.6M
       Message: Process 1946 (kwin_wayland) of user 1000 dumped core.
                
                Module libgomp.so.1 from deb gcc-14-14.2.0-4ubuntu2~24.04.amd64
                Module libgcc_s.so.1 from deb gcc-14-14.2.0-4ubuntu2~24.04.amd64
                Module libudev.so.1 from deb systemd-255.4-1ubuntu8.11.amd64
                Module libzstd.so.1 from deb libzstd-1.5.5+dfsg2-2build1.1.amd64
                Module libstdc++.so.6 from deb gcc-14-14.2.0-4ubuntu2~24.04.amd64
                Module libsystemd.so.0 from deb systemd-255.4-1ubuntu8.11.amd64
                Stack trace of thread 1994:
                #0  0x00007f4de3e9eb2c __pthread_kill_implementation (libc.so.6 + 0x9eb2c)
                #1  0x00007f4de3e4527e __GI_raise (libc.so.6 + 0x4527e)
                #2  0x00007f4de79fd5f6 _ZN6KCrash19defaultCrashHandlerEi (libKF6Crash.so.6 + 0x95f6)
                #3  0x00007f4de3e45330 __restore_rt (libc.so.6 + 0x45330)
                #4  0x00007f4de78899f8 n/a (libkwin.so.6 + 0x8899f8)
                #5  0x00007f4de75220f5 _ZN4KWin8LibInput10Connection11handleEventEv (libkwin.so.6 + 0x5220f5)
                #6  0x00007f4de4a9fc89 n/a (libQt6Core.so.6 + 0x49fc89)
                #7  0x00007f4de4b42563 _ZN15QSocketNotifier9activatedE17QSocketDescriptorNS_4TypeENS_14QPrivateSignalE (libQt6Core.so.6 + 0x542563)
                #8  0x00007f4de4b42700 _ZN15QSocketNotifier5eventEP6QEvent (libQt6Core.so.6 + 0x542700)
                #9  0x00007f4de5e3d68d _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0x63d68d)
                #10 0x00007f4de4ad6ec0 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x4d6ec0)
                #11 0x00007f4de488a544 n/a (libQt6Core.so.6 + 0x28a544)
                #12 0x00007f4de302c5c5 n/a (libglib-2.0.so.0 + 0x5d5c5)
                #13 0x00007f4de308b737 n/a (libglib-2.0.so.0 + 0xbc737)
                #14 0x00007f4de302ba63 g_main_context_iteration (libglib-2.0.so.0 + 0x5ca63)
                #15 0x00007f4de4886fef _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x286fef)
                #16 0x00007f4de4ae14e3 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x4e14e3)
                #17 0x00007f4de49e0d84 _ZN7QThread4execEv (libQt6Core.so.6 + 0x3e0d84)
                #18 0x00007f4de49a6f53 n/a (libQt6Core.so.6 + 0x3a6f53)
                #19 0x00007f4de3e9caa4 start_thread (libc.so.6 + 0x9caa4)
                #20 0x00007f4de3f29c6c __clone3 (libc.so.6 + 0x129c6c)
                
                Stack trace of thread 1993:
                #0  0x00007f4de3e98d71 __futex_abstimed_wait_common64 (libc.so.6 + 0x98d71)
                #1  0x00007f4de3e9b7ed __pthread_cond_wait_common (libc.so.6 + 0x9b7ed)
                #2  0x00007f4de74f6d20 n/a (libkwin.so.6 + 0x4f6d20)
                #3  0x00007f4de74f790a n/a (libkwin.so.6 + 0x4f790a)
                #4  0x00007f4de74ee776 n/a (libkwin.so.6 + 0x4ee776)
                #5  0x00007f4de3ea1ed3 __pthread_once_slow (libc.so.6 + 0xa1ed3)
                #6  0x00007f4de74f7aff n/a (libkwin.so.6 + 0x4f7aff)
                #7  0x00007f4de49e1f8a n/a (libQt6Core.so.6 + 0x3e1f8a)
                #8  0x00007f4de49a6f53 n/a (libQt6Core.so.6 + 0x3a6f53)
                #9  0x00007f4de3e9caa4 start_thread (libc.so.6 + 0x9caa4)
                #10 0x00007f4de3f29c6c __clone3 (libc.so.6 + 0x129c6c)
                
                Stack trace of thread 1946:
                #0  0x00007f4de3f1ba30 __GI_ppoll (libc.so.6 + 0x11ba30)
                #1  0x00007f4de49a11e5 _Z12qt_safe_pollP6pollfdm14QDeadlineTimer (libQt6Core.so.6 + 0x3a11e5)
                #2  0x00007f4de49a77b3 _ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3a77b3)
                #3  0x00007f4de556d532 _ZN23QUnixEventDispatcherQPA13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Gui.so.6 + 0x76d532)
                #4  0x00007f4de4ae14e3 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x4e14e3)
                #5  0x00007f4de4adb62f _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x4db62f)
                #6  0x00006172ce4bd74b n/a (kwin_wayland + 0x6174b)
                #7  0x00007f4de3e2a1ca __libc_start_call_main (libc.so.6 + 0x2a1ca)
                #8  0x00007f4de3e2a28b __libc_start_main_impl (libc.so.6 + 0x2a28b)
                #9  0x00006172ce4c38e5 n/a (kwin_wayland + 0x678e5)
                
                Stack trace of thread 2002:
                #0  0x00007f4de3e98d71 __futex_abstimed_wait_common64 (libc.so.6 + 0x98d71)
                #1  0x00007f4de3e9b7ed __pthread_cond_wait_common (libc.so.6 + 0x9b7ed)
                #2  0x00007f4dd579359d n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x59359d)
                #3  0x00007f4dd576054b n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x56054b)
                #4  0x00007f4dd57934cc n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x5934cc)
                #5  0x00007f4de3e9caa4 start_thread (libc.so.6 + 0x9caa4)
                #6  0x00007f4de3f29c6c __clone3 (libc.so.6 + 0x129c6c)
                
                Stack trace of thread 2004:
                #0  0x00007f4de3e98d71 __futex_abstimed_wait_common64 (libc.so.6 + 0x98d71)
                #1  0x00007f4de3e9b7ed __pthread_cond_wait_common (libc.so.6 + 0x9b7ed)
                #2  0x00007f4dd579359d n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x59359d)
                #3  0x00007f4dd576054b n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x56054b)
                #4  0x00007f4dd57934cc n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x5934cc)
                #5  0x00007f4de3e9caa4 start_thread (libc.so.6 + 0x9caa4)
                #6  0x00007f4de3f29c6c __clone3 (libc.so.6 + 0x129c6c)
                
                Stack trace of thread 1990:
                #0  0x00007f4de3e98d71 __futex_abstimed_wait_common64 (libc.so.6 + 0x98d71)
                #1  0x00007f4de3e9b7ed __pthread_cond_wait_common (libc.so.6 + 0x9b7ed)
                #2  0x00007f4dd579359d n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x59359d)
                #3  0x00007f4dd576054b n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x56054b)
                #4  0x00007f4dd57934cc n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x5934cc)
                #5  0x00007f4de3e9caa4 start_thread (libc.so.6 + 0x9caa4)
                #6  0x00007f4de3f29c6c __clone3 (libc.so.6 + 0x129c6c)
                
                Stack trace of thread 2001:
                #0  0x00007f4de3e98d71 __futex_abstimed_wait_common64 (libc.so.6 + 0x98d71)
                #1  0x00007f4de3e9b7ed __pthread_cond_wait_common (libc.so.6 + 0x9b7ed)
                #2  0x00007f4dd579359d n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x59359d)
                #3  0x00007f4dd576054b n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x56054b)
                #4  0x00007f4dd57934cc n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x5934cc)
                #5  0x00007f4de3e9caa4 start_thread (libc.so.6 + 0x9caa4)
                #6  0x00007f4de3f29c6c __clone3 (libc.so.6 + 0x129c6c)
                
                Stack trace of thread 2007:
                #0  0x00007f4de3f1b4fd __GI___poll (libc.so.6 + 0x11b4fd)
                #1  0x00007f4de308b68e n/a (libglib-2.0.so.0 + 0xbc68e)
                #2  0x00007f4de302ba63 g_main_context_iteration (libglib-2.0.so.0 + 0x5ca63)
                #3  0x00007f4de4886fef _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x286fef)
                #4  0x00007f4de4ae14e3 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x4e14e3)
                #5  0x00007f4de49e0d84 _ZN7QThread4execEv (libQt6Core.so.6 + 0x3e0d84)
                #6  0x00007f4de49a6f53 n/a (libQt6Core.so.6 + 0x3a6f53)
                #7  0x00007f4de3e9caa4 start_thread (libc.so.6 + 0x9caa4)
                #8  0x00007f4de3f29c6c __clone3 (libc.so.6 + 0x129c6c)
                
                Stack trace of thread 1991:
                #0  0x00007f4de3e98d71 __futex_abstimed_wait_common64 (libc.so.6 + 0x98d71)
                #1  0x00007f4de3e9b7ed __pthread_cond_wait_common (libc.so.6 + 0x9b7ed)
                #2  0x00007f4dd579359d n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x59359d)
                #3  0x00007f4dd576054b n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x56054b)
                #4  0x00007f4dd57934cc n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x5934cc)
                #5  0x00007f4de3e9caa4 start_thread (libc.so.6 + 0x9caa4)
                #6  0x00007f4de3f29c6c __clone3 (libc.so.6 + 0x129c6c)
                
                Stack trace of thread 2003:
                #0  0x00007f4de3e98d71 __futex_abstimed_wait_common64 (libc.so.6 + 0x98d71)
                #1  0x00007f4de3e9b7ed __pthread_cond_wait_common (libc.so.6 + 0x9b7ed)
                #2  0x00007f4dd579359d n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x59359d)
                #3  0x00007f4dd576054b n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x56054b)
                #4  0x00007f4dd57934cc n/a (libgallium-25.0.7-0ubuntu0.24.04.2.so + 0x5934cc)
                #5  0x00007f4de3e9caa4 start_thread (libc.so.6 + 0x9caa4)
                #6  0x00007f4de3f29c6c __clone3 (libc.so.6 + 0x129c6c)
                
                Stack trace of thread 1960:
                #0  0x00007f4de3f1b4fd __GI___poll (libc.so.6 + 0x11b4fd)
                #1  0x00007f4de308b68e n/a (libglib-2.0.so.0 + 0xbc68e)
                #2  0x00007f4de302ba63 g_main_context_iteration (libglib-2.0.so.0 + 0x5ca63)
                #3  0x00007f4de4886fef _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x286fef)
                #4  0x00007f4de4ae14e3 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x4e14e3)
                #5  0x00007f4de49e0d84 _ZN7QThread4execEv (libQt6Core.so.6 + 0x3e0d84)
                #6  0x00007f4de4de054d n/a (libQt6DBus.so.6 + 0xa154d)
                #7  0x00007f4de49a6f53 n/a (libQt6Core.so.6 + 0x3a6f53)
                #8  0x00007f4de3e9caa4 start_thread (libc.so.6 + 0x9caa4)
                #9  0x00007f4de3f29c6c __clone3 (libc.so.6 + 0x129c6c)
                ELF object binary architecture: AMD x86-64

GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/kwin_wayland...
(No debugging symbols found in /usr/bin/kwin_wayland)
[New LWP 1994]
[New LWP 1993]
[New LWP 1946]
[New LWP 2002]
[New LWP 2004]
[New LWP 1990]
[New LWP 2001]
[New LWP 2007]
[New LWP 1991]
[New LWP 2003]
[New LWP 1960]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayl'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __pthread_kill_implementation (no_tid=0, signo=11, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
[Current thread is 1 (Thread 0x7f4dcacd96c0 (LWP 1994))]
[?2004h(gdb) bt
[?2004l
#0  __pthread_kill_implementation (no_tid=0, signo=11, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=11, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ./nptl/pthread_kill.c:89
#3  0x00007f4de3e4527e in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#4  0x00007f4de79fd5f6 in KCrash::defaultCrashHandler(int) () from /lib/x86_64-linux-gnu/libKF6Crash.so.6
#5  <signal handler called>
#6  0x00007f4de78899f8 in ?? () from /lib/x86_64-linux-gnu/libkwin.so.6
#7  0x00007f4de3c204f8 in libinput_dispatch () from /lib/x86_64-linux-gnu/libinput.so.10
#8  0x00007f4de75220f5 in KWin::LibInput::Connection::handleEvent() () from /lib/x86_64-linux-gnu/libkwin.so.6
#9  0x00007f4de4a9fc89 in ?? () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#10 0x00007f4de4b42563 in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal)
    () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#11 0x00007f4de4b42700 in QSocketNotifier::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#12 0x00007f4de5e3d68d in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#13 0x00007f4de4ad6ec0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#14 0x00007f4de488a544 in ?? () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#15 0x00007f4de302c5c5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007f4de308b737 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f4de302ba63 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f4de4886fef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /lib/x86_64-linux-gnu/libQt6Core.so.6
#19 0x00007f4de4ae14e3 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#20 0x00007f4de49e0d84 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#21 0x00007f4de49a6f53 in ?? () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#22 0x00007f4de3e9caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#23 0x00007f4de3f29c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
[?2004h(gdb) q
[?2004l
Comment 3 TraceyC 2025-12-22 21:56:51 UTC
Thanks for the backtrace.

The backtrace looks related to bug 501073, which was thought to be fixed in 6.4