Bug 397280

Summary: kwin starts to crash at some random point
Product: [Plasma] kwin Reporter: Stephan <shuebnerfun01>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version First Reported In: 5.12.6   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Stephan 2018-08-08 17:47:26 UTC
Application: kwin_x11 (5.12.6)

Qt Version: 5.9.5
Frameworks Version: 5.47.0
Operating System: Linux 4.15.0-29-generic x86_64
Distribution: Ubuntu 18.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Switched from one virtual desktop to another. Kwin starts to crash sometimes and after that, it crashes each time I switch virtual desktops, until I reboot. Sometimes kwin restarts automatically, sometimes I need to switch to virtual konsole to manually restart it.

The crash can be reproduced every time.

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

Thread 5 (Thread 0x7f48ca321700 (LWP 27907)):
#0  0x00007f48f68099f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f48f9dabfb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f48f68099f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x7f48f9dabf68, cond=0x7f48f9dabf90) at pthread_cond_wait.c:502
#2  0x00007f48f68099f3 in __pthread_cond_wait (cond=0x7f48f9dabf90, mutex=0x7f48f9dabf68) at pthread_cond_wait.c:655
#3  0x00007f48f9ab55f4 in  () at /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f48f9ab5639 in  () at /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f48f68036db in start_thread (arg=0x7f48ca321700) at pthread_create.c:463
#6  0x00007f48fd7ba88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f48d16d8700 (LWP 27906)):
#0  0x00007f48fd7adcf6 in __GI_ppoll (fds=0x7f48c4000d28, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f48fabae5c1 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f48fabafcde in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f48fab579ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f48fa97622a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f48f52ef6f5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007f48fa97b16d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f48f68036db in start_thread (arg=0x7f48d16d8700) at pthread_create.c:463
#8  0x00007f48fd7ba88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f48e179d700 (LWP 27905)):
#0  0x00007f48fd7adcf6 in __GI_ppoll (fds=0x7f48cc000d28, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f48fabae5c1 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f48fabafcde in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f48fab579ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f48fa97622a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f48f52ef6f5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007f48fa97b16d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f48f68036db in start_thread (arg=0x7f48e179d700) at pthread_create.c:463
#8  0x00007f48fd7ba88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f48e2dd2700 (LWP 27896)):
#0  0x00007f48fd7adcf6 in __GI_ppoll (fds=0x7f48d400ddb8, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f48fabae5c1 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f48fabafcde in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f48fab579ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f48fa97622a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f48f41bfd45 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007f48fa97b16d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f48f68036db in start_thread (arg=0x7f48e2dd2700) at pthread_create.c:463
#8  0x00007f48fd7ba88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f48fde2dcc0 (LWP 27892)):
[KCrash Handler]
#6  0x00007f48fd6d7e97 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f48fd6d9801 in __GI_abort () at abort.c:79
#8  0x00007f48fa965fa7 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f48f59c12b7 in QSGRenderLoop::handleContextCreationFailure(QQuickWindow*, bool) () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#10 0x00007f48f59c2285 in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#11 0x00007f48f59c2eaa in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#12 0x00007f48fb127375 in QWindow::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#13 0x00007f48f5a37565 in QQuickWindow::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#14 0x00007f48d3965553 in PlasmaQuick::Dialog::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libKF5PlasmaQuick.so.5
#15 0x00007f48fb8d782c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f48fb8df0f4 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f48fab599a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f48fb11c43f in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#19 0x00007f48fb11d07d in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#20 0x00007f48fb0f42eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#21 0x00007f48e539e5d6 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#22 0x00007f48fab579ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f48fab60a84 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f48fda92dbb in kdemain () at /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#25 0x00007f48fd6bab97 in __libc_start_main (main=0x55e3f5aae730, argc=3, argv=0x7fff3970dbe8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff3970dbd8) at ../csu/libc-start.c:310
#26 0x000055e3f5aae76a in _start ()

Reported using DrKonqi
Comment 1 Martin Flöser 2018-08-08 19:01:09 UTC
Please provide the output of:
qdbus org.kde.KWin /KWin supportInformation
Comment 2 Stephan 2018-08-08 19:12:00 UTC
KWin Support Information:
The following information should be used when requesting support on e.g. http://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like http://paste.kde.org instead of pasting into support threads.

==========================

Version
=======
KWin version: 5.12.6
Qt Version: 5.9.5
Qt compile version: 5.9.5
XCB compile version: 1.13

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11906000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.kwin.aurorae
Theme: __aurorae__svg__Arc-Dark
Blur: 1
onAllDesktopsAvailable: true
alphaChannelSupported: false
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 12
font: DejaVu Sans,12,-1,5,50,0,0,0,0,0
smallSpacing: 3
largeSpacing: 12

Platform
==========
Name: KWin::X11StandalonePlatform

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5009
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 4
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: false
compositingInitialized: false
hiddenPreviews: 1
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: true
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 97
glPlatformInterface: 1
windowsBlockCompositing: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: true
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 1
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
---------
Name: VGA-0
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 60


Compositing
===========
Compositing is not active
Comment 3 Martin Flöser 2018-08-09 04:19:18 UTC
The backtrace indicates that your OpenGL drivers are not functional. This is confirmed by the fact that you are not using compositing. Please fix your drivers.
Comment 4 Stephan 2018-08-09 04:29:05 UTC
How am I supposed to fix these OpenGL-drivers and why are they causing these problems only randomly?
I disabled compositing, because it was never working correctly on my system. I think it has something to do with the nVidia-drivers I'm using.
Comment 5 Christoph Feck 2018-08-09 07:07:38 UTC
Please ask for help in a forum of your distribution how to correctly install matching nvidia driver and kernel versions.