mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[GH-ISSUE #674] Shell hangs if recording is ended while paused. #957
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#957
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rcorre on GitHub (Feb 15, 2025).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/674
Describe the bug
If you quit the recording while paused, the shell hangs. It seems to recover eventually, but it takes a while.
To Reproduce
Steps to reproduce the behavior:
<ctrl-\><ctrl-d>Expected behavior
A clear and concise description of what you expected to happen.
The recording can be ended while paused.
Versions:
Additional context
Add any other context about the problem here.
@ku1ik commented on GitHub (Feb 16, 2025):
Ooh, that's a good catch! Hopefully something easy to fix.
@ku1ik commented on GitHub (Feb 24, 2025):
I tried your repro steps but can't reproduce it, it works fine me. I checked on the 3.0.0-rc.3 commit and on the latest develop. Not quite sure what's going on.
@ku1ik commented on GitHub (Feb 24, 2025):
What terminal and Linux distro does this happen for you on?
@rcorre commented on GitHub (Feb 25, 2025):
Archlinux, my terminal is
foot version: 1.20.2-107-gc63202ee (Feb 10 2025, branch 'master') +pgo +ime +graphemes +toplevel-icon +system-bell -assertions@rcorre commented on GitHub (Feb 25, 2025):
Ah, I figured it out. On my desktop, it worked fine, and I noticed I was getting desktop notifications about the paused recording. My laptop didn't have a notification server installed. I installed
dunstand now asciinema no longer hangs.@rcorre commented on GitHub (Feb 25, 2025):
Though strangely, if I uninstall
dunston my destkop,notify-sendexits immediately with an error. On my laptop,notify-sendjust hangs. I'm not sure what the difference is yet.@rcorre commented on GitHub (Feb 25, 2025):
Seems similar to https://bbs.archlinux.org/viewtopic.php?id=228142. My laptop had
xdg-desktop-portal-kde, which was catching the notification requests and hanging.I suppose
asciinemacould handle a command hanging more gracefully, but maybe it's not worth the effort given this was a misconfiguration on my part and/or a bug in a notification daemon.@ku1ik commented on GitHub (Feb 25, 2025):
Ooh, that would explain things. Thanks for digging into this. I'll see if there's some easy way to make asciinema immune to such misconfigurations.
@ku1ik commented on GitHub (Jun 20, 2025):
This has been fixed in
caf0cf3707