Skip to content

Zombie processes hogging CPU/RAM, Duplicate diagnostics #24828

@xaviergmail

Description

@xaviergmail

Type: Bug

I'm putting this out here as a feeler, as I have no info on the bug

Behaviour

Over the past few days, vscode has been unusable for Python development.
Some things I am noticing are:

  • Several python processes using significant CPU/RAM
  • Some of these python processes show no parent process
  • Duplicated diagnostics from pylance, mypy, flake8

Image

Image

Image

Image

Steps to reproduce:

Unsure about this, it seems to happen every time, but especially when doing work with CDK

  1. npx cdk init app --language python
  2. Set interpreter
  3. Start editing

Diagnostic data

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

2025-02-18 10:41:00.571 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-18 10:41:00.571 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-18 10:41:00.571 [info] Experiment 'pythonTestAdapter' is active
2025-02-18 10:41:00.571 [info] Native locator: Refresh started
2025-02-18 10:41:00.571 [error] Python discovery not supported in untrusted workspace
2025-02-18 10:41:00.571 [info] Native locator: Refresh finished in 5 ms
2025-02-18 10:41:00.571 [error] Python discovery not supported in untrusted workspace
2025-02-18 10:41:00.571 [error] Invalid environment [native]: {}
2025-02-18 10:41:01.642 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-18 10:41:01.642 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-18 10:41:01.642 [info] Experiment 'pythonTestAdapter' is active
2025-02-18 10:41:01.642 [info] Native locator: Refresh started
2025-02-18 10:41:01.642 [info] Native locator: Refresh started
2025-02-18 10:41:02.028 [info] Native locator: Refresh started
2025-02-18 10:41:02.734 [info] Poetry environment manager found at: /Users/xavier/.asdf/shims/poetry
2025-02-18 10:41:03.140 [info] Starting Pylance language server.
2025-02-18 10:41:04.100 [info] Native locator: Refresh finished in 3514 ms
2025-02-18 10:41:04.101 [info] > pyenv which python
2025-02-18 10:41:04.101 [info] cwd: .
2025-02-18 10:41:04.139 [info] Starting Pylance language server.
2025-02-18 10:41:05.396 [info] Python interpreter path: ./.venv/bin/python
2025-02-18 10:41:05.920 [info] > conda info --json
2025-02-18 10:41:36.613 [error] Python discovery not supported in untrusted workspace
2025-02-18 10:41:36.613 [error] Invalid environment [native]: {}
2025-02-18 10:41:36.876 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/crossregion/east_stack.py
2025-02-18 10:41:46.332 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/app.py
2025-02-18 10:41:58.255 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/app.py
2025-02-18 10:42:18.785 [error] Python discovery not supported in untrusted workspace
2025-02-18 10:42:18.785 [error] Invalid environment [native]: {}
2025-02-18 10:42:19.053 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/crossregion/east_stack.py
2025-02-18 10:42:47.638 [info] Native locator: Refresh started
2025-02-18 10:42:47.657 [info] Poetry environment manager found at: /Users/xavier/.asdf/shims/poetry
2025-02-18 10:42:48.378 [info] Native locator: Refresh finished in 737 ms
2025-02-18 10:42:54.380 [info] Native locator: Refresh started
2025-02-18 10:42:54.406 [info] Poetry environment manager found at: /Users/xavier/.asdf/shims/poetry
2025-02-18 10:42:55.060 [info] Native locator: Refresh finished in 678 ms
2025-02-18 10:43:22.621 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/crossregion/east_stack.py
2025-02-18 10:43:26.068 [error] Python discovery not supported in untrusted workspace
2025-02-18 10:43:26.068 [error] Invalid environment [native]: {}
2025-02-18 10:43:26.337 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/crossregion/east_stack.py
2025-02-18 10:43:28.029 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/tests/unit/test_crossregion_stack.py
2025-02-18 10:43:32.750 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-18 10:43:32.750 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-18 10:43:32.750 [info] Experiment 'pythonTestAdapter' is active
2025-02-18 10:43:32.757 [info] > pyenv which python
2025-02-18 10:43:32.757 [info] cwd: .
2025-02-18 10:43:32.785 [info] > conda info --json
2025-02-18 10:43:35.223 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion
2025-02-18 10:43:35.223 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion
2025-02-18 10:43:45.607 [info] Starting Pylance language server.
2025-02-18 10:44:02.129 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/crossregion/east_stack.py
2025-02-18 10:46:24.246 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/crossregion/east_stack.py
2025-02-18 10:59:24.131 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/crossregion/stacks.py
2025-02-18 10:59:51.523 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/app.py
2025-02-18 11:06:51.804 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/app.py
2025-02-18 11:07:01.597 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/app.py
2025-02-18 11:07:36.939 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/lambda/handler.py
2025-02-18 11:08:38.768 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/crossregion/stacks.py
2025-02-18 11:09:23.754 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/crossregion/stacks.py
2025-02-18 11:10:20.889 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion/crossregion/stacks.py
2025-02-18 11:22:53.734 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-18 11:22:53.735 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-18 11:22:53.735 [info] Experiment 'pythonTestAdapter' is active
2025-02-18 11:22:54.230 [info] > pyenv which python
2025-02-18 11:22:54.230 [info] cwd: .
2025-02-18 11:22:54.320 [info] > conda info --json
2025-02-18 11:22:56.481 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion
2025-02-18 11:22:57.011 [info] Starting Pylance language server.
2025-02-18 11:23:05.255 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-18 11:23:05.255 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-18 11:23:05.255 [info] Experiment 'pythonTestAdapter' is active
2025-02-18 11:23:05.258 [info] > pyenv which python
2025-02-18 11:23:05.258 [info] cwd: .
2025-02-18 11:23:05.645 [info] > conda info --json
2025-02-18 11:23:08.530 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion
2025-02-18 11:23:16.271 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-18 11:23:16.271 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-18 11:23:16.271 [info] Experiment 'pythonTestAdapter' is active
2025-02-18 11:23:16.274 [info] > pyenv which python
2025-02-18 11:23:16.274 [info] cwd: .
2025-02-18 11:23:16.658 [info] > conda info --json
2025-02-18 11:23:19.861 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion
2025-02-18 11:23:30.206 [info] Starting Pylance language server.
2025-02-18 11:24:13.391 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-18 11:24:13.391 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-18 11:24:13.391 [info] Experiment 'pythonTestAdapter' is active
2025-02-18 11:24:13.420 [info] > pyenv which python
2025-02-18 11:24:13.420 [info] cwd: .
2025-02-18 11:24:13.431 [info] > conda info --json
2025-02-18 11:24:16.021 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion
2025-02-18 11:24:16.021 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion
2025-02-18 11:24:16.691 [info] Starting Pylance language server.
2025-02-18 11:26:50.572 [info] Discover tests for workspace name: crossregion - uri: /Volumes/projects/crossregion

mypy logs
pylint logs
python LSP logs
settings.json

Extension version: 2025.0.0
VS Code version: Code 1.97.2 (Universal) (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Darwin arm64 23.6.0
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.1.final.0
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
  • Value of the python.languageServer setting: Pylance
User Settings


languageServer: "Pylance"

terminal
• activateEnvironment: false

Installed Extensions
Extension Name Extension Id Version
black-formatter ms- 2024.6.0
bruno bru 3.1.0
code-background Kat 3.1.0
copilot Git 1.272.1381
copilot-chat Git 0.24.2025021302
copy-as-snippet Thi 2.0.3
cpptools ms- 1.23.6
dainty-vscode ale 1.1.22
darkmocha jxs 0.0.1
datawrangler ms- 1.18.2
debugpy ms- 2025.1.2025021701
dotenv mik 1.0.1
EditorConfig Edi 0.17.0
even-better-toml tam 0.21.2
explorer vit 1.14.3
find-it-faster Tom 0.0.39
flake8 ms- 2025.1.10481012
github-local-actions San 1.2.2
gitlens eam 16.3.0
godot-tools gee 2.3.0
hexeditor ms- 1.11.1
isort ms- 2023.10.1
js-debug ms- 1.97.1
js-debug-companion ms- 1.1.3
jupyter ms- 2025.1.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.1.0
live-server ms- 0.4.15
lua sum 3.13.6
markdown-all-in-one yzh 3.6.2
markdown-mermaid bie 1.27.0
markdown-preview-github-styles bie 2.1.0
material-icon-theme PKi 5.19.0
mypy-type-checker ms- 2025.1.10451009
owlet its 0.1.22
pdf tom 1.2.2
polaris-for-vscode Sho 0.9.8
postcss css 1.0.9
prettier-vscode esb 11.0.0
prisma Pri 6.3.1
pylint ms- 2024.2.0
python ms- 2025.0.0
rainbow-csv mec 3.17.0
rainglow day 1.5.2
remote-containers ms- 0.397.0
remote-explorer ms- 0.4.3
remote-ssh ms- 0.117.1
remote-ssh-edit ms- 0.87.0
remote-wsl ms- 0.88.5
serverless-ide-vscode Thr 0.6.5
shellcheck tim 0.37.7
sqlite-viewer qwt 0.10.2
terraform has 2.34.3
test-adapter-converter ms- 0.2.1
Theme-Base16-Eighties bsi 0.0.1
Theme-TomorrowNightEighties ger 0.0.5
tomorrow-night-eighties-contrast aSt 1.0.0
vim vsc 1.29.0
volar Vue 2.2.2
vs-code-prettier-eslint rve 6.0.0
vscode-apollo apo 2.5.4
vscode-commons red 0.0.6
vscode-cython ktn 1.0.3
vscode-docker ms- 1.29.4
vscode-eslint dba 3.0.10
vscode-fish bma 1.0.38
vscode-github-actions git 0.27.1
vscode-graphql Gra 0.13.0
vscode-graphql-syntax Gra 1.3.8
vscode-jest Ort 6.4.0
vscode-js-profile-flame ms- 1.0.9
vscode-js-profile-table ms- 1.0.10
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
vscode-liquid-snippets kil 2.0.3
vscode-markdownlint Dav 0.59.0
vscode-open-buffers wil 0.0.1
vscode-plpgsql-lsp uni 2.11.3
vscode-pull-request-github Git 0.104.1
vscode-pylance ms- 2025.2.100
vscode-python-envs ms- 0.3.10441011
vscode-sqlfluff dor 3.3.1
vscode-sqlite ale 0.14.1
vscode-tailwindcss bra 0.14.6
vscode-task tas 0.3.2
vscode-theme-onedark aka 2.3.0
vscode-thunder-client ran 2.34.1
vscode-wasm dts 1.4.1
vsliveshare ms- 1.0.5948
vue-pug-snippets kaa 0.5.0
vue-vscode-snippets sdr 3.2.0
System Info
Item Value
CPUs Apple M2 Pro (12 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 3, 6, 8
Memory (System) 16.00GB (0.14GB free)
Process Argv --crash-reporter-id 09122cee-7ea8-43b3-8148-ed3a1f25d001
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputscf:31238124
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686
copilothoveroff:31240707
g941i948:31240199

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions