-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(node): Local variables handle error #13827
Conversation
size-limit report 📦
|
hah. I was just testing the new implementation and ran into this exact problem, was about to open a gh issue. @timfish is it worth implementing some kind of heartbeat on the worker so we can detect (and log) when it's dead? |
As a final FYI i tested a try/catch in the worker and it has fixed the worker dying in my testing. |
If you have logging enabled via |
The fix for this has been released in v8.34.0! |
@chiragjn this looks unrelated to this issue so can you open a new issue with a reproduction? |
Ref #13768
Runtime.releaseObject
can throw. I've reworked it to simplify and so that errors are caught.After a lot of testing, I've removed the memory leak test. I've tested this PR extensively on Node v20 + v22 and while memory usage does peak at ~350MB, it doesn't get above that after 15 minute of 1k errors per second. Memory usage varies from 150-300MB but I've concluded it's not actually leaking.