Bug 471950

Summary: Distorted windows contents on recovering from sleep / hibernate
Product: [Plasma] kwin Reporter: publiclyvisibleemail
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: duha.bugs, kde, nate, nicolas.fella
Priority: NOR Keywords: qt6
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Black "About this System" window

Description publiclyvisibleemail 2023-07-04 16:28:12 UTC
Created attachment 160077 [details]
Black "About this System" window

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. On a computer with an Nvidia 970M, using the (535) proprietary drivers, let the computer go to sleep / hibernate, (regular sleep mode normally isn't a problem - it comes right back after pressing the shift key or something, but if you leave the computer along for longer, eventually it goes into a "deeper sleep," (/hibernate?) which the computer can often not recover from and needs to be force-shutdown and rebooted.  ~1/10-15 times, the computer will eventually come back up from this "deeper sleep," (/hibernate - using whatever is the default power management in Neon Unstable) and that's when this happens - the rare time that the computer doesn't have to be force-shutdown and rebooted).
2. Press the shift, (or other) key to resume.
3. Login to X11 session

OBSERVED RESULT
Both of the previously-opened windows - Firefox and "About this System" were still open and shown, but Firefox just showed colored garble inside the window itself and the "About this System" window was solid black.  When you clicked on the Firefox window, it immediately recovered from garbled colors to the proper content in the window before the computer went to sleep.  Unfortunately, even after clicking multiple times in the "About this System" window and trying to move it around, just in case, it remained solid black, (see attached image file).

EXPECTED RESULT
Expected the desktop, including the content of any open windows, to look exactly the same as they did before the system entered (deeper) sleep mode.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.5.1

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2023-07-05 08:55:53 UTC
X or wayland?
Comment 2 publiclyvisibleemail 2023-07-05 14:40:08 UTC
(In reply to David Edmundson from comment #1)
> X or wayland?

Sorry, X11.
Comment 3 Nate Graham 2023-07-16 10:25:22 UTC
Does it happen on Wayland too?
Comment 4 publiclyvisibleemail 2023-07-20 20:39:21 UTC
(In reply to Nate Graham from comment #3)
> Does it happen on Wayland too?

Only saw it happen that one time in an X11 session, so afraid I can't say.  

That being said, I have a pretty awful time getting my laptop to come back from sleep / hibernate without needing to be force-shutdown and restarted, (i.e. I'd say I have to force-shutdown probably 95+ times out of a 100) so perhaps this was just an artifact of that and for other folks who don't have nearly as bad a time resuming this wouldn't happen, so I guess go ahead and close this for now unless someone else is getting this as well.
Comment 5 duha.bugs 2024-02-05 18:56:39 UTC
> so I guess go ahead and close this for now unless someone else is getting this as well.
Closing for now. Please reopen if this happens again.