-
-
Notifications
You must be signed in to change notification settings - Fork 21.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
[3.x] Repeatedly calling JavaScript->Godot callback causes infinite memory consumption increases. #81005
Comments
Further testing on bleeding edge Since my experience with C++ and manual memory management is still very limited, I cannot analyse the problem any further, but I will try my test to figure out the culprit. |
As for heads up, I found a culprit that Still, I can't be too sure if this is the 'right' solution since JS GC can be wonky to deal with especially when interfacing with WASM. However, as for my test bench code it doesn't ruin anything and value still gets copied and referenced properly. This message is mirrored from Godot Contributors Chat. |
Fixed by #81090. |
Godot version
3.5.2-stable
System information
Linux 6.1.44-1-MANJARO
Issue description
Calling Godot Callback from JavaScript causes memory consumption to go higher than expected, even with empty project that does nothing but keep calling Godot's callback via JavaScript or Godot's JavaScript interface.
Steps to reproduce
window
in particular)This happens on both Firefox and Chromium-based browsers, WebKit is untested.
Minimal reproduction project
Archive.zip
The text was updated successfully, but these errors were encountered: