mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.12k stars 104 forks source link

WSL terminal startup in blank and freeze #261

Closed alxchoy closed 3 years ago

alxchoy commented 4 years ago

Hi everybody,

I have a problem when open WSL terminal, this keeps in blank when start.

image

Windows version is 20H2, system compilation 19042.610 and wsltty latest release (3.4.1). I installed Ubuntu 18.0 and set wsl 2.

mintty commented 4 years ago

Cannot reproduce. To separate testing, please open (Win+R) a Windows cmd: cd %LOCALAPPDATA%\wsltty\bin wslbridge2

alxchoy commented 4 years ago

Thanks for reply.

I get same issue image

Biswa96 commented 4 years ago

Weird issue! Can you provide the output from wslbridge2.exe -x command? The -x option will show another wsl.exe window with some output. Does this issue happen with WSL1 distros?

alxchoy commented 4 years ago

I get this image but doesn't open a new window.

I use WSL2 with Ubuntu-1804 image

alxchoy commented 4 years ago

Sorry, this isn't wsltty issue. I has to set Ubuntu like default distro for linux: wsl --setdefault Ubuntu because I have many linux distro and docker was set by default

Thank you very much for your time and sorry for lost your time.

alxchoy commented 4 years ago

Pleas close this issue, thank you.

Biswa96 commented 4 years ago

@simonferquel May I ask for your help?

simonferquel commented 4 years ago

Yes, this happens when Docker Desktop is installed and run in WSL2 mode before any other WSL distro is installed. Unfortunately, there is no way for us to register the distro without it getting the "default" tag if no other one already exists :/ The docker-desktop-data is very minimalist and does not contain any shell. It is designed to run a single executable using wsl -e that bind mounts stuff into /mnt/wsl to handle docker desktop data persistence.

Biswa96 commented 4 years ago

Thank you. I understand it. I will add this in wslbrigde2 docs.

mintty commented 4 years ago

Could wslbridge2 detect whether the selected distribution is actually a WSL (or other) shell and return a warning then?

Biswa96 commented 4 years ago

docker-desktop is actually a distribution (Alpine based) like thing in WSL realm. So, ¯_(ツ)_/¯

Biswa96 commented 4 years ago

BTW, any idea is welcomed!

mintty commented 4 years ago

Do they leave any non-WSL like pattern in the registry?

Biswa96 commented 4 years ago

non-WSL like pattern

We could just sit back while Microsoft's WSL devs do the hard work here https://github.com/microsoft/WSL/issues/6176

Biswa96 commented 4 years ago

Another similar issue in WSL https://github.com/microsoft/WSL/issues/6274. Also similar workaround, setting Ubuntu as default distribution works in that case.

pangyuteng commented 3 years ago

finally was able to run wsltty.