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

slow start up #204243

Open
Lalithallu opened this issue Feb 3, 2024 · 14 comments
Open

slow start up #204243

Lalithallu opened this issue Feb 3, 2024 · 14 comments
Assignees
Labels
chromium Issues and items related to Chromium gpu Issues concerning GPU related items upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@Lalithallu
Copy link

Type: Performance Issue

when i installed a new update of vs code 1.86 then onwards the my vs code is opening slowly in previous version it works very well and opens very fast. Please retify the bug ASAP

VS Code version: Code 1.86.0 (0504748, 2024-01-31T10:28:19.990Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-12500H (16 x 3110)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.63GB (7.93GB free)
Process Argv --crash-reporter-id 0d6eb380-2e85-4fb9-abe6-8f5cb6750682
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	   109	 12328	code main
    0	   152	   328	window [1] (Welcome - git - Visual Studio Code)
    0	    49	  6900	   utility-network-service
    0	   131	  7596	extensionHost [1]
    0	    91	 15496	shared-process
    0	    28	 17336	   crashpad-handler
    0	    97	 18028	window [2] (Issue Reporter)
    0	    83	 18876	fileWatcher [1]
    0	    92	 21996	ptyHost
    0	     7	 19000	     conpty-agent
    0	    65	 19812	     C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\allul\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}"
    0	   167	 23652	   gpu-process
Workspace Info
|  Window (Welcome - git - Visual Studio Code)
|    Folder (git): 2 files
|      File types: txt(1)
|      Conf files:;
Extensions (15)
Extension Author (truncated) Version
prettier-vscode esb 10.1.0
code-runner for 0.12.1
debugpy ms- 2024.0.0
python ms- 2024.0.0
vscode-pylance ms- 2023.12.1
live-server ms- 0.4.13
java red 1.27.0
intellicode-api-usage-examples Vis 0.2.8
vscodeintellicode Vis 1.2.30
vscode-java-debug vsc 0.56.0
vscode-java-dependency vsc 0.23.4
vscode-java-pack vsc 0.25.15
vscode-java-test vsc 0.40.1
vscode-maven vsc 0.44.0
vscode-icons vsc 12.7.0
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30951796
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementst:30887150
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019b:30953937
3ef8e399:30949928

@gjsjohnmurray
Copy link
Contributor

/confirmPlease

@vscodenpa
Copy link

Please diagnose the root cause of the issue by running the command F1 > Help: Troubleshoot Issue and following the instructions. Once you have done that, please update the issue with the results.

Happy Coding!

@vscodenpa vscodenpa added the info-needed Issue requires more information from poster label Feb 3, 2024
@BLuedtke
Copy link

BLuedtke commented Feb 7, 2024

Just to chime in - When I'm using F1 > Help: Troubleshoot Issue, that reloads the window just fine. But it is unclear if I'm allowed to completely close the VS Code application and the Troubleshoot mode will still be active. Anyway, it seems to remain active on a restart.

In the two scenarios the Troubleshooting presented (all Extensions disabled & Extension bisection), I could still reproduce the issue. When starting the Application, the VS Code window opens, but it is all grey. It takes several seconds longer than expected for the editors and the left hand explorer to appear (15+ seconds). VS Code (or Plasma?) prompts me that VS Code is unresponsive in the meantime: "The Windows is not responding. You can reopen or close the window to keep waiting [...]".
I'm on Kubuntu 22.04. I would love to provide journal logs etc.; will add once I can convince my system to show me the log, there seems to be some unrelated issue with that at the moment.

Sometimes, this lockup/window freeze also happens sometime during normal VS Code operation, but I haven't yet found a pattern.

Edit: I have downgraded to 1.85.2 and can confirm that the long startup (/startup freeze) is no longer present.

@eddy147
Copy link

eddy147 commented Feb 8, 2024

Since a couple of days I noticed also a slow(er) startup.
this is my Startup Performance:
startup_performance.txt

@pktiuk
Copy link

pktiuk commented Feb 11, 2024

I have similar problem on Linux

@qdrop17
Copy link

qdrop17 commented Feb 15, 2024

I am experiencing the same issue on Fedora 39.

I've completely uninstalled and reinstalled Visual Studio Code, including its configuration files, by executing the following commands:

sudo dnf erase code
rm -r .vscode
rm -r .config/Code
sudo dnf install code

Unfortunately, this didn't resolve the problem. I'm unable to launch a fresh installation of Visual Studio Code without encountering an error message:

image

The issue also occurs with Visual Studio Code Insiders. When I select "Keep waiting", the application eventually starts. However, it intermittently freezes for several seconds while in use.

I'm currently running Fedora 39 on Wayland, and all my packages are up to date.

In addition, I've attached the startup diagnostics data for your reference: vscode-startup.log

Any assistance you can provide would be greatly appreciated.

@TheRealAgentK
Copy link

This helped me:

#193188 (comment)

@qdrop17
Copy link

qdrop17 commented Feb 27, 2024

This helped me:

#193188 (comment)

Confirmed, this fixes (or works around) the issue :-) Thank you so much! I suggest to leave the issue open for the contributors to close.

@qdrop17
Copy link

qdrop17 commented Mar 7, 2024

Ok, I can narrow down the issue further: When I use https://github.com/bayasdev/envycontrol to disable my Nvidia dGPU inside my laptop, the start of VScode is very, very slow and the app stutters from time to time.

When the dGPU is active though, VScode behaves as expected. Since I use the Nvidia dGPU only with a dualbooted windows for gaming, I would appreciate it if VScode handles this properly (like every single other app on my Fedora 39).

@pktiuk
Copy link

pktiuk commented Apr 8, 2024

@Lalithallu

Why you marked this issue as completed?
There is a workaround, but this issue still exists. Vscode should handle this case by default. (just as @qdrop17 said)

Could you please reopen this issue? (and edit title to something more verbose like slow startup when dGPU is disabled)

@pktiuk

This comment was marked as outdated.

@Lalithallu
Copy link
Author

Lalithallu commented Apr 14, 2024 via email

@Lalithallu Lalithallu reopened this Apr 14, 2024
@deepak1556 deepak1556 added upstream Issue identified as 'upstream' component related (exists outside of VS Code) gpu Issues concerning GPU related items chromium Issues and items related to Chromium and removed info-needed Issue requires more information from poster labels Apr 15, 2024
@BLuedtke
Copy link

Happy to provide traces/logs if needed by the VS Code dev team, though as far as I can see, there were some already provided in the other issue linked/mentioned.

This seems to be a chromium issue, as was noted in the other issue. Could mean that VS Code devs can't really do anything about it. I wonder if it is related to this Chromium Bugtracker Entry at all: https://issues.chromium.org/issues/40283032 As that was created roundabout the same timeframe as this issue.

In fact, I can confirm that that same workaround works for google-chrome-stable on Linux. Without --disable-gpu --disable-software-rasterizer, it takes quite a while to start. With the options, it starts quickly. So I think this is on Chromium, not VS Code, and I doubt that the VS Code team can do anything about this.

@tguvdamm
Copy link

tguvdamm commented Jun 7, 2024

Hi
just wanted to chime in and report that I've also had issues with slow startups.
I get the same error screen and passing --disable-gpu resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chromium Issues and items related to Chromium gpu Issues concerning GPU related items upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests