Bug 443061 - Severe graphical corruption only on System Settings
Summary: Severe graphical corruption only on System Settings
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.22.90
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-28 08:57 UTC by sattaxt
Modified: 2021-10-07 10:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
STDOUT and qdbus support information. Zipped because I can't attach two files (3.49 KB, application/zip)
2021-09-28 08:57 UTC, sattaxt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sattaxt 2021-09-28 08:57:52 UTC
Created attachment 141984 [details]
STDOUT and qdbus support information. Zipped because I can't attach two files

SUMMARY
System settings flickers heavily, GUI elements (buttons, text etc.) completely disappear before returning after some time, and the left panel is commonly replaced by a full-white column. Stdout provides very little useful information, but I've attached it anyways.

Baffling detail: When I recorded System Settings with OBS to provide a video file showcasing the bug, it didn't reproduce. I closed OBS and tried the app immediately again, and sure enough, the bug was still there. It seems like OBS recording solves this bug???

I'm currently using the 5.23 beta but this also happened on 5.22.5, though it looks like the 5.23 beta has made it worse. 

STEPS TO REPRODUCE
1. Open System Settings
2. Navigate to anywhere or click on any element
3. See graphical corruption

OBSERVED RESULT
System settings has unusable amounts of graphical corruption

EXPECTED RESULT
System settings working without graphical errors

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux / 5.22.90
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2+kde+r227-1
Mesa Version: 21.3.0_devel.145344.112d526f778-1
GPU: Intel RocketLake-S GT1 [UHD Graphics 750] (rev 04)

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-09-28 20:17:05 UTC
Wayland or X11?
Comment 2 sattaxt 2021-09-28 20:18:25 UTC
Wayland.
Comment 3 Vlad Zahorodnii 2021-09-30 07:14:16 UTC
> 3. See graphical corruption

What kind of graphical corruption?
Comment 4 sattaxt 2021-09-30 07:31:57 UTC
(In reply to Vlad Zahorodnii from comment #3)
> > 3. See graphical corruption
> 
> What kind of graphical corruption?
Heavy flickering, text and buttons pop in and out of existence constantly, and the left panel (where the different setting panels live) completely disappears, and gets replaced by just a full-white column.

One detail that may be useful: The Startup->Background Services tab and Display Tab trigger this bug much faster. So maybe that can shed some light as to the cause.
Comment 5 Vlad Zahorodnii 2021-09-30 08:45:01 UTC
Can you change "tearing prevention" option in compositor settings to "fullscreen repaints" and check whether visual artifacts are still present?
Comment 6 sattaxt 2021-09-30 08:49:33 UTC
(In reply to Vlad Zahorodnii from comment #5)
> Can you change "tearing prevention" option in compositor settings to
> "fullscreen repaints" and check whether visual artifacts are still present?

Sure. I just did, and they are present.
Comment 7 Vlad Zahorodnii 2021-09-30 08:52:01 UTC
Sigh, right, it's not wired in on wayland. Can you please add "KWIN_USE_BUFFER_AGE=1" to /etc/environment and restart session?
Comment 8 Vlad Zahorodnii 2021-09-30 08:52:19 UTC
correction: KWIN_USE_BUFFER_AGE=0
Comment 9 sattaxt 2021-09-30 08:56:18 UTC
(In reply to Vlad Zahorodnii from comment #8)
> correction: KWIN_USE_BUFFER_AGE=0

Done. Bug is still present. The left panel being replaced by a white column seems to happen less, but might be just a new-session, random fluke thing.
Comment 10 sattaxt 2021-09-30 08:59:29 UTC
(In reply to sattaxt from comment #9)
> (In reply to Vlad Zahorodnii from comment #8)
> > correction: KWIN_USE_BUFFER_AGE=0
> 
> Done. Bug is still present. The left panel being replaced by a white column
> seems to happen less, but might be just a new-session, random fluke thing.

Update: Yep, it was a random fluke thing, the left panel issue also reproduces now.
Comment 11 Vlad Zahorodnii 2021-09-30 09:04:18 UTC
It looks like you use dev branch of mesa, can you reproduce the issue with stable mesa?
Comment 12 sattaxt 2021-09-30 09:08:26 UTC
(In reply to Vlad Zahorodnii from comment #11)
> It looks like you use dev branch of mesa, can you reproduce the issue with
> stable mesa?

I can't test it, because stable mesa will segfault due to being built against LLVM 12, and I can't compile it myself because stable mesa uses LLVM member functions that have been removed in later versions. Are there any logs that I could provide that would help you tell if it's related to mesa or not?
Comment 13 sattaxt 2021-10-07 10:10:54 UTC
Can't reproduce issue after a clean system reinstall. It was probably something to do with my other system packages.