Shouqun / node-dbus

dbus module for node
MIT License
150 stars 70 forks source link

"Error: Module did not self-register" with Node v12 worker threads #212

Closed nanpx closed 4 years ago

nanpx commented 4 years ago

I'm unable to load dbus when using worker threads. Instead I get "Error: Module did not self-register."

I've created a dbus worker threads gist to demo the error. I have been able to compile, pass all tests, and verify that changing to NAN_MODULE_WORKER_ENABLED does resolve the error message. However, I believe the long-term solution is to become context aware compatible if worker threads are to be supported.