-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmux session in weird semi-zombie state #298
Comments
Wow, I was going to create a similar issue. Let me ask: how do you start tmux? I found that when I start tmux via a helper Here's a GIF of what is occurring for me (does it look familiar?): and here are the aliases I'm happily/safely using now: maxjacobson/dotfiles@6d883df |
Interesting. I'm starting tmux via a function defined in here. |
Oo that's a spicy function. Well, I think it might be a bug with tmux, but this should work for now: alias 'tmux'='local SOCK_SYMLINK=~/.ssh/ssh_auth_sock; if [ -r "$SSH_AUTH_SOCK" -a ! -L "$SSH_AUTH_SOCK" ]; then ln -sf "$SSH_AUTH_SOCK" $SOCK_SYMLINK; fi; if [[ -n "$@" ]]; then env SSH_AUTH_SOCK=$SOCK_SYMLINK tmux "$@"; return; fi; if [ -x .tmux ]; then local DIGEST="$(openssl sha -sha512 .tmux)"; if ! grep -q "$DIGEST" ~/..tmux.digests 2> /dev/null; then cat .tmux; read -k 1 -r "REPLY?Trust (and run) this .tmux file? (t = trust, otherwise = skip) "; echo; if [[ $REPLY =~ ^[Tt]$ ]]; then echo "$DIGEST" >> ~/..tmux.digests; ./.tmux; return; fi; else ./.tmux; return; fi; fi; SESSION_NAME=$(basename "$(pwd)"); env SSH_AUTH_SOCK=$SOCK_SYMLINK tmux new -A -s "$SESSION_NAME"' 😉 |
Hi What libevent version? Does this happen if you run tmux without a .tmux.conf? On Mon, Feb 08, 2016 at 12:12:56PM -0800, Greg Hurrell wrote:
|
Same here (OS X 10.11.3, libevent 2.0.22 via Homebrew, tmux 2.1 via Homebrew). |
I think this might have been resolved by the patch that came out of this issue #311 (comment) (782dd94). I tried installing from HEAD and couldn't reproduce the issue anymore, where previously I could reproduce it reliably. 🎉 |
Great! Let's assume you're right until proven otherwise. |
actually I just tried to re-open a tmux session and it's frozen again. apologies for the confusion, I think this issue persists 😬 |
Awww. |
Are you attaching to a session that is also attached elsewhere? |
I don't think so, although I'm not really sure |
In my case, no. But when I look at the list of attached sessions, I can see tmux thinks I still have other sessions. Killing them (ie. with |
Does this still happen in tmux from master? I changed how the backoff stuff works. |
Just updated to master. Will let you know if I see it happen again. |
Alas, just repro'd on master. |
Same |
Hmm I don't know what is going on. Please kill tmux entirely (tmux kill-server) then start tmux with "tmux -vvvv new" and reproduce then send me the server log from the directory where you started tmux. |
OK reproduced, here's the server log: https://gist.github.com/maxjacobson/19a29d0c52cbac084419 (deleted the earlier comment because I was able to reproduce again and this time with a small enough log that I could upload it to gist) |
There is a client that has probably disconnected but tmux has not been On Sun, Feb 21, 2016 at 04:23:09PM -0800, Max Jacobson wrote:
|
Here are my steps to reproduce:
(This is on tmux 2.1 as shipped with NetBSD -current) |
I can confirm this issue on Arch Linux: libevent 2.0.22-1 I've got a desktop which has a terminal connected to the tmux and a Macbook connecting over SSH to the same tmux. It usually gets stuck on my Macbook when my connection dropped for a few seconds and I had to reconnect to SSH, however I don't see the terminal that was connected via SSH, only the local one. Removing ( |
i can confirm this with tmux 2.1 on SnowLeopard
observations:
This only happens on sessions, where no output is produced. Sessions, which output something all the time, behave just fine. |
If you bump READ_SIZE and READ_BACKOFF in tmux.h to something huge this problem will probably go away. |
My current approach to "recover" is WAIT. Generally about 10 minutes later, it suddenly comes back normal. |
I hope there's a cure for this soon. :) |
It just postpones the problem. |
I've made git bisect to narrow down the problem |
I have removed the backoff timer so this should be resolved in master. |
Thanks a lot @nicm 😄 |
Nice |
This is also happening on Ubuntu 16.04: tmux 2.1-3build1 I'll fill a bug report on Launchpad and link it here. |
Yeah, this is working for me now in the latest build. Thank you! |
I'm running 2.2, and still can replicate this on OS X by starting tmux, killing my terminal, starting a new terminal, and attaching. Here's a server log: |
2.2 is the same as 2.1. On Thu, Jun 30, 2016 at 06:56:53AM -0700, Lee Ourand wrote:
|
I am also seeing this issue with tmux 2.2 and iTerm 2 version 3.0. |
Running into this issue with tmux 2.2 on Terminal.app on OS X 10.11.6. |
I ran into the same I found out that the Zsh framework I'm using had a module that originally came with the following Zsh shell configuration:
As soon as I changed that line unto a comment I no longer experienced the semi-zombie behaviour. I know it will sound lame but to make sure it wasn't the Zsh framework causing it I disabled the framework an placed the Can anyone tell me what's with Cheers! UPDATE After I installed via git everything was just fine even with |
I'm not sure if this is known, but I'm still seeing this issue in Ubuntu 14.04 LTS It happens both to my zsh panes as well as any panes running vim. |
@NHDaly Did you try Prefix key + Capital D (detach other sessions) . It happens to me when I am generally moving from one wifi to other . The terminal feels like its stuck . |
@neerajbadlani: Yes, this fixed the issue for me! I almost always connect to my server running tmux over mosh (which tells you when there are other connections still active, and i always kill those before attaching to tmux), so I'd never seen this issue before. Thanks for the help. |
I have tmux 2.4 running and whenever there's too much text showing up the screen, it hangs. To test it I just did du -h inside a directory twice and it froze. |
same here, cat a log and it froze |
Thank you @neerajbadlani! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This happens to me about once per day. It started when I moved from 1.9a to 2.1.
I'll attach to a running tmux session and all of the windows/panes in it appear frozen. But they're not actually frozen; they're just not redrawing when they receive input.
<Prefix>o
; see the cursor move to the next pane but note that typing still produces no visible output.<Prefix>
c to create a new window, see only an empty window created (no shell prompt visible).<Prefix>l
) and see that the window has now updated with whatever you typed at steps 1 and 2 above.The OS X "Sample" tool shows this is what tmux is up to when this happens. Nothing looks too suspicious in there.
The workarounds are either:
<Prefix>x
). This is always all of them, so you end up having to recreate the session.<Prefix>D
to get a list of attached sessions and detach all others but the one you created. Voila. Everything gets unblocked.Workarounds that don't work:
Not sure what the cause of this is, or whether it should be considered a bug or is the result of something funky I am doing. For reference, my
.tmux.conf
is here.The text was updated successfully, but these errors were encountered: