question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Large number of creation powershell.exe processes

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
ramya-rao-acommented, Oct 24, 2018

@DonJayamanne Can you update the vscode-extension-telemetry version to 0.1.0 and give @Tovey a vsix to try out the fix?

We were able to track down the issue https://github.com/Microsoft/vscode/issues/60585 to 1.0.5 version of application insights used by vscode-extension-telemetry. The latest version of vscode-extension-telemetry uses the latest version of applicationinsights which has the fix.

0reactions
DonJayamannecommented, Oct 24, 2018

Closing in favour of #2996

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve High CPU Usage caused by Windows PowerShell on ...
The Windows PowerShell process may cause high CPU usage if an application on your system is triggering the PowerShell process. In this context, ......
Read more >
Use PowerShell to Monitor Specific Process Creation
Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to monitor for the creation of specific processes.
Read more >
WPM Player creating large number of OpenWith.exe processes
WPM Player accounts are opening hundreds of OpenWith processes and leaving them open. Server is running our of resources such as CPU and ......
Read more >
High Number of Process and/or Service Terminations - Elastic
#### Possible investigation steps - Investigate the script execution chain (parent process tree) for unknown processes. Examine their executable files for ...
Read more >
How to Enable Process Creation Events to Track Malware and ...
The Process Command Line field within the event will simply be blank. The schtasks.exe program is very commonly executed within a Windows ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found