Bug 373380

Summary: KWin crash on startup
Product: [Plasma] kwin Reporter: RJVB <rjvbertin>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: drkonqi, triaged
Priority: NOR    
Version First Reported In: 5.8.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description RJVB 2016-12-07 11:57:18 UTC
Application: kwin_x11 (5.8.4)

Qt Version: 5.7.0
Frameworks Version: 5.28.0
Operating System: Linux 4.8.6-1 x86_64
Distribution: "KaOS"

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

I was logging back in to a new session under KaOS (up-to-date) running under VirtualBox5 with the guest additions installed.

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

Thread 7 (Thread 0x7f5de8857700 (LWP 14954)):
#0  0x00007f5e1ef5303f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib/libpthread.so.0
#1  0x00007f5df527fa33 in  () at /usr/lib/xorg/modules/dri/swrast_dri.so
#2  0x00007f5df527f8b7 in  () at /usr/lib/xorg/modules/dri/swrast_dri.so
#3  0x00007f5e1ef4d424 in start_thread () at /lib/libpthread.so.0
#4  0x00007f5e1ec8ccad in clone () at /lib/libc.so.6

Thread 6 (Thread 0x7f5de9058700 (LWP 14953)):
#0  0x00007f5e1ef5303f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib/libpthread.so.0
#1  0x00007f5df527fa33 in  () at /usr/lib/xorg/modules/dri/swrast_dri.so
#2  0x00007f5df527f8b7 in  () at /usr/lib/xorg/modules/dri/swrast_dri.so
#3  0x00007f5e1ef4d424 in start_thread () at /lib/libpthread.so.0
#4  0x00007f5e1ec8ccad in clone () at /lib/libc.so.6

Thread 5 (Thread 0x7f5df611b700 (LWP 14930)):
[KCrash Handler]
#5  0x00007f5e1ebd82a8 in raise () at /lib/libc.so.6
#6  0x00007f5e1ebd972a in abort () at /lib/libc.so.6
#7  0x00007f5e1c95677e in  () at /usr/lib/libQt5Core.so.5
#8  0x00007f5dfd10c89c in  () at /usr/lib/qt5/plugins/org.kde.kwin.platforms/KWinX11Platform.so
#9  0x00007f5e1cb607d6 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
#10 0x00007f5e1cb6cca8 in QTimer::timerEvent(QTimerEvent*) () at /usr/lib/libQt5Core.so.5
#11 0x00007f5e1cb6126b in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#12 0x00007f5e1d4092fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f5e1d4106f6 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007f5e1cb37288 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#15 0x00007f5e1cb86cce in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#16 0x00007f5e1cb84d48 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#17 0x00007f5e1cb357fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#18 0x00007f5e1c96a68c in QThread::exec() () at /usr/lib/libQt5Core.so.5
#19 0x00007f5e1c96f049 in  () at /usr/lib/libQt5Core.so.5
#20 0x00007f5e1ef4d424 in start_thread () at /lib/libpthread.so.0
#21 0x00007f5e1ec8ccad in clone () at /lib/libc.so.6

Thread 4 (Thread 0x7f5df7bbc700 (LWP 14927)):
#0  0x00007f5e1ec83c2d in poll () at /lib/libc.so.6
#1  0x00007f5e1cb833c2 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f5e1cb84ae8 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f5e1cb357fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f5e1c96a68c in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f5e17d46e85 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007f5e1c96f049 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f5e1ef4d424 in start_thread () at /lib/libpthread.so.0
#8  0x00007f5e1ec8ccad in clone () at /lib/libc.so.6

Thread 3 (Thread 0x7f5dfdb2c700 (LWP 14922)):
#0  0x00007f5e1ec99910 in clock_gettime () at /lib/libc.so.6
#1  0x00007f5e1ca0fca1 in  () at /usr/lib/libQt5Core.so.5
#2  0x00007f5e1cb85aa9 in QTimerInfoList::updateCurrentTime() () at /usr/lib/libQt5Core.so.5
#3  0x00007f5e1cb85fd5 in QTimerInfoList::timerWait(timespec&) () at /usr/lib/libQt5Core.so.5
#4  0x00007f5e1cb84db4 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f5e1cb357fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007f5e1c96a68c in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007f5e1f4bd725 in  () at /usr/lib/libQt5DBus.so.5
#8  0x00007f5e1c96f049 in  () at /usr/lib/libQt5Core.so.5
#9  0x00007f5e1ef4d424 in start_thread () at /lib/libpthread.so.0
#10 0x00007f5e1ec8ccad in clone () at /lib/libc.so.6

Thread 2 (Thread 0x7f5e06b5a700 (LWP 14887)):
#0  0x00007f5e1ec83c2d in poll () at /lib/libc.so.6
#1  0x00007f5e1dddfa1b in  () at /usr/lib/libxcb.so.1
#2  0x00007f5e1dddfe65 in  () at /usr/lib/libxcb.so.1
#3  0x00007f5e1ddddb31 in  () at /usr/lib/libxcb.so.1
#4  0x00007f5e1dddf617 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#5  0x00007f5e0780a479 in  () at /usr/lib/qt5/plugins/platforms/../../../libQt5XcbQpa.so.5
#6  0x00007f5e1c96f049 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f5e1ef4d424 in start_thread () at /lib/libpthread.so.0
#8  0x00007f5e1ec8ccad in clone () at /lib/libc.so.6

