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
If you faced this issue recently, Reverting to an older version
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 )
Just uninstall the current vs code, and reinstall an older version from GitHub VScode releases
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With