After using for a long time, application window fails to render application windows.
Problem:
- application screen sometimes blacks out (Attached image)
- occurs in any application (Chrome, Thunderbird, Alacritty, KSettings, Slack, Discord, ..)
- rendering collapsed but the function is alive (terminal application accept commands, Chrome can connect(checked via wireshark))
Condition & How to reproduce
- after booting up for a several days (about 100 hours)
- (work as usual)
- operate window (raise, expand, shrink)
- sometimes screen blacks out
Actually, I cannot find how to reproduce except long uptime. This problem doesn't occur in first few days.
Error:
# journalctl -b
Jan 31 08:49:59 arch-desktop kernel: Linux version 6.1.8-arch1-1 (linux@archlinux) (gcc (GCC) 12.2.1 20230111, GNU ld (GNU Binutils) 2.40) #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000
...
Feb 03 20:40:39 arch-desktop plasmashell[339482]: [339515:339515:0203/204039.778323:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: RED_8, share_between_threads: 0, gmb_type: shared_memory
Feb 03 20:40:39 arch-desktop plasmashell[339482]: [339515:339515:0203/204039.845182:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: RG_88, share_between_threads: 0, gmb_type: shared_memory
Memory usage
Seems to be healthy
$ sudo nvidia-smi
Tue Feb 7 15:35:14 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.85.05 Driver Version: 525.85.05 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:07:00.0 On | N/A |
| 0% 42C P8 28W / 270W | 4288MiB / 8192MiB | 47% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
Environment
- OS: Arch Linux (Kernal: 6.1.8)
$ uname -a Linux arch-desktop 6.1.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000 x86_64 GNU/Linux
- Desktop: KDE Plasma (5.26.5)
$ plasmashell --version plasmashell 5.26.5
Question
Where is the problem occurs on (or how to find) ? Is this a kernel bug or kwin bug ?
I'm really annoying for this problem, and I can use my time for this problem. But I cannot find where is the correct place to contribute, because Linux and KDE project is very big.
Update - 2023-10-18
After a long struggle, I have found a some clue.
I compare process tree (ps auxf
) of when the bug occurs and not occurs.
It usually looks the same, but sometimes be different like this:
\_ /usr/bin/kwin_x11 --replace
| | \_ [cat] <defunct>
When I restart the process, the problem resolved without logout.
so, the following command is the trick for this problem.
kwin_x11 --replace