Godot-DialogPlugin icon indicating copy to clipboard operation
Godot-DialogPlugin copied to clipboard

Leaked instances on exit

Open AnidemDex opened this issue 4 years ago • 9 comments

For some reason, the plugin doesn't clean itself and its resources even if I free it at exit. This may be due https://github.com/godotengine/godot/issues/45512 (wich will be fixed on 4.0) but I'm not sure. For now it's not generating a major problem, but I should keep track of this.

AnidemDex avatar Apr 29 '21 23:04 AnidemDex

Update: for some unknow reason, i managed to solve this. I really don't know how I did it

AnidemDex avatar May 04 '21 16:05 AnidemDex

Another Update: Translations inspector added this bug again. Maybe the plugin inspector can't be free at exit since someone is still holding it's reference?

Annotation: maybe i should use weakref to editor plugins

AnidemDex avatar May 05 '21 21:05 AnidemDex

Apparently fixed. Don't instance or reference resources without freeing them

AnidemDex avatar May 08 '21 04:05 AnidemDex

v0.1.4 added this issue again, with a misterious PanelContainer that appears randomly

AnidemDex avatar May 10 '21 03:05 AnidemDex

v0.1.4 added this issue again, with a misterious PanelContainer that appears randomly

Apparently, drag & drop function causes this

AnidemDex avatar May 28 '21 17:05 AnidemDex

v0.2.0 update: The issue is gone.

I'm not closing this just in case.

AnidemDex avatar Jul 03 '21 22:07 AnidemDex

v0.3 update: Still no leaked instances

Pro tip: Be sure to free any unused instance.

AnidemDex avatar Oct 02 '21 13:10 AnidemDex

More information: https://github.com/godotengine/godot/issues/21461

AnidemDex avatar Oct 02 '21 16:10 AnidemDex

v1.0 update: No leaked instances. Another tip: Use signals to avoid orphan nodes.

AnidemDex avatar Nov 17 '21 03:11 AnidemDex