Bug 467727

Summary: Resizing application windows glitches when using a gif background on Wayland (Nvidia)
Product: [Plasma] kwin Reporter: tesla <forums.landlord401>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate, xaver.hugl
Priority: NOR    
Version First Reported In: 5.27.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of application windows not working

Description tesla 2023-03-23 20:06:21 UTC
Created attachment 157538 [details]
Screenshot of application windows not working

SUMMARY
Using wayland with a gif background can cause some applications to break and glitch when resizing or moving.

STEPS TO REPRODUCE
1. Start plasma session on wayland
2. Have or switch to a gif background
3. Run any application and resize/move to break

OBSERVED RESULT
Resizing windows, moving or watching a video fullscreen causes freezes/glitches

EXPECTED RESULT
Not glitch or freeze when resizing, moving or watching videos.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Nobara37
KDE Plasma Version: 5.27.3 
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel: 6.2.6-201
NVIDIA Driver: 525.85.05

ADDITIONAL INFORMATION
Some example applications of not working: firefox, kdenlive, discord, scrcpy. 
Having a nvidia graphics card can also be the main issue but I am not too sure.
The only temporary fix is to not use a gif background.
Comment 1 Nate Graham 2023-04-04 23:09:15 UTC
Is it an animated gif or a static gif? Can you attach the wallpaper file you're using that makes this happen?
Comment 2 tesla 2023-04-05 02:08:53 UTC
(In reply to Nate Graham from comment #1)
> Is it an animated gif or a static gif? Can you attach the wallpaper file
> you're using that makes this happen?

The file is an animated GIF and have used different GIF files with the same broken results.
I am unable to upload the GIF (or zip) file due to upload size limit, so here is the imgur link: https://imgur.com/a/DhVF77i
Thank you for responding back.
Comment 3 Nate Graham 2023-04-05 14:47:22 UTC
imgur turned it into an mp4 video! Any chance yo can find somewhere to host it that will preserve the file type?
Comment 4 tesla 2023-04-05 23:18:29 UTC
(In reply to Nate Graham from comment #3)
> imgur turned it into an mp4 video! Any chance yo can find somewhere to host
> it that will preserve the file type?

My apologies, heres a google drive link of the file: https://drive.google.com/file/d/1_TMcxlkx3c-IdJxhzfgVzlIQZwiz51ds/view?usp=sharing
The file should be a gif file and easy to download.
Comment 5 Nate Graham 2023-04-06 15:19:06 UTC
Thanks. I can't reproduce the issue with that wallpaper on my Wayland system with 200% scale and an Intel HD620 iGPU.
Comment 6 tesla 2023-07-04 08:39:30 UTC
(In reply to Nate Graham from comment #5)
> Thanks. I can't reproduce the issue with that wallpaper on my Wayland system
> with 200% scale and an Intel HD620 iGPU.

My apologies for the late reply, but I've bought a 6800 xt amd gpu and had no issues with my wallpaper crashing. Although it does not work on the lock screen but I don't think it was intended to be used for it.
Comment 7 Zamundaaa 2023-08-28 19:14:42 UTC
Can't reproduce on a rtx 3060 either