You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
constpngData=resvg.render()constpngBuffer=pngData.asPng()// pngData.free() // I had to add `.free()` here to memory leak.
The documentation for wasm-bindgen says:
Without weak references your JS integration may be susceptible to memory leaks in Rust, for example:
You could forget to call .free() on a JS object, leaving the Rust memory allocated.
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: