Bug 429532 - kwin_x11 crashes after waking up from sleep (GPU is NVidia)
Summary: kwin_x11 crashes after waking up from sleep (GPU is NVidia)
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.12.9
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-11-23 06:24 UTC by KozlovN
Modified: 2021-12-04 04:38 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KozlovN 2020-11-23 06:24:37 UTC
Application: kwin_x11 (5.12.9)

Qt Version: 5.9.5
Frameworks Version: 5.44.0
Operating System: Linux 5.4.0-54-generic x86_64
Distribution: Ubuntu 18.04.5 LTS

-- Information about the crash:
- What I was doing when the application crashed:

Before Kwin crashed the system was sent to suspend to RAM and then resumed. Besides, a plasma-related bug (which reproduces practically every time the system is resumed from suspend to RAM) accompanied it: the text below the icons on the desktop is replaced with black rectangles overlapped with white spotted rectangles.

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 0x7fbab9bebcc0 (LWP 10374))]

Thread 5 (Thread 0x7fba7bfff700 (LWP 10671)):
#0  0x00007fbab25b5ad3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fbab5b4cfb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fbab25b5ad3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x7fbab5b4cf68, cond=0x7fbab5b4cf90) at pthread_cond_wait.c:502
#2  0x00007fbab25b5ad3 in __pthread_cond_wait (cond=0x7fbab5b4cf90, mutex=0x7fbab5b4cf68) at pthread_cond_wait.c:655
#3  0x00007fbab58565f4 in  () at /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007fbab5856639 in  () at /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007fbab25af6db in start_thread (arg=0x7fba7bfff700) at pthread_create.c:463
#6  0x00007fbab955671f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fba8f9bf700 (LWP 10599)):
#0  0x00007fbab9549db6 in __GI_ppoll (fds=0x7fba88000d28, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007fbab694b561 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fbab694cc7e in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fbab68f490a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fbab671323a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fbab109b6f5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007fbab671817d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fbab25af6db in start_thread (arg=0x7fba8f9bf700) at pthread_create.c:463
#8  0x00007fbab955671f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fba9dad6700 (LWP 10508)):
#0  0x00007fbab9549db6 in __GI_ppoll (fds=0x7fba9000af78, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007fbab694b561 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fbab694cc7e in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fbab68f490a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fbab671323a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fbaaff74d45 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007fbab671817d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fbab25af6db in start_thread (arg=0x7fba9dad6700) at pthread_create.c:463
#8  0x00007fbab955671f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fbaa0131700 (LWP 10410)):
#0  0x00007fbab9549cb9 in __GI___poll (fds=0x7fbaa0130c68, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fbab8453747 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fbab845536a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fbaa10105e9 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fbab671817d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fbab25af6db in start_thread (arg=0x7fbaa0131700) at pthread_create.c:463
#6  0x00007fbab955671f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fbab9bebcc0 (LWP 10374)):
[KCrash Handler]
#6  0x00007fbab5e5f06e in  () at /usr/lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#7  0x00007fbab5e5f144 in  () at /usr/lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#8  0x00007fbab5e606a5 in  () at /usr/lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#9  0x00007fbab5e6109b in  () at /usr/lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#10 0x00007fbab90b891e in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#11 0x00007fbab5dd03cd in  () at /usr/lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#12 0x00007fbab90b891e in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#13 0x00007fbab90a4890 in KWin::Scene::finalPaintWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#14 0x00007fbab90b87ad in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007fbab5e5030a in  () at /usr/lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#16 0x00007fbab90b874e in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#17 0x00007fbab60bf4b0 in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#18 0x00007fbab90b874e in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#19 0x00007fbab60bf4b0 in KWin::Effect::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#20 0x00007fbab90b874e in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#21 0x00007fbab90aac02 in KWin::Scene::paintWindow(KWin::Scene::Window*, int, QRegion, KWin::WindowQuadList) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#22 0x00007fbab90a997c in KWin::Scene::paintSimpleScreen(int, QRegion) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#23 0x00007fba8d994c92 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#24 0x00007fbab90aa197 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#25 0x00007fbab90b8505 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#26 0x00007fbab60bf401 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#27 0x00007fbab90b84ad in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#28 0x00007fbab60bf401 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#29 0x00007fbab90b84ad in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#30 0x00007fbab60bf401 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#31 0x00007fbab90b84ad in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#32 0x00007fbab90a9e8e in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#33 0x00007fba8d99a541 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kwin.scenes/KWinSceneOpenGL.so
#34 0x00007fbab909c412 in KWin::Compositor::performCompositing() () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#35 0x00007fbab692607b in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007fbab767483c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007fbab767c104 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007fbab68f68d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007fbab694ed2e in QTimerInfoList::activateTimers() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007fbab694cee2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x00007fbaa107566d in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#42 0x00007fbab68f490a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x00007fbab68fd9b4 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#44 0x00007fbab982edbb in kdemain () at /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#45 0x00007fbab9456bf7 in __libc_start_main (main=0x5583b99a0730, argc=1, argv=0x7ffe2b0ddff8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe2b0ddfe8) at ../csu/libc-start.c:310
#46 0x00005583b99a076a in _start ()

Reported using DrKonqi
Comment 1 Mathieu Jobin 2021-01-02 22:49:40 UTC
Although 18.04 is still supported the kwin team is very small. It would be useful to know if this can be tested with 20.10 ? If the bug is fixed, someone could attempt to backport to 5.12, although I'm unsure that's feasible.

- first please try disabling desktop effects
- next try with plasma 5.19+
Comment 2 kde.org 2021-11-04 21:19:25 UTC
This bug report is quite old and unfortunately lacks proper debug 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 submit a backtrace with debugging information.
Comment 3 Bug Janitor Service 2021-11-19 04:39:10 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 Bug Janitor Service 2021-12-04 04:38:57 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!