Bug 384250 - PlasmaShell and systemsettings crash on Intel GPU 530
Summary: PlasmaShell and systemsettings crash on Intel GPU 530
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.10.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-31 22:32 UTC by m1st0
Modified: 2017-09-28 15:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m1st0 2017-08-31 22:32:47 UTC
Application: systemsettings5 (5.10.5)

Qt Version: 5.7.1
Frameworks Version: 5.37.0
Operating System: Linux 4.10.0-33-generic x86_64
Distribution: Ubuntu 17.04

-- Information about the crash:
- What I was doing when the application crashed:
Scrolling in kwin_X11.

- Unusual behavior I noticed:
Plasmashell crashes.  All window elements drawn in the same  small area overlapping in Qt apps (window area draws every element at 0,0 such as systemsettings Desktop Themes).

The reproducible crash is when I scroll using libinput from a Logitech G700s mouse.  If you go against the scroll direction, such as scolling down fast and then switching direction, kwin_x11 crashes.  SDDM does not launch.  Had to switch to lightDm and LXQT running kwin_x11 for current functionality.

Main failure reported in dmesg: 
plasmashell[6514]: segfault at 55c4efbdafc0 ip 00007f77c403f450 sp 00007ffef75c85b0 error 4 in libqquicklayoutsplugin.so[7f77c4030000+1c000]
[  454.466680] systemsettings5[23828]: segfault at 5599c1ac78d0 ip 00007f6d1c07a450 sp 00007ffd9fa97230 error 4 in libqquicklayoutsplugin.so[7f6d1c06b000+1c000]


- Custom settings of the application:
-> I have Intel GPU 530.  Used modesetting, next intel drivers. UXA and SNA accel attempted as well.
-> Kernel parameters: nogpumanager blacklist=nouveau,nvidiafb,nvidia-modeset,nvidia-uvm,nvidia,nvidia-384 acpi=! acpi_osi=\"Windows 2009\" intel_iommu=igfx_off i915.enable_fbc=1 i915.powersave=1 i915.enable_rc6=1
->

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f133bbf68c0 (LWP 27046))]

Thread 4 (Thread 0x7f130e226700 (LWP 28939)):
#0  __libc_enable_asynccancel () at ../sysdeps/unix/sysv/linux/x86_64/cancellation.S:67
#1  0x00007f13379cad82 in poll () at ../sysdeps/unix/syscall-template.S:84
#2  0x00007f1331b88576 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f1331b8868c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f13382ed0bb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f1338296bea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f13380c4f83 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f133640edf5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f13380c9c38 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f1333cba6da in start_thread (arg=0x7f130e226700) at pthread_create.c:456
#10 0x00007f13379d6d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 3 (Thread 0x7f1326494700 (LWP 27052)):
#0  0x00007f13379c68ad in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f1331bccb30 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f1331b88042 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f1331b88514 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f1331b8868c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f13382ed0bb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f1338296bea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f13380c4f83 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f1338bed5d5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f13380c9c38 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f1333cba6da in start_thread (arg=0x7f1326494700) at pthread_create.c:456
#11 0x00007f13379d6d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7f13287b1700 (LWP 27047)):
#0  0x00007f13379cad8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f1334531c62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f13345338d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f132ad08ef9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f13380c9c38 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f1333cba6da in start_thread (arg=0x7f13287b1700) at pthread_create.c:456
#6  0x00007f13379d6d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7f133bbf68c0 (LWP 27046)):
[KCrash Handler]
#6  0x00007f131c051450 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Layouts/libqquicklayoutsplugin.so
#7  0x00007f131c04e184 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Layouts/libqquicklayoutsplugin.so
#8  0x00007f13382c2fb1 in QObjectPrivate::deleteChildren() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f13382cc27f in QObject::~QObject() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f13368ce353 in QQuickItem::~QQuickItem() () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#11 0x00007f13368e98be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#12 0x00007f13382c5670 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f13368c97fb in QQuickItem::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#14 0x00007f1339df535c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f1339dfcb21 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f1338298c00 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f133829b39d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f13382ecc93 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f1331b88377 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f1331b885e0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f1331b8868c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f13382ed09f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f1338296bea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f133829f33c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x000056037d5a159a in ?? ()
#26 0x00007f13378ee3f1 in __libc_start_main (main=0x56037d5a11c0, argc=1, argv=0x7ffc78645f48, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc78645f38) at ../csu/libc-start.c:291
#27 0x000056037d5a161a in _start ()

Possible duplicates by query: bug 378067, bug 376535, bug 375063, bug 374982.

Reported using DrKonqi
Comment 1 Christoph Feck 2017-09-01 13:00:33 UTC
Are you able to run 'kwin_x11' with OpenGL compositing? If yes, please start it, and add the output of

    qdbus org.kde.KWin /KWin supportInformation

Otherwise, I guess your OpenGL drivers are not setup correctly.
Comment 2 m1st0 2017-09-08 20:18:45 UTC
Here is output of qdbus org.kde.KWin /KWin supportInformation . . .

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.10.5
Qt Version: 5.7.1
Qt compile version: 5.7.1
XCB compile version: 1.11.1

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: 11903000
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.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 6, 1
decorationButtonsRight: 2, 9, 3, 4, 5
borderSize: 3
gridUnit: 18
font: DejaVu Sans,12,-1,5,50,0,0,0,0,0
smallSpacing: 4
largeSpacing: 18

Options
=======
focusPolicy: 1
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 750
delayFocusInterval: 300
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: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
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: true
compositingInitialized: true
hiddenPreviews: 1
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: true
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 101
glPlatformInterface: 1
windowsBlockCompositing: true

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

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

Screen 0:
---------
Name: eDP-1
Geometry: 0,0,3840x2160
Refresh Rate: 60.0102

