Skip to content

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

Open
@DanKaplanSES

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions