You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a bit hard to pin down, but some combination of tmux + zsh + emacsclient results in a hung environment. There is also no way to kill the zombie processes without rebooting.
It is possible to launch a new install of bash and run top to see running processes, but tools like ps just hang.
In the top output you will see (unkillable) processes for emacs and zsh.
At this point the only solution is to reboot.
Some notes:
This only seems to happen with emacsclient
It does not happen right away... I have been able to launch 5+ emacsclients before this happens, but other times it occurs on the first launch
Plain bash + emacs (not emacsclient) can also trigger this, although it is usually after an hour or so of work and I have yet to see this happen with build 14931
Build 14931 is an improvement as in earlier builds this would result in a BSOD instead of just hanging the bash process
This happens in all combinations of: conhost, wsltty, conemu, and terminator exported via VcXsrv
The only seems to happen with emacs or emacsclient... I have not been able to replicate this with vim
Just noticed that in the emacs instance the error is: [persp-mode] Error: Can not deactivate frame.
This is nearly guaranteed when using tmux but may or may not occur without it.
Some additional information... this may be somehow related to ensime. I was just able to reproduce, but killing the java process behind ensime-server allowed me to launch emacs in a new bash instance.
Glen Starchman (@glenstarchman) Yeah, I already demonstrated this with tmux and oh-my-zsh. They're working on it. I'm 99% sure that it involves the pty implementation.
With build 14936 general crashes of the above seem to have gone away. However, launching more than 1 instance of emacsclient within a single bash window will hang the entire system... while normal emacs works just fine. For now a workaround is to launch server-start from within a WINDOWS emacs. Once that occurs you can launch as many emacslients as you want from within bash.
Glen Starchman (@glenstarchman) Does it hang the system (I haven't seen this happen since Win9x) or does it bugcheck/bsod? BSOD is a known issue in this build, says it on the changelog site.
I have narrowed this down even further. The culprit appears to be spacemacs and emacsclient in conjunction. Something in the way they are loading packages causes a hang in the terminal (eg, unresponsive in cmd, mintty, and terminator). Once this happens it is impossible to launch a bash instance again without a reboot. Digging deeper today.
fpqc I should have been more explicit. It hangs whatever terminal bash is running in. Once that happens the only way to continue to use bash is a reboot.
I have not received a single BSOD in this version, so that is very hopeful.
Edit to add: Of course I got a BSOD immediately after sending this (CRITICAL_PROCESS_DIED). Still, getting closer!
fpqc I can actually duplicate this without tmux or oh-my-ssh. It is not always consistent, but launching one or more emacsclient instances (or even multiple emacs instances) will render the entire subsystem unusable. This is using vanilla bash in the normal console.
Note: I have been able to replicate this with vanilla emacs, prelude, and spacemacs both with and without tmux and oh-my-zsh. My current thought is that it has something to do with drawing multiple emacs frames. I noticed that the the Windows native emacs also seems to have some trouble with freezing from time to time and wonder if it is somehow related. I can use tmux, oh-my-zsh and multiple vim instances without any problem at all.
Edited to add: it is impossible to get a strace of what is happening because the terminal just hangs. If anyone has a good solution for debugging this further I am happy to try it!
Not sure if this is helpful or not but in the latest build simply launching zsh can completely hang the bash process. Looking forward for the fix! I can work with not having zsh (painfully) but a hanging emacsclient is a deal breaker.
Edited to add: I don't boot into Windows too often. As soon as I posted this I saw there is a new build. Hopefully some changes in there :-)
I have not seen this issue occur on build 14959, although on first run I got a BSOD using WSL on Mintty. Using a native Linux terminal exported via an xserver works just fine.
Glen Starchman (@glenstarchman) If you can find the minidump (I couldn't when I had a bugcheck), try seeing if you can send it over to [email protected] (email them first and they will tell you how and where to put it).
I have been unable to duplicate any issues with 14965. There are a few random freezes and whatnot within Spacemacs, but I really think this has more to do with Spacemacs than the build.
Activity
glenstarchman commentedon Sep 26, 2016
Some additional information... this may be somehow related to
ensime. I was just able to reproduce, but killing thejavaprocess behindensime-serverallowed me to launchemacsin a new bash instance.fpqc commentedon Sep 26, 2016
Glen Starchman (@glenstarchman) Yeah, I already demonstrated this with tmux and oh-my-zsh. They're working on it. I'm 99% sure that it involves the pty implementation.
benhillis commentedon Sep 26, 2016
fpqc Glen Starchman (@glenstarchman) - We identified a locking issue in our pty code that has been resolved and will be in an Insider build soon.
glenstarchman commentedon Sep 26, 2016
Thanks, guys... my normal Linux setup is so close to working with WSL. Almost there.
glenstarchman commentedon Sep 29, 2016
With build 14936 general crashes of the above seem to have gone away. However, launching more than 1 instance of
emacsclientwithin a single bash window will hang the entire system... while normalemacsworks just fine. For now a workaround is to launchserver-startfrom within a WINDOWS emacs. Once that occurs you can launch as manyemacslients as you want from within bash.fpqc commentedon Sep 29, 2016
Glen Starchman (@glenstarchman) Does it hang the system (I haven't seen this happen since Win9x) or does it bugcheck/bsod? BSOD is a known issue in this build, says it on the changelog site.
glenstarchman commentedon Oct 2, 2016
I have narrowed this down even further. The culprit appears to be
spacemacsandemacsclientin conjunction. Something in the way they are loading packages causes a hang in the terminal (eg, unresponsive incmd,mintty, andterminator). Once this happens it is impossible to launch abashinstance again without a reboot. Digging deeper today.glenstarchman commentedon Oct 2, 2016
fpqc I should have been more explicit. It hangs whatever terminal bash is running in. Once that happens the only way to continue to use bash is a reboot.
I have not received a single BSOD in this version, so that is very hopeful.
Edit to add: Of course I got a BSOD immediately after sending this (CRITICAL_PROCESS_DIED). Still, getting closer!
fpqc commentedon Oct 2, 2016
Glen Starchman (@glenstarchman) Latest version?
fpqc commentedon Oct 2, 2016
Glen Starchman (@glenstarchman) btw if you can submit a memdump to Russ Alexander (@russalex) or Ben Hillis (@benhillis) It will probably be useful.
glenstarchman commentedon Oct 12, 2016
Update: No BSOD in latest build, but emacsclient still hangs the entire subsystem. I'll do some more digging later today.
fpqc commentedon Oct 12, 2016
Glen Starchman (@glenstarchman) Same. It no longer hangs rebooting my system, but it isn't fixed
(with oh my zsh and tmux).
glenstarchman commentedon Oct 12, 2016
fpqc I can actually duplicate this without tmux or oh-my-ssh. It is not always consistent, but launching one or more emacsclient instances (or even multiple emacs instances) will render the entire subsystem unusable. This is using vanilla bash in the normal console.
Note: I have been able to replicate this with vanilla emacs, prelude, and spacemacs both with and without tmux and oh-my-zsh. My current thought is that it has something to do with drawing multiple emacs frames. I noticed that the the Windows native emacs also seems to have some trouble with freezing from time to time and wonder if it is somehow related. I can use tmux, oh-my-zsh and multiple vim instances without any problem at all.
Edited to add: it is impossible to get a strace of what is happening because the terminal just hangs. If anyone has a good solution for debugging this further I am happy to try it!
fpqc commentedon Oct 12, 2016
Happens wo emacs. It is ptys in general.
4 remaining items
glenstarchman commentedon Oct 21, 2016
Not sure if this is helpful or not but in the latest build simply launching zsh can completely hang the bash process. Looking forward for the fix! I can work with not having zsh (painfully) but a hanging emacsclient is a deal breaker.
Edited to add: I don't boot into Windows too often. As soon as I posted this I saw there is a new build. Hopefully some changes in there :-)
russalex commentedon Oct 21, 2016
I have not tested with emacsclient. I have to admit I am not an emacs person.
Happy to repro this one myself if someone can give me the steps. I want to make certain I am installing / running emacs the same way as everyone else.
The tmux + zsh one I did validate is fixed internally.
glenstarchman commentedon Oct 21, 2016
+1 on the tmux + zsh. My guess is that the fix for that will also fix the emacsclient issue. However, to attempt to duplicate do the following:
emacs --daemonthen launch a few
emacsclient -t [filename]instances.Sometimes it freezes at one but other times it takes a few different clients... but eventually it will completely freeze the bash process.
russalex commentedon Oct 22, 2016
I was never able to repro this. A screen like this should freeze, correct?
Tried on 14951 but really put it through it's paces on an internal build. The screenshot is internal and has:
Other than the internal build, only thing special I can think of is I have a .tmux.conf of
set-option -g mouse on.fpqc commentedon Oct 22, 2016
Russ Alexander (@russalex) I'll have you know that on a proper (non-Apple) keyboard, it is called an Enter key. =O!!!!
Also I haven't been able to get emacs to do it, so confirming no repro.
glenstarchman commentedon Oct 22, 2016
The latest build is much more stable and so far I have only experienced a freeze when closing an emacs window. Almost there!
comzyh commentedon Nov 4, 2016
Build 14959 seems solved this issue.
glenstarchman commentedon Nov 8, 2016
I have not seen this issue occur on build 14959, although on first run I got a BSOD using WSL on Mintty. Using a native Linux terminal exported via an xserver works just fine.
fpqc commentedon Nov 8, 2016
Glen Starchman (@glenstarchman) If you can find the minidump (I couldn't when I had a bugcheck), try seeing if you can send it over to [email protected] (email them first and they will tell you how and where to put it).
glenstarchman commentedon Nov 15, 2016
I have been unable to duplicate any issues with 14965. There are a few random freezes and whatnot within Spacemacs, but I really think this has more to do with Spacemacs than the build.
russalex commentedon Nov 15, 2016
Thanks Glen Starchman (@glenstarchman). I am going to go aheadand close this one out.