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

wsltty may cause WSL to hang (Windows 10) #355

Open
DanKaplanSES opened this issue Sep 22, 2024 · 2 comments
Open

wsltty may cause WSL to hang (Windows 10) #355

DanKaplanSES opened this issue Sep 22, 2024 · 2 comments

Comments

@DanKaplanSES
Copy link

DanKaplanSES commented Sep 22, 2024

Every couple of months my WSL hangs until I restart my computer or kill WSL related processes in the task manager. By "hangs," I mean clicking on the terminal icon on my taskbar does not bring up a window, or, it brings up a window that never shows a prompt. I'll go into more detail at the bottom of this issue, or you can see the details I've already described in the WSL tracker

In the title, I use the word "may" because I'm not hundred percent sure wsltty is responsible, but I do have some evidence. When my WSL hangs:

  1. Killing wslbridge2.exe in the task manager sometimes unfreezes WSL so that the wsl --shutdown command completes.
  2. I can't find wslbridge2.exe in the task manager when my system is "stuck," but all the other WSL process seem to be running.

I know this isn't enough information to troubleshoot, but is there a way to generate wsltty logs or wslbridge2.exe logs the next time this happens so that I may be able to provide enough troubleshooting information to rule wsltty out as the cause?

Thanks!


Here's how I start wsltty: %LOCALAPPDATA%\wsltty\bin\mintty.exe --tabbar=4 -o "KeyFunctions=t:new-window-cwd;w:close;AppID=wsltty" --WSL="Ubuntu" --configdir="%APPDATA%\wsltty" -h always - Notice that if an error were causing this problem, the shortcut is set to keep the window open so I could see it: since the window doesn't open at all or doesn't print anything when it opens, WSL/wsltty seems to be experiencing some sort of deadlock. I also want to note that when I'm in this state, no wsl.exe commands complete: if I run wsl --shutdown, the command never finishes.

@mintty
Copy link
Owner

mintty commented Sep 23, 2024

clicking on the terminal icon

which means the wsltty icon or the native WSL console icon?

is there a way to generate wsltty logs or wslbridge2.exe logs

I'm afraid no. @Biswa96 ?

@Biswa96
Copy link
Contributor

Biswa96 commented Sep 23, 2024

I do not use the WSL anymore and ready to give away the wslbridge2 repository if anyone is interested to maintain it.

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

3 participants