Bug 502693

Summary: Spectacle screen recording preview garbled on Wayland
Product: [Applications] Spectacle Reporter: Daniel Duris <kdebugs>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: CONFIRMED ---    
Severity: normal CC: 4wy78uwh, daninshed, ihatemylife0025, john.kizer, kde, nate, postix
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=506799
https://bugreports.qt.io/browse/QTBUG-138679
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: well, peek was not able to screenshot spectacle either, it seems
photo of the garbled preview state
Minimal python program using QMediaPlayer
Logs of my python program

Description Daniel Duris 2025-04-11 21:07:09 UTC
SUMMARY
The preview of recording looks like green lines all over, garbled, nothing visible, weirdly sheared or such...

STEPS TO REPRODUCE
1. Run Spectacle screen recording 
2. Stop and play the video in the preview

OBSERVED RESULT
Garbled video

EXPECTED RESULT
Preview working

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.3
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.11.0-21-generic (64-bit)
Graphics Platform: Wayland
Comment 1 John Kizer 2025-04-14 03:00:54 UTC
Hi - can you please specify which recording mode you were using - Rectangular Region, Full Screen, or Window? Or, does the issue show up on your device when using all of those?

Is it only the preview in Spectacle itself that appears glitchy, or does that show up when playing the resulting video in a video player application?

Can you also please share what graphics card your system uses?

Thanks!
Comment 2 Daniel Duris 2025-04-14 09:42:35 UTC
(In reply to John Kizer from comment #1)
> Hi - can you please specify which recording mode you were using -
> Rectangular Region, Full Screen, or Window? Or, does the issue show up on
> your device when using all of those?
> 
> Is it only the preview in Spectacle itself that appears glitchy, or does
> that show up when playing the resulting video in a video player application?
> 
> Can you also please share what graphics card your system uses?
> 
> Thanks!

It's happening for any mode, rectangular of full window. The preview is always garbled.

Graphics Processor: Mesa IntelĀ® Arc

I'll post the screenshot (difficult to screenshot the screenshot app Spectacle... or impossible probably, so I had to use Peek to record it as a gif).
Comment 3 Daniel Duris 2025-04-14 09:43:14 UTC
Created attachment 180252 [details]
well, peek was not able to screenshot spectacle either, it seems
Comment 4 Daniel Duris 2025-04-14 09:44:41 UTC
Created attachment 180253 [details]
photo of the garbled preview state
Comment 5 Daniel Duris 2025-04-14 09:47:52 UTC
Funny thing is that screencast (the video) itself is totally fine. Just the preview is garbled/does not work.
Comment 6 Daniel Cleaver 2025-08-15 20:25:45 UTC
I think I have the same bug, but my garbled preview looks different from yours. I reported it here: https://bugs.kde.org/show_bug.cgi?id=508309
Comment 7 postix 2025-08-16 11:23:32 UTC
*** Bug 508309 has been marked as a duplicate of this bug. ***
Comment 8 postix 2025-08-16 11:24:54 UTC
> Can you also please share what graphics card your system uses?

Same issue with an AMD Ryzen 7 PRO 5850U with Radeon Graphics on Fedora 42.
Comment 9 postix 2025-08-16 11:27:52 UTC
I've noticed that the issue appears for WebM/VP9 but not when selecting MP4/H.264

Can the others confirm?
Comment 10 Daniel Cleaver 2025-08-16 20:31:56 UTC
(In reply to postix from comment #9)
Can confirm, same for me.

(see my duplicate for more pics and steps to reproduce)
Comment 11 ihatemylife0025 2025-09-01 17:46:35 UTC
Facing the same bug in Fedora 42 KDE
Comment 12 ihatemylife0025 2025-09-01 17:54:00 UTC
I don't think this bug is related to spectacle itself. I was able to reproduce the exact same glitching with a minimal python program using QMediaPlayer. It seems to only happen on wayland.
Comment 13 ihatemylife0025 2025-09-01 17:54:36 UTC
Created attachment 184628 [details]
Minimal python program using QMediaPlayer
Comment 14 ihatemylife0025 2025-09-01 17:57:13 UTC
I'm NOT a KDE developer so I'm not sure where should I report the bug
Comment 15 ihatemylife0025 2025-09-01 18:00:01 UTC
Created attachment 184629 [details]
Logs of my python program
Comment 17 Roke Julian Lockhart Beedell 2025-09-13 10:21:35 UTC
You may want to see https://bugs.kde.org/show_bug.cgi?id=506799#c9.