Bug 487949

Summary: Spectacle Screen Recording Producing Mostly Empty Files
Product: [Applications] Spectacle Reporter: Dashon <dashonwwIII>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED FIXED    
Severity: normal CC: dashonwwIII, kde
Priority: NOR    
Version First Reported In: 24.05.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 24.05.1
Sentry Crash Report:

Description Dashon 2024-06-03 07:36:30 UTC
SUMMARY
Hey, I 'm beta testing Plasma 6.1 on Arch.
Whenever I try to screen record with spectacle it appears to be doing something, but regardless of the length of the video. The resulting file is always 425 Bytes. 

Here is the output of spectacle when run from the terminal
kpipewire_vaapi_logging: VAAPI: VA-API NVDEC driver [direct backend] in use for device "/dev/dri/renderD128"
[libvpx-vp9 @ 0x7ff1d49f2f40] v1.14.0
*** pw_stream_destroy called from wrong context, check thread and locking: Not in loop
*** impl_ext_end_proxy called from wrong context, check thread and locking: Not in loop
'pthread_equal(impl->thread, thread_id)' failed at ../pipewire/spa/plugins/support/loop.c:363 loop_leave()
kf.kio.workers.file: copy() QUrl("file:///tmp/Spectacle.YKFObm/Screencast_20240603_010736.webm") to QUrl("file:///home/d-air1/Videos/Screencasts/Screencast_20240603_010736.webm") mode= -1
[matroska,webm @ 0x7ff22c001bc0] Duplicate element
[matroska,webm @ 0x7ff22c001bc0] 0x00 at pos 100 (0x64) invalid as first byte of an EBML number
[matroska,webm @ 0x7ff22c001bc0] Duplicate element
[matroska,webm @ 0x7ff22c001bc0] 0x00 at pos 169 (0xa9) invalid as first byte of an EBML number
[matroska,webm @ 0x7ff22c001bc0] Element at 0x5d ending at 0x1cec0100000066 exceeds containing master element ending at 0x1409

STEPS TO REPRODUCE
1. Start a screen recording with spectacle.
2. Try to view the recording by opening the file in a video player of your choice. I tried mpv and vlc.

OBSERVED RESULT
File does not open as it doesn't seem to contain any video content.

EXPECTED RESULT
File should Open

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.0.90
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.1-zen1-2-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C95
System Version: 1.0
Comment 1 Dashon 2024-06-19 19:30:53 UTC
Seems to have been fixed in version 24.05.1