chjj / bthreads

worker threads for javascript
Other
48 stars 0 forks source link

Error thrown "stdin.unref is not a function" during Parent instance initialization #8

Open naz opened 3 years ago

naz commented 3 years ago

When running bthreads with BTHREADS_BACKEND = 'child_process'; configuration stdin.unref error pops up from time to time without clear reproduction scenario.

stdin.unref is not a function

----------------------------------------

TypeError: stdin.unref is not a function
    at Parent._init (/home/REDACTED/node_modules/bthreads/lib/process/parent.js:129:11)
    at new Parent (/home/REDACTED/node_modules/bthreads/lib/process/parent.js:81:10)
    at Object.<anonymous> (/home/REDACTED/node_modules/bthreads/lib/process/thread.js:15:16)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/REDACTED/node_modules/bthreads/lib/process/index.js:10:20)

Environment details:

@chjj would appreciate any tips on tackling this and thanks for all your work on this project!

Notes: