Plasma shell/Kwin having persistent graphics issues after playing Star Citizen on Wayland+Nvidia
So something really wacky is happening to my system after Star Citizen froze on me. Im running Bazzite KDE with Nvidia on Wayland, using the latest update available. It's like certain parts of the system can't see the graphics driver and kwin is having a fit, even after rebooting multiple times:
- Taskbar icons disappear when I mouse over them
- KWin crashes when I try to tile windows, icons in kde system settings are offsetting in weird places
- The system monitor is falling back to software rendering but the rest of the system seems like it's using the GPU fine in most places
- Windows seems to work fine, although it was slow on the load and the bios loading screen was a little glitchy. Destiny 2 ran okay.
Is my GPU dying or is this a kwin thing? Or is it some weird setting that I accidentally flipped in the driver?
I have tried:
- rebooting multiple times, even draining the capacitor
- updating, I'm on the latest update.
- rolling back, it even happens on the previous version where I wasn't playing SC.
Games run fine on Steam Proton, surprisingly. I have not tried SC again out of fear of making things worse. It's seemingly either Kwin or the Plasma shell not working right.
![No description](https://cdn.answeroverflow.com/1258770097263345745/image-16.png)
![No description](https://cdn.answeroverflow.com/1258770097862869054/image-11.png)
![No description](https://cdn.answeroverflow.com/1258770098295144548/image-10.png)
![No description](https://cdn.answeroverflow.com/1258770098752061440/image-9.png)
15 Replies
Please run
rpm-ostree status
- so I can see what version of Bazzite you are running
nvidia-smi
- to check the version of the driver
switcherooctl list
- so we can see if you have an Nvidia Optimus setup
Try make a new user account and log in as that user. See if the weird issues persist or go away completely just to check that it's not a weird local user config setting.
If the issues persist, I'd boot a live USB of something like Pop!_OS then you can see if your issue is a weird KDE issue or the graphics card itself.I'll get back to you on these, thank you!
Output of
rpm-ostree status:
Output of nvidia-smi
:
Output of switcherooctl list
:
Okay, making a new user reveals it's only happening when Im logged in as rilic
. That narrows it down a lot
Setting all my desktop effects and kwin scripts back to default has no affect, sadly
Arggg, I can't think of what it could be! I'm stumpedWe one step closer at least. One big plus is that we know that your graphics card is alright and it's just a config issue. I'd start by removing your hidden .cache folder (you need to press CTRL+H to show hidden files) in your home directory
If that doesn't work there are a bunch of Plasma config settings in .config in your home folder
Clearing the cache folder didnt work, sadly. Kwin just gave like 10 crash dumps via the KDE crash handler, but didnt actually crash. Im looking at them now, but I dont know anything abot KDE's codebase to understand much of anything
kwin_wayland
segvaulted, to be specific
Like a load of timesKWin looks like it's dying. Im looking at KJournald Browser and Im seeing this repeated constantly
![No description](https://cdn.answeroverflow.com/1258893539681505412/image.png)
When I put my mouse in the corner to get the overview, it goes black and shows no windows. It seems to continuously crash over and over... something wild is happening
![No description](https://cdn.answeroverflow.com/1258893744812589208/image.png)
New discovery: alt-tabbing crashes kwin and all running apps.
I genuinely have no idea what the hell is going on
And if the new user, none of this happens?
This repeating error is normal. Seems to happen in all KDE systems
Yup, new user has nothing wrong
I see, next chance I get i'll see if I can filter it out so I can find any more important logs
Update on this: I used SaveDesktop to move most of the desktop config from my main user to the test user. The test user now experiences the issue, so I've narrowed it down to whatever files SaveDesktop includes!!
It must be a Plasma thing
I'm gonna slowly set settings to default in the test user and see which one resolves the issue. This is big
Okay, deleting everything in ~/.config and relogging removed the issue. It's a setting in there somewhere.
Reapplying the issue to test user so I can troubleshoot
I THINK I FOUND THE ISSUE
YES I DID, OKAY
SO
I don't know how this happened, but something set Plasma's rendering to software-only. I did not know there was even a settings GUI for it, but I spotted it in the bottom right corner of the test user's menu bar while combing through config files.
SaveDesktop apparently keeps that setting since it's a plasma config setting
![No description](https://cdn.answeroverflow.com/1259525364292780082/image.png)
Solution![No description](https://cdn.answeroverflow.com/1259525474908901427/image.png)
This was set to Software. I set it back to OpenGL and it worked.
![No description](https://cdn.answeroverflow.com/1259525474908901427/image.png)
Perhaps there's some kind of keybind or automatic failsafe that did it...
For a late update to this: someone from the Star Citizen discord said that if Plasma receives too many errors on the graphics backend, it will revert to software rendering. This is hearsay, though, and I havent found any documentation to back this up. But it could be a lead as to the cause.
Have you move your config from a while ago? Like many months? There uses to be a bug where opengl wasn't working under some circumstances and it got reverted temporarily to software, at some time it got fixed but I guess the setting stuck
This is a fresh Plasma config from a couple weeks ago, so maybe there's still a bug present somewhere ^^