mintty / wsltty

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

Cannot start wsltty on WSL2 #360

Closed mikoto2000 closed 1 month ago

mikoto2000 commented 1 month ago

When you launch wsltty, a window briefly appears and then disappears.

I run this command on command prompt:

%LOCALAPPDATA%\wsltty\bin\mintty.exe --tabbar=4 -o "KeyFunctions=t:new-window-cwd;w:close;AppID=wsltty" --WSL="Ubuntu" --configdir="%APPDATA%\wsltty" -h always -

I get this error:

/bin/wslbridge2: Exit 1.
[sock_connect: 134)](note: backend error output: Assertion failed: connectRet == 0 (nix-sock.c: nix_vsock_connect: 134))

How can I launch wsltty?

WSL version:

> wsl --version
WSL バージョン: 2.3.24.0
カーネル バージョン: 5.15.153.1-2
WSLg バージョン: 1.0.65
MSRDC バージョン: 1.2.5620
Direct3D バージョン: 1.611.1-81528511
DXCore バージョン: 10.0.26100.1-240331-1435.ge-release
Windows バージョン: 10.0.22631.4317

wsltty(mintty) version:

mintty 3.7.6 (x86_64-pc-cygwin) - wsltty 3.7.6
mikoto2000 commented 1 month ago

assert is this position. https://github.com/Biswa96/wslbridge2/blob/5f444e639cc5ff6eff8945094ee68d0583adaafe/src/nix-sock.c#L134

mikoto2000 commented 1 month ago

Restarting the PC several times resolved the issue.

mintty commented 1 month ago

Restarting the PC several times resolved the issue.

Thanks for notifying. In that case, it might have been sufficient to do wsl --shutdown.