Bug 477017

Summary: Plasma is not properly rendered when using an ICC profile and both the contrast and blur effects
Product: [Plasma] kwin Reporter: Patrick Silva <bugseforuns>
Component: colour-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: agurenko, akhilkalwakurthy, deepangad14, kde, linx.system.adm, m.mcnutt, mwoodj, nate, sam, stereomato, techsav, xaver.hugl
Priority: NOR Keywords: qt6
Version: 5.93.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=477841
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot
ICC profile
ICC profile

Description Patrick Silva 2023-11-14 20:44:26 UTC
Created attachment 163163 [details]
screenshot

STEPS TO REPRODUCE
1. use Wayland
2. apply an icc profile in Display Configuration KCM
3. apply 125% scale 

OBSERVED RESULT
Plasma panel becomes black when I interact with it. Any popup/menu from Plasma panel is black on opening and gets stuck on the screen. These Plasma bugs disappears if I remove the icc profile from Display Configuration KCM.
Please see the attached screenshot - the incorrectly rendered parts are white instead of black.

EXPECTED RESULT
the described problems should not occur

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Graphics Platform: Wayland
Comment 1 Nate Graham 2023-11-14 22:38:56 UTC
Could you attach that ICC profile so I can test with it? I don't have one.
Comment 2 Patrick Silva 2023-11-14 22:54:39 UTC
Created attachment 163171 [details]
ICC profile
Comment 3 Zamundaaa 2023-11-15 14:12:36 UTC
Can't reproduce. Do you have any non-default effects active?
Comment 4 Patrick Silva 2023-11-15 15:13:03 UTC
Yes, Background Contrast and Blur. If any of them is disabled, the bug stops happening.
Comment 5 Nate Graham 2023-11-16 22:12:31 UTC
Cannot reproduce with those settings and that profile.
Comment 6 Patrick Silva 2023-11-17 14:14:59 UTC
Now only Blur and default effects are enabled on my system and the bug happened again. :(
Comment 7 Nate Graham 2023-11-17 17:54:06 UTC
So now it's happening when not using an ICC profile, and not using a fractional scale factor?
Comment 8 Patrick Silva 2023-11-17 19:12:03 UTC
I was also using the icc profile and fractional display scale when the event mentioned in comment 6 occurred.
Therefore, I do not need to enable both contrast and blur effects to trigger the bug.
I can easily reproduce with both effects enabled, but at the moment only one of them (blur) is enabled and so far the bug has only occurred once.
Comment 9 Patrick Silva 2023-11-19 13:12:45 UTC
It's not a bug related to fractional display scale. Now I'm using the icc profile and display scale 100% and the bug has happened again.
Comment 10 Rean 2023-11-20 03:08:21 UTC
(In reply to Patrick Silva from comment #9)
> It's not a bug related to fractional display scale. Now I'm using the icc
> profile and display scale 100% and the bug has happened again.

Is this the issue you speak of? If so, then here is a recording of it happening to me while I have an icc profile set. It doesn't happen all the time, but it only happens when an icc profile is enabled: https://streamable.com/budmuk. Look at the task bar and the glitchiness in Kicker.
Comment 11 Patrick Silva 2023-12-22 10:27:30 UTC
This bug persists on Plasma beta 2. The problem occurs after using the computer for a few hours. Then I restart the plasmashell process and use the computer for a few more hours until the problem occurs again.
Comment 12 Zamundaaa 2024-02-19 13:30:50 UTC
I've been running my desktop and laptop with an ICC profile for the past week and have yet to see this happen. What GPU are you using?
Comment 13 Patrick Silva 2024-02-19 13:39:19 UTC
Processors: 4 × Intel® Core™ i5-4670K CPU @ 3.40GHz
Graphics Processor: Mesa Intel® HD Graphics 4600
Comment 14 Vlad Zahorodnii 2024-02-19 14:09:01 UTC
I'm unable to reproduce the bug either
Comment 15 Patrick Silva 2024-02-24 12:30:10 UTC
The same rendering bug have just happened on my neon unstable installed on another machine.
I do not use any icc color profile on this machine, but I have night color activated on it (and on the another machine initially affected).

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.5-060705-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3-3110M CPU @ 2.40GHz
Memory: 15,5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
Comment 16 Kai Uwe Broulik 2024-06-17 18:01:45 UTC
*** Bug 487679 has been marked as a duplicate of this bug. ***
Comment 17 username 2024-06-21 16:40:49 UTC
I have the same issue, but I don't have scaling. It doesn't matter if I have blur enabled or disabled. It looks like it makes background less transparent.
Without ICC profile: https://imgur.com/a/71o0Zxq
With ICC profile: https://imgur.com/a/snoncJN
Comment 18 username 2024-06-21 16:44:48 UTC
Created attachment 170763 [details]
ICC profile
Comment 19 Michael Wood 2024-06-27 02:06:05 UTC
(In reply to username from comment #17)
> I have the same issue, but I don't have scaling. It doesn't matter if I have
> blur enabled or disabled. It looks like it makes background less transparent.
> Without ICC profile: https://imgur.com/a/71o0Zxq
> With ICC profile: https://imgur.com/a/snoncJN

I am seeing this issue in wayland as well. A good way to reproduce is to set the color profile to 'none'. In the konsole profile settings set background color transparency to something like 20%. Observe that the window is not very transparent and the text is easily legible. Then change the color profile to an ICC profile and click apply. Observe that the konsole window immediately becomes much more transparent and the font is harder to see.

I am running plasma 6.1.1 with nvidia driver 555.52.04.

I am not positive that this problem and the original issue are the same. This might require another ticket.
Comment 20 Zamundaaa 2024-06-27 08:27:52 UTC
That's a different thing, see bug 476868
Comment 21 Zamundaaa 2024-08-12 19:03:49 UTC
*** Bug 489393 has been marked as a duplicate of this bug. ***
Comment 22 Matt 2024-08-22 03:04:26 UTC
I believe the 3rd party windows shader effects Burn My Windows, may be suffering from this issue too

https://github.com/Schneegans/Burn-My-Windows/issues/432
Comment 23 Zamundaaa 2024-10-04 11:26:16 UTC
*** Bug 493898 has been marked as a duplicate of this bug. ***
Comment 24 Zamundaaa 2024-10-23 14:08:39 UTC
*** Bug 494897 has been marked as a duplicate of this bug. ***