Bug 402317

Summary: KWin crash when launching the game
Product: [Plasma] kwin Reporter: tockar
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.14.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description tockar 2018-12-18 19:16:46 UTC
Application: kwin_x11 (5.14.4)

Qt Version: 5.11.1
Frameworks Version: 5.52.0
Operating System: Linux 4.19.8-300.fc29.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
Firefox was open with youtube tab opened, video paused.
Crash happened when I launched Divinity: Original Sin - native Linux port but requires additional "fixes" to work with open source AMD drivers (I have RX 580).
This never happened before. I have ~65h played and KWin crashed for the first time.

Fedora 29, updated daily.

The crash does not seem to be reproducible.

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

Thread 21 (Thread 0x7ff57edee700 (LWP 6530)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 20 (Thread 0x7ff526ffd700 (LWP 1610)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff599007f5a in QTWTF::TCMalloc_PageHeap::scavengerThread() () at /lib64/libQt5Script.so.5
#2  0x00007ff599007fc5 in  () at /lib64/libQt5Script.so.5
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 19 (Thread 0x7ff527fff700 (LWP 1590)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 18 (Thread 0x7ff548ff9700 (LWP 1586)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 17 (Thread 0x7ff5497fa700 (LWP 1585)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 16 (Thread 0x7ff549ffb700 (LWP 1584)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 15 (Thread 0x7ff54a7fc700 (LWP 1583)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 14 (Thread 0x7ff54affd700 (LWP 1582)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 13 (Thread 0x7ff54b7fe700 (LWP 1581)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 12 (Thread 0x7ff54bfff700 (LWP 1580)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 11 (Thread 0x7ff560ff9700 (LWP 1579)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7ff5617fa700 (LWP 1578)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7ff561ffb700 (LWP 1577)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7ff5627fc700 (LWP 1576)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7ff562ffd700 (LWP 1575)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7ff5637fe700 (LWP 1574)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7ff563fff700 (LWP 1573)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7ff56ca8b700 (LWP 1571)):
#0  0x00007ff5979e577c in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007ff57c5c32c3 in  () at /usr/lib64/dri/radeonsi_dri.so
#2  0x00007ff57c5c301b in  () at /usr/lib64/dri/radeonsi_dri.so
#3  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#4  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7ff57e5ed700 (LWP 1540)):
#0  0x00007ff596183516 in ppoll () at /lib64/libc.so.6
#1  0x00007ff59682cbf5 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /lib64/libQt5Core.so.5
#2  0x00007ff59682dd49 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#3  0x00007ff5967df17b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007ff596647046 in QThread::exec() () at /lib64/libQt5Core.so.5
#5  0x00007ff59875c209 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#6  0x00007ff5966504bb in  () at /lib64/libQt5Core.so.5
#7  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#8  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7ff57ffff700 (LWP 1433)):
#0  0x00007ff596183516 in ppoll () at /lib64/libc.so.6
#1  0x00007ff59682cbf5 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /lib64/libQt5Core.so.5
#2  0x00007ff59682dd49 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#3  0x00007ff5967df17b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007ff596647046 in QThread::exec() () at /lib64/libQt5Core.so.5
#5  0x00007ff597853f89 in  () at /lib64/libQt5DBus.so.5
#6  0x00007ff5966504bb in  () at /lib64/libQt5Core.so.5
#7  0x00007ff5979df58e in start_thread () at /lib64/libpthread.so.0
#8  0x00007ff59618e6a3 in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7ff5928c5940 (LWP 1387)):
[KCrash Handler]
#6  0x00007ff5960c953f in raise () at /lib64/libc.so.6
#7  0x00007ff5960b3895 in abort () at /lib64/libc.so.6
#8  0x00007ff5960b3769 in _nl_load_domain.cold.0 () at /lib64/libc.so.6
#9  0x00007ff5960c19f6 in .annobin_assert.c_end () at /lib64/libc.so.6
#10 0x00007ff59779fa7f in  () at /lib64/libepoxy.so.0
#11 0x00007ff59777492a in  () at /lib64/libepoxy.so.0
#12 0x00007ff59794d900 in KWin::GLRenderTarget::~GLRenderTarget() () at /lib64/libkwinglutils.so.11
#13 0x00007ff59917e55d in  () at /lib64/libkwin4_effect_builtins.so.1
#14 0x00007ff599180b0b in  () at /lib64/libkwin4_effect_builtins.so.1
#15 0x00007ff599180ced in  () at /lib64/libkwin4_effect_builtins.so.1
#16 0x00007ff59945112a in KWin::EffectsHandlerImpl::unloadAllEffects() () at /lib64/libkwin.so.5
#17 0x00007ff5994511bb in KWin::EffectsHandlerImpl::~EffectsHandlerImpl() () at /lib64/libkwin.so.5
#18 0x00007ff5847aa40c in  () at /usr/lib64/qt5/plugins/org.kde.kwin.platforms/KWinX11Platform.so
#19 0x00007ff5847aa4dd in  () at /usr/lib64/qt5/plugins/org.kde.kwin.platforms/KWinX11Platform.so
#20 0x00007ff599431d1f in  () at /lib64/libkwin.so.5
#21 0x00007ff5994322e0 in KWin::Compositor::suspend(KWin::Compositor::SuspendReason) () at /lib64/libkwin.so.5
#22 0x00007ff5968090f6 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#23 0x00007ff5970d62a5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#24 0x00007ff5970dd9c0 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#25 0x00007ff5967e0236 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#26 0x00007ff5967e340b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#27 0x00007ff59682dbbf in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#28 0x00007ff58584e1d1 in  () at /lib64/libQt5XcbQpa.so.5
#29 0x00007ff5967df17b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#30 0x00007ff5967e7246 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#31 0x00007ff5995d8f3f in kdemain () at /lib64/libkdeinit5_kwin_x11.so
#32 0x00007ff5960b5413 in __libc_start_main () at /lib64/libc.so.6
#33 0x0000559164dc10ae in _start ()
[Inferior 1 (process 1387) detached]

Reported using DrKonqi
Comment 1 Martin Flöser 2018-12-19 05:16:05 UTC
Unfortunately the backtrace is lacking debug symbols. If you are able to reproduce please install debug packages and attach a new backtrace.
Comment 2 Vlad Zahorodnii 2018-12-19 11:42:13 UTC
@Martin Could it be a bug in libepoxy? When we unloading effects, we call effects->makeOpenGLContextCurrent(), so the blur effect should gracefully release all resources.

*** This bug has been marked as a duplicate of bug 396830 ***
Comment 3 Vlad Zahorodnii 2018-12-19 11:58:38 UTC
(In reply to Vlad Zagorodniy from comment #2)
> @Martin Could it be a bug in libepoxy? When we unloading effects, we call
> effects->makeOpenGLContextCurrent(), so the blur effect should gracefully
> release all resources.

Oh, shoot, I think I figured out what's wrong. I'll submit the fix a little bit later.
Comment 4 Vlad Zahorodnii 2018-12-19 12:04:34 UTC
(In reply to Vlad Zagorodniy from comment #3)
> Oh, shoot, I think I figured out what's wrong. I'll submit the fix a little
> bit later.

No, false alarm.
Comment 5 Martin Flöser 2018-12-19 16:06:53 UTC
@Vlad: I don't try to derive anything from incomplete backtraces. It's shooting into the dark without any chance of hitting.
Comment 6 Vlad Zahorodnii 2018-12-19 23:42:20 UTC
(In reply to Martin Flöser from comment #5)
> @Vlad: I don't try to derive anything from incomplete backtraces. It's
> shooting into the dark without any chance of hitting.

Given

#21 0x00007ff5994322e0 in KWin::Compositor::suspend(KWin::Compositor::SuspendReason)

and

#16 0x00007ff59945112a in KWin::EffectsHandlerImpl::unloadAllEffects() () at /lib64/libkwin.so.5
#17 0x00007ff5994511bb in KWin::EffectsHandlerImpl::~EffectsHandlerImpl() () at /lib64/libkwin.so.5

I think we don't need a backtrace with debug symbols.