vscode: Extension host keeps crashing on Big Sur

  • VSCode Version: 1.52.1
  • OS Version: MacOS 11.0.1

Steps to Reproduce:

  1. Use VS code normally
  2. Extension host crashes every half an hour or so

Does this issue occur when all extensions are disabled?: Yes

Hello all,

I’ve searched through the issues and this problems seems to pop up quite often, but it seems like each time it’s a bit different to my problem. My extension host keeps crashing often enough to interrupt development.

When I look at the developer tools, I get the same error message in the console: Error: No authentication provider 'microsoft' is currently registered.

Based on the error it seems like the problem is in the settings sync feature. Because of that, I tried all I could to reset the settings sync, but it didn’t seem to flush out the bug.

What I’ve tried so far:

  • disabling all extensions
  • uninstalling and reinstalling vs code
  • using the insiders build
  • signing out/in from/to settings sync
  • removing the saved token in my keychain and logging in to settings sync again

I had a look at the settings sync logs and found this error logged:

[2021-01-04 18:55:45.208] [userDataSync] [info] Sync done. Took 86ms
[2021-01-04 19:00:45.204] [userDataSync] [info] Auto Sync: Triggered by Interval
[2021-01-04 19:00:45.777] [userDataSync] [info] Request failed {"url":"https://vscode-sync.trafficmanager.net/v1/manifest","status":401,"execution-id":"7596a063-e4fa-4ee6-9ad1-84788b4b6cbe","operation-id":"77db9dbb0f3a4fc3991e0ffb8e0b6850"}
[2021-01-04 19:00:45.777] [userDataSync] [info] Auto Sync: Suspended until auth token is available.
[2021-01-04 19:00:45.777] [userDataSync] [info] Auto sync: Cancelled sync that is in progress
[2021-01-04 19:00:45.777] [userDataSync] [info] Auto Sync: Stopped
[2021-01-04 19:00:45.779] [userDataSync] [error] Unauthorized (UserDataSyncError) syncResource:unknown operationId:77db9dbb0f3a4fc3991e0ffb8e0b6850: Request 'https://vscode-sync.trafficmanager.net/v1/manifest' failed because of Unauthorized (401).
    at x.request (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:599:521)
    at async x.manifest (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:597:69)
    at async C.createSyncTask (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:577:790)
    at async E.doSync (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:572:404)

However, this happened a while before the extension host crashed.

I’d greatly appreciate some help on this one, as it’s been bugging me for a few months now. I can’t find the issue anymore but someone had a similar story that was supposed to be resolved in version 1.51.1. Unfortunately I’m still having the issue. I’d be more than happy to provide any more information needed.

Thanks a lot for your help

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 33 (12 by maintainers)

Most upvoted comments

Yeah makes sense to me. Will raise the issue with them.

Thanks so much for your help @alexdima !

@trenslow, the settings sync auth related issues are being tracked in #114231

@alexdima thanks for the information. I am on Insiders build and can confirm that this issue does not occur there.

@alexdima thanks, will give it a try and update you asap

I will continue to monitor vscode after these extensions are removed and report back.