-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
workerIssues and PRs related to Worker support.Issues and PRs related to Worker support.
Description
- Version: master, v14.0.0-pre
- Platform: Linux 3.10.0-957.5.1.el7.x86_64 1 SMP Wed Dec 19 10:46:58 EST 2018 x86_64 x86_64 x86_64 GNU/Linux
- Subsystem: workers
I was debugging #23277 and came across this:
$ cat bar.js
const { Worker } = require('worker_threads');
for (let i = 0; i < 10000; ++i) {
const worker = new Worker(
'require(\'worker_threads\').parentPort.postMessage(2 + 2)',
{ eval: true });
}
$ node --max-old-space-size=100000 bar
node[101402]: ../src/node_worker.cc:135:node::worker::WorkerThreadData::WorkerThreadData(node::worker::Worker*): Assertion `(uv_loop_init(&loop_)) == (0)' failed.
I guess this has to do with libuv failure due to lack of memory, but can this be better handled?
/cc @nodejs/workers
Metadata
Metadata
Assignees
Labels
workerIssues and PRs related to Worker support.Issues and PRs related to Worker support.