Open jdgriffith opened 8 months ago
Thanks for reporting, could you provide some more information so we can reproduce this? A code sample?
Let me see what I can do. My main project is too complex to offer up but I might be able to create a simplified public repo for the repro.
This is a bug with our Worker implementation which does reproduce in some of our unit tests. No need to put in work to do a reproduction. Our Worker implementation is not stable yet. We will fix it in a month probably.
Thanks for the feedback @Jarred-Sumner. Saved me a bit of work 😅
I would imagine this issue is lower in priority to the bigger use cases in the web community. I understand if I have to wait a bit for this one. Thanks for being so diligent with the features and bugs.
😓 Is there currently any other way to do multi-threaded work in JS while you chads put this on your to-do list? @Jarred-Sumner
just got bitten by this, any timeline to have workers not experimental ?, project i'm working on fully requires parallelism.
I haven't seen much movement on this except for a few bug fixes (tangential items) here and there in the release notes. The team seems be very focused on the windows release so I'm not sure when they will get to it. I think those of us with this requirement might be in the minority when looking at Bun's use cases.
For real production traffic apps that do a bunch of synchronous operations I can’t see how a single process could hold, workers are a must.
What version of Bun is running?
1.0.14
What platform is your computer?
Linux 5.15.0-76-generic x86_64 x86_64
What steps can reproduce the bug?
When using worker threads and processing quite a bit of data, the main process will crash. Sometimes it outputs the error attached.
What is the expected behavior?
It will continue processing data with normal info logs.
What do you see instead?
Additional information
I initially thought this was related to some code I use for Node.js to bring in the module
dotenv
but that is not on the hot path for bun code. I think this might be related to the dotenv loader bun implemented using Zig.