Skip to content

Huge memory leak after installing python package via requirements file #21454

@MisterIXI

Description

@MisterIXI

Type: Bug

Steps

Have the following open in vscode preview:

  • file explorer, python jupyter notebook, pdf in pdf viewer extension, power terminals, several background tabs
    In an integrated powershell terminal:
  • activate local python 3.11 environment (which has several packages installed)
  • use pip install -r requirements.txt to update packages that are supposed to be added (I believe it was only seaborn and it's dependencies) (I'll put the actual file below)

Expected result

Python package is installed and ready to be used.

Actual result

Something went wrong and fills up the ram completely. The whole system is in a degraded state where the mouse even barely moves and no windows can be manipulated. The task manager even falls back to a minimal mode with other font and can't act. He does however show 100% ram and Disk1 usage.

Since the task manager is not correctly responding and can't end the task the window had to be closed normally. Which took around 10 minutes to complete this action.

As soon as the vscode window was closed, ram usage dropped 15 gb to a normal level. After some more time and disk1 usage, the system went back to normal.

I don't know if this is a problem with pip/python, the python extension or vscode itself, but I figured I'll report this anyways.

Specific information

Here is the requirements.txt I used for the pip command: requirements.txt

Packages actually installed:

Installing collected packages: pyparsing, Pillow, kiwisolver, fonttools, cycler, contourpy, matplotlib, seaborn
Successfully installed Pillow-9.5.0 contourpy-1.0.7 cycler-0.11.0 fonttools-4.39.4 kiwisolver-1.4.4 matplotlib-3.7.1 pyparsing-3.0.9 seaborn-0.12.2 

The enormous ram usage start right after the installation finished. It might have been something regarding me typing in the jupyter notebook. Maybe parsing the import statement of seaborn.

Side note: after reopening, vscode correctly restored everything, including the perviously openend files, their changes and terminal history.

VS Code version: Code - Insiders 1.80.0-insider (61ba389, 2023-06-16T09:46:56.229Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs AMD Ryzen 9 5900X 12-Core Processor (24 x 4200)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.89GB (16.68GB free)
Process Argv --crash-reporter-id 6d320a10-afee-4ac6-b2cf-0bc15e8990cf
Screen Reader no
VM 0%
Extensions (53)
Extension Author (truncated) Version
vscode-css-formatter aes 1.0.2
preview-tiff ana 1.0.1
prettier-java dot 0.1.1
xml Dot 2.5.1
vscode-html-css ecm 1.13.1
foam-vscode foa 0.24.0
copilot-chat Git 0.3.2023061502
copilot-nightly Git 1.89.167
pddl jan 2.25.8
plantuml jeb 2.17.5
better-cpp-syntax jef 1.17.2
unity-code-snippets kle 1.3.0
shaderlabformatter lit 0.4.3
csharp ms- 1.25.9
vscode-dotnet-runtime ms- 1.6.0
autopep8 ms- 2023.4.0
isort ms- 2022.8.0
python ms- 2023.10.1
vscode-pylance ms- 2023.6.20
jupyter ms- 2023.5.1001582324
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.15
vscode-jupyter-cell-tags ms- 0.1.8
vscode-jupyter-slideshow ms- 0.1.5
remote-ssh ms- 0.102.0
remote-ssh-edit ms- 0.86.0
remote-wsl ms- 0.79.5
cmake-tools ms- 1.14.33
cpptools ms- 1.15.4
cpptools-extension-pack ms- 1.3.0
makefile-tools ms- 0.7.0
powershell ms- 2023.6.0
remote-explorer ms- 0.4.0
vsliveshare ms- 1.0.5873
excalidraw-editor pom 3.5.1
fabric8-analytics red 0.3.10
java red 1.19.0
LiveServer rit 5.7.9
shader sle 1.1.5
html-preview-vscode tht 0.2.5
hlsltools Tim 1.1.303
pdf tom 1.2.2
cmake twx 0.0.17
vscode-counter uct 3.2.1
unity-debug Uni 3.0.2
intellicode-api-usage-examples Vis 0.2.7
vscodeintellicode Vis 1.2.30
vscode-java-debug vsc 0.51.0
vscode-java-dependency vsc 0.23.0
vscode-java-pack vsc 0.25.11
vscode-java-test vsc 0.39.0
vscode-maven vsc 0.41.0
markdown-pdf yza 1.4.4

(1 theme extensions excluded)

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30404738
py29gd2263cf:30763247
vsclangdf:30492506
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30618038
pylantcb52:30590116
pyind779:30611226
pythonsymbol12:30651887
2i9eh265:30646982
showlangstatbar:30737417
pythonms35:30671666
03d35959:30757351
7ij38806:30687742
pythonfmttext:30716741
pythoncmvfstr:30726892
fixhidewlkth:30724384
hideindicator:30766887
pythongtdpath:30726887
bgfeh915:30769767
gsof2:30767485
dh2dc718:30770000
pythonidxpt:30768918
pythondjangots:30768917
pythonnocebcf:30766856
copilotsettingc:30767685
h7j2d465:30769890

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from postertriage-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