Bug 419721 - KWin crashes when laptop goes to sleep
Summary: KWin crashes when laptop goes to sleep
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.16.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-04-06 13:56 UTC by olanti-p
Modified: 2021-11-21 11:23 UTC (History)
2 users (show)

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


Attachments
New crash information added by DrKonqi (7.05 KB, text/plain)
2020-04-19 07:12 UTC, LanMan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description olanti-p 2020-04-06 13:56:34 UTC
Application: kwin_x11 (5.16.5)

Qt Version: 5.12.4
Frameworks Version: 5.62.0
Operating System: Linux 5.3.0-45-generic x86_64
Distribution: Ubuntu 19.10

-- Information about the crash:
- What I was doing when the application crashed:
Closed laptop lid, waited for 5 minutes, opened laptop lid and logged in. Crash report was already there

The crash can be reproduced sometimes.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3d0c0a4d00 (LWP 1694))]

Thread 6 (Thread 0x7f3ceffff700 (LWP 4427)):
#0  0x00007f3d11a61ff3 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007f3d11a619a4 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f3d11a0b5cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f3d11844a45 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f3d11845c92 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f3d10db3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f3d12fac323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f3cef7fe700 (LWP 1845)):
#0  0x00007f3d10dba2c6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f3d113c8fb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  0x00007f3d10dba2c6 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7f3d113c8f68, cond=0x7f3d113c8f90) at pthread_cond_wait.c:508
#2  0x00007f3d10dba2c6 in __pthread_cond_wait (cond=0x7f3d113c8f90, mutex=0x7f3d113c8f68) at pthread_cond_wait.c:638
#3  0x00007f3d112d208a in  () at /lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f3d112d20af in  () at /lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f3d10db3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f3d12fac323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f3d0897e700 (LWP 1765)):
#0  0x00007f3d11a62d88 in QTimerInfoList::timerWait(timespec&) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007f3d11a61cec in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f3d11a0b5cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f3d11844a45 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f3d10553319 in  () at /lib/x86_64-linux-gnu/libQt5Qml.so.5
#5  0x00007f3d11845c92 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f3d10db3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#7  0x00007f3d12fac323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f3d0a79b700 (LWP 1729)):
#0  0x00007f3d12f9fd26 in __GI_ppoll (fds=0x7f3cfc00b3b8, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f3d11a60589 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f3d11a61af4 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f3d11a0b5cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f3d11844a45 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f3d0ff92efa in  () at /lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007f3d11845c92 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f3d10db3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#8  0x00007f3d12fac323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f3d0b6b7700 (LWP 1726)):
#0  0x00007f3d12f9fc2f in __GI___poll (fds=0x7f3d0b6b6c28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3d11769917 in  () at /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f3d1176b53a in xcb_wait_for_event () at /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f3d0b9ee288 in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f3d11845c92 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f3d10db3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f3d12fac323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f3d0c0a4d00 (LWP 1694)):
[KCrash Handler]
#6  0x00007f3d114e8969 in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#7  0x00007f3d114e8a29 in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#8  0x00007f3d114ea8b2 in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#9  0x00007f3d114eb29d in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#10 0x00007f3d12cea4c7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#11 0x00007f3d11452ab0 in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#12 0x00007f3d12cea4c7 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#13 0x00007f3d12cd8a4f in KWin::Scene::finalPaintWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#14 0x00007f3d12cea360 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007f3d114db73c in  () at /lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#16 0x00007f3d12cea307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#17 0x00007f3d1154d68f in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#18 0x00007f3d12cea307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#19 0x00007f3d1154d68f in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#20 0x00007f3d12cea307 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#21 0x00007f3d12cdf236 in KWin::Scene::paintWindow(KWin::Scene::Window*, int, QRegion, KWin::WindowQuadList) () at /lib/x86_64-linux-gnu/libkwin.so.5
#22 0x00007f3d12cdbc2d in KWin::Scene::paintSimpleScreen(int, QRegion) () at /lib/x86_64-linux-gnu/libkwin.so.5
#23 0x00007f3d08160357 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#24 0x00007f3d12cde800 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#25 0x00007f3d12cea0b2 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#26 0x00007f3d1154d5c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#27 0x00007f3d12cea061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#28 0x00007f3d1154d5c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#29 0x00007f3d12cea061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#30 0x00007f3d1154d5c3 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwineffects.so.12
#31 0x00007f3d12cea061 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#32 0x00007f3d12cde4b3 in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#33 0x00007f3d08168c7e in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#34 0x00007f3d12cd0247 in KWin::Compositor::performCompositing() () at /lib/x86_64-linux-gnu/libkwin.so.5
#35 0x00007f3d11a38de5 in QObject::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f3d12420a86 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007f3d12429e00 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007f3d11a0ca2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007f3d11a63990 in QTimerInfoList::activateTimers() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007f3d11a61c4f in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x00007f3d0b9ef642 in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#42 0x00007f3d11a0b5cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x00007f3d11a13336 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#44 0x00007f3d1308587d in kdemain () at /lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#45 0x00007f3d12eb11e3 in __libc_start_main (main=0x55dc33ead060, argc=3, argv=0x7ffd8bfad228, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd8bfad218) at ../csu/libc-start.c:308
#46 0x000055dc33ead09e in _start ()
[Inferior 1 (process 1694) detached]

Reported using DrKonqi
Comment 1 LanMan 2020-04-19 07:12:29 UTC
Created attachment 127680 [details]
New crash information added by DrKonqi

kwin_x11 (5.18.4) using Qt 5.14.2

- What I was doing when the application crashed:

Sent the laptop to sleep, woke it up a few hours later. Received an error message after logging on.

-- Backtrace (Reduced):
#6  0x00007fcd8eb55109 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#7  0x00007fcd8eb551c7 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#8  0x00007fcd8eb57062 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#9  0x00007fcd8eb5798b in  () at /usr/lib/libkwin4_effect_builtins.so.1
#10 0x00007fcd9047c370 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion const&, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
Comment 2 kde.org 2021-11-04 19:53:39 UTC
Thank you for reporting this bug. Unfortunately, the backtrace doesn't contain proper debugging information. Can you still reproduce this issue with KDE 5.23? If so, can you please install debugging packages following the info provided in  https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports, try to reproduce the bug and resubmit a backtrace with debugging information.
Comment 3 Bug Janitor Service 2021-11-19 04:38:57 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 olanti-p 2021-11-21 11:23:02 UTC
(In reply to kde.org from comment #2)
> Thank you for reporting this bug. Unfortunately, the backtrace doesn't
> contain proper debugging information. Can you still reproduce this issue
> with KDE 5.23? If so, can you please install debugging packages following
> the info provided in 
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports, try to reproduce the bug and resubmit a
> backtrace with debugging information.

Unfortunately it's been year and a half since the report, and in that time I've replaced that OS with a clean install of newer version, which included setting up graphics and drivers from scratch and in a different way. I have no idea how to get back to the old setup and reproduce the issue, but it is absent in the new setup (with KDE 5.18.5), so something helped.

I half-hoped that even without my setup available the backtrace and description by themselves would be enough to shed some light, but apparently that's not the case, so the issue can be closed I guess...