-
Notifications
You must be signed in to change notification settings - Fork 69
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
broken on Node.js 13 #25
Comments
Yeah, I’ve been thinking about this. I think the only reasonable solution here is to create a maximum-size |
Not sure if this is related to the linked Travis log, but it also crashes with segfault on garbage collection. E.g. given require('ref-napi');
global.gc();
Also below is a stack trace I received using segfault-handler in case it is helpful somehow:
|
@devoto13 I think that particular bug has been fixed in more recent versions of Node.js (by nodejs/node#31140), but it’s hard to tell without a reproduction. |
Thanks for the pointer, @addaleax. It reproduces neither with the script from my previous message, nor the real application using Node 13.8.0. |
I have problem installing |
@onichandame In this case, there are problems because V8 makes changes that break the way that this addon works. I’ll do my best to get on top of that, but it’s going to be quite a bit of work. |
@addaleax Would you kindly point me to the exact changes in V8 that possibly have caused this problem? |
@onichandame https://bugs.chromium.org/p/v8/issues/detail?id=9908 might be a starting point, there’s quite a few referenced V8 changes – basically, the whole That doesn’t mean that this codebase is in a great state and couldn’t use some work, though… 😄 |
@addaleax thx for your great work! I will take a look anyways as the problems of the other repo like ref and node-ffi may have a similar root cause. |
Yeah, fixing ref-napi is part of that plan… I actually have that part working by now but it’s quite tightly integrated with the fixes for the ffi-napi module itself, so I’ll push/release them together It’s also going to be very hacky, so I’m definitely open to people thinking about other solutions. Basically, what I’m doing right now is adding a list of all |
@onichandame Fwiw, #32 should have resolved this for ref-napi, and node-ffi-napi/node-ffi-napi#68 should do that for node-ffi-napi … I’m still having trouble getting everything to work 100 % in CI – and either way, feel free to try to newer branches/releases out |
@addaleax I just retried to install ffi-napi and ref-napi on centos 7 with both node 13.13.0 and 14.0.0 using FYI, here are the commands I ran for the quick test: podman pull onichandame/docker-dev:node13 # or node14
podman run -it --rm onichandame/docker-dev:node13
yarn add ffi-napi ref-napi |
This should be fixed in |
Full log: https://travis-ci.com/gengjiawen/ref-napi/jobs/283269452
The text was updated successfully, but these errors were encountered: