-
Notifications
You must be signed in to change notification settings - Fork 104
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
WSL Terminal always closes immediately - How to debug #156
Comments
See the mintty manual page: |
Hey |
Add option |
sry for the late response: |
On the command line, the option is |
Sure I like closed issues :) but that does not look like a solution for you‽ |
You are right. Sorry |
Hey, it's working again. And I don't know why 😄 thanks for your support! |
hm the problem occurs again -:- |
Did you change the WSL mount path configuration? The solution for #91 might not be sufficient... |
I will try it and give you feedback |
Reproduced, also when using wslbridge directly from cygwin. |
@jrhorn424 From where did you download Alpine? Probable cause, Alpine uses MUSL C library for it's compactness feature. The |
Even though the backend Makefile contains options |
OK, I explain. When I compiled
Now in Alpine, I did this:
|
Thank you, that works for me as well! Very much appreciated. |
I still don't get it. It seems like the wslbridge is the problem. I use Terminus at the moment but it's pretty buggy if I use it with tmux. Should I ask at the wslbridge repo? |
I've tried to follow Biswa's suggestion and compile wslbridge-backend in Alpine (commented out the strerror stuff) - with no success. You can report it to wslbridge but I wouldn't expect a solution in wslbridge itself (except for the strerror). |
@mintty Did you install bash in Alpine? Because |
OK, right, I overlooked the bash thing in your comment. Got it working. And, for that matter, this is not the original issue opened here, but that was fuzzy anyway... |
@mintty That is known issue. See here rprichard/wslbridge#26 |
I've tried to load getpwuid with dlopen but it did not work... |
In the mantime: I works again #yail \o/ |
I have some opinions here Biswa96/wslbridge2#4. Can you guys provide your opinions which is better (or worse)? |
Does it strike anyone else as odd that the message below that is supposed to contain the substring '/bin/bash' is getting overwritten with random data. This smells like a memory overwrite error in wslbridge. That would jive with the intermittent nature of the problem in addition to reports of other people having similar difficulties with wslbridge used in other apps. C:\Users\mhodges\AppData\Local\wsltty\bin>wslbridge.exe C:\Users\mhodges\AppData\Local\wsltty\bin>wslbridge.exe |
Thanks for the observation. It seems wslbridge is not maintained anymore, but the next wsltty release will switch to wslbridge2. |
Released 3.0.5. |
Tentatively closing. |
Hi! I tried to investigate, but I was discouraged when I saw that a command that worked once stopped working after just a few minutes. I'll try investigating again in a couple days. |
Is that with WSL 2? (Output of |
I'm using WSL 1, since WSL 2 isn't available to my Windows version (Windows 1903 Build 18362).
and sometimes it started a WSL session, as below (I use the fish shell in my WSL):
So, I wrote a script just to have an idea of how often wslbridge2 works. The batch script is:
And the results are:
(I formated a little the results above, just to fit the screen and I also typed CTRL-D after every WSL session) I guess my next step should be compiling wslbridge2 and debugging it, but I'm afraid of installing cygwin, cygwin gcc and everything. As a side note, I tried to use Windows Terminal, but mintty is still the best, by far! |
|
You are not supposed to run wslbridge2 from a Windows cmd console session, that's not its purpose. |
No, I didn't try a fresh install since my upgrade to Windows 1903 last week. Reinstalling and reconfiguring the distribution isn't a light operation to me and when I tried it in July, it didn't change anything regarding wsltty.
I've just tried to change the default shell back to bash. The buggy behavior persists with bash.
I don't use zsh. I use fish shell. |
Oh, mistake, I mean did you install any theme in fish shell?
You can install any distribution without using Windows Store, just for a test. There are many here in GitHub. I have tested wslbridge2 with Debian, Ubuntu, Alpine with zsh, fish, bash etc without any error. |
Thank you for your attention. In this case, I was just trying to troubleshoot my buggy instance of wsltty, the same way as I did in July. My tests point that mintty is just fine, but wslbridge2 only works about 15% of the times it is executed.
Yep! But it will fail most of the time in my computer. (If I add |
I tried Debian right now and it had the same behavior as Ubuntu: it opens only once in a few tries.
Not a theme, but I use fish-prompt-metro and it includes some Unicode characters in my prompt, similar to Powerline. |
So maybe we need to raise the Windows Build prerequisite? And wsltty could revert to wslbridge(1) for earlier versions, i.e. still for the current official, non-insider Windows release (which doesn't support WSL V2 yet, I think)? |
For reference, I uninstalled wsltty 3.0.6 and tried version 1.9.6, that I used a long time ago. By the way, my wsltty used to work like a breeze some time ago. Then I tried to install docker for windows in my computer and that screwed up my wsltty. |
I have tested wsltty in a fresh installed Windows 10 1903 VM with fresh Debian from Windows Store, no packages are added or updated. It works flawlessly. Contributions are always welcomed in wslbridge2. |
Hello!
If the function I will open an issue in wslbridge2 to ask if someone could help me further debug this issue. Thank you very much for your support! Edit: only now I realized that it was the owner of wslbridge2 that was replying to my messages. Shame on me. 😅 |
I can not reproduce the error. Can you get the error code? Just add a line
Always welcome. But need another one case of this same error. |
@seandex, this is twofold the wrong issue to report your case. This is not the wsl-terminal project and this issue is not about virus reports. |
oooops, i deleted the post. I apologize! |
try by uninstalling using cmd administrator and reinstalling |
This would've saved me a minute or two: You put the The first few comments make it seem like you can put Anyway, now that I can read the error message ("...WSL 2 requires an update to its kernel component..."), should I remove the |
Please use the WSL from Microsoft Store or from here https://github.com/microsoft/WSL/releases In newer version of Windows, the Linux kernel binary was removed. Hence, that error message. |
I have been using the Microsoft store version for months and this just happened today. I think it may have been corrupted from my computer crashing a couple days ago. Uninstalling WSL and then manually installing the upgrade with the link in that error message fixed the issue for me. |
This issue popped back up for me yesterday. The program closes straight away, but I can still access WSL through Windows Terminal. I also tried re-running the WSLTTY installer, but it didn't seem to help. EDIT: I think #356 is a good place to monitor for this. |
Hey,
my WSL Terminal always closes immediately after starting it and I don't know why or how to debug it. I used wsltty-1.9.6-install.exe to install it. I use the Ubuntu 18.04 Image from the Windows Store on a Windows 10 Laptop.
That's how I call it:
H:>%LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL= --configdir="%APPDATA%\wsltty" -~ -V
The config file in "%APPDATA%\wsltty" is emtpy. Can you please help me. I can't go back to the default shell
The text was updated successfully, but these errors were encountered: