stray Python processes when running mypy, maxing out CPU completely #20517
Replies: 3 comments 13 replies
-
Good morning! Without extension 'Python' everything runs smoothly. Best regards and have a nice day, |
Beta Was this translation helpful? Give feedback.
-
Hello, In addition, I tried to check out the repo to another folder and tried it there, with the result being the same. Best regards and have a nice day, |
Beta Was this translation helpful? Give feedback.
-
I made a couple further observations: Second, I found that it is depending on the file I am working on. I currently have 6000 lines of code in my project in about 20 modules, where some of the files import a lot of other modules. Those loading many others are most affected by the problem. In contrast, I created a new file, which is not really linked to the rest of the project yet, and it just does not show this problem. So, after these findings I am a bit confused. Is it possible, that the extension is limited by the size of a project (however, I feel like 6000 lines of code are not that much...) and the structure of the project (I will refactor it a bit, create more modules, less lines of code per module and test that)? Still, I think there is something hiding, because after terminating the sub processes, linting and sorting works as it should, it seems that it is hold back by the sub processes being stuck somewhere (don't know how to best describe that...). Best regards and have a nice day, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there!
Since of today, my Python extension in Visual Studio Code maxes out my CPU. I recently had this issue (maybe a week ago), where I could solve it with
https://stackoverflow.com/questions/71516186/vs-code-uses-100-cpu-even-if-it-is-closed
It worked for a couple of days now. However, as of today, I am quickly again at 100% CPU. Here a couple of things I recognized so far:
In the following a couple of snippets from my Task Manager:
Here, the CPU usage after starting VSC, where the project folder is opened automatically.
Terminated the first sub process manually - remaining two 0% sub processes.
Hit 'save' a single time.
Hit 'save' a second time. And so on...
I am using Win11, about my VSC:
Version: 1.74.3 (user setup)
Commit: 97dec172d3256f8ca4bfb2143f3f76b503ca0534
Date: 2023-01-09T16:59:02.252Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No
I am completely out of ideas on how to get this fixed, since it just appeared out of nowhere today. Maybe someone here has an idea. Searching with Google didn't provide a lot, aside from what I linked above.
I would be grateful for help!
Best regards,
Thomas
Beta Was this translation helpful? Give feedback.
All reactions