VSCode crashes on startup (code: -1073741818) - visual-studio-code

Yesterday, VSCode (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 lead to the same error code. Tried to move to Atom, but, oddly enough, the same issue occurred. Discovered Atom and VSCode 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 no success. I finally gave up and moved the code to another system and everything works flawlessly.
So now I that I have some time, I am trying to figure out what went wrong and where to go from here. My uninformed, uneducated guess is it is driver related but I am not sure how to resolve it. I was able to successfully use VSCode earlier in the day with no issue. The system went into stand-by mode and upon return, the issue began. Any suggestions/guidance on where to start would be greatly appreciated.
VSCode Crash Window

Welcome to the community! I think this is caused by an corrupt installation of vscode, try to restart your computer and maybe reinstall vscode by going to, https://code.visualstudio.com.
If that does not help maybe try to submit an issue on the vscode github here: https://github.com/microsoft/vscode.
How to submit an issue on github:
Find the menu bar where it has multiple menus, it should have: "code", "pull requests" and "issues".
Click on "issues" button.
Click "new issue" to create an issue.
Then click "bug report" and enter details to file issue.
Once ready click submit issue to submit your issue in github.
Also, you'll need a github account to create a issue, signup here: https://github.com/
I hope this helps!

Please check if you've installed any additional extensions which may be causing the VSCode to crash.
My VS code keeps crashing when opening it

I had the same problem. First, it used to crash once every 10 minutes, then it started crashing 10 times a minute after a few hours. It just stopped working that day.
I don't know how it was resolved but it did automatically resolve.
I searched for the solution but the VS code on GitHub was already closed. If applicable take a rest and let your PC calm down also. Then if the problem doesn't get resolved, try contacting the developer team.

Related

VSCode update failures

I started having this problem a couple of months ago, I believe soon after I installed Visual Studio 2022. I am in the midst using VSCCode for an educational project (JavaScript) that will finish this weekend, so have mostly just been hoping VSCode would work until I finished. (I have not been using VS2022.)
The first time I had this problem, I was closing VSCode and a window appeared regarding some updates. After maybe 10 seconds I received a failure message. After that, I could not start VSCode.
I tried to uninstall VSCode, but it would not work. I tried to install VSCode from the main URL (Download for Windows Stable Build), but it would fail to install with a message about "Not being able to rename or write to a file".
I next tried the System Installer link on the /Download page, but I received the same message. I next tried the User Installer link on this page, and it worked. I could launch VSCode again, but the icon in the toolbar was just a white page instead of the VSCode icon.
I don't exactly remember when, but at some point, perhaps with manual updates from the Help toolbar in VSCode, the VSCode icon reappeared in the toolbar.
But then a few days ago, when closing VSCode the window appeared again regarding some updates, then the failure message, and then VSCode would not start. I tried the various download steps again, but only the User Installer would work. And again, just the blank page for an icon in the toolbar. So just leaving everything open for now!
After this weekend, I am hoping to fix this issue. But hoping someone knows that the problem is.
I am running Windows 10 Pro (up to date), and have the blue dot telling me I can upgrade to Windows 11.
Since VSCode is working, maybe I can do a complete un-install. Or perhaps upgrade to Windows 11, or maybe a complete clean install of Windows 10 or 11.
Has anyone else had this issue?
Thanks!

VSCode: "Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information."

I've literally spent over 3 hours trying to figure out why my VSCode is unable to unistall new extensions. It gets stuck in this forever download tooltip at the bottom right of the screen and for hours nothing happens but the error message in the title is occasionally seen.
This happened as soon as I upgraded my vscode to the latest version. I'm currently using version 1.57.1 of VSCode. I've literally searched every where on the internet but nothing seems to help. I'd appreciate any advice.

Visual Studio Code freezing up my computer

So I have been using VS Code for a while now, and as of recently when I start up the program, within a couple minutes, my entire computer freezes. I have attempted re-installing it. I have made sure im on the latest update, and I have not recently installed any extensions in the days leading up to this issue.
It is consistently freezing though. Even after restarting my computer and re-installing the application. I have no clue what could be causing this but I really do enjoy VS Code and would like to not have to swap to something else.
Any help is of course greatly apprecaited. Thanks!
I got the same issue in my Ubuntu 16.04.
I did switch off git.autorefresh in the Settings, then it works flawlessly and smoothly
If the problem keeps occurring, I guess an extension is causing the issue (must be).
Try to remove the extensions one by one or disable it in settings then test again. I got the same issue and its fixed after removing the git blame extension.
I had the same problem and adding these settings to Visual Studio Code the PC freezing doesn't happen anymore:
Open VS Code settings (press F1 -> "Preferences: Open Settings
(JSON)";
Add these json properties at the end of your settings
"search.searchOnType": true,
"search.followSymlinks": false,
"search.collapseResults": "auto",
"search.maxResults": 2000,
Save settings.
It freezes a lot too
if you check task manager without vs code it should okay but after you open vs code and try it its the disk has like 100% or something that's why it's freezing

VSCode latex-workshop command not found

I just cannot find any actions to work of the latex-workshop extension in VS Code, though it worked well yesterday.
When I tried to find the actions (using Ctrl+Shift+P), it shows a choice of LaTex Workshop: All Actions. However, after click on it, an error occurs as command 'latex-workshop.actions' not found, and nothing happens. And I can't use any command by shortcut keys.
I tried to reload and reinstall the extension, but they don't help.
Does anyone know what's happening here?
I had the same problem, and followed some suggestion in this GitHub issue.
Simply reinstalling the plugin won't work, but I fixed like this:
Uninstall extension
Close VS Code (Make sure all processes are shut down, maybe restart your machine)
Open Code and reinstall the extension
For me, what solved the problem (August 2021) was to revert to an earlier version - the problem was in 8.20.2, I reverted to 8.19.2. Just click on the extension to show its menu screen and hit the drop-down arrow of the "Uninstall" button.
I solved the issue by uninstalling the extension and deleting the folder
/.vscode-oss/extensions/james-yu.latex-workshop-8.14.0/
The name may vary across distributions

Receiving error message 'Extension host terminated unexpectedly.' in Visual Studio Code

I have been looking around and I haven't found any answers to my issue.
I keep getting this error "Extension host terminated unexpectedly." and I have tried removing all of my extensions, reinstalling the program, trying different versions of vscode including the insider versions.
The way I get this isssue isn't from trying to use the debugger or trying to use some sort of extension, as I said before I removed all of them and the error keeps on coming back, it's simply from opening the application. I'm not entirely sure how to continue? I have had to use another editor because the error just doesn't go away. I will just have to wait for another update of Visual Studio Code I assume? I've had the issue since tuesday this week, guessing since the latest update.
Above is the error message I get. It is closed by esc but reappears very shortly after, every time.
When I open developer tools, this is what I find in the console.
Running vscode from command prompt with Code.exe --disable-extensions doesn't help.
Visual Studio Code version: 1.16.1
I appreciate any help.
Linking my github issue on Microsoft/vscode as reference
I had the same error after updating vsc to v. 1.31.0.
Disabling Live Server Extension worked for me.
Here's the error i'm getting having the extension enabled.
I started getting this error when vscode automatically updated to March 2020 (version 1.44). I have tried various suggestions given in the forum and over the internet but none of them worked.
What worked for me: I downloaded January 2020 (version 1.42) build from https://code.visualstudio.com/updates/v1_42 and ran over the previous installation without uninstalling and surprisingly, the error disappeared and all extensions are loading and working properly.
I tried following things and non of them worked:
I disabled all the installed extension from GUI.
uninstalled all the extension and installed again.
removed the left-over extensions from Windows %USERPROFILE%.vscode\extensions.
tried launching from the command prompt with --disable-extensions option.
Linking my github issue on Microsoft/vscode as reference.
It ended up being one of the base extensions that runs on startup that was the root of the problem.
In my case the git in extensions folder was causing it.
"git.enabled": false was not doing the trick so I had to remove the git folder altogether for the error to disappear.
In my case, I used typescript-hero extension. Disabling this extension fixed my problem.
It's temporal fix but maybe will help somebody.
I disabled all the extensions with name Live for example Live Server, Live Share etc and restarted my vscode again and it worked for me.
For me this was happening due to HTML CSS Support extension. so i removed it and restarted vs code and voila! it worked!
I had to uninstall few extensions related to Java (debugger for java, Test runner for java, extension pack for java etc) to make the error go away.
Click on the developer tool option that popups and see if it has the extension which is causing this error.
I got same issue and it was because of Color Highlight Extension. I just uninstalled Color Highlight Extension and its working fine and NO ERROR.
Me too. My failure has no "Code":
Extension host terminated unexpectedly. Code: null Signal: SIGABRT
MessageService.ts
I recently ran into the same error message after accepting a permission to run a program on the extension livepreview. It corrupted all other extensions where it could not find the commands. I deleted all extension files and reinstalled the other extensions without a problem. I tried liveserver again but It never prompted me again for permissions and still, the error message keeps occurring. I'm assuming liveserver was trying to ask the computer permission to run a local server after which is still accepted but something else is interfering with the computer being able to translate from the program to actually building and accessing the local server.
In my case, the live server extension was causing this issue in 1.31.0v of VS Code. After uninstalling the extension it started working correctly.
In my case it was from the extension "Todo Tree". It was breaking on a particularly large file in my project (13.7mb), with the error saying the file was over the max-size for a node-buffer (used by the C regex matcher).
Resolved the issue by disabling the extension.
I also opened an issue for it here: https://github.com/Gruntfuggly/todo-tree/issues/135
I had same problem with following error in my VSCode console.
`1: node::DecodeWrite
2: node::InternalCallbackScope::Close
3: v8::internal::VirtualMemory::TakeControl
4: v8::internal::PerThreadAssertScope<4,1>::PerThreadAssertScope<4,1>
5: v8::internal::operator<<
6: v8::internal::operator<<
7: 00000073ECF04481`
I solved it by uninstalling Angular Console extension. Not sure if it was that particular extension or some other memory issue but problem went away as soon as I uninstalled that.
Remove all Extensions which are located in a per user extensions folder. Depending on your platform, the location is in the following folder:
Windows %USERPROFILE%\.vscode\extensions
macOS
~/.vscode/extensions
Linux ~/.vscode/extensions
Restart vscode and start installing extensions.
I am not sure why this caused , but the Antivirus was throwing popups that something like extensionprocess.js file was repaired.
Disabled the Antivirus and re-installed Vscode and it was back to normal.
Hope this helps.
Here is what helped me:
Ctrl+Shift+P --> type: "Disable"
and click Disable all installed extensions
(alternatively click Disable all installed extensions for this Workspace)
Then go to extensions panel on the left and re-enable slowly those that you really need.
See which extension (or their combination) triggers that error.
It will be highly appreciated which extenstion/combination you'll find guilty as there may be several of them, and different in time...
for me, it was code runner extension I just disabled it.