dannygaray60 / toziuha-night-oota

Opensource Metroidvania inspired on Castlevania Order of Ecclesia
https://dannygaray60.itch.io/toziuha-night-order-of-the-alchemists
MIT License
126 stars 28 forks source link

Resources leak on game exit #3

Closed fpdotmonkey closed 3 weeks ago

fpdotmonkey commented 3 years ago

Upon exiting the game by hitting the desktop manager's "X" button or by using the in-game "Exit" option from the title screen, Godot reports leaked resources. This is on the Linux build v1.0 beta.

$ ~/Downloads/free_\[linux_x64\]_toziuha_night_oota/Toziuha\ Night\ -\ Order\ of\ the\ Alchemists.x86_64 --verbose
Godot Engine v3.3.2.stable.official - https://godotengine.org
XInput: Refreshing devices.
XInput: No touch devices found.
Detecting GPUs, set DRI_PRIME in the environment to override GPU detection logic.
Only one GPU found, using default.
Using GLES2 video driver
OpenGL ES 2.0 Renderer: Quadro K2200/PCIe/SSE2
OpenGL ES Batching: ON
    OPTIONS
    max_join_item_commands 16
    colored_vertex_format_threshold 0.25
    batch_buffer_size 16384
    light_scissor_area_threshold 1
    item_reordering_lookahead 4
    light_max_join_items 32
    single_rect_fallback False
    debug_flash False
    diagnose_frame False
# ...
# After hitting the "X" button
PulseAudio: context terminated
WARNING: cleanup: ObjectDB instances leaked at exit (run with --verbose for details).
   At: core/object.cpp:2132.
Leaked instance: Node:1906 - Node name: 
Leaked instance: Node:1977 - Node name: 
Leaked instance: ConfigFile:1971
Leaked instance: Node:2284 - Node name: 
Leaked instance: Node:2085 - Node name: 
Leaked instance: ConfigFile:2167
Leaked instance: Node:2181 - Node name: 
Leaked instance: Node:2095 - Node name: 
Leaked instance: Node:2189 - Node name: 
Leaked instance: Node:2005 - Node name: 
Leaked instance: Node:1963 - Node name: 
Leaked instance: ConfigFile:2212
Leaked instance: ConfigFile:2135
Leaked instance: Node:2291 - Node name: 
Leaked instance: Node:1755 - Node name: 
Leaked instance: Node:2036 - Node name: 
Leaked instance: Node:2211 - Node name: 
Leaked instance: Node:1931 - Node name: 
Leaked instance: ConfigFile:1985
Leaked instance: ConfigFile:2175
Leaked instance: ConfigFile:2268
Leaked instance: ConfigFile:2153
Leaked instance: Node:1707 - Node name: 
Leaked instance: ConfigFile:1964
Leaked instance: ConfigFile:2086
Leaked instance: ConfigFile:2015
Leaked instance: Node:2076 - Node name: 
Leaked instance: Node:2057 - Node name: 
Leaked instance: Node:2204 - Node name: 
Leaked instance: Node:2028 - Node name: 
Leaked instance: ConfigFile:1932
Leaked instance: ConfigFile:2190
Leaked instance: Node:2134 - Node name: 
Leaked instance: Node:1939 - Node name: 
Leaked instance: GDScriptNativeClass:608
Leaked instance: Node:2196 - Node name: 
Leaked instance: Node:2347 - Node name: 
Leaked instance: Node:1947 - Node name: 
Leaked instance: Node:1955 - Node name: 
Leaked instance: GDScript:1706 - Resource path: res://scripts/config.gd
Leaked instance: ConfigFile:2285
Leaked instance: ConfigFile:2197
Leaked instance: Node:2109 - Node name: 
Leaked instance: ConfigFile:2029
Leaked instance: ConfigFile:2037
Leaked instance: ConfigFile:1940
Leaked instance: ConfigFile:2182
Leaked instance: Node:1984 - Node name: 
Leaked instance: ConfigFile:2006
Leaked instance: ConfigFile:2125
Leaked instance: ConfigFile:2301
Leaked instance: Node:2117 - Node name: 
Leaked instance: ConfigFile:1956
Leaked instance: Node:2267 - Node name: 
Leaked instance: ConfigFile:1978
Leaked instance: Node:2014 - Node name: 
Leaked instance: ConfigFile:2160
Leaked instance: Node:2152 - Node name: 
Leaked instance: Node:1970 - Node name: 
Leaked instance: ConfigFile:1756
Leaked instance: ConfigFile:2068
Leaked instance: ConfigFile:2118
Leaked instance: ConfigFile:2096
Leaked instance: Node:2049 - Node name: 
Leaked instance: ConfigFile:2205
Leaked instance: ConfigFile:1708
Leaked instance: ConfigFile:1998
Leaked instance: Node:2300 - Node name: 
Leaked instance: ConfigFile:2050
Leaked instance: ConfigFile:2219
Leaked instance: Node:2218 - Node name: 
Leaked instance: ConfigFile:2058
Leaked instance: ConfigFile:2292
Leaked instance: ConfigFile:2077
Leaked instance: Node:2159 - Node name: 
Leaked instance: ConfigFile:1948
Leaked instance: ConfigFile:1907
Leaked instance: ConfigFile:1915
Leaked instance: Node:1914 - Node name: 
Leaked instance: Node:2124 - Node name: 
Leaked instance: Node:2174 - Node name: 
Leaked instance: ConfigFile:2110
Leaked instance: Node:2166 - Node name: 
Leaked instance: Node:1997 - Node name: 
Leaked instance: ConfigFile:2348
Leaked instance: Node:2067 - Node name: 
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: clear: Resources still in use at exit (run with --verbose for details).
   At: core/resource.cpp:450.
Resource still in use: res://scripts/config.gd (GDScript)
Orphan StringName: set_locale
Orphan StringName: get_value
Orphan StringName: apply_conf_setting
Orphan StringName: get_locale
Orphan StringName: button_index
Orphan StringName: check_conf_setting
Orphan StringName: get_conf_value
Orphan StringName: new
Orphan StringName: GDScriptNativeClass
Orphan StringName: scancode
Orphan StringName: has_touchscreen_ui_hint
Orphan StringName: get_name
Orphan StringName: get_scancode_with_modifiers
Orphan StringName: begins_with
Orphan StringName: set_conf_value
Orphan StringName: set_bus_volume_db
Orphan StringName: window_borderless
Orphan StringName: Node
Orphan StringName: get_action_list
Orphan StringName: save
Orphan StringName: get_actions
Orphan StringName: action_add_event
Orphan StringName: get_bus_index
Orphan StringName: res://scripts/config.gd
Orphan StringName: set_value
Orphan StringName: ConfigFile
Orphan StringName: load
Orphan StringName: _init
Orphan StringName: check_configfile
Orphan StringName: action_erase_event
Orphan StringName: GDScript
Orphan StringName: window_fullscreen
Orphan StringName: add_joy_mapping
Orphan StringName: has_section_key
Orphan StringName: conf
StringName: 35 unclaimed string names at exit.
dannygaray60 commented 3 years ago

thanks for your report I will see how resolve this