Bug 1216246

Summary: xwayland crashing for more than 2 months now
Product: [openSUSE] openSUSE Tumbleweed Reporter: Miguel Rozsas <miguel>
Component: KDE Workspace (Plasma)Assignee: E-Mail List <opensuse-kde-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: sndirsch
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: A complete log from journal

Description Miguel Rozsas 2023-10-15 13:33:18 UTC
KDE on Wayland is unusable in my AMD based desktop for more than 2 months. I am sure it is something related to AMD (CPU or GPU) since my intel laptop is running KDE/Wayland without problems. Also, I do not experience any problems in a X11 session. That is I am doing in the last 2 months: using the X11. I can't say how it behaves on gnome/wayland as I don't use it.

Currently I am at 20231012 and xwayland-23.2.1-1.1.x86_64, google-chrome-stable-118.0.5993.70-1.x86_64.

It has to do with google-chrome that crash after a few minutes of usage. When it does, it crashes the graphical stack somehow, since I had to close and start a new login session to use it again.

I can trigger an immediate crash just by running opera-103.0.4928.16-1.1.x86_64
or brave-browser-1.59.117-1.x86_64.

I already tried to remove the folder GPUcache folder but it happens again after a half-hour or so. (rm -rf .config/google-chrome/Default/GPUCache/ '.config/google-chrome/Profile 1/GPUCache/' .config/opera/GPUCache/ .config/BraveSoftware/Brave-Browser/Default/GPUCache/)


From journal:
Oct 14 09:57:50 mastodon kwin_wayland_wrapper[1841]: (EE) 0: /usr/bin/Xwayland (0x55c2603c5000+0x16d30e) [0x55c26053230e]
Oct 14 09:57:50 mastodon kwin_wayland_wrapper[1841]: (EE) 1: /usr/bin/Xwayland (0x55c2603c5000+0x16d410) [0x55c260532410]
Oct 14 09:57:50 mastodon kwin_wayland_wrapper[1841]: (EE) 3: /usr/bin/Xwayland (0x55c2603c5000+0x4c699) [0x55c260411699]
Oct 14 09:57:50 mastodon kwin_wayland_wrapper[1841]: (EE) 4: /usr/bin/Xwayland (0x55c2603c5000+0x4cd5c) [0x55c260411d5c]
Oct 14 09:57:50 mastodon kwin_wayland_wrapper[1841]: (EE) 5: /usr/bin/Xwayland (0x55c2603c5000+0x16f2d5) [0x55c2605342d5]
Oct 14 09:57:50 mastodon kwin_wayland_wrapper[1841]: (EE) 6: /usr/bin/Xwayland (0x55c2603c5000+0xadc38) [0x55c260472c38]
Oct 14 09:57:50 mastodon kwin_wayland_wrapper[1841]: (EE) 7: /usr/bin/Xwayland (0x55c2603c5000+0x36b6f) [0x55c2603fbb6f]
Oct 14 09:57:50 mastodon kwin_wayland_wrapper[1841]: (EE) 10: /usr/bin/Xwayland (0x55c2603c5000+0x38335) [0x55c2603fd335]
Oct 14 09:57:50 mastodon systemd-coredump[4659]: Process 1841 (Xwayland) of user 1000 dumped core.
#3  0x000055c2605345fc n/a (Xwayland + 0x16f5fc)
#4  0x000055c26053d2ec n/a (Xwayland + 0x1782ec)
#5  0x000055c26053246a n/a (Xwayland + 0x16d46a)
#7  0x000055c260411699 n/a (Xwayland + 0x4c699)
#8  0x000055c260411d5c n/a (Xwayland + 0x4cd5c)
#9  0x000055c2605342d5 n/a (Xwayland + 0x16f2d5)
#10 0x000055c260472c38 n/a (Xwayland + 0xadc38)
#11 0x000055c2603fbb6f n/a (Xwayland + 0x36b6f)
#14 0x000055c2603fd335 n/a (Xwayland + 0x38335)
Oct 14 09:57:50 mastodon kwin_wayland[1756]: kwin_xwl: Xwayland process crashed

Operating System: openSUSE Tumbleweed 20231012
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
Kernel Version: 6.5.6-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Manufacturer: ASUS

PS: When filling this form, there is no option Wayland on list of Components, just "X.Org" and "X11". Maybe you want to update this form to include "Wayland/xWayland", as I had to choose "Other" since no other fits.
Comment 1 Miguel Rozsas 2023-10-21 13:36:21 UTC
Created attachment 870370 [details]
A complete log from journal

A complete log from journal when the bug happens.
Comment 2 Miguel Rozsas 2023-10-21 13:36:52 UTC
The bug remains on openSUSE Tumbleweed 20231019.
Comment 3 Stefan Dirsch 2023-10-23 13:14:31 UTC
Hmm. kwin is running on Xwayland? This sounds weird. I would habe expected there is a KDE desktop available for Wayland.
Comment 4 Stefan Dirsch 2023-10-23 13:14:55 UTC
(In reply to Stefan Dirsch from comment #3)
> Hmm. kwin is running on Xwayland? This sounds weird. I would habe expected
> there is a KDE desktop available for Wayland.

Let's check this first.
Comment 5 Miguel Rozsas 2023-10-23 17:47:56 UTC
running google-chrome on a terminal to collect the error messages it issues the following messages when an error occur abd the program crash (both xwayland and google-chrome):

The X11 connection broke: I/O error (code 1)
X connection to :1 broken (explicit kill or server shutdown).
[3364:3364:1023/144052.095249:ERROR:connection.cc(46)] X connection error received.
[3364:3480:1023/144052.095249:ERROR:connection.cc(46)] X connection error received.
Comment 6 Miguel Rozsas 2023-10-24 21:07:22 UTC
Just want to add that I've installed gnome-wayland-desktop and in  2 days I didn't experienced any crashes or any other problem, using the same google-chrome and Bravo browser I use under KDE/Wayland.

So , I think I can say it is a problem in KDE/Wayland only. Not under KDE/X11 neither Gnome/wayland.

Currently running Tumbleweed 20231020 .
Comment 7 Stefan Dirsch 2023-10-24 22:54:29 UTC
(In reply to Miguel Rozsas from comment #6)
> So , I think I can say it is a problem in KDE/Wayland only. Not under
> KDE/X11 neither Gnome/wayland.

Sure on KDE/X11 there is no need for Xwayland. ;-)
Comment 8 Miguel Rozsas 2023-10-29 13:38:21 UTC
Updated to openSUSE Tumbleweed 20231025, xwayland-23.2.2-1.1.x86_64 and  google-chrome-stable-118.0.5993.117-1.x86_64 and no issues any more since then (3 days ago).

I don't know which package had the fix, I suspect it was xwayland but I could not be sure.