tmux-resurrect icon indicating copy to clipboard operation
tmux-resurrect copied to clipboard

Stuck saving

Open L1Q opened this issue 3 years ago • 4 comments

Was going to reboot computer, doing the usual resurrect "save" shortcut. It's stuck on saving. The rotating animation is going for over 5 minutes, usually under 2 seconds. Whole tmux and anything inside is completely unusable. killed the session (or so I though) with tmux kill-session, tmux a says "no sessions". starting new tmux session with tmux (no arguments), it enters same "saving" state that blocks entire tmux session again. went to ~/.tmux/resurrect/ and removed all the files from there starting new session still presents with saving that is stuck, no new files or symlinks are generated in ~/.tmux/resurrect/

What is it doing, how to debug this? Where else does resurrect keep the state?

First time this is happening after a month or two of using resurrect.

$ tmux -V
tmux 3.1c

resurrect version as of commit 4a36ded50f89fd03e81ed1013ea9c73381c58160 installed in ~/.tmux/plugins/tmux-resurrect/ with "Tmux Plugin Manager" as recommended

L1Q avatar Mar 10 '21 15:03 L1Q

Rebooting entire computer helped, managed to restore older session. last session file in ~/.tmux/resurrect/ was empty (0 bytes). new save is successful again.

L1Q avatar Mar 10 '21 16:03 L1Q

note: when I said I removed all the files in ~/.tmux/resurrect/ I also backed them up so that's how I know the file was empty.

L1Q avatar Mar 10 '21 16:03 L1Q

Started happening to me two on the same day on two different machines.

I don't even get the "Saving" notification, but activating the save shortcut simply freezes the session. Attaching to it in another terminal works, the original kept frozen while the newly attached one is unfrozen.

The save file is not being created.

Interestingly enough, activating prefix + I, which I used originally to to fetch the plugin and source it via tpm, produces the same "stuck" behavior.

Running tpm's install_plugins.sh script as described here (https://github.com/tmux-plugins/tpm/issues/193#issuecomment-775598298) also does not work, it is just stuck. This (https://github.com/tmux-plugins/tpm/issues/195) does not fix it either. I assume this is the the same thing that's run when the prefix + I shortcut is triggered.

So I suspect that this is a bug or incompatibility with tmux itself, as at least for me it lines up with 3.2-1 being released yesterday. (https://archlinux.org/packages/community/x86_64/tmux/ 2021-04-13 08:36 UTC)

I couldn't read through all of the changes yet (https://github.com/tmux/tmux/issues/2645) but maybe someone else can find something.

EDIT: Rebooting does fix it as well. Not sure if permanently though.

LoLei avatar Apr 14 '21 12:04 LoLei

Started happening to me two on the same day on two different machines.

I don't even get the "Saving" notification, but activating the save shortcut simply freezes the session. Attaching to it in another terminal works, the original kept frozen while the newly attached one is unfrozen.

The save file is not being created.

Interestingly enough, activating prefix + I, which I used originally to to fetch the plugin and source it via tpm, produces the same "stuck" behavior.

Running tpm's install_plugins.sh script as described here (tmux-plugins/tpm#193 (comment)) also does not work, it is just stuck. This (tmux-plugins/tpm#195) does not fix it either. I assume this is the the same thing that's run when the prefix + I shortcut is triggered.

So I suspect that this is a bug or incompatibility with tmux itself, as at least for me it lines up with 3.2-1 being released yesterday. (https://archlinux.org/packages/community/x86_64/tmux/ 2021-04-13 08:36 UTC)

I couldn't read through all of the changes yet (tmux/tmux#2645) but maybe someone else can find something.

EDIT: Rebooting does fix it as well. Not sure if permanently though.

yes, rebooting fixs this, otherwise tmux will keep showing Restoring... forever after I upgrade to 3.2 yesterday.

zhuoqun-chen avatar Aug 04 '23 04:08 zhuoqun-chen