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
"WARNING: ObjectDB instances leaked at exit" on initiating Node2d object with c# #44226
Comments
|
I've figured out that if I connect the instance to the SceneTree by |
|
This warning makes sense, it's not a bug. Nodes are not automatically freed on exit, unless they are added to the scene, for example by using On the other hand, Resources or any class that inherits from Documentation: Note for contributors: |
Thanks, good to know. Coming from a .net background I assumed that there is garbage collection. |
|
Indeed that's expected behavior.
I opened an issue for this: |
|
This was very helpful. Thanks! |
Godot version: 3.2.3 - stable_mono_win64
OS/device including version: Windows 10 Home PC
Issue description:
var newNode = new Node2D();The above command triggers the following error:
WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
at: cleanup (core/object.cpp:2135)
Steps to reproduce:
var newNode = new Node2D();in the _Ready() methodMinimal reproduction project:
TestLeak.zip
The text was updated successfully, but these errors were encountered: