enami

Results 4 comments of enami

We have same issue here. It looks like the `env` passed to napi_delete_referece() is already invalidated when the thread deletes `ThreadSafeCallback::Impl` object.

If you want simple workaround, then just not to delete ThreadSafeCallback::Impl object. Since an application is going to exit anyway, not deleting this small object seems not so much harmful....

I wonder if a correct fix would be using napi's thread-safe-function instead of using napi-thread-safe-callback npm module.

@ks75vl Hi, please try #219 if possible. It fixes the crash at least for me.