Closed akakoori closed 1 year ago
This is not an issue with Bree. This is an issue with canvas
library which i used by the library in your example of chartjs-node-canvas
. See https://github.com/Automattic/node-canvas/issues?q=SIGSEGV.
@titanism thank you, I've searched in the node-canvas
repo but still don't know how to fix this, I know this is not your responsibility, maybe you could give me a hint? Do I have to edit the C++ source code?
nevermind, switched from node-canvas to @napi-rs/canvas, problem solved
Describe the bug
Node.js version: v19.7.0
OS version: Linux version 5.4.0-1105-azure (buildd@lcy02-amd64-082) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #111~18.04.1-Ubuntu SMP Fri Mar 3 22:47:43 UTC 2023
Description: script works in main thread but fails in worker thread with FATAL ERROR or silent crash
Actual behavior
it sliently crashes:
and if add more code lines like
then it throws error like:
Expected behavior
works like it does in main thread
Code to reproduce
this is a test.mjs, run it as `node test.mjs' works as expected, while run it with bree in worker thread, it fails.
Checklist