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

The Windows Subsystem for Linux instance has terminated. #7353

Closed
1 of 2 tasks
eaibizz opened this issue Aug 26, 2021 · 2 comments
Closed
1 of 2 tasks

The Windows Subsystem for Linux instance has terminated. #7353

eaibizz opened this issue Aug 26, 2021 · 2 comments

Comments

@eaibizz
Copy link

eaibizz commented Aug 26, 2021

Windows Build Number

Microsoft Windows [Version 10.0.19042.1165]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.16

Distro Version

Ubuntu-20.04

Other Software

Docker Desktop (Windows), version 3.6.0 (67351)
PhpStorm (Windows), 2021.2.1 RC (Build #PS-212.5080.45, built on August 19,2021)
SourceTree (Windows), version 3.4.6)

Repro Steps

When my computer has booted, I open PhpStorm and SourceTree.
In the meanwhile Docker Desktop is automatically starting.
Then I open my Ubuntu WSL terminal and it correctly shows my username.
Then I do start my Docker containers and I can use them as expected.
When I'd like to open a new WSL terminal window (to execute a bash script in WSL), the problem appears and I can't do anything inside of the newly opened WSL terminal and in a few minutes the WSL terminal is closing itself.
The message below is showing:

1629967935_phpstorm64_bIdo9QWpv5

I found out that there are 2 "solutions" to this problem:

  • Starting 2 WSL terminals at te same time after booting my computer (it seems that when they have been started yet, they continue to work)
  • Restarting LxssManager in services.msc and Docker Desktop

Expected Behavior

Even when I've already booted my computer a few hours ago, I'd like to have a correctly started Ubuntu WSL terminal like this when opening a new WSL terminal window or using the built in terminal in PhpStorm:
image

Actual Behavior

When I start my computer I'm able to access my WSL Ubuntu terminal and to execute commands (like docker-execute to start up my Docker containers).
After a while (this period is variable, but it does appear all the time recently) I still can use the earlier started WSL Ubuntu terminal, in which I've already been logged into my Docker container, but I can't open any new WSL Ubuntu terminal window anymore, nor using the built in terminal of PhpStorm to execute commands through WSL Ubuntu.
At first I get a blank black window with only a blinking cursor and after a while the message "The Windows Subsystem for Linux instance has terminated. Press any key to continue..." appears and again after a short while the terminal window is closing itself automatically.

Diagnostic Logs

https://aka.ms/AAdnh1i

@eaibizz
Copy link
Author

eaibizz commented Sep 28, 2021

Will this problem being solved quickly?
I still have problems with it every day and I haven't heard that it has been solved yet or that the problem is being investigated.

In the meanwhile I've updated the programs that I use to newer versions (but without success), like:

  • PHPStorm: 2021.2.2 Build#PS-212.5284.49, built on September 16, 2021
  • Docker Desktop: 4.0.1 (68347)
  • Windows 10 Pro, version 20H2, build 19042.1237

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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

1 participant