vscode: vscode snap version fails to encrypt using the encryptionService
- VS Code Version: 1.53.2
- OS Version: Ubuntu 20.04 LTS
Steps to Reproduce:
- Run the program in any way
- Sit back and watch
Does this issue occur when all extensions are disabled?: Yes
VS code automatically crashes and closes a few seconds after start up, with no popup or other information provided. I tried purging (including all settings), reinstalling (both through snap and apt), but no luck.
Below are the only logs visible after running Code with
code --disable-extensions
[2021-02-15 12:17:23.351] [exthost] [info] extension host started
[2021-02-15 12:17:23.368] [exthost] [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication {"startup":false,"extensionId":{"value":"vscode.microsoft-authentication","_lower":"vscode.microsoft-authentication"},"activationEvent":"onAuthenticationRequest:microsoft"}
[2021-02-15 12:17:23.368] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/microsoft-authentication/dist/extension.js
[2021-02-15 12:17:23.379] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"extensionId":{"value":"vscode.debug-auto-launch","_lower":"vscode.debug-auto-launch"},"activationEvent":"*"}
[2021-02-15 12:17:23.379] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/debug-auto-launch/dist/extension
[2021-02-15 12:17:23.380] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"extensionId":{"value":"vscode.github","_lower":"vscode.github"},"activationEvent":"*"}
[2021-02-15 12:17:23.380] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/git/dist/main
[2021-02-15 12:17:23.438] [exthost] [info] ExtensionService#_doActivateExtension vscode.github {"startup":true,"extensionId":{"value":"vscode.github","_lower":"vscode.github"},"activationEvent":"*"}
[2021-02-15 12:17:23.438] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/github/dist/extension.js
[2021-02-15 12:17:23.442] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode.js-debug {"startup":false,"extensionId":{"value":"ms-vscode.js-debug","_lower":"ms-vscode.js-debug"},"activationEvent":"onCommand:extension.js-debug.clearAutoAttachVariables"}
[2021-02-15 12:17:23.442] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/ms-vscode.js-debug/src/extension.js
[2021-02-15 12:17:23.540] [exthost] [info] eager extensions activated
[2021-02-15 12:17:23.547] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":false,"extensionId":{"value":"vscode.emmet","_lower":"vscode.emmet"},"activationEvent":"onStartupFinished"}
[2021-02-15 12:17:23.547] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/emmet/dist/node/emmetNodeMain
[2021-02-15 12:17:23.556] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":false,"extensionId":{"value":"vscode.merge-conflict","_lower":"vscode.merge-conflict"},"activationEvent":"onStartupFinished"}
[2021-02-15 12:17:23.556] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/merge-conflict/dist/mergeConflictMain
[2021-02-15 12:17:23.558] [exthost] [info] ExtensionService#_doActivateExtension vscode.testing-editor-contributions {"startup":false,"extensionId":{"value":"vscode.testing-editor-contributions","_lower":"vscode.testing-editor-contributions"},"activationEvent":"onStartupFinished"}
[2021-02-15 12:17:23.558] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/testing-editor-contributions/dist/extension.js
[2021-02-15 12:17:23.570] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication {"startup":false,"extensionId":{"value":"vscode.github-authentication","_lower":"vscode.github-authentication"},"activationEvent":"onAuthenticationRequest:github"}
[2021-02-15 12:17:23.570] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/code/resources/app/extensions/github-authentication/dist/extension.js
[2021-02-15 12:17:24.339] [exthost] [info] extension host terminating: parent process 16843 does not exist anymore: kill ESRCH (code: ESRCH) (errno: ESRCH)
[2021-02-15 12:17:25.346] [exthost] [info] exiting with code 0
I wanted to try changing git.enabled
to false
in settings.json
, but the path indicated in the official docs (https://code.visualstudio.com/docs/getstarted/settings) does not contain settings.json
.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (13 by maintainers)
Commits related to this issue
- chore: bump distro refs https://github.com/microsoft/vscode/issues/116690 — committed to microsoft/vscode by deepak1556 3 years ago
- chore: bump distro refs https://github.com/microsoft/vscode/issues/116690 — committed to microsoft/vscode by deepak1556 3 years ago
- ci: switch to core18 for snap Fixes https://github.com/microsoft/vscode/issues/116690 vscode-encrypt fails to load with GLIBC_2.25 not found error. ldd vscode-encrypt.node libstdc++.so.6 => /snap... — committed to microsoft/vscode by deepak1556 3 years ago
- ci: switch to core18 for snap Fixes https://github.com/microsoft/vscode/issues/116690 vscode-encrypt fails to load with GLIBC_2.25 not found error. ldd vscode-encrypt.node libstdc++.so.6 => /snap... — committed to microsoft/vscode by deepak1556 3 years ago
- ci: switch to core18 for snap Fixes https://github.com/microsoft/vscode/issues/116690 vscode-encrypt fails to load with GLIBC_2.25 not found error. ldd vscode-encrypt.node libstdc++.so.6 => /snap... — committed to microsoft/vscode by deepak1556 3 years ago
The startup crash is now fixed in latest insiders and will also be fixed in next stable release
1.55
.FWIW, I was able to reproduce the issue by installing the snap and turning on sync (github) in the snap version. After I did this, the apt version started crashing again.
Here’s some steps that may help you to reproduce the issue:
sudo apt install code
sudo snap install code --classic
After turning on sync in the snap version, the key changed to something of the following form:
{"extensionId":"vscode.github-authentication","content":"[{\"id\":\"\",\"accessToken\":\"\",\"account\":{\"label\":\"\",\"id\":},\"scopes\":[\"user:email\"]}]"}
I had an entry for
vscodevscode.github-authentication
and I deleted it. This seemed to fix the problem for me.Can everyone check if you have entries in login keyring under either of the service named
vscodevscode.github-authentication
orvscodevscode.microsoft-authentication
? Can you delete them and check if the crash continues to happen.Thanks for the repro @grhwalls , it helps!
Hello, I think I am having the same issue and I may have some useful debug info. I am running vscode 1.53.2 on two Kubuntu 20.10 machines, a laptop and a desktop. It works fine on the desktop, but not on the laptop.
I can think of one thing that I did differently on these two machines: on the laptop, I used to have the snap package and switched to the apt package; on the desktop, I never installed the snap package. The snap package still works on the laptop, but the apt package does not (just like @inc0der reported).
Additionally, the code-insiders apt package works just fine on the laptop.
The fact that I am not having any issues on the desktop makes me wonder if some configuration was changed when the snap package was installed that is preventing the apt package from running correctly. Anyways, I have attached my crash report as well. Hope this helps.
crash_report.zip
Both the reports point to
SIGABRT
from thevscode-encrypt
module, we currently don’t generate debug symbols for the module. Will upload the symbolized dump tomorrow.Hey guys I’m having the same issue with VSCode(non snap version) crashing upon start in a new install of Ubuntu 20.04. Snap version works fine but also takes about 1 minute to open on the very first time after a system restart.
Here are my logs for the crash vscode_crash_logs_Ubuntu_20.04.zip