RodZill4 / material-maker

A procedural textures authoring and 3D model painting tool based on the Godot game engine
MIT License
3.52k stars 222 forks source link

A lot of leaked nodes #133

Open qarmin opened 4 years ago

qarmin commented 4 years ago

When I just run and exit project(even when open it inside editor), then app leaks a lot of nodes. It can be shown when running Godot with verbose flag godot -v

Example of some leaks:

Resource still in use: res://addons/material_maker/engine/gen_context.gd (GDScript)
Resource still in use: res://addons/material_maker/engine/gen_graph.gd (GDScript)
Resource still in use: res://addons/material_maker/engine/gen_ios.gd (GDScript)
Resource still in use: res://addons/material_maker/types/types.gd (GDScript)
Resource still in use: res://addons/material_maker/engine/gen_base.gd (GDScript)
Resource still in use: res://addons/material_maker/engine/gen_remote.gd (GDScript)
Resource still in use: res://addons/material_maker/types/gradient.gd (GDScript)

Orphan StringName: delete_port
Orphan StringName: res://addons/material_maker/engine/gen_ios.gd
Orphan StringName: append
Orphan StringName: res://addons/material_maker/types/gradient.gd
Orphan StringName: res://addons/material_maker/types/types.gd
Orphan StringName: join
Orphan StringName: config_name
Orphan StringName: a
Orphan StringName: b
Orphan StringName: c
Orphan StringName: g
Orphan StringName: i
Orphan StringName: l
Orphan StringName: n
Orphan StringName: o
Orphan StringName: p
Orphan StringName: r
Orphan StringName: t
Orphan StringName: v
Orphan StringName: w
Orphan StringName: x
Orphan StringName: y
Orphan StringName: res://addons/material_maker/engine/gen_remote.gd
Orphan StringName: generate_shader
Orphan StringName: res://addons/material_maker/engine/gen_base.gd

Some of errors are caused by https://github.com/godotengine/godot/issues/30668

fire commented 2 years ago

@qarmin Can you recheck?

qarmin commented 2 years ago

Still happens

Leaked instance: ImageTexture:3441 - Resource path: 
Leaked instance: GDScriptNativeClass:725
Leaked instance: SceneState:2180
Leaked instance: PopupMenu:4917 - Node name: @@234
Leaked instance: GDScript:1819 - Resource path: res://material_maker/nodes/minimal.gd
Leaked instance: AtlasTexture:2222 - Resource path: res://material_maker/nodes/edit_buttons.tscn::3
Leaked instance: PackedScene:2112 - Resource path: res://material_maker/panels/layers/layer_tooltip.tscn
Leaked instance: StyleBoxTexture:397 - Resource path: 
Leaked instance: AtlasTexture:2159 - Resource path: res://material_maker/widgets/gradient_editor/gradient_editor.tscn::6
Leaked instance: GDScript:2225 - Resource path: res://material_maker/nodes/base.gd
Leaked instance: HSlider:4933 - Node name: @@244
Leaked instance: SceneState:2164
Leaked instance: GDScriptNativeClass:754
Leaked instance: Object:6416
Leaked instance: GDScriptNativeClass:779
Leaked instance: Timer:4930 - Node name: @@240
Leaked instance: TreeItem:5435
Leaked instance: PackedScene:1805 - Resource path: res://material_maker/windows/file_dialog/file_dialog.tscn
Leaked instance: HScrollBar:4985 - Node name: @@256
Leaked instance: Object:5515
Leaked instance: AtlasTexture:1802 - Resource path: res://material_maker/windows/file_dialog/fav_button.tscn::1
Leaked instance: GDScript:2170 - Resource path: res://material_maker/widgets/curve_edit/curve_view.gd
Leaked instance: AtlasTexture:2102 - Resource path: res://material_maker/panels/layers/icons/not_visible.tres
Leaked instance: TreeItem:5449
Leaked instance: HSlider:4984 - Node name: @@255
Hint: Leaked instances typically happen when nodes are removed from the scene tree (with `remove_child()`) but not freed (with `free()` or `queue_free()`).
ERROR: Resources still in use at exit (run with --verbose for details).
   at: clear (core/resource.cpp:417)
Resource still in use: res://material_maker/panels/layers/layer_config_popup.tscn (PackedScene)
Resource still in use: res://material_maker/widgets/color_picker_button/color_picker_button.gd (GDScript)
Resource still in use: res://material_maker/nodes/base.gd (GDScript)
Resource still in use: res://material_maker/widgets/gradient_editor/gradient_editor.tscn::5 (Theme)
Resource still in use: res://material_maker/panels/layers/layers.tscn::1 (AtlasTexture)
Resource still in use: res://material_maker/widgets/curve_edit/curve_dialog.gd (GDScript)
Resource still in use: res://material_maker/windows/line_dialog/line_dialog.tscn (PackedScene)
Resource still in use: res://material_maker/widgets/polygon_edit/polygon_view.gd (GDScript)
Resource still in use: res://material_maker/panels/library/button_greyed.tres (ShaderMaterial)
Resource still in use: res://material_maker/windows/file_dialog/file_dialog.tscn (PackedScene)
Resource still in use: res://material_maker/widgets/gradient_editor/gradient_editor.tscn::6 (AtlasTexture)
Resource still in use: res://addons/material_maker/types/polygon.gd (GDScript)
Resource still in use: res://material_maker/panels/layers/layers.tscn::2 (AtlasTexture)