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

My electron32 bit program uses the node addon module, but sometimes there is a memory leak. Is there a possibility that the napi_create_external_arraybuffer parameter finalize_cb will not be called or is there an exception scenario #51547

Closed
Candylong opened this issue Jan 23, 2024 · 3 comments

Comments

@Candylong
Copy link

Version

12.x

Platform

windows10

Subsystem

No response

What steps will reproduce the bug?

Sometimes it will appear that there is no fixed recurrence of the landscape and

How often does it reproduce? Is there a required condition?

Sometimes it will appear that there is no fixed recurrence of the landscape and

What is the expected behavior? Why is that the expected behavior?

The napi_create_external_arraybuffer parameter finalize_cb is called normally, and the node-addon module frees the heap memory

What do you see instead?

My electron32 bit program uses the node addon module, but sometimes there is a memory leak

Additional information

No response

@marco-ippolito
Copy link
Member

marco-ippolito commented Jan 23, 2024

Can you confirm you using node 12? Have you considered upgrading version?
@nodejs/addon-api

@Candylong
Copy link
Author

Can you confirm you using node 12? Have you considered upgrading version?

If I do not upgrade, is it possible that finalize_cb of napi_create_external_arraybuffer will not be called in the current version

@marco-ippolito
Copy link
Member

Node 12 has been end of life. Please check if the issue still happens with LTS and provide a reproducible example

@marco-ippolito marco-ippolito closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2024
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

No branches or pull requests

2 participants