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

VSCode randomly semi-freezes #112269

Closed
MMK21Hub opened this issue Dec 11, 2020 · 18 comments
Closed

VSCode randomly semi-freezes #112269

MMK21Hub opened this issue Dec 11, 2020 · 18 comments
Assignees
Labels
freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues info-needed Issue requires more information from poster windows VS Code on Windows issues

Comments

@MMK21Hub
Copy link

Issue Type: Bug

  1. Use VSCode for a while
  2. Eventually it will go into a state when you can't type

Sorry that this isn't reliable to reproduce. I have not had this problem with another app that uses the Monaco Editor.

VS Code version: Code - Insiders 1.52.0-insider (dbbf707, 2020-12-10T17:20:40.435Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6 x 2808)
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: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.83GB (0.97GB free)
Process Argv --crash-reporter-id 746c4b6f-8c89-4002-834d-2cd392012f8b
Screen Reader no
VM 0%
Extensions (27)
Extension Author (truncated) Version
overtype ada 0.2.0
vscode-markdownlint Dav 0.38.0
gc-excelviewer Gra 3.0.40
svg joc 1.4.2
vscode-insertdatestring jsy 2.3.0
python ms- 2020.11.371526539
vscode-pylance ms- 2020.12.1
jupyter ms- 2020.12.414227025
typescript-javascript-grammar ms- 0.0.55
debugger-for-chrome msj 4.12.11
terminal-command-keys pet 0.3.0
quicktype qui 12.0.46
LiveServer rit 5.6.1
vscode-autohotkey sle 0.2.2
datapack-language-server SPG 3.2.0
vscode-nested-tags vsc 1.7.0
mcmeta xTe 0.0.1
markdown-all-in-one yzh 3.4.0
html-css-class-completion Zig 1.19.0
@sandy081
Copy link
Member

Can you please follow this wiki - https://github.com/microsoft/vscode/wiki/Performance-Issues and provide us necessary info that can help us in diagnosing the issue.

@sandy081 sandy081 self-assigned this Dec 11, 2020
@sandy081 sandy081 added the info-needed Issue requires more information from poster label Dec 11, 2020
@MMK21Hub
Copy link
Author

Here's the process explorer:
image

@MMK21Hub
Copy link
Author

PS C:\Users\KAGfa> code-insiders --status

(electron) Sending uncompressed crash reports is deprecated and will be removed in a future version of Electron. Set { compress: true } to opt-in to the new behavior. Crash reports will be uploaded gzipped, which most crash reporting servers support.
Version:          Code - Insiders 1.53.0-insider (c927a8015b9e26bd454d6e293bb0384aa1975d06, 2020-12-18T05:27:48.567Z)
OS Version:       Windows_NT x64 10.0.19041
CPUs:             Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6 x 2808)
Memory (System):  7.83GB (0.59GB free)
VM:               0%
Screen Reader:    no
Process Argv:     D:\My Stuff\Backups\Discord\Knowledge Base 2020-12-21\Knowledge Base - 😎Staff - ✅reviewed-suggestions [732624340528529540].json --crash-reporter-id 746c4b6f-8c89-4002-834d-2cd392012f8b
GPU Status:       2d_canvas:                  enabled
                  gpu_compositing:            enabled
                  multiple_raster_threads:    enabled_on
                  oop_rasterization:          enabled
                  opengl:                     enabled_on
                  protected_video_decode:     enabled
                  rasterization:              enabled
                  skia_renderer:              enabled_on
                  video_decode:               enabled
                  vulkan:                     disabled_off
                  webgl:                      enabled
                  webgl2:                     enabled

CPU %   Mem MB     PID  Process
    0       76    7356  code-insiders main
    0        2    8568     C:\Users\KAGfa\AppData\Local\Temp\vscode-update-user-x64\CodeSetup-insider-4a875e23d20b64504a818834f3fa4c40adb8d480.exe /verysilent /update="C:\Users\KAGfa\AppData\Local\Temp\vscode-update-user-x64\CodeSetup-insider-4a875e23d20b64504a818834f3fa4c40adb8d480.flag" /nocloseapplications /mergetasks=runcode,!desktopicon,!quicklaunchicon    0        2   14020       "C:\Users\KAGfa\AppData\Local\Temp\is-7VISP.tmp\CodeSetup-insider-4a875e23d20b64504a818834f3fa4c40adb8d480.tmp" /SL5="$660BD2,68694668,827904,C:\Users\KAGfa\AppData\Local\Temp\vscode-update-user-x64\CodeSetup-insider-4a875e23d20b64504a818834f3fa4c40adb8d480.exe" /verysilent /update="C:\Users\KAGfa\AppData\Local\Temp\vscode-update-user-x64\CodeSetup-insider-4a875e23d20b64504a818834f3fa4c40adb8d480.flag" /nocloseapplications /mergetasks=runcode,!desktopicon,!quicklaunchicon
    0      249   15656     window (test.py - Mojira - Visual Studio Code - Insiders)
    0      145   10640       extensionHost
    0       14    3836         electron_node server.js
    0       14    6180         "D:\My Stuff\Code\Thins that help u 2 code code\VS Code Insiders\Code - Insiders.exe" "d:\My Stuff\Code\Thins that help u 2 code code\VS Code Insiders\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=10640
    0       22   11036         electron_node server.js
    0       53   16292         electron_node bundle.js
    0       12   23892         electron_node serverMain.js
    0       17   29608         electron_node eslintServer.js
    0        9   14296       C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
    0       12   19588       C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
    0        7   21556       console-window-host (Windows internal process)
    0        7   22396       console-window-host (Windows internal process)
    0       16   24068       watcherService
    0        6   16308         console-window-host (Windows internal process)
    0        7   32696       console-window-host (Windows internal process)
    0       13   36708       C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
    0       16   17224     utility
    0       46   21928     shared-process
    0      173   22736     gpu-process
    0        6   23744     crashpad-handler

Workspace Stats:
|  Window (test.py - Mojira - Visual Studio Code - Insiders)
|    Folder (Mojira): 13 files
|      File types: md(3) py(2) code-snippets(1)
|      Conf files:

@sandy081
Copy link
Member

sandy081 commented Jan 6, 2021

Nothing suspecting from above info.

Please profile your renderer using this link - https://github.com/microsoft/vscode/wiki/Performance-Issues#profiling-the-renderer-process and share us the profile.

@Indy9000
Copy link

Indy9000 commented Jan 7, 2021

sporadically freezes while typing or scrolling and unfreezes after a second or so.
Happens very frequently this makes VSCode pretty unusable.

Here's the VSCODE info

Version: 1.52.1
Commit: ea3859d
Date: 2020-12-16T16:30:02.420Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 20.2.0

Extensions:
Go, Flutter, Dart

@sandy081
Copy link
Member

sandy081 commented Jan 8, 2021

Please profile your renderer using this link - https://github.com/microsoft/vscode/wiki/Performance-Issues#profiling-the-renderer-process and share us the profile.

@MMK21Hub
Copy link
Author

@sandy081
Copy link
Member

I do not see any suspicious things in the profile

@MMK21Hub It could be also due to an extension - have you checked that?

@jrieken Do you have any other suggestions for the user to follow to know about the perf issue?

@jrieken
Copy link
Member

jrieken commented Jan 15, 2021

Profiling is the best but sometimes it is tricky to capture the actual slowness when profiling. I can only recommend to keep trying

@ucirello
Copy link

I tried running VSCode in safe mode (code --disable-extensions) and the behavior is the same as when the extensions are enabled. As it is, I can use it for read operations only. Actual interactive operation is not usable anymore.

I attached the JS profile as per in https://github.com/microsoft/vscode/wiki/Performance-Issues#profiling-the-renderer-process

CPU-20210121T064124.cpuprofile.zip

@jrieken
Copy link
Member

jrieken commented Jan 21, 2021

image

Thanks. I see that spawning at +1.5sec which isn't good. This can happen on macOS BigSur and windows. Passing it to @deepak1556

@jrieken jrieken assigned deepak1556 and unassigned sandy081 Jan 21, 2021
@ucirello
Copy link

I see that spawning at +1.5sec which isn't good.

Well - the freeze happens after the shell has spawned. So there may be two instead of one problem.

@lukel97
Copy link

lukel97 commented Jan 30, 2021

Chiming in here to say I'm also getting pauses on big sur with extensions disabled, with a similar looking profiler trace as @jrieken
Code 1.52.1 (ea3859d, 2020-12-16T16:30:02.420Z)
image

@deepak1556
Copy link
Collaborator

deepak1556 commented Jan 31, 2021

@ucirello @bubba @Indy9000 the issue you are facing is tracked at #105446 , please follow that for updates. Thanks!

You can check electron/electron#27026 and the corresponding libuv issue for more details on the root issue.

@deepak1556
Copy link
Collaborator

@MMK21Hub do you continue to see the issue with latest insiders 1.53

@deepak1556 deepak1556 added freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues windows VS Code on Windows issues labels Jan 31, 2021
Copy link
Author

MMK21Hub commented Feb 9, 2021

I have just experienced the issue again.
image

@deepak1556
Copy link
Collaborator

@MMK21Hub can you open a new issue with the --status and cpu profile results. Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues info-needed Issue requires more information from poster windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

8 participants
@ucirello @deepak1556 @jrieken @lukel97 @sandy081 @Indy9000 @MMK21Hub and others