-
Notifications
You must be signed in to change notification settings - Fork 44
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
FATAL ERROR: Error::ThrowAsJavaScriptException napi_throw #200
Comments
@watson Glad to hear kibana is upgrading lmdb-js, hopefully I can help with this. I am not exactly sure what is causing this particular error, but I am able to reproduce something similar by exit'ing worker threads while there are pending async operations, which is due to how node-addon-api interacts with node when it is in its weird thread-termination state. I made a few fixes to try to handle this situation. These are published in v2.6.9, if you want to give that a try and see if it addresses this. |
Thanks for the making the new release. I think that it has solved the above issue. At least, I've not been able to recreate it after upgrading. The problem is that I yet haven't been able to isolate the issue and it seems to be a race-condition, so it doesn't always happen. But before your upgrade I got the above error about half the time I ran the code. So far I've run the code over 10 times without getting this error. I am however getting another error, but this time in Node.js land, which is probably the error that's now surfaced from the C++ side. So I'll close this issue for now as it seems to be fixed. |
Yeah, the stack trace was going through an error handler, so I had wondered if there some other error that triggered this. But certainly don't want to crash in response to an error, so glad it is working better so far. |
I'm in the process of upgrading a large Node.js project from Node.js v16.17.1 to v18.12.0 and as part of that I'm upgrading our dependency on
lmdb-store
version 1.6.11 tolmdb
version 2.6.8.I've noticed (on my M1 MacBook) that I often get the following error from the C++ side of lmdb. I've so far not been able to track down under what conditions this happens. But any help/suggestions would be highly appreciated and possibly a bug-fix as this seems to be something that's not correctly handled internally by the library.
Let me know if there's anything I can do to extract more information that can be used to debug this issue.
The text was updated successfully, but these errors were encountered: