-
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
Mintty.exe Usually Closes Immediately, But Sometimes Runs. #187
Comments
See the very previous issue. |
Thank you for your quick response. I did read the immediately previous
post. I am not experiencing the same errors as the previous post.
In my case, I did not receive any of the following error messages indicated
by the previous post:
I am not receiving the same error, "/bin/wslbridge: Exit 1.
error: 'C:\Users\......\AppData\Local\wsltty\bin\wslbridge-backend' backend
program is missing", as my
C:\Users\........\AppData\Local\wsltty\bin\wslbridge.exe is not missing.
I am not receiving the same error, "note: backend error output: -v: -c:
line 0: unexpected EOF while looking for matching `''
-v: -c: line 1: syntax error: unexpected end of file"
In fact, when I run using "-h always", no error messages are ever
displayed, with the one exception being if I run mintty.exe with no
parameters. As this error is entirely reasonable and expected, I dismiss
this case.
I am not using Windows 10 insider build fast preview 18945 or greater.
Despite the many differences with the previous post, do you recommend I
pursue the wslbridge2 solution?
Thank you,
Mark
…On Tue, Sep 3, 2019 at 11:14 PM Biswapriyo Nath ***@***.***> wrote:
See the very previous issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#187?email_source=notifications&email_token=AJZ2256JZUHQRYTWICNYQL3QH5G4VA5CNFSM4ITNYWNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD52PDFA#issuecomment-527757716>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJZ225YY5K5KN2M3WP4JLULQH5G4VANCNFSM4ITNYWNA>
.
|
OK. Then open the |
No error is output. Do we have any debug logs we can enable? C:\Users\mhodges\AppData\Local\wsltty>cd %LOCALAPPDATA%\wsltty\bin Thank you. |
I got the same situation. C:\Users*\AppData\Local\wsltty>cd %LOCALAPPDATA%\wsltty\bin maybe it helps wsltty version: 3.0.2.3 |
This might relate to #156 |
Released 3.0.5 with new gateway. |
Following a fresh install of Ubunto distro and WSLtty, most of the time the window closes immediately upon invocation. No message is displayed when -h always is set. When I change the command line sometimes it will run once, but fail on subsequent invocations using the same command line. Below I've listed various attempts to run it along with the result of each attempt.
Installed Ubuntu from Windows Store.
Run Ubuntu. It performs installation, then prompts for new user name and password.
Downloaded and ran wsltty-3.0.2.3-install.exe
Run:
%LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL="Ubuntu" --configdir="%APPDATA%\wsltty" -~
Result:
Console opens then immediately closes.
Run:
%LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL="Ubuntu" --configdir="%APPDATA%\wsltty" -~ -h always
Result:
Console opens. No text message is displayed. I close the empty window.
wslconfig /l outputs:
Windows Subsystem for Linux Distributions:
Ubuntu (Default)
Run configure WSL shortcuts. Running the above commands produce the same results.
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL= --configdir="C:\Users\mhodges\AppData\Roaming/wsltty" -~ -h always
Result:
WSL distribution '' not found [Error info 3] Try '--help' for more information
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL="Ubuntu" --configdir="C:\Users\mhodges\AppData\Roaming/wsltty" -h always
Result:
Console opens. No text message is displayed. I close the empty window.
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL= --configdir="C:\Users\mhodges\AppData\Roaming/wsltty" -h always
Result:
Console opens. No text message is displayed. I close the empty window.
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL= --configdir="C:\Users\mhodges\AppData\Roaming/wsltty" -~ -h always
Result:
Console opens. No text message is displayed. I close the empty window.
Run:
%LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL= --configdir="C:\Users\mhodges\AppData\Roaming/wsltty" -~
Result:
Works!
Run same again:
%LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL= --configdir="C:\Users\mhodges\AppData\Roaming/wsltty" -~
Result:
Console opens. No text message is displayed. I close the empty window.
Run:
echo %LOCALAPPDATA%
Result:
C:\Users\mhodges\AppData\Local
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL= --configdir="C:\Users\mhodges\AppData\Roaming/wsltty" -~
Result:
Console opens. No text message is displayed. I close the empty window.
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL="Ubuntu" --configdir="C:\Users\mhodges\AppData\Roaming/wsltty" -h always
Result:
Works!
Run same again:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL="Ubuntu" --configdir="C:\Users\mhodges\AppData\Roaming/wsltty" -h always
Result:
Works!
Run same again:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL="Ubuntu" --configdir="C:\Users\mhodges\AppData\Roaming/wsltty" -h always
Result:
Console opens. No text message is displayed. I close the empty window.
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe
Result:
/bin/bash: Exit 126.
Failed to run '/bin/bash': No such file or directory
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL="Ubuntu" -h always
Result:
Console opens. No text message is displayed. I close the empty window.
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL=
Result:
Works!
Run same again:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL=
Result:
Console opens then immediately closes.
Run:
%LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL=
Result:
Console opens then immediately closes.
Run:
%LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL="Ubuntu"
Result:
Console opens. No text message is displayed. I close the empty window.
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL="Ubuntu"
Result:
Console opens then immediately closes.
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL="Ubuntu" -h always
Result:
Works!
Run:
C:\Users\mhodges\AppData\Local\wsltty\bin\mintty.exe --WSL="Ubuntu" -h always
Result:
Console opens. No text message is displayed. I close the empty window.
It doesn't make sense to me that successive identical invocations would produce differing results. Any help would be greatly appreciated.
Thank you,
Mark
The text was updated successfully, but these errors were encountered: