Bug 450052 - Plasma flashes black around app when resuming from suspend
Summary: Plasma flashes black around app when resuming from suspend
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.24.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-11 23:29 UTC by Samuel Reddy
Modified: 2022-04-19 14:12 UTC (History)
3 users (show)

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


Attachments
Video of issue (3.32 MB, video/mp4)
2022-02-13 06:49 UTC, Samuel Reddy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Reddy 2022-02-11 23:29:34 UTC
SUMMARY:
Plasma flashes black around an app, causing everything except the focused app to flash black. This sometimes happens when resuming from suspend.

STEPS TO REPRODUCE:
1. Open app
2. suspend computer
3. resume computer
4. enter password
5. Flashing black around app

OBSERVED RESULT:
Plasma will flash black around an app

EXPECTED RESULT:
Plasma does not flash and instead looks normal

SOFTWARE/OS VERSIONS:
Operating System: Arch Linux
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx
Memory: 5.7 GiB of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics
Comment 1 galder 2022-02-12 13:52:03 UTC
Hello,
I tried with my laptop nvidia GPU plasma 5.24.0. I didnt notice any flask back.
Could please provide a video? maybe you need to record it with a mobile.

Regards
Comment 2 Samuel Reddy 2022-02-13 06:49:00 UTC
Created attachment 146658 [details]
Video of issue

Here is the video of the issue
Comment 3 galder 2022-02-13 10:45:28 UTC
Thanks for the video.
I guess we need to wait until someone else can confirm this issue.
From my side I cant reproduce it as I don't have an AMD GPU.
Regards
Comment 4 Bug Janitor Service 2022-02-28 04:36:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-03-15 04:35:25 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 6 Marios 2022-04-16 17:50:49 UTC
I can confirm this issue, I have both intel graphics and nvidia, but plasma runs on the intel card. I am also on arch linux.

In addition to the behavior listed, sometimes the desktop also just stays black and there will only be rendering within a buffer around open windows. and taskbar widgets. Meta + D to the desktop fixes it immediately, presumably since it triggers a redraw.

If I sleep my laptop by closing the lid and opening it, I can actually see the black background issue before even SDDM opens up (I think that is another bug, as for privacy/security concerns you shouldn't be able to get a glimpse of plasma on resume before SDDM takes over).

Note that I am running both SDDM and plasma on Wayland.
Comment 7 Marios 2022-04-16 17:56:19 UTC
Ah, I think I have some additional info. When I said sometimes it just stays black, it seems that that was because the mouse was moving.

In fact, I've found out that it starts flashing as the mouse is moving, and stops flashing and will either stay on background, or black screen, as the mouse move stops. It is still solved by force showing the desktop with Meta + D.

As a game developer I'm taking a guess here and saying that it might be a frame buffer issue, with one of the framebuffers not being updated with the desktop background - probably because of vsync?
Comment 8 Marios 2022-04-16 17:57:00 UTC
(In reply to Marios from comment #7)
> Ah, I think I have some additional info. When I said sometimes it just stays
> black, it seems that that was because the mouse was moving.
> 

Sorry, when the mouse was NOT moving.
Comment 9 Aleix Pol 2022-04-19 14:11:58 UTC
This should be fixed in 5.24.5 and master.