Bug 473369 - Recording interrupted if the selected window is resized or maximized/minimized
Summary: Recording interrupted if the selected window is resized or maximized/minimized
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 23.04.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-14 14:38 UTC by Enrico
Modified: 2025-04-22 15:02 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico 2023-08-14 14:38:46 UTC
SUMMARY
***
Hello,
I tried to record a specific window, but the recording is stopped when I press the maximize/minimize buttons.
The "recording" of Spectacle still runs, but when I stop the record and open the .webm file i can see the recording only before I press the maximize/minimize button
***

STEPS TO REPRODUCE
1. Open Spectacle > Recording
2. Start the recording of a selected window
3. Do something that will be recorded
4. Press the maximize or minimize button
5. Do something else
6. Stop the recording from Spectacle
7. Open the .webm file

OBSERVED RESULT
The webm file contains the recording only to the point you pressed the maximize/minimize button

EXPECTED RESULT
It should record everything, also after the maximize/minimize button.

Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.7 (backports PPA)
KDE Frameworks Version: 5.108.0 (backports PPA)
Qt Version: 5.15.8
Kernel Version: 6.2.0-27-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × 12th Gen Intel® Core™ i5-1240P
Memory: 7.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: Intel(R) Client Systems
Product Name: NUC12WSHi5
Comment 1 Nate Graham 2025-03-07 15:00:08 UTC
Can reproduce; I guess it doesn't handle the window changing size.
Comment 2 Nate Graham 2025-04-21 10:56:36 UTC
Does this only happen when recording using the H.264 format?

With git master, I can reproduce it only with H.264, and not VP9.
Comment 3 Enrico 2025-04-21 14:22:41 UTC
Hello,
I've tried to reproduce this bug from Kubuntu installed from scratch:


== Spectacle: 6.3.4
KDE Frameworks: 6.12.0
Qt: Using 6.8.3 and built against 6.8.3
Build ABI: x86_64-little_endian-lp64

== Operating System: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 6.14.0-15-generic (64-bit)
Graphics Platform: Wayland

Everything works fine. I tried bot H264 and WebM. Spectacle doesn't stop the recording anymore and it can also manage the window resize and also minimize/maximize. For my experience, I consider this bug fixed. It's strange that you still have this bug and I don't.

One difference between H264 and WebM: using H264 everything works as expected
Using WebM the recording seems to "pause" when the windows is minimized. When I play the recorded file with VLC the playback jumps from 00m:03s (when I minimize the window) to 00m:07s (when I re-open the window). However this behavior is not strictly related to this bug report.
Comment 4 Nate Graham 2025-04-22 15:02:32 UTC
With current git master, this works with VP9, and with H.264 it fails but Spectacle shows an appropriate error message:

An error occurred while attempting to record the screen.
The stream closed because the target window changed in a way that disrupted the recording.