Screen 1:
---------
Name: DP-1
Geometry: 3840,0,3840x2160
Refresh Rate: 60


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2) 
OpenGL version string: 4.5 (Core Profile) Mesa 17.1.4
OpenGL platform interface: GLX
OpenGL shading language version string: 4.50
Driver: Intel
GPU class: Unknown
OpenGL version: 4.5
GLSL version: 4.50
Mesa version: 17.1.4
X server version: 1.19.3
Linux kernel version: 4.10
Direct rendering: Requires strict binding: yes
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
zoom
kwin4_effect_login
kwin4_effect_logout
wobblywindows
slideback
kwin4_effect_scalein
screenshot
minimizeanimation
kwin4_effect_windowaperture
kwin4_effect_translucency
desktopgrid
cubeslide
colorpicker
kwin4_effect_maximize
kwin4_effect_morphingpopups
kwin4_effect_fade
sheet
kwin4_effect_frozenapp
presentwindows
kwin4_effect_dialogparent
highlightwindow
startupfeedback
kscreen

Currently Active Effects:
-------------------------

Effect Settings:
----------------
zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
enableFocusTracking: false
followFocus: true
focusDelay: 350
moveFactor: 20
targetZoom: 1

kwin4_effect_login:

kwin4_effect_logout:

wobblywindows:
stiffness: 0.15
drag: 0.8
moveFactor: 0.1
xTesselation: 20
yTesselation: 20
minVelocity: 0
maxVelocity: 1000
stopVelocity: 0.5
minAcceleration: 0
maxAcceleration: 1000
stopAcceleration: 0.5
moveEffectEnabled: true
openEffectEnabled: false
closeEffectEnabled: false
moveWobble: true
resizeWobble: true

slideback:

kwin4_effect_scalein:

screenshot:

minimizeanimation:

kwin4_effect_windowaperture:

kwin4_effect_translucency:

desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

cubeslide:
rotationDuration: 500
dontSlidePanels: true
dontSlideStickyWindows: false
usePagerLayout: true
useWindowMoving: false

colorpicker:

kwin4_effect_maximize:

kwin4_effect_morphingpopups:

kwin4_effect_fade:

sheet:
duration: 500

kwin4_effect_frozenapp:

presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0

kwin4_effect_dialogparent:

highlightwindow:

startupfeedback:
type: 1

kscreen:
Comment 3 m1st0 2017-09-08 20:32:50 UTC
I have the three following symptoms, which I believe are related in some way but I cannot correlate them yet:

* SDDM Breeze Theme is all over the place on 2 monitors.  Can't see the password text box and alignment of each element is not centered with Kubuntu 17.04.  Running modesetting and intel drivers, reported as i915.  Resolved for now with switching to Maldives theme.
* Plasmashell crashes continually, blanking out the background and restarting.  Panel's elements are off area, meaning the only element I see is the clock and it is oversized for the default panel.  Resizing has no useful effect.  Unresolved workarounds tried.  Resolved by using LXQT with kwin_X11 for now.  Seems like a Qt issue then?
* This bug reported noting the crash in every Qt based desktop (KDE, LXQT) with kwin_x11 when mouse wheel scrolling rapidly back and forth in a window.  Using keyboard scrolling or touchpad does not produce the same issue.  All I can see are segfaults such as these in libqquicklayoutplugin.so or libQt5Core.so.5.7.1 . . .

    plasmashell[6514]: segfault at 55c4efbdafc0 ip 00007f77c403f450 sp 00007ffef75c85b0 error 4 in libqquicklayoutsplugin.so

Also note my settings:

* /etc/default/grub settings (allows for Intel 530 activation with delayed Nvidia Optimus use with bbswitch): nogpumanager modprobe.blacklist=nouveau,nvidiafb,nvidia-modeset,nvidia-uvm,nvidia,nvidia-384 acpi_osi=! acpi_osi=\"Windows 2009\" intel_iommu=igfx_off

* /etc/X11/xorg.conf.d/21-intel.conf (same reasoning, can switch acceleration methods as needed easily by commenting differences):   
Section Device
  Identifier  "Intel Graphics"
  BusID  "PCI:0:2:0"
  # ----- modesetting driver -----
  #Driver      "modesetting"
  #Option       "DRI"         "false"
  #Option       "NoAccel"     "True"
  #Option      "AccelMethod"    "glamor"
  #Option      "DRI"            "3"
  #Option      "PageFlip"       "True"
  #Option      "Backlight"      "intel_backlight"
  # ----- Intel Drivers -----
  Driver          "intel"
  Option "Accel"    "True"
  # --- SNA ---
  Option "AccelMethod"   "sna"
  Option "TearFree"      "True"
  Option "TripleBuffer"  "True"
  # --- UXA ---
  #Option "AccelMethod"  "uxa"
  #Option "HWRotation"   "True"
  #Option "HotPlug"      "True"
  #Option "DRI"     "3"
  #Option "VSync"   "True"
  #Option "PageFlip"     "True"
  #Option "Tiling"       "True"
  #Option "TripleBuffer" "True"
EndSection
Comment 4 m1st0 2017-09-27 10:43:14 UTC
After a bit of time chasing issues on plasmashell crashes and the Breeze theme rendering the system unusable, it was fixed recently by upgrades and some configuration differences.  Restoring the original plasma desktop settings also did not cause a failure anymore.  I have some leads on the fix, however without more concrete analysis on a cause I am closing this issue.
Comment 5 m1st0 2017-09-27 10:46:53 UTC
(In reply to m1st0 from comment #4)
Possibly the upgrade from Mesa version: 17.1.4 to 17.2.0.
Comment 6 Christoph Feck 2017-09-27 19:25:16 UTC
Thanks for the update!