-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Weak references fails to automatic garbage collect #3903
Comments
This is a bug; somebody already noticed this and wrote a fix for it in #3743, but it never got finished. We probably should've waited for this to be fixed before enabling weak references by default, but I'd forgotten about it... oops. |
@Liamolucko There is another related issue #3854 |
The cause of this memory leak is as described at thx/resvg-js#318 (comment). It contains both #3854 and #3917 issues. I think we can close this issue in favor of the two issues. What do you think? @yisibl |
Closing in favor of #3854. |
Summary
wasm-bindgen
2.9.1 has--weak-refs
turned on by default, but I recompiled resvg-js to wasm to test it in Node.js and it still shows a constant increase in memory usage.The documentation for wasm-bindgen says:
Please help me see what went wrong.
See https://github.com/yisibl/repro-resvg-wasm-memory-leak
The text was updated successfully, but these errors were encountered: