Repository navigation
Closed
Labels
*duplicateIssue identified as a duplicate of another issue(s)freeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesperfwindowsVS Code on Windows issues
Milestone
Description
Issue Type: Performance Issue
Especially, scrolling using mouse or keyboard is really laggy.
I've tested file under version control and not under version control. But they behaved almost same.
Larger lines more laggy.
VS Code version: Code 1.49.0 (e790b93, 2020-09-10T13:22:08.892Z)
OS version: Windows_NT x64 10.0.19041
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off opengl: enabled_on protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.94GB (9.62GB free) |
| Process Argv | --crash-reporter-id 515b2b29-a108-4178-9745-df82f9b97546 --crash-reporter-id 515b2b29-a108-4178-9745-df82f9b97546 --crash-reporter-id 515b2b29-a108-4178-9745-df82f9b97546 |
| Screen Reader | no |
| VM | 0% |
Process Info
CPU % Mem MB PID Process
0 127 9784 code main
0 86 2568 utility
1 100 4160 window (Issue Reporter)
0 79 4804 crashpad-handler
0 82 8936 utility
0 186 14492 window (● Untitled-1 - Visual Studio Code)
0 107 18752 extensionHost
0 105 17812 shared-process
1 141 18180 gpu-process
Workspace Info
;
Extensions (7)
| Extension | Author (truncated) | Version |
|---|---|---|
| amvim | aui | 1.32.0 |
| vscode-great-icons | emm | 2.1.52 |
| todo-tree | Gru | 0.0.178 |
| python | ms- | 2020.8.108011 |
| remote-wsl | ms- | 0.44.5 |
| trailing-spaces | sha | 0.3.1 |
| markdown-all-in-one | yzh | 3.3.0 |
(1 theme extensions excluded)
Metadata
Metadata
Labels
*duplicateIssue identified as a duplicate of another issue(s)freeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesperfwindowsVS Code on Windows issues
Activity
alexdima commentedon Sep 11, 2020
Minkyu Choi (@Minkyu-Choi) From the CPU trace, I see that a lot of time is unaccounted and is spent in a section called "(program)", which is not helpful in pointing us to what is causing the slowness. Does this reproduce when you disable all extensions? (Press
F1and then chooseDeveloper: Reload Window with Extensions Disabled).Can you attempt to comment out your settings? Do you have a screen reader attached to the editor? Did you customize
editor.accessibilitySupport?Minkyu-Choi commentedon Sep 11, 2020
Halkinn commentedon Sep 11, 2020
Also seeing major slow down while scrolling with a keyboard since the new update.
alexdima commentedon Sep 11, 2020
The CPU profile does not reveal anything. Also we did not change anything in the editor rendering in the past milestones. IIRC we have had some discussions about slowness around Electron 9, and that it might impact some older hardware.
I'm adding more people, maybe someone has an idea how to figure out what is the root cause.
bpasero commentedon Sep 11, 2020
Minkyu Choi (@Minkyu-Choi) can you confirm that scrolling is fast with our previous
1.48.xrelease: https://az764295.vo.msecnd.net/stable/a0479759d6e9ea56afa657e454193f72aef85bd0/VSCode-win32-x64-1.48.2.zipdeepak1556 commentedon Sep 11, 2020
programstacks indicate internal calls of v8. Since slowdown is happening inside v8 we need to look at some chrome traces for this. Minkyu Choi (@Minkyu-Choi) can you follow the steps to get the tracecode --trace-config-file <path-to>/trace.json9 remaining items
deepak1556 commentedon Sep 15, 2020
Actually there is mistake with the flag, sorry about that. You need to pass it like
--trace-config-file="C:\Program Files\Microsoft VS Code\trace.json". Also remove"disabled-by-default-v8.ic_stats"from the config, it currently crashes with it.Minkyu-Choi commentedon Sep 15, 2020
deepak1556 commentedon Sep 15, 2020
Thanks! will get back further details from the trace tomorrow.
Minkyu-Choi commentedon Sep 18, 2020
Robo (@deepak1556) any updates on this?
deepak1556 commentedon Sep 18, 2020
Sorry missed to respond, the recorded profile failed to load in
chrome://tracinganother bug of electron support of some tracing options. Can you record again with the following optionsOne more can also provide the following trace,
Windows Performance Recorderfrom windows start menuCPU usageis checked under Resource AnalysisGeneraland Detail Level isverboseAlso I am OOF till Monday, will check into this once I get to work. Thanks!
Minkyu-Choi commentedon Sep 18, 2020
deepak1556 commentedon Sep 23, 2020
Minkyu Choi (@Minkyu-Choi) thanks for the traces, I was able to narrow down some problematic areas, I will merge this issue to #107016 for a broader conversation. Please follow that issue.