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
I was trying this with Napi::ThreadSafeFunction but it keeps crashing when Node encounters the function call in its event loop supposedly. The C++ itself runs through without problems.
#
# Fatal error in HandleScope::HandleScope
# Entering the V8 API without proper locking in place
#
Exception: Exception 0x80000003 encountered at address 0x7ff6138bc532
Exception: Exception 0x80000003 encountered at address 0x7ff6138bbde0
Process finished with exit code 3
I can assert that the (same) event was generated two times in the native code which I think is the reason for two Exceptions.
The text was updated successfully, but these errors were encountered:
markpiffer
changed the title
event execution crashes in Node main thread (?) when trying to execute event via ThreadSafeFunction
Node throws exception in main thread (?) when trying to execute event via ThreadSafeFunction
Feb 29, 2024
Is it possible for you to provide a more in-depth reproduction, preferably in a git repository? A cursory glance at your pasted code shows nothing problematic / out of the ordinary.
If you are looking for EventEmitter integrations with node-addon-api, take a look at the examples.
I was trying this with Napi::ThreadSafeFunction but it keeps crashing when Node encounters the function call in its event loop supposedly. The C++ itself runs through without problems.
The result is a:
I can assert that the (same) event was generated two times in the native code which I think is the reason for two Exceptions.
What am I doing wrong?
Originally posted by @markpiffer in #110 (comment)
The text was updated successfully, but these errors were encountered: