Bug 444202 - Sometimes windows become transparent in Wayland
Summary: Sometimes windows become transparent in Wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.23.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-21 15:51 UTC by Lyubomir
Modified: 2022-01-19 19:57 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lyubomir 2021-10-21 15:51:59 UTC
SUMMARY
So i have constant high Memory and Swap usage. My swap is zram-only, no hard-drive backed swap. Usually swap doesn't reach 100%, but today it reached. So the RAM started going up after that and once it reached 90% early-oom kicked in and killed Firefox.
After Firefox was killed the Konsole window (and i guess other apps that were opened at that moment) became transparent. I don't remember about the other apps because this happened yesterday and i'm filling the bug today based only on what i see recorded. I'm pretty sure other apps opened were affected too, because it's not the first time this happened and the other times it happened it affected all opened apps at the time but not newly opened ones after that.
It's not only from KDE 23 or so, it's from before. I don't know what makes this happen and early-oom killing/high swap might be or might not be the reason.
I checked the early-oom log and the only thing it killed was GeckoMain from Firefox, nothing else, let alone kwin or plasma-related stuff. Also not sure if the other times it happened early-oom was killing something.
I don't know how to reproduce but nevermind i file this bug. I'll try to check if/when it happens again whether earlyoom killed something at that time.

Frequency of appearance of this bug i believe is something like 1 time a month +- a week, based only on my foolish memory so take it with a grain of salt.
OBSERVED RESULT
Please see the screenshot here: https://youtu.be/gza8QU5fNko

EXPECTED RESULT
No transparent windows glitch

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-20-lowlatency (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 1 Lyubomir 2021-10-21 17:30:11 UTC
Excuse me but i just noticed missed details in my description. The video recording is from yesterday when it happened and today i'm filling the bug as it happened again. What i have described in the above comment - swap 100% and Firefox killing are from today's crash. 
I've just checked the earlyoom logs from a little before the yesterday recording and it again then has killed "Isolated Web Content" and "GeckoMain", so the pattern of killing GeckoMain and this happening is a likely reason, i think so. In yesterday's recording you can see nan% in the desktop RAM widget for swap, so yesterday my swap was disabled when it happened (yes i had it disabled yesterday). Nevermind without or with swap early-oom killed GeckoMain and there was this issue.
Comment 2 Vlad Zahorodnii 2022-01-19 19:57:39 UTC
There was an issue in QJSEngine that caused some windows to become transparent, which should be fixed now. Please reopen this bug report if the issue is still reproducible. If so, please indicate if your distro ships Qt with KDE's patch collection.