Thread 1 (Thread 0x7f5e1f3a3840 (LWP 14862)):
#0  0x00007f5e1ef55e4c in __lll_lock_wait () at /lib/libpthread.so.0
#1  0x00007f5e1ef51860 in __pthread_mutex_cond_lock () at /lib/libpthread.so.0
#2  0x00007f5e1ef530cf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib/libpthread.so.0
#3  0x00007f5e1ddddb19 in  () at /usr/lib/libxcb.so.1
#4  0x00007f5e1dddf367 in  () at /usr/lib/libxcb.so.1
#5  0x00007f5e1dddf4d1 in xcb_wait_for_reply64 () at /usr/lib/libxcb.so.1
#6  0x00007f5e16ba5050 in _XReply () at /usr/lib/libX11.so.6
#7  0x00007f5e16b8b317 in XGetImage () at /usr/lib/libX11.so.6
#8  0x00007f5e16b8b589 in XGetSubImage () at /usr/lib/libX11.so.6
#9  0x00007f5e15a5dba2 in  () at /usr/lib/libGL.so.1
#10 0x00007f5e15a5dbc2 in  () at /usr/lib/libGL.so.1
#11 0x00007f5df4ed9e30 in  () at /usr/lib/xorg/modules/dri/swrast_dri.so
#12 0x00007f5df4ed81b5 in  () at /usr/lib/xorg/modules/dri/swrast_dri.so
#13 0x00007f5dfd11fade in  () at /usr/lib/qt5/plugins/org.kde.kwin.platforms/KWinX11Platform.so
#14 0x00007f5e1e841943 in  () at /usr/lib/libkwin.so.5
#15 0x00007f5e1e841b99 in KWin::SceneOpenGL::Window::bindTexture() () at /usr/lib/libkwin.so.5
#16 0x00007f5e1e842202 in  () at /usr/lib/libkwin.so.5
#17 0x00007f5e1e842845 in  () at /usr/lib/libkwin.so.5
#18 0x00007f5e1e8413d2 in  () at /usr/lib/libkwin.so.5
#19 0x00007f5e1e8415b8 in  () at /usr/lib/libkwin.so.5
#20 0x00007f5e1e856109 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#21 0x00007f5e1e820f81 in KWin::Scene::finalPaintWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#22 0x00007f5e1e855f5a in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () at /usr/lib/libkwin.so.5
#23 0x00007f5e1e828825 in KWin::Scene::paintWindow(KWin::Scene::Window*, int, QRegion, KWin::WindowQuadList) () at /usr/lib/libkwin.so.5
#24 0x00007f5e1e82512b in KWin::Scene::paintSimpleScreen(int, QRegion) () at /usr/lib/libkwin.so.5
#25 0x00007f5e1e838c53 in  () at /usr/lib/libkwin.so.5
#26 0x00007f5e1e827cc4 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#27 0x00007f5e1e855d1f in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#28 0x00007f5e1e8279af in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&) () at /usr/lib/libkwin.so.5
#29 0x00007f5e1e83d160 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib/libkwin.so.5
#30 0x00007f5e1e817f9a in KWin::Compositor::performCompositing() () at /usr/lib/libkwin.so.5
#31 0x00007f5e1e818c09 in KWin::Compositor::startupWithWorkspace() () at /usr/lib/libkwin.so.5
#32 0x00007f5e1e819653 in KWin::Compositor::slotCompositingOptionsInitialized() () at /usr/lib/libkwin.so.5
#33 0x00007f5e1e819b7a in KWin::Compositor::setup() () at /usr/lib/libkwin.so.5
#34 0x00007f5e1cb612b1 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#35 0x00007f5e1d4092fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#36 0x00007f5e1d4106f6 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#37 0x00007f5e1cb37288 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#38 0x00007f5e1cb3987b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#39 0x00007f5e1cb8491a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#40 0x00007f5e0787e90d in  () at /usr/lib/qt5/plugins/platforms/../../../libQt5XcbQpa.so.5
#41 0x00007f5e1cb357fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#42 0x00007f5e1cb3d80d in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#43 0x00007f5e1f16c1f5 in kdemain () at /usr/lib/libkdeinit5_kwin_x11.so
#44 0x00007f5e1ebc5710 in __libc_start_main () at /lib/libc.so.6
#45 0x0000000000400709 in _start ()

Reported using DrKonqi
Comment 1 RJVB 2016-12-07 12:27:39 UTC
This was reproducible, and I think it was caused by the fact I had configured an icon theme which inherits the gnome icon theme. My KaOS install had only a partial version of that, just the 32x32 directory.

I don't think that should lead to a crash, though (nor an abort).
Comment 2 Martin Flöser 2016-12-07 19:44:46 UTC
Unfortunately the backtrace is lacking debug infos and we don't see where it crashes. It looks like being an OpenGL driver crash.
Comment 3 RJVB 2016-12-07 21:02:24 UTC
You're right, damn. DrKonqi gave 3 starts to the backtrace so I didn't look any further.

I'll have to figure out if KaOS has something equivalent to Debuntu's dbg packages. Not for everything, it seems.
Comment 4 RJVB 2016-12-08 10:11:03 UTC
Annoyingly I haven't yet been able to reproduce the crash. I'll update this ticket if/when I can, but it certainly seems likely that the crash had something to do with compositing. In fact I'm surprised that I got acceptable desktop behaviour at all with compositing active; I have another system that I run both on real silicon and under VirtualBox and I keep having to toggle the feature (and that's VirtualBox under MSWin, which usually has better support for "advanced graphics").
Comment 5 Andrew Crouthamel 2018-09-26 22:08:27 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 set the bug status 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 6 Andrew Crouthamel 2018-10-27 02:24:57 UTC
Dear Bug Submitter,

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!