-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WSL2: Terminals closing immediately after opening (after one reboot) #248
Comments
Have you tried with distributions in WSL1? |
Sounds like #246. Please check. |
Yes now it seems to work, but something is still fishy:
When I open Windows Terminal it registers:
Which is an old installation that was unregistered, it should be the first GUID, nothing else is installed. And wsl/mintty does not seem to reference any GUID. |
Aside from the scuffed GUID it just happened again out of the blue. This time several boots/shutdowns were in between. wsltty not working (closing after launch) while wt works. |
The GUID is an undocumented Windows registry thing. Though wslbridge2 uses undocumented COM interface, the usage of WSL related registries are strictly prohibited by MS devs.
Suspicious 🤔 wsltty/wslbridge only opens a pseudo-terminal which may not be related to file system mounts. |
Oh really? Do you have a reference? |
Search in the WSL issues with my user name, I've a reputation of suggesting registry as a workaround and each time MS devs warned me. Maybe WSL related registries will be obsolete in future. So I focused not to use registry in wslbridge2 in any manner. |
Where is that option and what does it do? |
powercfg.cpl -> Choose what the power buttons do. Fast startup is enabled by default in W10. |
Found some WSL issues related with fast startup |
Released 3.1.8. |
It seems fixed with 3.1.8, at least it has not happened yet :) |
I get this behavior with a converted WSL1 installation and with a freshly WSL2 installation (Alpine WSL, Windows 10 2004):
I've installed a new WSL2 distro, all is working fine until the PC is rebooted, after that wsltty does not launch anymore, it just closes itself after opening while Windows Terminal is still working fine.
The text was updated successfully, but these errors were encountered: