Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code crashes on startup (code: -1073741818)

Yesterday, Visual Studio Code (1.67.1) decided that it was unable to start (crashes immediately) and spits out the error code -1073741818. I have the option to reopen or close but nothing happens regardless of the option chosen. Thought it might be an issue with the file/folder I was opening but no success opening any files/folders at all. Tried to disable GPU, disable extensions and re-install but all led to the same error code. Tried to move to Atom, but, oddly enough, the same issue occurred. Discovered Atom and VS Code are both based on Electron and that Electron has previously had issues with Nvidia drivers (currently running 512.77) so I tried to install previous versions of the drivers that were working but with no success. I finally gave up and moved the code to another system and everything works flawlessly.

My guess is it is driver-related, but I am not sure how to resolve it. I was able to successfully use VS Code earlier in the day with no issues. The system went into stand-by mode and upon return, the issue began.

VS Code Crash Window

like image 547
Engidahvs Avatar asked Aug 15 '26 05:08

Engidahvs


1 Answers

If you faced this issue recently, Reverting to an older version

For Linux users

Try to run

sudo snap revert code

To revert the last update ( which wasn't crashing ).

If this doesn't work, then run

sudo snap remove code
sudo snap install --revision 159 --classic code

To install the recent version (that doesn't crash )

For Windows or Mac users

Just uninstall the current vs code, and reinstall an older version from GitHub VScode releases

like image 143
Mina Avatar answered Aug 16 '26 19:08

Mina