vscode: Cannot start VS Code.
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.98.1
- OS Version: Microsoft Windows 11 Enterprise - 10.0.22631 Build 22631
Bug Description VS Code immediately closes when launched on my system. This occurs with both the Stable and Insider builds. Occasionally, I see an error prompt offering to restart VS Code, but clicking “Restart” either does nothing or results in the same behavior. The only scenario in which VS Code successfully starts is directly after a system restart.
Steps to Reproduce
- Install or reinstall Visual Studio Code (either Stable or Insider version).
- Delete the following folders to ensure a clean install: - %APPDATA%\Code - %USERPROFILE%.vscode
- Launch VS Code normally.
Expected Behavior VS Code should open successfully without immediately closing.
Actual Behavior VS Code’s window appears briefly, then it closes automatically. Sometimes an error prompt is displayed with an option to restart, but restarting leads to the same behavior.
Additional Information & Workarounds
Using the --disable-extensions flag (code --disable-extensions) on the Stable release display the following behaviour. https://github.com/user-attachments/assets/2be3a64e-dd2d-41eb-a5d1-8f3eac8fdc6b
After a system restart, VS Code may launch successfully once but will fail on subsequent launches. Attached are screenshots of the various error dialogs and immediate closing behavior.
Please let me know if I can provide any additional logs or system information to help diagnose this issue.
Running with `code --disable-extensions --verbose --disable-gpu´ produces the following logs: [main 2025-03-12T12:54:01.097Z] [File Watcher (node.js)] stopping file watcher (c:\Users\tjark.gerken\AppData\Roaming\Code\User\settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)) [19124:0312/135402.096:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=-1073741819 [19124:0312/135402.096:WARNING:gpu_process_host.cc(1418)] The GPU process has crashed 1 time(s) [main 2025-03-12T12:54:02.986Z] lifecycle (main): phase changed (value: 4) [19124:0312/135403.560:ERROR:network_service_instance_impl.cc(613)] Network service crashed, restarting service. Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information. [main 2025-03-12T12:54:04.929Z] CodeWindow: renderer process gone (reason: crashed, code: -1073741819) [19124:0312/135406.551:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=-1073741819 [19124:0312/135406.551:WARNING:gpu_process_host.cc(1418)] The GPU process has crashed 2 time(s) [19124:0312/135407.930:ERROR:network_service_instance_impl.cc(613)] Network service crashed, restarting service. [19124:0312/135409.444:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=-1073741819 [19124:0312/135409.444:WARNING:gpu_process_host.cc(1418)] The GPU process has crashed 3 time(s) [19124:0312/135410.875:ERROR:network_service_instance_impl.cc(613)] Network service crashed, restarting service. [19124:0312/135412.309:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=-1073741819 [19124:0312/135412.309:WARNING:gpu_process_host.cc(1418)] The GPU process has crashed 4 time(s) [19124:0312/135413.965:ERROR:network_service_instance_impl.cc(613)] Network service crashed, restarting service. [19124:0312/135415.355:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=-1073741819 [19124:0312/135415.355:WARNING:gpu_process_host.cc(1418)] The GPU process has crashed 5 time(s) [19124:0312/135416.793:ERROR:network_service_instance_impl.cc(613)] Network service crashed, restarting service. [19124:0312/135418.172:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=-1073741819 [19124:0312/135418.172:WARNING:gpu_process_host.cc(1418)] The GPU process has crashed 6 time(s) [19124:0312/135418.172:FATAL:gpu_data_manager_impl_private.cc(423)] GPU process isn’t usable. Goodbye. [19124:0312/135418.173:ERROR:crashpad_client_win.cc(144)] crash server failed to launch, self-terminating
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (2 by maintainers)
Sorry, I downgraded in the debugging process and forgot to rollback. I send you a dump of the latest Version.
Thank you @rzhao271 ! And good luck to OP for getting their issue sorted.