Something wrong with xwayland and x11? (cachyos, kde 6.7.1, kwin)

After kde 6.7.1. update my system hangs some time at startup. After a while It logins to system and I get a steam error and many apps do not work at all like Steam, Discord, Bambulab, Moondeckbuddy etc. They all failed to launch.

I updated everything else manually, and everything worked fine. So kde 6.7.1 caused these errors. For further testing I could update everything else within kde to 6.7.1. but not kwin from 6.6.5-4.1 to 6.7.1-1.1. With this method everything else works except monitor settings. I also tested x11 session, which would not start at all with plasma 6.7.1. I also posted this to cachy forum, but I think this is kde related.

So I restored my system to previous snap because I could not figure out what was wrong.

Cachyosboot log from yesterday:

Steam gives me this error with kde plasma 6.7.1:

Unable to open to a connection to X
Check your DISPLAY environment variable and make sure that you have enabled X.
If you are running remotely, make sure that you have a remote connection which will allow an X connection.

For more information visit Steam Support :: Linux Steam client unable to open a connection to X

My system is 5800x3d and 9070xt

kesä 23 21:29:52 <hostname-redacted> kwin_wayland[3020]: atomic commit failed: Laite tai resurssi varattu
[...]
kesä 23 21:29:56 <hostname-redacted> kwin_wayland[3020]: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.kwin'")
[...]
kesä 23 21:35:38 <hostname-redacted> kwin_wayland[3020]: OffscreenQuickView has no fbo!
kesä 23 21:35:41 <hostname-redacted> kwin_wayland[3020]: OffscreenQuickView has no fbo!
kesä 23 21:35:46 <hostname-redacted> kwin_wayland[3020]: OffscreenQuickView has no fbo!
kesä 23 21:35:46 <hostname-redacted> kwin_wayland[3020]: OffscreenQuickView has no fbo!
[...]
kesä 23 21:48:24 <hostname-redacted> kwin_wayland[3020]: Failed to open /dev/dri/renderD128 device (No such device)
kesä 23 21:48:24 <hostname-redacted> kwin_wayland[3020]: Failed to open drm device /dev/dri/renderD128
kesä 23 21:48:24 <hostname-redacted> kwin_wayland[3020]: Failed to open drm device 
kesä 23 21:48:24 <hostname-redacted> kwin_wayland[3020]: Failed to open drm device 
kesä 23 21:48:24 <hostname-redacted> kwin_wayland[3020]: Failed to open drm device 
kesä 23 21:48:24 <hostname-redacted> kwin_wayland[3020]: Failed to open drm device 
kesä 23 21:48:24 <hostname-redacted> kwin_wayland[3020]: Failed to open drm device 
kesä 23 21:49:24 <hostname-redacted> kwin_wayland[3020]: Failed to find a working output layer configuration! Enabled layers:
kesä 23 21:49:24 <hostname-redacted> kwin_wayland[3020]: src KWin::RectF(0,0 3440x1440) -> dst KWin::Rect(0,0 3440x1440)
kesä 23 21:49:24 <hostname-redacted> kwin_wayland[3020]: drmModeListLessees() failed: Lupa evätty
kesä 23 21:49:24 <hostname-redacted> kwin_wayland[3020]: Atomic modeset test failed! Lupa evätty
kesä 23 21:49:24 <hostname-redacted> kwin_wayland[3020]: Applying output configuration failed!
kesä 23 21:49:24 <hostname-redacted> kwin_wayland[3020]: Failed to find a working output layer configuration! Enabled layers:
kesä 23 21:49:24 <hostname-redacted> kwin_wayland[3020]: src KWin::RectF(0,0 3440x1440) -> dst KWin::Rect(0,0 3440x1440)
kesä 23 21:49:24 <hostname-redacted> kwin_wayland[3020]: Atomic modeset test failed! Lupa evätty
kesä 23 21:49:24 <hostname-redacted> kwin_wayland[3020]: Applying output configuration failed!
kesä 23 21:49:27 <hostname-redacted> kwin_wayland[3020]: Atomic modeset test failed! Lupa evätty
kesä 23 21:49:27 <hostname-redacted> kwin_wayland[3020]: Applying output configuration failed!

kwin_wayland fails to start, not being able to communicate with the GPU it seems.

Which version of the package are you using, which repository ? cachyos-extra-v3 cachyos-extra-znver4 or cachyos-extra ?

I know that optimized binary can introduce bugs, modifying the program.

My repository is cachyos-extra-v3

Try extra then we can say whether this is a KDE plasma/kwin bug or an issue with your repository/distro.

Thanks for an idea! I installed everything kde 6.7 related from extra but got same problem.

Log file is here:

f74b99e.log (would not allow me to post it)

Another User from cachyos forum got same kind of problems:

32eb15e.log

So is there anything I can do for this problem?

I also tested with 7.0.13.arch1-1 kernel and with cachyos mesa-git but always got same error.