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

test: Memory leak reproduction for futures #1413

Merged
merged 2 commits into from Dec 28, 2022

Conversation

SevInf
Copy link
Contributor

@SevInf SevInf commented Dec 28, 2022

Hello!
When attempting to update to napi-rs 2.10.0, our tests caught a new memory leak across all Node.JS version. I can confirm that the issue still exists on 2.10.3 as well. After some digging through, I think I narrowed it down to Future -> Promise conversion. This PR adds a reproduction to the memory test suite: if you run the script manually, you can see heap usage steadily climbing. And if you use low enough --max_old_space_size it will eventually crash with out-of-memory error. Hope it will help with fixing it — at the moment we had to pin all napi-rs packages to 2.9.0, but we'd like to unblock the update.

@xiaopengli89
Copy link
Contributor

I think it's related to #1403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants