Skip to content

Large number of creation powershell.exe processes #2945

@Tovey

Description

@Tovey

Environment data

  • VS Code version: 1.28.2
  • Extension version (available under the Extensions sidebar): 2018.9.0
  • OS and version: windows 7, 64bit
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: XXX

Actual behavior

I was run python command in VSCode Terminal, with matplotlib.pyplot to draw picture, but after a while, a lot of powershell.exe processes were created in Windows task manager, and resulting in insufficient memory.
This problem was disappeared when disabled this extension.

Expected behavior

No powershell.exe process resides in Windows task manager

Steps to reproduce:

  1. run python scipt with matplotlib.pyplot in VSCode Terminal or F5;
  2. run sometimes then see windows task manager.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Jedi Python language engine.
##########Linting Output - flake8##########
##########Linting Output - pylint##########
************* Module gps_label_split_by_time
12,14,warning,W0612:Unused variable 'dir_names'
18,20,warning,W0612:Unused variable 'line'

------------------------------------------------------------------

Your code has been rated at 9.64/10 (previous run: 9.64/10, +0.00)



##########Linting Output - flake8##########
5,1,F,F401:'matplotlib.lines.Line2D' imported but unused
12,18,W,W291:trailing whitespace
20,5,E,E266:too many leading '#' for block comment
##########Linting Output - pylint##########
************* Module plot_gps_satellite
6,0,error,E0611:No name 'ConvexHull' in module 'scipy.spatial'

------------------------------------------------------------------

Your code has been rated at 8.86/10 (previous run: 8.86/10, +0.00)



##########Linting Output - flake8##########
##########Linting Output - pylint##########

--------------------------------------------------------------------

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)




Output for Log(Extension Host) in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Log(Extension Host))

[2018-10-18 16:53:34.391] [exthost] [info] extension host started
[2018-10-18 16:53:34.407] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"activationEvent":"*"}
[2018-10-18 16:53:34.407] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\debug-auto-launch\dist\extension
[2018-10-18 16:53:34.412] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"activationEvent":"*"}
[2018-10-18 16:53:34.412] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\emmet\dist\extension
[2018-10-18 16:53:34.445] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"activationEvent":"*"}
[2018-10-18 16:53:34.445] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\git\dist\main
[2018-10-18 16:53:34.558] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"activationEvent":"*"}
[2018-10-18 16:53:34.558] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\merge-conflict\dist\extension
[2018-10-18 16:53:34.564] [exthost] [info] ExtensionService#_doActivateExtension vscode.search-rg {"startup":true,"activationEvent":"*"}
[2018-10-18 16:53:34.564] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\search-rg\dist\extension
[2018-10-18 16:53:34.568] [exthost] [info] eager extensions activated
[2018-10-18 16:53:34.571] [exthost] [info] ExtensionService#_doActivateExtension vscode.python {"startup":false,"activationEvent":"onLanguage:python"}
[2018-10-18 16:53:34.571] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\python\out\pythonMain
[2018-10-18 16:55:42.256] [exthost] [info] extension host started
[2018-10-18 16:55:42.273] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"activationEvent":"*"}
[2018-10-18 16:55:42.273] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\debug-auto-launch\dist\extension
[2018-10-18 16:55:42.280] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"activationEvent":"*"}
[2018-10-18 16:55:42.280] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\emmet\dist\extension
[2018-10-18 16:55:42.313] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"activationEvent":"*"}
[2018-10-18 16:55:42.313] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\git\dist\main
[2018-10-18 16:55:42.431] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"activationEvent":"*"}
[2018-10-18 16:55:42.431] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\merge-conflict\dist\extension
[2018-10-18 16:55:42.439] [exthost] [info] ExtensionService#_doActivateExtension vscode.search-rg {"startup":true,"activationEvent":"*"}
[2018-10-18 16:55:42.439] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\search-rg\dist\extension
[2018-10-18 16:55:42.443] [exthost] [info] eager extensions activated
[2018-10-18 16:55:42.446] [exthost] [info] ExtensionService#_doActivateExtension vscode.python {"startup":false,"activationEvent":"onLanguage:python"}
[2018-10-18 16:55:42.446] [exthost] [info] ExtensionService#loadCommonJSModule d:\program\Microsoft VS Code\resources\app\extensions\python\out\pythonMain
[2018-10-18 16:55:42.447] [exthost] [info] ExtensionService#_doActivateExtension ms-python.python {"startup":false,"activationEvent":"onLanguage:python"}
[2018-10-18 16:55:42.447] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\Administrator\.vscode\extensions\ms-python.python-2018.9.0\out\client\extension

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)


![console_output](https://user-images.githubusercontent.com/8827460/47144128-57692b80-d2f9-11e8-842e-252c31907abf.png)

Other pictures

test_example
powershell_process
soft

Metadata

Metadata

Assignees

Labels

area-terminalbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions