Skip to content
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

Closed
MarkFiveThousand opened this issue Sep 4, 2019 · 7 comments
Closed

Comments

@MarkFiveThousand
Copy link

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

@Biswa96
Copy link
Contributor

Biswa96 commented Sep 4, 2019

See the very previous issue.

@MarkFiveThousand
Copy link
Author

MarkFiveThousand commented Sep 4, 2019 via email

@Biswa96
Copy link
Contributor

Biswa96 commented Sep 4, 2019

OK. Then open the %LOCALAPPDATA%\wsltty\bin path in Command Prompt (CMD) and execute wslbridge.exe. Did you see any error?

@MarkFiveThousand
Copy link
Author

No error is output. Do we have any debug logs we can enable?

C:\Users\mhodges\AppData\Local\wsltty>cd %LOCALAPPDATA%\wsltty\bin
C:\Users\mhodges\AppData\Local\wsltty\bin>wslbridge.exe
C:\Users\mhodges\AppData\Local\wsltty\bin>

Thank you.

@chi110r
Copy link

chi110r commented Sep 17, 2019

I got the same situation.

C:\Users*\AppData\Local\wsltty>cd %LOCALAPPDATA%\wsltty\bin
C:\Users*
\AppData\Local\wsltty\bin>wslbridge.exe
error: could not exec '/bQ□@5': No such file or directory
C:\Users***\AppData\Local\wsltty\bin>wslbridge.exe
error: could not exec '/b1M;': No such file or directory

maybe it helps

wsltty version: 3.0.2.3

@itsjef
Copy link

itsjef commented Sep 26, 2019

This might relate to #156

@mintty
Copy link
Owner

mintty commented Oct 2, 2019

Released 3.0.5 with new gateway.

@mintty mintty closed this as completed Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants