I have this graphics redrawing issue, it has been going on for some time so I dont know exactly which update broke it. KDE with AMD CPU/GPU.
The problem is in redrawing and affects any graphics intensive program including KDE Plasma (the taskbar), it often happens with browsers like Firefox or any other browser based application like those running Electron.
It appears randomly but will always appear after some time, when it is in effect the stricken application does not redraw its window or redraws it erratically. This has the appearance of the application being frozen and not responding, however i is responding it is just a the rending that does not show it.
Moving the window will force redraws and is a workaround to be able to save work etc, otherwise only restarting the application helps. One workaround for Firefox is to drag tabs out to force the creation of a new window (this retains the tabs internal state).
When it happens to Plasma it can be restarted with these commands (as it happens so often I made a script):
So? This is not helpful, the only information you provide is that not every one with KDE and AMD has this problem, but that’s already assumed, this version of KDE would never have shipped if everyone with an AMD processor had the issue I am having.
Do you know which core components are involved in the redrawing? I suspect kwin but in my mind it could be anywhere from X11 to the graphics driver. Whatever is the component that is responsible for marking areas of application for redrawing has a bug here but I dont know which one that is, is this related to compositing? Any idea of how to get further information as to what component is at fault?
I have seen this issue before with KDE but that was on another computer running a nvidia optimus card and then I just attributed to one of the myriad problems that ill conceived piece of hardware caused, but now I am staring to think this one has to do with KDE rather than nvidia.
The frequency of breakage is highly random but will happen to any one particular application window about once every 3 days but since I have lots of application windows open the come out to something breaking about every 2 hours.
A bit too much (potentially sensitive) information on those logs to post it without carefully reading through it, I might have to set up a more limited case and observe the thing breaking. Plasma for example breaks quite often, next time it does I will have a look and see if there is something interesting in that log, I will post anything I find.
In the meantime I am curious if anyone else has had a similar issue, not sure if my explanation is able to translate what it looks like, perhaps a more common way to describe it would be that applications randomly freezes, I might also make a video to show it in action.
Here is a video showing a Firefox window that got bugged up, it will stay like this until the window is closed.
As can be seen the title bar of the window is not affected and gets redrawn as it should (the title changes depending on the selected tab as it should). However the contents of the window does not get their trigger for redraw as they should, but the redrawing triggers that are issued by moving the window does work so by moving the window one gets to see what its contents really are. There is one further issue in that old content sometimes is drawn over new content which can be seen at the start of the video where the application flickers between different states. These are often caused by larger redraws like for example changing the tab.
we need also the logs, dont be afraid, theres nothing sensitive there … otherwise this is just guessing… disable dynamic power management, and see if it helped:
so open this file: kate /etc/default/grub
and in this line: GRUB_CMDLINE_LINUX_DEFAULT= inside the quotes add this parameter: amdgpu.dpm=0
dont remove anything from there, add it to existing parameters, save the file, update grub: sudo update-grub
reboot and test if it helped