Spectacle occasionally creates 0 B files

The sole proof that I possess is:

kpipewire_record_logging: Could not write trailer

…and the file itself, I suppose:

How might I diagnose this? The problem is how sporadic it is; must I always invoke spectacle-6.6.4-1.fc44 as strace spectacle…?

Might be related: Cannot reliably paste images from clipboard

@reisub, if you refer to discuss.kde.org/t/40789/12, I doubt it; it should be writing these to the filesystem, rather than the clipboard.