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

worker_threads: node[9926]: ../src/node_worker.cc:117:node::worker::WorkerThreadData::WorkerThreadData(node::worker::Worker*): Assertion `(uv_loop_init(&loop_)) == (0)' failed. #29755

Closed
baron775 opened this issue Sep 28, 2019 · 3 comments
Labels
worker Issues and PRs related to Worker support.

Comments

@baron775
Copy link

  • Version: v11.8.0
  • Platform: Centos 7
  • Subsystem: worker_threads

(async () => { while(true) { const result = await db.query(sql, values) result.rows.forEach(function(subscriber, key) { (async () => { await senderSystem(subscriber) })() }) } })()

My error
node[15426]: ../src/node_worker.cc:117:node::worker::WorkerThreadData::WorkerThreadData(node::worker::Worker*): Assertion (uv_loop_init(&loop_)) == (0)' failed.
1: 0x9bcb80 node::Abort() [node]
2: 0x9bcc07 [node]
3: 0xa52bc2 node::worker::Worker::Run() [node]
4: 0xa536cc [node]
5: 0x7f00012b4dd5 [/lib64/libpthread.so.0]
6: 0x7f0000fde02d clone [/lib64/libc.so.6]
Aborted`

@addaleax addaleax added the worker Issues and PRs related to Worker support. label Sep 28, 2019
@addaleax
Copy link
Member

Node 11 is long unsupported. Can you try a current version of Node.js, and if that fails, can you share a reproduction or more information about your use case?

@gireeshpunathil
Copy link
Member

@baron775 - is this still an issue? if so, can you provide a minimal test case?

@addaleax
Copy link
Member

I think this has been fixed by #31621

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worker Issues and PRs related to Worker support.
Projects
None yet
Development

No branches or pull requests

3 participants