Bug 470582 - Spectacle unable to stop recording screen
Summary: Spectacle unable to stop recording screen
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 23.04.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-03 10:19 UTC by Wen-Wei Kao
Modified: 2023-11-29 08:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wen-Wei Kao 2023-06-03 10:19:36 UTC
SUMMARY
Spectacle is unable to stop recording the screen and save it.

STEPS TO REPRODUCE
1. Open Spectacle
2. Press Recording > Workspace
3. Unhide the window (as the window hides itself after pressing Workspace)
4. Press "Finish recording"

OBSERVED RESULT
The record continues and does not stop. When I started Spectacle from the terminal and pressed "Finish recording", this message showed up in the terminal:
```
*** pw_stream_set_active called from wrong context, check thread and locking: Not in loop
```
However there are no other messages on subsequent presses.

EXPECTED RESULT
The recording was stopped and I was asked to save the video (or it auto-saves somewhere).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Slackware post-15.0 -current
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
Are there any logs that I could add? I'd help capture any logs if they help.
Comment 1 Justin Zobel 2023-06-05 03:05:22 UTC
I'm unable to reproduce this issue on Fedora 38 KDE on Wayland with 23.04.1. Are you also on Wayland? I believe the screen recording may be a wayland only feature.
Comment 2 Wen-Wei Kao 2023-06-05 13:32:49 UTC
(In reply to Justin Zobel from comment #1)
> I'm unable to reproduce this issue on Fedora 38 KDE on Wayland with 23.04.1.
> Are you also on Wayland? I believe the screen recording may be a wayland
> only feature.

Hello,

Thanks for the reply. After more fiddling it turns out Pipewire wasn't running for some reason. After starting Pipewire all became normal.

-- ltlnx
Comment 3 Justin Zobel 2023-06-05 22:58:49 UTC
I'm going to reopen this as spectacle should in my opinion check for the user to ensure recording works.
Comment 4 Ben 2023-06-20 12:31:50 UTC
I too have this problem


Spectacle Version: 23.04.2

KDE Info:

Operating System: openSUSE Tumbleweed 20230617
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.7-1-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 15.5 GiB of RAM
Graphics Processor: PITCAIRN

NOTE: pipewire and pipewire-pulse were both running
Comment 5 Ben 2023-08-22 18:57:13 UTC
Issue still present:

Operating System: openSUSE Tumbleweed 20230821
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.11-1-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 11.6 GiB of RAM
Graphics Processor: PITCAIRN
Comment 6 Noah Davis 2023-11-29 08:09:19 UTC
I've never encountered this issue myself, so I'm not sure what the cause could have been. It's also not clear if Wen-Wei's issue is exactly the same as Ben's issue. A lot of improvements have been made since the bug report was posted (especially in the upcoming 24.02 version). Justin mentioned that Spectacle should check if recording works and I'm pretty sure Spectacle won't start recording if recording is impossible, so I'm going to mark this as fixed. Version 24.02 won't have a "Workspace" mode since that was changed to a more general Region recording mode. If someone has a similar problem with version 24.02, please make a new bug report since the steps for reproducing the issue would be different.