Bug 418214

Summary: KWin crashed
Product: [Plasma] kwin Reporter: liuheqi
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash CC: danratje, derigs260181, kde, nate, zha.al
Priority: NOR Keywords: drkonqi
Version: 5.18.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description liuheqi 2020-02-26 10:48:18 UTC
Application: kwin_x11 (5.18.1)

Qt Version: 5.14.1
Frameworks Version: 5.67.0
Operating System: Linux 5.5.5-1-default x86_64
Windowing system: X11
Distribution: openSUSE Tumbleweed

-- Information about the crash:
- What I was doing when the application crashed:
I was trying to open plasmashell setting. The screen flash few seconds, then  I  see crash in tray.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KWin (kwin_x11), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4bc8d6d440 (LWP 9100))]

Thread 6 (Thread 0x7f4ba8df5700 (LWP 9116)):
#0  0x00007f4bcbd20795 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4bcc1f11ea in ?? () from /usr/lib64/libQt5Script.so.5
#2  0x00007f4bcc1f120b in ?? () from /usr/lib64/libQt5Script.so.5
#3  0x00007f4bcbd19efa in start_thread () from /lib64/libpthread.so.0
#4  0x00007f4bcdf5e3bf in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f4baa036700 (LWP 9112)):
#0  0x00007f4bcdf53bc6 in ppoll () from /lib64/libc.so.6
#1  0x00007f4bcc90ecd9 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f4ba4000d38) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f4ba4000d38) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7f4ba4000d38, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007f4bcc9102e3 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007f4bcc8babfb in QEventLoop::exec (this=this@entry=0x7f4baa035d80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f4bcc6e562e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f4bcb4536e5 in ?? () from /usr/lib64/libQt5Qml.so.5
#9  0x00007f4bcc6e66f8 in QThreadPrivate::start (arg=0x55f744a86790) at thread/qthread_unix.cpp:342
#10 0x00007f4bcbd19efa in start_thread () from /lib64/libpthread.so.0
#11 0x00007f4bcdf5e3bf in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f4bb7fff700 (LWP 9111)):
#0  0x00007f4bcdf53bc6 in ppoll () from /lib64/libc.so.6
#1  0x00007f4bcc90ecd9 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f4bb0000d38) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f4bb0000d38) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7f4bb0000d38, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007f4bcc9102e3 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007f4bcc8babfb in QEventLoop::exec (this=this@entry=0x7f4bb7ffed80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f4bcc6e562e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f4bcb4536e5 in ?? () from /usr/lib64/libQt5Qml.so.5
#9  0x00007f4bcc6e66f8 in QThreadPrivate::start (arg=0x55f744036860) at thread/qthread_unix.cpp:342
#10 0x00007f4bcbd19efa in start_thread () from /lib64/libpthread.so.0
#11 0x00007f4bcdf5e3bf in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f4bc60f1700 (LWP 9105)):
#0  0x00007f4bcdf53bc6 in ppoll () from /lib64/libc.so.6
#1  0x00007f4bcc90ecd9 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x55f743e8e5d8) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x55f743e8e5d8) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x55f743e8e5d8, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007f4bcc9102e3 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007f4bcc8babfb in QEventLoop::exec (this=this@entry=0x7f4bc60f0d70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f4bcc6e562e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f4bcd9f0507 in ?? () from /usr/lib64/libQt5DBus.so.5
#9  0x00007f4bcc6e66f8 in QThreadPrivate::start (arg=0x7f4bcda72da0) at thread/qthread_unix.cpp:342
#10 0x00007f4bcbd19efa in start_thread () from /lib64/libpthread.so.0
#11 0x00007f4bcdf5e3bf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f4bc6d2f700 (LWP 9104)):
#0  0x00007f4bcdf53acf in poll () from /lib64/libc.so.6
#1  0x00007f4bcc603752 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f4bcc60440a in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f4bc6e9aab0 in QXcbEventQueue::run (this=0x55f743d3c390) at qxcbeventqueue.cpp:228
#4  0x00007f4bcc6e66f8 in QThreadPrivate::start (arg=0x55f743d3c390) at thread/qthread_unix.cpp:342
#5  0x00007f4bcbd19efa in start_thread () from /lib64/libpthread.so.0
#6  0x00007f4bcdf5e3bf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f4bc8d6d440 (LWP 9100)):
[KCrash Handler]
#6  0x00007f4bcde9aea1 in raise () from /lib64/libc.so.6
#7  0x00007f4bcde8453d in abort () from /lib64/libc.so.6
#8  0x00007f4baf3f9918 in vmw_ioctl_command (throttle_us=0, flags=<optimized out>, imported_fence_fd=<optimized out>, pfence=0x7ffcc8601928, size=<optimized out>, commands=0x55f74429da78, cid=<optimized out>, vws=0x55f7442edbf0) at ../src/gallium/winsys/svga/drm/vmw_context.c:213
#9  vmw_swc_flush (swc=0x55f74429d9b0, pfence=0x7ffcc86019f0) at ../src/gallium/winsys/svga/drm/vmw_context.c:238
#10 0x00007f4baf415158 in svga_context_flush (svga=0x55f74441c980, pfence=0x0) at ../src/gallium/drivers/svga/svga_context.c:379
#11 0x00007f4baf254ff4 in st_glFlush (ctx=<optimized out>) at ../src/mesa/state_tracker/st_cb_flush.c:100
#12 0x00007f4baf33f050 in _mesa_make_current (newCtx=0x0, drawBuffer=0x0, readBuffer=0x0) at ../src/mesa/main/context.c:1723
#13 0x00007f4baf3487ab in st_api_make_current (stapi=<optimized out>, stctxi=<optimized out>, stdrawi=<optimized out>, streadi=<optimized out>) at ../src/mesa/state_tracker/st_manager.c:1111
#14 0x00007f4baf7ddb25 in dri_unbind_context (cPriv=<optimized out>) at ../src/gallium/state_trackers/dri/dri_context.c:268
#15 0x00007f4baf7dadaa in driUnbindContext (pcp=0x55f7453b48e0) at ../src/mesa/drivers/dri/common/dri_util.c:617
#16 0x00007f4bb553fa6d in MakeContextCurrent (dpy=0x55f743d26ca0, draw=0, read=0, gc_user=0x0) at ../src/glx/glxcurrent.c:206
#17 0x00007f4bc9956d13 in InternalLoseCurrent () at libglx.c:837
#18 0x00007f4bc995ac16 in CommonMakeCurrent (dpy=0x55f743d26ca0, draw=0, read=<optimized out>, context=<optimized out>, callerOpcode=<optimized out>) at libglx.c:1067
#19 0x00007f4bc418df49 in QGLXContext::doneCurrent (this=0x55f7448e5080) at qglxintegration.cpp:621
#20 0x00007f4bccd116c7 in QOpenGLContext::doneCurrent (this=0x55f7453065a0) at kernel/qopenglcontext.cpp:1055
#21 0x00007f4bcbb4ab5c in KWin::EffectQuickView::EffectQuickView (this=<optimized out>, parent=<optimized out>, exportMode=<optimized out>, this=<optimized out>, parent=<optimized out>, exportMode=<optimized out>) at /usr/include/qt5/QtCore/qscopedpointer.h:116
#22 0x00007f4bc425fb53 in Aurorae::Decoration::init (this=0x55f7458d63b0) at /usr/src/debug/kwin5-5.18.1-1.1.x86_64/plugins/kdecorations/aurorae/src/aurorae.cpp:327
#23 0x00007f4bcdd3a9db in KWin::Decoration::DecorationBridge::createDecoration (client=<optimized out>, this=0x55f743f222b0) at /usr/src/debug/kwin5-5.18.1-1.1.x86_64/decorations/decorationbridge.cpp:288
#24 KWin::Decoration::DecorationBridge::createDecoration (this=0x55f743f222b0, client=<optimized out>) at /usr/src/debug/kwin5-5.18.1-1.1.x86_64/decorations/decorationbridge.cpp:273
#25 0x00007f4bcdc4747c in KWin::X11Client::createDecoration (this=this@entry=0x55f7452fd4c0, oldgeom=...) at /usr/src/debug/kwin5-5.18.1-1.1.x86_64/decorations/decorationbridge.h:99
#26 0x00007f4bcdc47af3 in KWin::X11Client::updateDecoration (this=0x55f7452fd4c0, check_workspace_pos=<optimized out>, force=<optimized out>) at /usr/src/debug/kwin5-5.18.1-1.1.x86_64/x11client.cpp:1042
#27 0x00007f4bcdc4b529 in KWin::X11Client::manage (this=0x55f7452fd4c0, w=<optimized out>, isMapped=<optimized out>) at /usr/src/debug/kwin5-5.18.1-1.1.x86_64/x11client.cpp:625
#28 0x00007f4bcdc5f585 in KWin::Workspace::createClient (this=0x55f743eba970, w=27306901, is_mapped=<optimized out>) at /usr/src/debug/kwin5-5.18.1-1.1.x86_64/workspace.cpp:616
#29 0x00007f4bcdd2051f in KWin::Workspace::workspaceEvent (this=0x55f743eba970, e=0x7f4bc0010740) at /usr/src/debug/kwin5-5.18.1-1.1.x86_64/events.cpp:317
#30 0x00007f4bcc8b9637 in QAbstractEventDispatcher::filterNativeEvent (this=<optimized out>, eventType=..., message=message@entry=0x7f4bc0010740, result=result@entry=0x7ffcc8602488) at kernel/qabstracteventdispatcher.cpp:488
#31 0x00007f4bc6e72791 in QXcbConnection::handleXcbEvent (this=this@entry=0x55f743d25460, event=event@entry=0x7f4bc0010740) at qxcbnativeinterface.h:101
#32 0x00007f4bc6e734e6 in QXcbConnection::processXcbEvents (this=0x55f743d25460, flags=...) at qxcbconnection.cpp:1029
#33 0x00007f4bc6e9bdfc in QXcbUnixEventDispatcher::processEvents (this=0x55f743da6580, flags=...) at qxcbeventdispatcher.cpp:61
#34 0x00007f4bcc8babfb in QEventLoop::exec (this=this@entry=0x7ffcc86025d0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#35 0x00007f4bcc8c29d2 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#36 0x00007f4bcde58479 in kdemain (argc=<optimized out>, argv=0x7ffcc8602868) at /usr/src/debug/kwin5-5.18.1-1.1.x86_64/main_x11.cpp:483
#37 0x00007f4bcde85ceb in __libc_start_main () from /lib64/libc.so.6
#38 0x000055f74333908a in _start () at ../sysdeps/x86_64/start.S:120
[Inferior 1 (process 9100) detached]

Reported using DrKonqi
Comment 1 Vlad Zahorodnii 2020-03-19 09:24:26 UTC
Could you please post output of qdbus org.kde.KWin /KWin supportInformation?
Comment 2 Christoph Feck 2020-03-20 17:46:34 UTC
If you can provide the information requested in comment 1, please add it.
Comment 3 Christoph Feck 2020-04-15 18:32:19 UTC
To further investigate this issue, KDE developers need the information requested in comment 1. If you can provide it, or need help with finding that information, please add a comment.
Comment 4 Bug Janitor Service 2020-04-30 04:33:12 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 5 Bug Janitor Service 2020-05-15 04:33:14 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!
Comment 6 Nate Graham 2021-06-16 16:35:36 UTC
*** Bug 438738 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2021-06-16 16:35:39 UTC
*** Bug 437953 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2021-06-16 16:35:44 UTC
*** Bug 435174 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2021-06-16 16:36:14 UTC
Re-opening due to duplicates from recent versions.
Comment 10 David Edmundson 2021-06-19 11:17:31 UTC
Please report to mesa and link here.

KDE's code is just calling makeCurrent(null). That shouldn't fail in any other circumstances.