-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in V8 when using Node FFI modules #122565
Comments
I'm not sure whether this is included in the .dmp file so here's the error report and stack trace:
|
@deepak1556 is this your domain? |
Original issue: intersystems/language-server#152 |
Thanks for the ping @gjsjohnmurray. Insiders has updated to node v14 which disallows creating two Also, I noticed that you are using |
Issue Type: Bug
The crash occurs when the InterSystems Language Server extension is activated.
The extension calls out from JavaScript to an InterSystems shared library (packaged with the extension) and then uses the following Node FFI modules to turn the returned result into JavaScript objects:
Although we have been using older versions of these modules the crash also occurs with these latest versions of them.
This works fine with VSCode Stable (and has done for months) but crashes on Insiders. It also works fine with stand-alone Node.
The crash actually occurs when the JavaScript code either uses
toArray
or attempts to access a part of the returned object using subscripting (i.e.[..]
). The last JS code executed before calling native code is in ref-napi: ref.js calls_reinterpret
to "reinterpret" the buffer by - as I understand it - creating a larger buffer at the same address.I have attached a zip of the .dmp file created by VSCode Insiders.
ER: The Language Server extension starts up and functions normally
AR: The Language Server crashes on activation and (after a retry) disconnects from the client.
VS Code version: Code - Insiders 1.56.0-insider (13f1aff, 2021-04-28T04:50:45.511Z)
OS version: Darwin x64 18.7.0
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (3)
A/B Experiments
a47c8fa5-5629-44e8-9b59-52c9caa07aae.dmp.zip
The text was updated successfully, but these errors were encountered: