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

console running WSL is unresponsive when running program with lots of output #198

Closed
matthargett opened this issue May 31, 2018 · 11 comments
Labels
Area-Performance Performance-related issue Help Wanted We encourage anyone to jump in on these. Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conhost For issues in the Console codebase Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Resolution-Fix-Available It's available in an Insiders build or a release

Comments

@matthargett
Copy link

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Microsoft Windows [Version 10.0.17134.81]
matt@DESKTOP-JN6UUK7:~$ uname -a
Linux DESKTOP-JN6UUK7 4.4.0-17134-Microsoft #81-Microsoft Sun May 20 01:14:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
matt@DESKTOP-JN6UUK7:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04 LTS
Release:        18.04
Codename:       bionic

This is on a Surface Book 2, happens when on battery or connected to power. There is no external display attached.

  • What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

In WSL for Ubuntu 18.04, do the following:

  1. Install nvs using the Linux instructions and choose 8.11.x as the version to install: https://github.com/jasongin/nvs#mac-linux
  2. sudo apt-get install git and clone react-native-windows. git clone https://github.com/Microsoft/react-native-windows
  3. cd into the react-native-windows directory and run npm install
  4. run node_modules/.bin/eslint .
  • What's wrong / what should be happening instead:

eslint has thousands of warnings. Try and control+C to break out of eslint. It won't work.

try to click the close button on the WSL console Window. it doesn't response. the eslint output just keeps going and going.

walk away for 20-30 minutes. when eslint stops running, you'll see the control+C and/or window close finally take effect.

@matthargett
Copy link
Author

Is there anything I can do to help get this resolved? Were there any difficulties reproducing the issue?

@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label May 17, 2019
@miniksa miniksa removed their assignment May 18, 2019
@miniksa miniksa added Area-Performance Performance-related issue Help Wanted We encourage anyone to jump in on these. Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conhost For issues in the Console codebase labels May 18, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label May 18, 2019
@kaddkaka
Copy link

This is a very annoying issue for me and time thief since it can take 10 seconds to switch in tmux while some process is printing a lot in the current window.

Have you looked into this issue?

@DHowett-MSFT
Copy link
Contributor

@kaddkaka we're looking into perf all the time. What version of the traditional windows console host (because that's what this bug was reported against) are you using?

@kaddkaka
Copy link

kaddkaka commented Apr 29, 2020

@kaddkaka we're looking into perf all the time. What version of the traditional windows console host (because that's what this bug was reported against) are you using?

Where can I see which version I have?

I installed WSL Ubuntu and started my "Ubuntu terminal" from the start menu. If I do uname -a I get this ouput:

Linux MTK11578-L02 4.4.0-17763-Microsoft #864-Microsoft Thu Nov 07 15:22:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

@zadjii-msft
Copy link
Member

zadjii-msft commented Apr 29, 2020

EDIT: derp this is a conhost thread

to get the conhost version, run winver from cmd or powershell:
image

@kaddkaka
Copy link

EDIT: derp this is a conhost thread

to get the conhost version, run winver from cmd or powershell

image

@kaddkaka

This comment has been minimized.

@zadjii-msft

This comment has been minimized.

@squrky
Copy link

squrky commented Aug 30, 2021

Hi all,

Has there been any progress towards a fix for this? The problem seems to be your common or garden starvation of user input when large amounts of output are being produced. I'm able to reproduce this issue with the following software versions:

  • Windows: 10.0.19042.1165
  • Windows Terminal: 1.10.1933.0
  • ConHost: 10.0.19041.964
  • Ubuntu: Linux threadbear 5.10.16.3-microsoft-standard-WSL2 # 1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

As the original poster suggested, this problem is obstructive for doing real work in the terminal, since it prevents job control precisely when it is needed the most. Let me know if I can offer any other information or help in any other way to move this forward.

Thanks.

@miniksa
Copy link
Member

miniksa commented Aug 30, 2021

@lhecker didn't you improve something around this recently with the ticket lock?

@lhecker
Copy link
Member

lhecker commented Aug 30, 2021

@miniksa @squrky Oh yeah I fixed this in #10653. I had my terminal freeze for up to a minute under certain conditions. The fix will be released very soon in Windows Terminal Preview v1.11.2421.0 (I wonder if it‘ll be released today… *wink*).

I‘m very confident in my fix so I‘ll take the liberty to close this issue.

@lhecker lhecker closed this as completed Aug 30, 2021
@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Aug 30, 2021
@miniksa miniksa added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Resolution-Fix-Available It's available in an Insiders build or a release labels Sep 1, 2021
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Performance Performance-related issue Help Wanted We encourage anyone to jump in on these. Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conhost For issues in the Console codebase Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Resolution-Fix-Available It's available in an Insiders build or a release
Projects
None yet
Development

No branches or pull requests

7 participants