Bug 422489

Summary: Crash when unlocking from lockscreen
Product: [Plasma] kwin Reporter: bertil.bonus
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: bertil.bonus, kde.org
Priority: NOR Keywords: drkonqi
Version: 5.18.5   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description bertil.bonus 2020-06-05 15:22:43 UTC
Application: kwin_x11 (5.18.5)

Qt Version: 5.14.2
Frameworks Version: 5.70.0
Operating System: Linux 5.3.0-53-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.18

-- Information about the crash:
- What I was doing when the application crashed:
Wine 4.0 fullscreen app with diffrent resolution gets lockscreen at original res. Then crash when unlocking.

- Unusual behavior I noticed:
Buggy when wine fullscreen at diffrent resolution from original desctop.

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 0x7f1872395040 (LWP 2295))]

Thread 7 (Thread 0x7f1850aeb700 (LWP 20233)):
#0  0x00007f1871ce4cf6 in __GI_ppoll (fds=fds@entry=0x7f18440a1068, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f186ee844e1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f18440a1068) at kernel/qcore_unix.cpp:132
#3  qt_safe_poll (fds=0x7f18440a1068, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#4  0x00007f186ee85ca2 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f186ee27d2a in QEventLoop::exec (this=this@entry=0x7f1850aeada0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f186ec38757 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#7  0x00007f186ec39c2c in QThreadPrivate::start (arg=0x5592283d4f80) at thread/qthread_unix.cpp:342
#8  0x00007f186ac9d6db in start_thread (arg=0x7f1850aeb700) at pthread_create.c:463
#9  0x00007f1871cf188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f1848974700 (LWP 7932)):
[KCrash Handler]
#4  0x00007f185a992b2f in QXcbIntegration::createPlatformOpenGLContext (this=<optimized out>, context=0x559229a52420) at qxcbintegration.cpp:285
#5  0x00007f186f46999f in QOpenGLContext::create (this=0x559229a52420) at kernel/qopenglcontext.cpp:612
#6  0x00007f1869dec219 in QSGRenderThread::sync (this=this@entry=0x559229738530, inExpose=inExpose@entry=true, inGrab=inGrab@entry=false) at scenegraph/qsgthreadedrenderloop.cpp:615
#7  0x00007f1869dee522 in QSGRenderThread::syncAndRender (this=this@entry=0x559229738530, grabImage=grabImage@entry=0x0) at scenegraph/qsgthreadedrenderloop.cpp:764
#8  0x00007f1869df264f in QSGRenderThread::run (this=0x559229738530) at scenegraph/qsgthreadedrenderloop.cpp:980
#9  0x00007f186ec39c2c in QThreadPrivate::start (arg=0x559229738530) at thread/qthread_unix.cpp:342
#10 0x00007f186ac9d6db in start_thread (arg=0x7f1848974700) at pthread_create.c:463
#11 0x00007f1871cf188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f183deca700 (LWP 2681)):
#0  0x00007f1871ce4cf6 in __GI_ppoll (fds=fds@entry=0x7f1838000d38, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f186ee844e1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f1838000d38) at kernel/qcore_unix.cpp:132
#3  qt_safe_poll (fds=0x7f1838000d38, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#4  0x00007f186ee85ca2 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f186ee27d2a in QEventLoop::exec (this=this@entry=0x7f183dec9d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f186ec38757 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#7  0x00007f186989efc5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f186ec39c2c in QThreadPrivate::start (arg=0x559227f3e340) at thread/qthread_unix.cpp:342
#9  0x00007f186ac9d6db in start_thread (arg=0x7f183deca700) at pthread_create.c:463
#10 0x00007f1871cf188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f184a771700 (LWP 2577)):
#0  0x00007f186aca39f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f186e07bfb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f186e07bf68, cond=0x7f186e07bf90) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f186e07bf90, mutex=0x7f186e07bf68) at pthread_cond_wait.c:655
#3  0x00007f186dd86934 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f186dd86979 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f186ac9d6db in start_thread (arg=0x7f184a771700) at pthread_create.c:463
#6  0x00007f1871cf188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f184bbdb700 (LWP 2494)):
#0  0x00007f1871ce4cf6 in __GI_ppoll (fds=fds@entry=0x7f1840000cf8, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f186ee844e1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f1840000cf8) at kernel/qcore_unix.cpp:132
#3  qt_safe_poll (fds=0x7f1840000cf8, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#4  0x00007f186ee85ca2 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f186ee27d2a in QEventLoop::exec (this=this@entry=0x7f184bbdad80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f186ec38757 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#7  0x00007f186989efc5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f186ec39c2c in QThreadPrivate::start (arg=0x559227bd06c0) at thread/qthread_unix.cpp:342
#9  0x00007f186ac9d6db in start_thread (arg=0x7f184bbdb700) at pthread_create.c:463
#10 0x00007f1871cf188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f1852998700 (LWP 2389)):
#0  0x00007f1871ce4cf6 in __GI_ppoll (fds=fds@entry=0x7f184c00f7e8, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f186ee844e1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f184c00f7e8) at kernel/qcore_unix.cpp:132
#3  qt_safe_poll (fds=0x7f184c00f7e8, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#4  0x00007f186ee85ca2 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f186ee27d2a in QEventLoop::exec (this=this@entry=0x7f1852997d70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f186ec38757 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#7  0x00007f1870b37555 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007f186ec39c2c in QThreadPrivate::start (arg=0x7f1870dafda0) at thread/qthread_unix.cpp:342
#9  0x00007f186ac9d6db in start_thread (arg=0x7f1852998700) at pthread_create.c:463
#10 0x00007f1871cf188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f1872395040 (LWP 2295)):
#0  0x00007f186aca39f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5592281136d4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x559228113680, cond=0x5592281136a8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x5592281136a8, mutex=0x559228113680) at pthread_cond_wait.c:655
#3  0x00007f186ec401db in QWaitConditionPrivate::wait (deadline=..., this=0x559228113680) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x559229738588, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f186ec40359 in QWaitCondition::wait (this=0x559229738590, mutex=0x559229738588, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:208
#6  0x00007f1869def1dd in QSGThreadedRenderLoop::polishAndSync (this=this@entry=0x5592296d4a70, w=<optimized out>, w@entry=0x559229b7fad0, inExpose=inExpose@entry=true) at scenegraph/qsgthreadedrenderloop.cpp:1544
#7  0x00007f1869df18bb in QSGThreadedRenderLoop::handleExposure (this=this@entry=0x5592296d4a70, window=window@entry=0x55922936c400) at scenegraph/qsgthreadedrenderloop.cpp:1321
#8  0x00007f1869df201b in QSGThreadedRenderLoop::exposureChanged (this=0x5592296d4a70, window=0x55922936c400) at scenegraph/qsgthreadedrenderloop.cpp:1216
#9  0x00007f186f431c05 in QWindow::event (this=this@entry=0x55922936c400, ev=ev@entry=0x7fff5fa633d0) at kernel/qwindow.cpp:2363
#10 0x00007f1869e54975 in QQuickWindow::event (this=0x55922936c400, e=0x7fff5fa633d0) at items/qquickwindow.cpp:1773
#11 0x00007f1833dccadb in PlasmaQuick::Dialog::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libKF5PlasmaQuick.so.5
#12 0x00007f186fd189ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f186fd1fbb0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f186ee294a8 in QCoreApplication::notifyInternal2 (receiver=0x55922936c400, event=0x7fff5fa633d0) at kernel/qcoreapplication.cpp:1075
#15 0x00007f186ee2968e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x55922936c400, event=event@entry=0x7fff5fa633d0) at kernel/qcoreapplication.cpp:1482
#16 0x00007f186f427817 in QGuiApplicationPrivate::processExposeEvent (e=0x5592284f5590) at kernel/qguiapplication.cpp:3182
#17 0x00007f186f427a7d in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x5592284f5590) at kernel/qguiapplication.cpp:2003
#18 0x00007f186f4001cb in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:1170
#19 0x00007f185a9b6333 in QXcbUnixEventDispatcher::processEvents (this=0x559227b3f980, flags=...) at qxcbeventdispatcher.cpp:63
#20 0x00007f186ee27d2a in QEventLoop::exec (this=this@entry=0x7fff5fa63570, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#21 0x00007f186ee314a0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1383
#22 0x00007f1871fc930d in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#23 0x00007f1871bf1b97 in __libc_start_main (main=0x55922705d720, argc=1, argv=0x7fff5fa637f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff5fa637e8) at ../csu/libc-start.c:310
#24 0x000055922705d75a in _start ()

