Bug 456894 - kwin_kwayland crashes and potential lockups
Summary: kwin_kwayland crashes and potential lockups
Status: RESOLVED BACKTRACE
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.25.3
Platform: Slackware Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-19 01:52 UTC by sombragris
Modified: 2023-06-21 06:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sombragris 2022-07-19 01:52:27 UTC
SUMMARY

I'm having two problems which might be similar. Sometimes the wayland desktop crashes. 
Those times all I get is these log entry in /var/log/messages:

kwin_wayland[1494]: segfault at 1c1000000 ip 00000001c1000000 sp 00007ffe36539b08 error 14 in anon_inode:i915.gem[7fe062cff000+800000]

I can recover by terminating the graphical session and starting a new one.

Sometimes I also get a hard lockup. The system quickly stops responding; first some pieces of software, then the keyboard, and finally even the mouse. In that case, the only piece of the computer which is responding is the power button, which initiates an ordered shutdown; but the desktop does not close cleanly.

Both crashes can lead to data loss, as one might think, so the severity of the bug should be at least "grave".

I cannot yet find a way to reliably reproduce any of these behaviors, and they appear occassionally but frequently.

Thanks for seeking a solution to this.



SOFTWARE/OS VERSIONS
Operating System: Slackware 15.0+ current (post 15.0)
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.4
Kernel Version: 5.18.12 (64-bit)
Graphics Platform: Wayland
Comment 1 David Edmundson 2022-07-19 09:07:49 UTC
We cannot do much without a backtrace. Please see if "coredumpctl dump kwin_wayland" has anything.
Comment 2 sombragris 2022-07-19 18:28:48 UTC
Thanks David. What you suggest is not possible since Slackware does not use systemd.
Perhaps there is an equivalent tool? If that's te case, point it out to me and I'll try to use it.
Comment 3 sombragris 2022-07-24 21:56:18 UTC
Another crash. Closed all my apps and was left with a black screen. If I had any important data on any app, it would have been lost.
KRunner was still responsive, so I invoked plasmashelll --replace.

No mention or output except on /var/log/messages:

traps: kwin_wayland[1510] general protection fault ip:7f770b9addc0 sp:7fff96f96c60 error:0 in libkwin.so.5.25.3[7f770b95c000+2d7000]
Comment 4 Bug Janitor Service 2022-08-08 04:35:20 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
mark the bug 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 5 Bug Janitor Service 2022-08-23 04:35:37 UTC
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!
Comment 6 sombragris 2023-06-21 05:41:14 UTC
Requesting reopening of this bug. Today I again had a crash. The whole desktop crashed.

The message on /var/log/messages said:

20/6/23 22:17	tiki	kernel	kwin_wayland[1597]: segfault at 7f79c7bf2270 ip 00007f79c7bf2270 sp 00007fff0852f668 error 15 in libc-2.37.so[7f79c7bf1000+2000] likely on CPU 5 (core 1, socket 0)
20/6/23 22:17	tiki	kernel	Code: 00 00 30 22 bf c7 79 7f 00 00 80 4f 5d 04 00 00 00 00 80 4f 5d 04 00 00 00 00 50 22 bf c7 79 7f 00 00 50 22 bf c7 79 7f 00 00 <60> 22 bf c7 79 7f 00 00 60 22 bf c7 79 7f 00 00 70 22 bf c7 79 7f

That's the whole information I have. I lost unsaved work, so I would really appreciate stabilizing the Wayland stack.

Below is my information:

Operating System: Slackware 15.0
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.9
Kernel Version: 6.1.34 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15,5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Dell Inc.
Product Name: Inspiron 5570

KWin info:

KWin Support Information:
The following information should be used when requesting support on e.g. https://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 https://paste.kde.org instead of pasting into support threads.

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

Version
=======
KWin version: 5.27.6
Qt Version: 5.15.9
Qt compile version: 5.15.9
XCB compile version: 1.15

Operation Mode: Xwayland

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes

X11
===
Vendor: Slackware Linux Project
Vendor Release: 12301002
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: 
Plugin recommends border size: None
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 10
font: Noto Sans [GOOG],10,-1,5,75,0,0,0,0,0,Bold
smallSpacing: 2
largeSpacing: 10

Output backend
==============
Name: DRM
Active: true
Atomic Mode Setting on GPU 0: true

Cursor
======
themeName: breeze_cursors
themeSize: 24

Options
=======
focusPolicy: 1
xwaylandCrashPolicy: 
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 750
delayFocusInterval: 300
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
activeMouseScreen: true
placement: 
activationDesktopPolicy: 0
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 28
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 28
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 28
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
compositingMode: 1
useCompositing: true
hiddenPreviews: 1
glSmoothScale: 2
glStrictBinding: false
glStrictBindingFollowsDriver: true
glPreferBufferSwap: 101
glPlatformInterface: 2
windowsBlockCompositing: true
latencyPolicy: 
renderTimeEstimator: 
allowTearing: true

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

