SIGSEGV with worker threads #3162
-
I have a typescript project, I'm using tsc to precompile the files, then running ava on them. The generated js is commonJS.
but when I do
I'd expect not to get a SIGSEGV when using worker threads. ava.config.js:
I understand that the above is not a minimal reproducible example (MRE) as well as the fact that the issue is likely with some of the modules my project uses.
Thanks for your time :) ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Most likely some of the native module code you're interacting with doesn't play well with worker threads. That's an issue with those modules and/or Node.js, not AVA. I'd try and interact with those modules outside of AVA, using the https://nodejs.org/api/worker_threads.html API directly. In the mean time, you're best off running without worker threads, as you already discovered. |
Beta Was this translation helpful? Give feedback.
Most likely some of the native module code you're interacting with doesn't play well with worker threads. That's an issue with those modules and/or Node.js, not AVA.
I'd try and interact with those modules outside of AVA, using the https://nodejs.org/api/worker_threads.html API directly.
In the mean time, you're best off running without worker threads, as you already discovered.