Skip to content

Initializing js/ts features Causes Application to hang #37967

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

Closed
klleroy opened this issue Mar 23, 2020 · 19 comments
Closed

Initializing js/ts features Causes Application to hang #37967

klleroy opened this issue Mar 23, 2020 · 19 comments
Assignees
Labels
Needs More Info The issue still hasn't been fully clarified

Comments

@klleroy
Copy link

klleroy commented Mar 23, 2020

TS Template added by @mjbvz

TypeScript Version: 3.8.3

Search Terms

  • TS Server (tsserver)

Issue Type: Performance Issue

Upon opening VS Code, JS/TS Features are initialized. This causes the Application to grind to a halt. I am not even using Typescript and I'm still forced to wait for this.

VS Code version: Code 1.43.1 (fe22a9645b44368865c0ba92e2fb881ff1afce94, 2020-03-18T07:17:38.324Z)
OS version: Linux x64 5.3.0-42-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (4 x 3306)
GPU Status 2d_canvas: unavailable_software
flash_3d: unavailable_off
flash_stage3d: unavailable_off
flash_stage3d_baseline: unavailable_off
gpu_compositing: unavailable_off
multiple_raster_threads: enabled_on
oop_rasterization: unavailable_off
protected_video_decode: unavailable_off
rasterization: unavailable_off
skia_renderer: disabled_off_ok
video_decode: unavailable_off
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled_readback
webgl2: unavailable_off
Load (avg) 3, 1, 0
Memory (System) 15.58GB (8.92GB free)
Process Argv --no-sandbox --unity-launch
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	   112	 18228	code main
    0	    32	 18232	   zygote
    0	   112	 18272	   gpu-process
    0	    48	 18284	   utility
    0	   112	 18496	   shared-process
    0	     0	 18893	     /bin/sh -c /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	     0	 18894	       /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    1	   255	 18612	   window (server.js - tasteslikehome - Visual Studio Code)
    0	   223	 18634	     extensionHost
    0	    80	 18707	       electron_node tsserver.js 
   35	   144	 18708	       electron_node tsserver.js 
    0	    80	 18776	         electron_node typingsInstaller.js typesMap.js 
    0	    96	 18744	       electron_node eslintServer.js 
    0	     0	 18642	     /bin/bash
   26	   303	 18847	       npm
    0	    48	 18689	     watcherService
    0	    48	 18706	     searchService
    0	    96	 18873	   window (Issue Reporter)
Extensions (17)
Extension Author (truncated) Version
jsrefactor cms 2.20.5
bracket-pair-colorizer Coe 1.0.61
vscode-eslint dba 2.1.1
es7-react-js-snippets dsz 2.7.0
vscode-html-css ecm 0.2.3
vscode-great-icons emm 2.1.47
prettier-vscode esb 3.20.0
php-debug fel 1.13.0
php-intellisense fel 2.3.14
php-pack fel 1.0.2
auto-rename-tag for 0.1.1
python ms- 2020.3.69010
vsliveshare ms- 1.0.1783
LiveServer rit 5.6.1
open-in-browser tec 2.0.0
vscodeintellicode Vis 1.2.6
vscode-icons vsc 10.0.0
@mjbvz mjbvz self-assigned this Mar 23, 2020
@mjbvz
Copy link
Contributor

mjbvz commented Mar 23, 2020

What exactly doesn't work while you see the progress indicator? It only indicates that the typescript server that powers both JavaScript and TypeScript language features is initializing (it is run its own process so it doesn't block VS Code)

@klleroy
Copy link
Author

klleroy commented Mar 24, 2020

Well I can tell you that it is blocking VS Code from running. I can't do anything while that is running. Oftentimes it takes about 3-5 minutes to complete. Sometimes less, sometimes more.

@mjbvz
Copy link
Contributor

mjbvz commented Mar 24, 2020

But what does "can't do anything mean"? Does it not respond to any input? Can you share a video of this?

@mjbvz
Copy link
Contributor

mjbvz commented Mar 24, 2020

Also does this reproduce with all extensions disabled?

@klleroy
Copy link
Author

klleroy commented Mar 26, 2020

Ahh. Seems I may have spoken prematurely. Seems to not block actual functionality (browsing to various site files, etc). But won’t allow you to install any node packages until VS Code has completed the task in question. Is that expected? Haven’t had a chance to disable all extensions.

@mjbvz
Copy link
Contributor

mjbvz commented Mar 26, 2020

No, it should not block that. How are you installing the node packages?

@klleroy
Copy link
Author

klleroy commented Mar 26, 2020

I use NPM so... npm i <package name>

@mjbvz
Copy link
Contributor

mjbvz commented Mar 26, 2020

Do you see an error during the install? Please also test with extensions disabled to make sure one of them isn't causing this

@klleroy
Copy link
Author

klleroy commented Mar 26, 2020

Negative. No error seen. App just hangs while that task runs/completes.

My Repro Steps

  • Open VS Code
  • JS/TS Features are initialized
  • Install a node package in a project via npm i abcPackage
  • App hangs until JS/TS Features task is complete

I'll try and test with extensions disabled and report back.

@mjbvz
Copy link
Contributor

mjbvz commented Mar 31, 2020

Did you see this after disabling extensions?

@klleroy
Copy link
Author

klleroy commented Apr 2, 2020

Sorry it's taken me so long. I've just confirmed that still experience the same symptoms even after disabling all extensions.

@mjbvz
Copy link
Contributor

mjbvz commented Apr 9, 2020

Can you please collect the TS Server log from when this happens:

  1. Set "typescript.tsserver.log": "verbose",
  2. Restart VS Code and reproduce the problem
  3. In VS Code, run the TypeScript: Open TS Server log command
  4. This should open a large log file called tsserver.log

If you can share the log, I can take a look to see if anything stands out that would explain this

⚠️Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this

@rynop

This comment has been minimized.

@mjbvz

This comment has been minimized.

@klleroy
Copy link
Author

klleroy commented Apr 13, 2020

Hi Matt -
Here's the latest results.
tsserver.log

@mjbvz mjbvz transferred this issue from microsoft/vscode Apr 14, 2020
@mjbvz mjbvz removed their assignment Apr 14, 2020
@mjbvz
Copy link
Contributor

mjbvz commented Apr 14, 2020

@jobu206 Was this log was collected during the hang?

Potentially sounds similar to #37653 but the logs don't show an install

@klleroy
Copy link
Author

klleroy commented Apr 14, 2020

@mjbvz yep, sure was.

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Apr 20, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 4.0 milestone Apr 20, 2020
@sheetalkamat
Copy link
Member

@klleroy please check if this is still the issue, if it is, provide the log using latest vscode and typescript nightly.
I would want you to follow the repro steps completely ( do let us know those steps) and wait for log to complete for those requests before you submit the log. Your previous log just shows project initializing but doesnt show npm install or anything else which is where you are seeing the issue.

You can upload logs by following these steps:

  1. Set "typescript.tsserver.log": "verbose"
  2. Restart vscode or vscode insiders
  3. Reproduce the problem
  4. In vscode or vscode insiders, run the TypeScript: Open TS Server log command
  5. This should open a large file called tsserver.log. Please share this file. Additionally you can also share file ti.log created next to it.

@sheetalkamat sheetalkamat added Needs More Info The issue still hasn't been fully clarified and removed Needs Investigation This issue needs a team member to investigate its status. labels Jul 10, 2020
@sheetalkamat sheetalkamat assigned klleroy and unassigned sheetalkamat Jul 10, 2020
@klleroy
Copy link
Author

klleroy commented Jul 29, 2020

I've been attempting to test this out but I can't get a repro. Closing as no repro. Will open a new issue if I have more problems.

@klleroy klleroy closed this as completed Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs More Info The issue still hasn't been fully clarified
Projects
None yet
Development

No branches or pull requests

5 participants