Screens
=======
Active screen follows mouse:  yes
Number of Screens: 2

Screen 0:
---------
Name: eDP-1
Enabled: 1
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 60052
Adaptive Sync: incapable
Screen 1:
---------
Name: HDMI-A-1
Enabled: 1
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 60000
Adaptive Sync: incapable

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
OpenGL version string: 4.6 (Core Profile) Mesa 23.1.2
OpenGL platform interface: EGL
OpenGL shading language version string: 4.60
Driver: Intel
GPU class: Kaby Lake
OpenGL version: 4.6
GLSL version: 4.60
Mesa version: 23.1.2
Linux kernel version: 6.1.34
Direct rendering: Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used

Loaded Effects:
---------------
colorpicker
outputlocator
screenshot
screenedge
zoom
blur
contrast
kwin4_effect_sessionquit
kwin4_effect_login
kwin4_effect_logout
slidingpopups
kwin4_effect_windowaperture
slide
kwin4_effect_frozenapp
kwin4_effect_maximize
kwin4_effect_fullscreen
kwin4_effect_squash
kwin4_effect_morphingpopups
kwin4_effect_fadingpopups
kwin4_effect_scale
kwin4_effect_dialogparent
desktopgrid
highlightwindow
overview
tileseditor
windowview
blendchanges
startupfeedback
kscreen
screentransform

Currently Active Effects:
-------------------------
blur
contrast

Effect Settings:
----------------
colorpicker:

outputlocator:

screenshot:

screenedge:

zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
focusTrackingEnabled: false
textCaretTrackingEnabled: false
focusDelay: 350
moveFactor: 20
targetZoom: 1

blur:

contrast:

kwin4_effect_sessionquit:
pluginId: kwin4_effect_sessionquit
isActiveFullScreenEffect: false

kwin4_effect_login:
pluginId: kwin4_effect_login
isActiveFullScreenEffect: false

kwin4_effect_logout:
pluginId: kwin4_effect_logout
isActiveFullScreenEffect: false

slidingpopups:
slideInDuration: 150
slideOutDuration: 250

kwin4_effect_windowaperture:
pluginId: kwin4_effect_windowaperture
isActiveFullScreenEffect: false

slide:
horizontalGap: 45
verticalGap: 20
slideBackground: true

kwin4_effect_frozenapp:
pluginId: kwin4_effect_frozenapp
isActiveFullScreenEffect: false

kwin4_effect_maximize:
pluginId: kwin4_effect_maximize
isActiveFullScreenEffect: false

kwin4_effect_fullscreen:
pluginId: kwin4_effect_fullscreen
isActiveFullScreenEffect: false

kwin4_effect_squash:
pluginId: kwin4_effect_squash
isActiveFullScreenEffect: false

kwin4_effect_morphingpopups:
pluginId: kwin4_effect_morphingpopups
isActiveFullScreenEffect: false

kwin4_effect_fadingpopups:
pluginId: kwin4_effect_fadingpopups
isActiveFullScreenEffect: false

kwin4_effect_scale:
pluginId: kwin4_effect_scale
isActiveFullScreenEffect: false

kwin4_effect_dialogparent:
pluginId: kwin4_effect_dialogparent
isActiveFullScreenEffect: false

desktopgrid:
activeView: 
gridRows: 1
gridColumns: 4
animationDuration: 300
layout: 1
partialActivationFactor: 0
gestureInProgress: false
showAddRemove: true
desktopNameAlignment: 0
desktopLayoutMode: 0
customLayoutRows: 2

highlightwindow:

overview:
activeView: 
animationDuration: 300
layout: 1
ignoreMinimized: false
blurBackground: true
partialActivationFactor: 0
gestureInProgress: false
searchText: 

tileseditor:
activeView: 
animationDuration: 200

windowview:
activeView: 
animationDuration: 300
layout: 1
ignoreMinimized: false
mode: 0
partialActivationFactor: 0
gestureInProgress: false
searchText: 

blendchanges:

startupfeedback:
type: 1

kscreen:

screentransform:


Loaded Plugins:
---------------
kwin5_plugin_buttonrebinds
kwin5_plugin_colord
kwin5_plugin_krunner
kwin5_plugin_nightcolor
kwin5_plugin_screencast

Available Plugins:
------------------
kwin5_plugin_buttonrebinds
kwin5_plugin_colord
kwin5_plugin_krunner
kwin5_plugin_nightcolor
kwin5_plugin_screencast
Comment 7 David Edmundson 2023-06-21 06:16:01 UTC
This is still unfortunately inactionable without a backtrace.
Comment 8 sombragris 2023-06-21 06:29:21 UTC
(In reply to David Edmundson from comment #7)
> This is still unfortunately inactionable without a backtrace.

OK, but David, please tell me how can I have a backtrace? I'm just a desktop user.
Comment 9 sombragris 2023-06-21 06:35:47 UTC
Sorry, how can I give you a backtrace? Slackware does not use systemd and does not have any utility named 'coredumpctl'.