Skip to content
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

ERROR "Module did not self-register" in woker threads #7

Open
gorphone opened this issue Feb 8, 2022 · 3 comments
Open

ERROR "Module did not self-register" in woker threads #7

gorphone opened this issue Feb 8, 2022 · 3 comments

Comments

@gorphone
Copy link

gorphone commented Feb 8, 2022

Require @julusian/jpeg-turbo in the worker thread file, throwing error:
Module did not self-register: '/Users/***/work/stf-provider/node_modules/@julusian/jpeg-turbo/build/Release/jpegturbo.node'.
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at bindings (/Users/gaofeng/work/stf-provider/node_modules/bindings/bindings.js:112:48)
at Object. (/Users/gaofeng/work/stf-provider/node_modules/@julusian/jpeg-turbo/index.js:1:34)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/Users/gaofeng/work/stf-provider/lib/units/device/plugins/vnc/index.js:8:12)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

@Julusian
Copy link
Owner

Julusian commented Feb 8, 2022

I'm going to need some more information to be able to help here.

What version of node are you using?
What version of the library are you using? prebuilt binary or built from source?
Does this only happen for you when in a worker_thread, and not in the main thread?

@gorphone
Copy link
Author

gorphone commented Feb 9, 2022

node 12.22.9
library: 0.5.4, 0.5.6, 1.1.1 prebuilt binary

just in a woker_thread, has not test the main thread

@gorphone
Copy link
Author

gorphone commented Feb 9, 2022

It's weird that 1.1.1 work fine in Linux and bad in Mac OS, WHILE 0.5.x work fine in Mac OS and bad in Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants