Skip to content

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

Closed

Description

  • 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.

Activity

  1. matthargett commented on Jul 4, 2018

    @matthargett
    Author

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

  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on May 17, 2019
  3. added
    Help WantedWe encourage anyone to jump in on these.
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Product-ConhostFor issues in the Console codebase
    on May 18, 2019
  4. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on May 18, 2019
  5. kaddkaka commented on Apr 22, 2020

    @kaddkaka

    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?

  6. DHowett-MSFT commented on Apr 22, 2020

    @DHowett-MSFT
    Contributor

    David Moberg (@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?

  7. kaddkaka commented on Apr 29, 2020

    @kaddkaka

    David Moberg (@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

  8. zadjii-msft commented on Apr 29, 2020

    @zadjii-msft
    Member

    EDIT: derp this is a conhost thread

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

  9. kaddkaka commented on Apr 29, 2020

    @kaddkaka

    EDIT: derp this is a conhost thread

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

    image

  10. kaddkaka commented on Apr 29, 2020

    @kaddkaka
  11. zadjii-msft commented on Apr 29, 2020

    @zadjii-msft
  12. squrky commented on Aug 30, 2021

    @squrky

    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.

  13. miniksa commented on Aug 30, 2021

    @miniksa
    Contributor

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

  14. lhecker commented on Aug 30, 2021

    @lhecker
    Member

    Michael Niksa (@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.

  15. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Aug 30, 2021
  16. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-PerformancePerformance-related issueHelp WantedWe encourage anyone to jump in on these.Issue-BugIt either shouldn't be doing this or needs an investigation.Product-ConhostFor issues in the Console codebaseResolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.Resolution-Fix-AvailableIt's available in an Insiders build or a release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions