Open danmash opened 2 months ago
@danmash Can you provide the command line for the various processes? The logs don't indicate what is happening. Having the commandline for the process that leaked memory would be very helpful to start looking at the problem.
Closing for now. We can reopen when more info is provided.
@karthiknadig There's no command; I just use the plugin for black formatting. The black server is running on its own without my interaction.
@danmash For the process that is leaking memory. I need to know the command line. The black formatter extension starts a server. That server itself spawns sub-processes. It would be a good start to know which specific process is leaking.
There are 3 processes there, typically each one has a specific purpose. The CLI column in resource monitor should be helpful. Like this:
So, do you agree it's one of the extension processes, but you cannot start investigating until I track which one of these three?
On Tue, 1 Oct 2024 at 22:50, Karthik Nadig @.***> wrote:
@danmash https://github.com/danmash For the process that is leaking memory. I need to know the command line. The black formatter extension starts a server. That server itself spawns sub-processes. It would be a good start to know which specific process is leaking. image.png (view on web) https://github.com/user-attachments/assets/7f59a9f8-d5a4-4f8a-822d-143455f46212
There are 3 processes there, typically each one has a specific purpose. The CLI column in resource monitor should be helpful. Like this: image.png (view on web) https://github.com/user-attachments/assets/957021e3-4f06-4d8f-97d2-466860fd3a2c
— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-black-formatter/issues/536#issuecomment-2387138441, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA27BUDUAT4U3GAVQNX6TGDZZMKI5AVCNFSM6AAAAABOA2VTYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBXGEZTQNBUGE . You are receiving this because you were mentioned.Message ID: @.***>
That is correct. I need to see which one of the processes it is to investigate. I have not seen any other report of this.
Type: Bug
I see high memory consumption. I created an issue in VScode repo https://github.com/microsoft/vscode/issues/228123 But after some investigation, I suppose the reason for the memory leak is the black formater. I'll add logs in the comment.
launch.json
VS Code version: Code 1.93.0 (Universal) (4849ca9bdf9666755eb463db297b69e5385090e3, 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_softwarecanvas_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 ```