Bug 398992

Summary: KWin occasionally crashes while going (into/out of) fullscreen with mpv
Product: [Plasma] kwin Reporter: Dragoon Aethis <kde>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde
Priority: NOR Keywords: drkonqi
Version: 5.13.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dragoon Aethis 2018-09-23 16:20:45 UTC
Application: kwin_x11 (5.13.5)

Qt Version: 5.11.2
Frameworks Version: 5.50.0
Operating System: Linux 4.18.9-1-ck-skylake x86_64
Distribution: "Arch Linux"

-- Information about the crash:
What I was doing when the application crashed: Leaving fullscreen in mpv media player.

Unusual behavior I noticed: Extra screen flicker, weird black boxes in the lower right corner of the screen while fullscreen in mpv (doesn't happen under Xfwm4, see: https://i.imgur.com/fiiwcpO.png - quite odd, normal KDE applets are under those boxes, but not also under...)

Settings:
- KWin: Compositor enabled w/ OpenGL 3.1, scale method accurate, vsync automatic, applications allowed to block compositioning, instant animations (slider completely to the left). Effects enabled: Track mouse, Zoom, Desaturate Unresponsive, Screen Edge, Translucency, WIndow Aperture, Desktop Grid, Present Windows. Focus stealing prevention none.
- mpv.conf: vo=vaapi hwdec=vaapi hwdec-codecs=all video-sync=display-resample interpolation tscale=oversample

The crash can be reproduced sometimes.

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

Thread 7 (Thread 0x7fc3165ae700 (LWP 3921)):
#0  0x00007fc33458dca6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007fc332f6fe9b in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007fc332f7138b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007fc332f1f8cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fc332d68eb9 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007fc32fdcc859 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007fc332d72f65 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fc33079ba9d in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fc334598a43 in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7fc30df38700 (LWP 3872)):
#0  0x00007fc3307a1afc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fc33288320c in  () at /usr/lib/libQt5Script.so.5
#2  0x00007fc332883229 in  () at /usr/lib/libQt5Script.so.5
#3  0x00007fc33079ba9d in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fc334598a43 in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7fc30ffff700 (LWP 3868)):
#0  0x00007fc3307a1afc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fc314b49f3c in  () at /usr/lib/dri/i965_dri.so
#2  0x00007fc314b49c78 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007fc33079ba9d in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fc334598a43 in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7fc317fff700 (LWP 3845)):
#0  0x00007fc33458dca6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007fc332f6fe9b in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007fc332f7138b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007fc332f1f8cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fc332d68eb9 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007fc32fdcc859 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007fc332d72f65 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fc33079ba9d in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fc334598a43 in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7fc325568700 (LWP 3831)):
#0  0x00007fc33458dca6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007fc332f6fe9b in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007fc332f7138b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007fc332f1f8cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fc332d68eb9 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007fc32f8a3ba6 in  () at /usr/lib/libQt5DBus.so.5
#6  0x00007fc332d72f65 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fc33079ba9d in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fc334598a43 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7fc327815700 (LWP 3782)):
#0  0x00007fc33458dbb1 in poll () at /usr/lib/libc.so.6
#1  0x00007fc333ea0180 in  () at /usr/lib/libxcb.so.1
#2  0x00007fc333ea1e4b in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007fc3282cec5a in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007fc332d72f65 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007fc33079ba9d in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fc334598a43 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7fc3289b7840 (LWP 3719)):
[KCrash Handler]
#6  0x00007fc3344d4d7f in raise () at /usr/lib/libc.so.6
#7  0x00007fc3344bf672 in abort () at /usr/lib/libc.so.6
#8  0x00007fc3344bf548 in _nl_load_domain.cold.0 () at /usr/lib/libc.so.6
#9  0x00007fc3344cd396 in  () at /usr/lib/libc.so.6
#10 0x00007fc330496f50 in  () at /usr/lib/libepoxy.so.0
#11 0x00007fc330437140 in  () at /usr/lib/libepoxy.so.0
#12 0x00007fc33043e0ea in  () at /usr/lib/libepoxy.so.0
#13 0x00007fc332a9d36b in  () at /usr/lib/libkwin4_effect_builtins.so.1
#14 0x00007fc332a9eab9 in  () at /usr/lib/libkwin4_effect_builtins.so.1
#15 0x00007fc334320f9a in KWin::EffectsHandlerImpl::unloadAllEffects() () at /usr/lib/libkwin.so.5
#16 0x00007fc334321038 in KWin::EffectsHandlerImpl::~EffectsHandlerImpl() () at /usr/lib/libkwin.so.5
#17 0x00007fc3263ae199 in  () at /usr/lib/qt/plugins/org.kde.kwin.platforms/KWinX11Platform.so
#18 0x00007fc3263ae269 in  () at /usr/lib/qt/plugins/org.kde.kwin.platforms/KWinX11Platform.so
#19 0x00007fc334301a8f in  () at /usr/lib/libkwin.so.5
#20 0x00007fc33430204d in KWin::Compositor::suspend(KWin::Compositor::SuspendReason) () at /usr/lib/libkwin.so.5
#21 0x00007fc332f4b352 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#22 0x00007fc33389ae14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#23 0x00007fc3338a26e1 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#24 0x00007fc332f20c39 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#25 0x00007fc332f23ccc in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#26 0x00007fc332f711fd in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#27 0x00007fc3283650ce in  () at /usr/lib/libQt5XcbQpa.so.5
#28 0x00007fc332f1f8cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#29 0x00007fc332f27bc6 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#30 0x00007fc33466ab26 in kdemain () at /usr/lib/libkdeinit5_kwin_x11.so
#31 0x00007fc3344c1223 in __libc_start_main () at /usr/lib/libc.so.6
#32 0x0000556c3bb9f05e in _start ()
[Inferior 1 (process 3719) detached]

Reported using DrKonqi
Comment 1 Dragoon Aethis 2018-09-23 16:40:59 UTC
After some investigation, this primarily occurs due to mpv's vo=vaapi on Intel Graphics HD 530 (Mesa 18.2.0 drivers). Rapidly hitting F to go into/out of fullscreen practically instacrashes KWin all the time.
Comment 2 Christoph Feck 2018-09-27 01:40:30 UTC
This is a frequently occuring crash with Arch, see [1]

To investigate, please compile libepoxy and KWin with debug information, and add an updated backtrace of the crash.

I also suggest to report this issue to the bug tracker of your distribution, as the issue might be related to libepoxy integration and/or in glibc.

[1] https://bugs.kde.org/buglist.cgi?bug_severity=crash&bug_status=UNCONFIRMED&bug_status=CONFIRMED&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=NEEDSINFO&longdesc=_nl_load_domain.cold.0&longdesc_type=allwordssubstr&query_format=advanced&chfieldfrom=1461d&list_id=1549211
Comment 3 David Edmundson 2018-09-27 09:07:07 UTC

*** This bug has been marked as a duplicate of bug 398114 ***