Code-settings-sync: Extension host killed

Created on 5 Apr 2019  ยท  53Comments  ยท  Source: shanalikhan/code-settings-sync

๐Ÿ› Describe the bug
After the last update of VSCode (1.33.0), code-settings-sync is killing the Extension Host.

๐ŸŒด Visual Studio Code Version : 1.33.0
๐ŸŒด Code Settings Sync Version : 3.2.8
๐ŸŒด Standard or Insiders : Standard
๐ŸŒด OSS or Portable : Neither
๐ŸŒด Operating System : MacOS Mojave
๐ŸŒด Occurs On: Startup
๐ŸŒด Proxy Enabled: No
๐ŸŒด Gist Id: 8a8afe3f5b1388e1ee949020690bd2f9

๐Ÿ“ฐ To Reproduce
Start VSCode.

๐Ÿ’ช Expected behavior
Extension should sync normally.

๐Ÿ“บ Console Error Log
Log from VSCode's DevTools:

dyld: lazy symbol binding failed: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
  Referenced from: /Users/wescoder/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node
  Expected in: flat namespace

dyld: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
  Referenced from: /Users/wescoder/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node
  Expected in: flat namespace


extensionService.ts:450 Extension host terminated unexpectedly. Code:  null  Signal:  SIGKILL
_onExtensionHostCrashed @ extensionService.ts:450
notificationsAlerts.ts:40 Extension host terminated unexpectedly.

Let me know how else can I help with this.

bug ๐Ÿ› fixed

Most helpful comment

@jpgls I'm glad it worked for you :). The fix should be merged into the official release in a few days.

All 53 comments

code-settings-sync is killing the Extension Host.

can you post the image screen shot ? How you know Settings-Sync is killing host ?

I've disabled all extensions, so the error got away, and enabled one by one and restarted between each until the error showed up again, and Sync was who caused it. Later today I'll post a screenshot.

image
Here it is, I've disabled all other extensions.

VSCode version:
image

Sync version:
image

@arnohovhannisyan

I think same issue happened previously due to which chokidar was removed from Settings Sync.
Can you look into this ?

Reference :
https://github.com/shanalikhan/code-settings-sync/issues/762
https://github.com/Microsoft/vscode/issues/68024#issuecomment-461379608
https://github.com/shanalikhan/code-settings-sync/pull/807

I've run npm un -g fs-extra fs-events and didn't help.
Is there any other steps related to #762 that you would recommend to do? Should I reinstall VSCode?
I'll be watching Microsoft/vscode#68024 for any updates too.

Thanks for the support so far :)

I'm currently running v3.2.8 on macOS High Sierra with VS Code v1.33.0, but I'm not seeing any problems, and everything's working for me.

If anyone is still having trouble, I can send a PR that temporarily disables the use of fsevents on macOS until this issue is fixed.

Having the same issue. Pinpointed it the same way @wescoder did. Here's a screenshot of the error:
image
MacOS: 10.14.4
MacBook Pro Late 2013
VSCode: 1.33.0
Sync: 3.2.8

I'm thinking this issue might be Mojave-specific as I didn't encounter this on High Sierra. I'll send a PR disabling the use of fsevents which will temporarily fix it.

That could also be a reason. I just recently upgraded to the 10.14.4 update. Although totally unsure on how to pin point the problem if it is in that direction.

If you know how to build the extension from source, you can try testing my new experimental fix on Mojave.

@arnohovhannisyan
I tested chokidar-fix branch, but the error occured... ๐Ÿ˜ข

Visual Studio Code: 1.33.0
macOS: 10.14.4

SC 666

Ok, I guess we might have to find some other solution until this is fixed. Thanks for testing!

@nekonenene can you try clearing npm/yarn cache and then trying again without my fix? Fsevents was updated in v2.1.0 of chokidar, but maybe npm/yarn is using the old version from cache.

Edit: also try uninstalling fsevents and fsextra globally

@arnohovhannisyan

Thanks, I tried again. But, it still not works... The same error occurred.

commands:

rm -rf node_modules
npm cache clean --force
npm i
vsce package
code --install-extension code-settings-sync-3.2.8.vsix --force

@nekonenene What node version are you using?

@arnohovhannisyan
Node.js v10.15.3.(latest LTS)
It occurs with also v8.15.1.

@nekonenene Can you test my newest changes to the chokidar-fix branch? (you may have to use Yarn)

Phew,,, I'm getting tired. ๐Ÿ˜ท

git pull
rm -rf package-lock.json yarn.lock node_modules
yarn
vsce package
code --install-extension code-settings-sync-3.2.8.vsix --force

And, I got the same error....
I would be grateful if you think much.

@nekonenene Sorry for wasting your time. Thank you for testing anyway!

I encountered the same issue. We encountered such a problem previously so quickly I disable this extension, and the problem is gone.

OS: Mojava 10.14.3
VS code: 1.33.0
Sync: 3.2.8

Everyone who's having this issue seems to be running Mojave. Is anyone having this issue in High Sierra or below?

Can anyone still having this issue try running these commands and trying again?

npm un -g fsevents fs-extra
npm cache clean --force

I've already done this before and the problem persists, should I do it
again now?

My node version is 11.13.0

Em dom, 7 de abr de 2019 13:31, Arno Hovhannisyan notifications@github.com
escreveu:

Can anyone still having this issue try running this command and trying
again?

npm un -g fsevents fs-extra

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/shanalikhan/code-settings-sync/issues/827#issuecomment-480607493,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV4go-u4GsNG_g_he7PK78se1IuiO5x4ks5veh1-gaJpZM4cd4-x
.

@wescoder If you've already tried, then no.

@arnohovhannisyan Wow, it works on my computer.

OS: Mojava 10.14.4 (updated today)
VS code: 1.33.0

@Spacebody Thanks! After further testing, I'll send a PR with the updated changes.

@wescoder Can you try installing this version of the extension?

https://cdn.discordapp.com/attachments/549007146868539408/564493848777064462/code-settings-sync-3.2.8.vsix

@arnohovhannisyan It worked for me too! ๐ŸŽ‰ ๐Ÿ˜ƒ ๐Ÿ‘ ๐Ÿš€ :shipit:

I'm glad we could help.

Just opened a new PR with the changes. I hope this gets merged soon!

Sweet!
Thanks, I will release the new version in a few days.

on High Sierra it works, on Mojave it run into problems as described above (i don't apply this modified extension posted by @wescoder, i have 3.2.8)

@arnohovhannisyan yeah i'm gonna be that guy.. i'm on High Sierra having the same issue with VSCode 1.33.0 so it's not isolated to just Mojave..

Have you tried the fix I linked a few comments ago?

Just to let you know - the fix in the version at: https://cdn.discordapp.com/attachments/549007146868539408/564493848777064462/code-settings-sync-3.2.8.vsix - works for me as well (woohoo) since I don't see anyone else with my system so far

macOS Sierra - 10.12.6
VSCode - 1.33.0
Node - 10.15.3

Thanks so much for the quick fix and the awesome extension!

@jpgls I'm glad it worked for you :). The fix should be merged into the official release in a few days.

You guys can temporally use the fixed version these days, and I hope the official release can use a new version number so that we can upgrade to the official version as usual.

I'll take on this tomorrow and let you know if it works.

Em seg, 8 de abr de 2019 20:24, Arno Hovhannisyan notifications@github.com
escreveu:

@wescoder https://github.com/wescoder I know that this issue has been
fixed already, but I was wondering if maybe you can test this version and
see if it crashes. I want to find out which version of chokidar broke it on
mac.

https://cdn.discordapp.com/attachments/549007146868539408/564953595892727853/code-settings-sync-3.2.8.vsix

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/shanalikhan/code-settings-sync/issues/827#issuecomment-481043243,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV4gowb2UcpGvxSP-aRItzeGSGUbJsaUks5ve8-bgaJpZM4cd4-x
.

Thanks!

VSCode: 1.33.1
Mojave: 10.14.4
Settings Sync: 3.2.8

Still crashing :/

@arnohovhannisyan I'm new to VSCode; what do I do with that?

@timgavin Go to the Extensions activity (the place where you install extensions), click the 3 dots on the top right, and click install vsix. Then choose the file I linked. This is a temporary solution until it is officially released.

Tried it; still crashing.

Screen Shot 2019-04-17 at 8 48 55 AM

@timgavin Try closing and reopening vscode. The message that the extension has been installed is still there, which means you haven't restarted vscode.

I've restarted it a number of times (24 actually) while testing this and always receive that message if the extension is enabled. I installed the .vsix file, received that error message, restarted, and again received that error message.

I then disabled all extensions, restarted Code, enabled Settings Sync, received the error, restarted Code and received the error again. So, no extension conflict either.

EDIT: I'm using node v10.15.1. Could that be an issue?

@timgavin Can you post your console error log? You can get to it by going to Help -> Toggle Developer Tools on the menu bar.

Edit: node version shouldn't matter unless it's below 8

@arnohovhannisyan

Screen Shot 2019-04-17 at 9 04 08 AM

@timgavin That's weird. We've migrated away from fsevents on that version of the extension, so there shouldn't be any issues with fsevents.

Can you try running this?

npm un -g fsevents

Or

yarn global remove fsevents

Ran npm un -g fsevents, restarted Code, problem persists.

Edit: received this after running command: up to date in 0.05s FWIW

Ran yarn global remove fsevents and received -bash: yarn: command not found

Uninstalled extension; restarted Code; reinstalled extension from file; restarted Code; error persists.

Screen Shot 2019-04-17 at 9 13 19 AM

@arnohovhannisyan Sorry for the late reply (I've been switching jobs this month).
My last attempt using https://cdn.discordapp.com/attachments/549007146868539408/564953595892727853/code-settings-sync-3.2.8.vsix was successfull and it works propperly.
If you want me to test other changes let me know.

its fixed in v3.2.9

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcevrard picture marcevrard  ยท  5Comments

hfcheng66 picture hfcheng66  ยท  5Comments

betimer picture betimer  ยท  3Comments

dawsbot picture dawsbot  ยท  5Comments

axetroy picture axetroy  ยท  4Comments