Closed Die4Ever closed 2 years ago
blank screen on startup
also when closing the program, sometimes I see "Discarding backups is taking a bit longer" or something like that
I've narrowed the problem down to this single file state.vscdb
, if I rename it then startup is fast again and if I put the file back then it's slow again
idk if there's a way I could privately share the file?
actually just File -> Open Recent -> Clear Recently Opened
fixed the issue for me even with the old state.vscdb
file
before:
after:
so maybe it's a combination with another file
here's my code --prof-startup
after doing Clear Recently Opened
just noticed the initial post didn't have this startup performance info automatically... let me get that, I still have a backup of the file
this was the code --prof-startup
from before clearing recently opened files
also I noticed this message in the console output
[main 2022-04-08T23:12:00.534Z] window#load: attempt to load window (id: 1)
[main 2022-04-08T23:12:00.554Z] update#setState idle
[main 2022-04-08T23:12:00.589Z] ExtensionHostStarterWorker created
[1708:0408/181201.845:ERROR:jump_list.cc(301)] Failed to append custom category 'Recent Folders' to Jump List due to system privacy settings.
[main 2022-04-08T23:12:02.762Z] window#load: window reported ready (id: 1)
[main 2022-04-08T23:12:03.453Z] Starting extension host with pid 19040 (fork() took 12 ms).
[main 2022-04-08T23:12:03.454Z] ExtensionHostStarterWorker.start() took 16 ms.
[1708:0408/181215.179:ERROR:jump_list.cc(301)] Failed to append custom category 'Recent Folders' to Jump List due to system privacy settings.
it seemed to hit that failure to append every time I opened a file
The perf marks of before and after differ, but do not really indicate a long hang. Seems that in the slow case, the workbench was still ready after 2 seconds?:
workbench ready | 2269
vs
workbench ready | 1157
Maybe this could be related:
Failed to append custom category 'Recent Folders' to Jump List due to system privacy settings
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/
The perf marks of before and after differ, but do not really indicate a long hang. Seems that in the slow case, the workbench was still ready after 2 seconds?:
workbench ready | 2269
vsworkbench ready | 1157
Maybe this could be related:
Failed to append custom category 'Recent Folders' to Jump List due to system privacy settings
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/
honestly, twice as slow does seem like a big difference to me, but yes I think the 'Recent Folders' issue is the bigger problem because the difference is more than 1 second, and the delay happens every time I open a file not just starting the program, I can feel the stall
I tried the insider build with my old state.vscdb
file and got similar results again
C:\Users\die4e\AppData\Local\Programs\Microsoft VS Code Insiders>"Code - Insiders.exe" --prof-startup
C:\Users\die4e\AppData\Local\Programs\Microsoft VS Code Insiders>
[main 2022-04-13T00:14:56.716Z] window#load: attempt to load window (id: 1)
[main 2022-04-13T00:14:56.740Z] update#setState idle
[main 2022-04-13T00:14:56.777Z] ExtensionHostStarterWorker created
[20024:0412/191458.051:ERROR:jump_list.cc(301)] Failed to append custom category 'Recent Folders' to Jump List due to system privacy settings.
[main 2022-04-13T00:14:58.974Z] window#load: window reported ready (id: 1)
[main 2022-04-13T00:14:59.917Z] Starting extension host with pid 11364 (fork() took 12 ms).
[main 2022-04-13T00:14:59.918Z] ExtensionHostStarterWorker.start() took 13 ms.
[main 2022-04-13T00:15:00.046Z] SharedProcess: on vscode:createSharedProcessMessageChannel
[main 2022-04-13T00:15:00.263Z] SharedProcess: IPC ready
[main 2022-04-13T00:15:00.505Z] SharedProcess: Overall ready
[main 2022-04-13T00:15:26.757Z] update#setState checking for updates
[main 2022-04-13T00:15:26.834Z] update#setState idle
With the old DB, does it fix when you clear recently opened (from the command palette)?
With the old DB, does it fix when you clear recently opened (from the command palette)?
Yes that does fix it
Maybe there is one path in the history that falls under some restrictions?
Issue Type: Performance Issue
Startup and opening files has been slow lately, with startup actually showing a blank screen, it's was like this before the update and I was hoping the update would fix the issue but it didn't. So I decided to look into it. Disabling all extensions didn't help. Seems that moving my
AppData\Roaming\Code\User\globalStorage
folder fixed it, and then I put the folder back and now it's slow again.VS Code version: Code 1.66.1 (8dfae7a5cd50421d10cd99cb873990460525a898, 2022-04-06T14:50:12.141Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No
System Info
|Item|Value| |---|---| |CPUs|AMD Ryzen 5 2600 Six-Core Processor (12 x 3394)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.93GB (7.84GB free)| |Process Argv|--crash-reporter-id f00a391a-a19c-4685-90ca-e04656351694| |Screen Reader|no| |VM|0%|
Process Info
``` CPU % Mem MB PID Process 0 115 11220 code main 0 126 1020 shared-process 0 77 4392 fileWatcher 0 74 17932 ptyHost 0 71 2184 window (undefined) 0 38 3264 utility-network-service 0 208 3532 window (Startup Performance - Visual Studio Code) 0 97 11520 gpu-process 0 26 14656 crashpad-handler 0 145 14932 extensionHost 0 74 7820 "C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Program Files\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=14932 0 81 10632 "C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\die4e\.vscode\extensions\redhat.vscode-yaml-1.6.0\dist\languageserver.js --node-ipc --clientProcessId=14932 0 87 20196 issue-reporter ```Workspace Info
``` ; ```Extensions (19)
Extension|Author (truncated)|Version ---|---|--- atlascode|atl|2.10.11 EditorConfig|Edi|0.16.4 vscode-unrealscript|Eri|0.0.2 remotefs|lix|0.0.16 grep|mag|1.1.0 regionfolder|map|1.0.17 python|ms-|2022.4.1 vscode-pylance|ms-|2022.4.0 jupyter|ms-|2022.3.1000901801 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.6 remote-containers|ms-|0.231.5 remote-ssh|ms-|0.78.0 remote-ssh-edit|ms-|0.80.0 remote-wsl|ms-|0.66.0 vscode-remote-extensionpack|ms-|0.21.0 vscode-yaml|red|1.6.0 sc2galaxy|tal|1.10.5 grep2file|yun|0.5.4A/B Experiments
``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyl392:30443607 pythontb:30283811 pythonvspyt551cf:30345471 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805:30301674 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 pythonvsnew555:30457759 vscscmwlcmt:30465135 vscaat:30438848 pynewfile477:30463512 ```