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.

vscode-python repeatedly launching wmic

See original GitHub issue

Environment data

  • VS Code version: 1.21.1 x64
  • Extension version (available under the Extensions sidebar): 2018.3.1
  • OS and version: Win10
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.13
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): NA

Actual behavior

When open to a python file, code with the Python extension enabled is continually launching wmic processes. This in turn backs the wmiprvse.exe service up, to the point where very quickly it’s consuming 100% of the CPU (on one core).

Expected behavior

VSCode shouldnt’ cause my CPU to be fully loaded when nothing’s actually happening

Steps to reproduce:

Install VSCode Install the python extension Open a python file. Watch in taskmgr/process explorer as wmic processes are created repeatedly.

Disable python extension Watch as no further wmic processes are created, and processor returns to idle.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MikhailArkhipovcommented, Apr 6, 2018

@DonJayamanne - I wouldn’t worry too much. I think we can change default memory control to off (or at least on Windows). In the new analysis engine we have internal control of the memory consumption so the setting won’t be needed eventually.

0reactions
derekwbrowncommented, Apr 25, 2018

WMI just doesn’t perform well if you use it frequently (as in poll every 5 seconds). You can get the same information from the performance counters library w/o incurring the wmi perf hit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode keeps opening new Python window every 10 ...
VSCode keeps opening new Python window every 10 seconds or so, unprompted, but still says Python not installed and am unable to use...
Read more >
Debugging configurations for Python apps in Visual Studio Code
To generate a launch.json file with Python configurations, do the following steps: ... Note: Starting a debugging session through the Debug Panel, F5...
Read more >
How to Fix the "This App Can't Run on Your PC" Error in ...
Right-click Start and go to Settings > Update & Security. From the left menu, open Windows Security and click Virus & threat protection....
Read more >
local windows debugger not showing
Now Press F5 or start the debugging option from the debug … ... Plus, doesn't track repeatedly ignored faces, so the same faces...
Read more >
Task scheduler return code 2147942401 - Giglio Boutique
I am trying to schedule a job to run a batch file with Windows 10 Task Scheduler, ... This system is up to...
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