You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main finished will be logged, but the process will hang.
What I know so far
There are a couple of issues in the napi-rs repo (here and here) that suggest that ThreadSafeFunction is the cause.
I upgraded the napi and napi-derive dependencies but that didn't fix the issue (also, when I did this I got some compilation errors, and I fixed them by adding a bunch of .to_vec() and replacing some ._as_ptr() with .as_mut_ptr()).
I then removed all the functions that EdrProvider.with_config receives. This did fix the issue, which seems to confirm that the problem is related to ThreadSafeFunction.
The text was updated successfully, but these errors were encountered:
Hardhat issue: NomicFoundation/hardhat#4997
Reproduction steps:
Create a node project
Install
@nomicfoundation/edr
Create an
index.js
file with these contents:Run
node index.js
main finished
will be logged, but the process will hang.What I know so far
There are a couple of issues in the
napi-rs
repo (here and here) that suggest thatThreadSafeFunction
is the cause.I upgraded the
napi
andnapi-derive
dependencies but that didn't fix the issue (also, when I did this I got some compilation errors, and I fixed them by adding a bunch of.to_vec()
and replacing some._as_ptr()
with.as_mut_ptr()
).I then removed all the functions that
EdrProvider.with_config
receives. This did fix the issue, which seems to confirm that the problem is related toThreadSafeFunction
.The text was updated successfully, but these errors were encountered: