Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.8 memory leak #228123

Closed
danmash opened this issue Sep 10, 2024 · 3 comments
Closed

Python 3.8 memory leak #228123

danmash opened this issue Sep 10, 2024 · 3 comments
Assignees

Comments

@danmash
Copy link

danmash commented Sep 10, 2024

Type: Bug

I see high memory consumption; it happens after the Django runserver restarted.

Screenshot 2024-09-10 at 16 29 34

launch.json

VS Code version: Code 1.93.0 (Universal) (4849ca9, 2024-09-04T13:02:38.431Z)
OS version: Darwin arm64 23.6.0
Modes:

System Info
Item Value
CPUs Apple M2 (8 x 2400)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
webnn: disabled_off
Load (avg) 3, 4, 8
Memory (System) 16.00GB (0.87GB free)
Process Argv --crash-reporter-id 2743951a-a45d-40d1-8392-760a1943701a
Screen Reader no
VM 0%
Extensions (36)
Extension Author (truncated) Version
ng-template Ang 18.2.0
vscode-django bat 1.15.0
scratchpads bue 1.0.0
vscode-pytest Cam 0.1.1
circleci Cir 2.8.4
vscode-postgres cko 1.4.3
macos-modern-theme dav 2.3.19
python-environment-manager don 1.2.4
vscode-open-in-github fab 2.3.0
vscode-pull-request-github Git 0.96.0
cloudcode goo 2.17.0
terraform has 2.32.3
vsc-nvm hen 0.0.3
rest-client hum 0.25.1
prettier-sql-vscode inf 1.6.0
intellij-idea-keybindings k-- 1.7.2
vsc-python-indent Kev 1.18.0
MagicPython mag 1.1.0
python-path mge 0.0.14
git-graph mhu 1.30.0
JetBrainsIcons Mos 1.0.5
vscode-edge-devtools ms- 2.1.5
black-formatter ms- 2024.2.0
debugpy ms- 2024.10.0
isort ms- 2023.10.1
python ms- 2024.14.0
vscode-pylance ms- 2024.9.1
js-debug-nightly ms- 2024.9.517
vscode-python-typehint njq 1.5.1
markdown-preview-enhanced shd 0.8.14
code-spell-checker str 3.0.1
python-extended-snippets tus 0.0.1
intellicode-api-usage-examples Vis 0.2.8
vscodeintellicode Vis 1.3.1
gitblame wad 11.0.1
pretty-ts-errors Yoa 0.6.0

(2 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
945dj816:31013170
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31134774
wkspc-onlycs-t:31132770
nativeloc2:31134642
wkspc-ranged-c:31125598
cf971741:31134768
fje88620:31121564

@IllusionMH
Copy link
Contributor

Looks like issue with one of Python related extensions or code executed by Python, not VS Code editor itself.

@danmash
Copy link
Author

danmash commented Sep 11, 2024

@IllusionMH As you can see in the issue description, I use Microsoft's Python plugins. How could I report this issue to them?

@danmash
Copy link
Author

danmash commented Sep 11, 2024

I suspect it's a MS black formatting plugin
https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter&ssr=false#overview

I see it could have happened after some invalid Python files.

2024-09-11 12:48:22.962 [info] [Error - 12:48:22] Syntax error in code: Traceback (most recent call last):
  File "/.../.vscode/extensions/ms-python.black-formatter-2024.2.0/bundled/tool/lsp_server.py", line 163, in is_python
    ast.parse(code, file_path)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants