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

Extension Host is unresponsive after some minutes of using. #2827

Closed
jonathanschein opened this issue Oct 9, 2018 · 13 comments
Closed

Extension Host is unresponsive after some minutes of using. #2827

jonathanschein opened this issue Oct 9, 2018 · 13 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority info-needed Issue requires more information from poster

Comments

@jonathanschein
Copy link

  • Extension Name: python
  • Extension Version: 2018.9.0
  • OS Version: Windows_NT x64 10.0.17134
  • VSCode version: 1.28.0
{
   "activationTimes": {
   	"startup": false,
   	"codeLoadingTime": 1725,
   	"activateCallTime": 177,
   	"activateResolvedTime": 514,
   	"activationEvent": "onLanguage:python"
   }
}
@DonJayamanne
Copy link

Please could you provide the following information,

- Python version (& distribution if applicable, e.g. Anaconda): XXX
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX 

@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster type-perf labels Oct 9, 2018
@brettcannon
Copy link
Member

Also let us know if you are using Jedi or the language server and whether the language server was being downloaded or extracted at the time?

@DonJayamanne
Copy link

@essanpupil

  • are using Jedi or the language server
  • are you able replicate this issue consistently (i.e. loading vscode and opening a python file)

@jonathanschein @essanpupil

  • What other extensions do you have installed?
    • Use the command Help: Report Issue
    • Click on Preview on GitHub
    • Copy the list of extensions and paste it in here.

@essanpupil
Copy link

  1. I do not use jedi or language server
  2. I can replicate this, on and off virtualenv
  3. This is my list of extension:
    • DavidAnson.vscode-markdownlint
    • DmitryDorofeev.empty-indent
    • eamodio.gitlens
    • felixfbecker.php-intellisense
    • formulahendry.code-runner
    • ms-python.python
    • oderwat.indent-rainbow
    • PeterJausovec.vscode-docker
    • yzhang.markdown-all-in-one
  4. Python version: Python 3.6.6
  5. Windows:
    • Windows 10 pro 64bit
    • Version 1809
    • OS Build: 17763.1

I hope that helps, if there's anything i could do to help, please inform me.

@jonathanschein
Copy link
Author

Python version: 3.6.3
I'm using virtualenv

Extension Author (truncated) Version
EditorConfig Edi 0.12.4
tslint eg2 1.0.40
dotnet-test-explorer for 0.5.4
sass-lint gle 1.0.3
vscode-flake8 jay 0.0.4
csharpextensions jch 1.3.0
docomment k-- 0.1.2
Angular-BeastCode Mik 6.2.32
python ms- 2018.9.0
csharp ms- 1.16.2
debugger-for-chrome msj 4.10.2
gitblame wad 2.4.4

Thanks

@DonJayamanne
Copy link

@jonathanschein @essanpupil @Sanyorke-Han

Looking at the logs you have provided, the only one that stands out is the one provided by @essanpupil

Looking at the logs, it seems the extension is ready for use within < 2secs for @jonathanschein @Sanyorke-Han . I.e. I don't see how the extension could cause the extension host from being unresoponsive.

There could be other extensions that are causing the delays (@essanpupil is an exception, hence the request to retry - see further below).

Please do have a look at https://code.visualstudio.com/updates/v1_28#_extension-host-unresponsive

  • Based on the comments, the Python extension takes < 2 seconds, and not 10, hence the Python Extension can't the causing this.

Finally, please could you try exiting VS Code, reloading it and a Python file. After around 1 minute, please could you capture the perf metrics (for all extensions) once again and dump them here.

  • Open command palette
  • Select the command Developer Startup Performance
  • From the developer window, please take a screenshot of the Extension Activation Stats

@jonathanschein
Copy link
Author

Done

image

@thernstig
Copy link

thernstig commented Oct 10, 2018

I ended up here after searching some about the new "extension host unresponsive." I experience this when starting VS code though. Here are all the details.

  • Extension Name: python
  • Extension Version: 2018.9.0
  • OS Version: Windows_NT x64 10.0.17134
  • VSCode version: 1.28.0

We have written the needed data into your clipboard. Please paste:

{
	"activationTimes": {
		"startup": false,
		"codeLoadingTime": 15081,
		"activateCallTime": 504,
		"activateResolvedTime": 52,
		"activationEvent": "onLanguage:python"
	}
}

Additional info:

  • Python 3.6.1
  • pipenv version 2018.7.1
  • "python.jediEnabled": true, (which I assume means I am not using your own language server, right?)

VS Code version: Code 1.28.0 (431ef9da3cf88a7e164f9d33bf62695e07c6c2a9, 2018-10-05T14:58:53.203Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz (4 x 2295)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 7.91GB (2.88GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (9)
Extension Author (truncated) Version
vscode-markdownlint Dav 0.20.0
vscode-eslint dba 1.6.0
gitlens eam 8.5.6
ftp-sync luk 0.3.3
python ms- 2018.9.0
Go ms- 0.6.90
debugger-for-chrome msj 4.10.2
vscode-docker Pet 0.3.1
code-settings-sync Sha 3.1.2

@DonJayamanne
Copy link

DonJayamanne commented Oct 10, 2018

@omartin2010

Please provide the following info:

- VS Code version: XXX
- Extension version (available under the Extensions sidebar): XXX
- OS and version: XXX
- Python version (& distribution if applicable, e.g. Anaconda): XXX
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX 

Next:
Please could you reload vscode and capture the metrics once again.
Instructions:
Please could you try exiting VS Code, reloading it and a Python file. After around 1 minute, please could you capture the perf metrics (for all extensions) once again and dump them here.

  • Open command palette
  • Select the command Developer Startup Performance
  • From the developer window, please take a screenshot of the Extension Activation Stats

@DonJayamanne
Copy link

DonJayamanne commented Oct 11, 2018

@thernstig
The extension attempts to locate python interpreters upon loading the extension, that list is cached and for subsequent loads of VSC the cached list is used.

Please provide the following info:

- VS Code version: XXX
- Extension version (available under the Extensions sidebar): XXX
- OS and version: XXX
- Python version (& distribution if applicable, e.g. Anaconda): XXX
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX 

Next:
Please could you try exiting VS Code, reloading it and a Python file. After around 1 minute, please could you capture the perf metrics (for all extensions) once again and dump them here.

  • Open command palette
  • Select the command Developer Startup Performance
  • From the developer window, please take a screenshot of the Extension Activation Stats

@DonJayamanne
Copy link

DonJayamanne commented Oct 11, 2018

@korpjack

Please provide the following info:

- VS Code version: XXX
- Extension version (available under the Extensions sidebar): XXX
- OS and version: XXX
- Python version (& distribution if applicable, e.g. Anaconda): XXX
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX 

Next:
Please could you try exiting VS Code, reloading it and a Python file. After around 1 minute, please could you capture the perf metrics (for all extensions) once again and dump them here.

Open command palette
Select the command Developer Startup Performance
From the developer window, please take a screenshot of the Extension Activation Stats

@DonJayamanne
Copy link

Reported by @stolencatkarma

Extension Name: python
Extension Version: 2018.9.0
OS Version: Windows_NT x64 10.0.17134
VSCode version: 1.28.0

{
	"activationTimes": {
		"startup": false,
		"codeLoadingTime": 19889,
		"activateCallTime": 271,
		"activateResolvedTime": 71,
		"activationEvent": "onLanguage:python"
	}
}

@stolencatkarma

Please provide the following info:

- VS Code version: XXX
- Extension version (available under the Extensions sidebar): XXX
- OS and version: XXX
- Python version (& distribution if applicable, e.g. Anaconda): XXX
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX 

Next:
Please could you try exiting VS Code, reloading it and a Python file. After around 1 minute, please could you capture the perf metrics (for all extensions) once again and dump them here.

  • Open command palette
  • Select the command Developer Startup Performance
  • From the developer window, please take a screenshot of the Extension Activation Stats

@brettcannon
Copy link
Member

Part of #2853

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

6 participants