Possible duplicates by query: bug 422283, bug 417796, bug 416886, bug 415485, bug 414805.

Reported using DrKonqi
Comment 1 bertil.bonus 2020-06-16 16:03:03 UTC
Created attachment 129422 [details]
New crash information added by DrKonqi

kwin_x11 (5.19.0) using Qt 5.14.2

- What I was doing when the application crashed:
sitched monitors on. Then unlocked. 

- Unusual behavior I noticed:
Computer did not suspen even if ther monitors were switched off.

-- Backtrace (Reduced):
#4  QXcbIntegration::createPlatformOpenGLContext (this=<optimized out>, context=0x559515de7970) at qxcbintegration.cpp:280
#5  0x00007ff60a63e99f in QOpenGLContext::create (this=0x559515de7970) at kernel/qopenglcontext.cpp:612
#6  0x00007ff604aeb219 in QSGRenderThread::sync (this=this@entry=0x7ff5ec014550, inExpose=inExpose@entry=true, inGrab=inGrab@entry=false) at scenegraph/qsgthreadedrenderloop.cpp:615
#7  0x00007ff604aed522 in QSGRenderThread::syncAndRender (this=this@entry=0x7ff5ec014550, grabImage=grabImage@entry=0x0) at scenegraph/qsgthreadedrenderloop.cpp:764
#8  0x00007ff604af164f in QSGRenderThread::run (this=0x7ff5ec014550) at scenegraph/qsgthreadedrenderloop.cpp:980
Comment 2 kde.org 2021-11-04 20:43:05 UTC
This bug report is quite old. Can you still reproduce this issue with KDE 5.23? If so, can you please submit a new backtrace with debugging information for this version?
Comment 3 Bug Janitor Service 2021-11-19 04:39:02 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:48 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!