Open drwhut opened 1 year ago
I'm not sure when I'll be able to get to this, but I might be able to help you work around it. Are you creating an editor plugin or a game? If you are creating a game, then I'm not sure you would see any orphaned nodes from your game when you exit the editor.
A game. While that is the case when running the game via the editor, sometimes I need to run the game standalone in order to test the multiplayer.
I created a simple project that just has a single scene in it and the GUT plugin installed. running Godot using --verbose
from the command line, in the directory launches the game but when I exit the game I'm not seeing the orphaned items as I do when I launch the editor from the command line with --verbose
.
I'm on a Mac, using iTerminal and zsh. Here's the commands I've been testing with:
export GODOT="/Applications/Godot/Contents/MacOS/Godot"
alias godot='eval $GODOT'
godot -e --verbose
it will open the editor and when I close it, I see the output you are seeing.godot --verbose
it starts up the game, and I see the verbose output at the start, but I don't see any of the output after exiting the game.Can you provide details on how you are launching Godot? Are you referencing GUT inside your game somewhere?
Apologies, I thought the memory errors also appeared in exported projects, they do not. It is only when closing the editor.
I am using the same command as you to launch the editor: ./godot.x11.opt.tools.64 -e --path <PATH_TO_PROJECT>
Ok, cool. So they aren't getting in the way of you tracking down other leaks then?
Not as of now, no.
Great. I agree this should still be cleaned up. Feels dirty having things leftover at the end, but if they aren't getting in the way of progress then I don't have to rush to fix this. Thanks for you help with this one.
I confirm there is also memory leaking on 9.1.1 too. Not urgent at the moment for my needs.
This was originally posted in #122, but I've made a new issue at the request of the author.
I've started using Gut 7.4.1 in my project, and I've noticed that it has a lot of memory leaks when exiting Godot.
For context, I've downloaded the add-on via the in-engine AssetLib on the official 3.5.2 build (Godot_v3.5.2-stable_x11.64) to a newly created project with no tests or configuration files made, and this is the output when running the engine with --verbose:
gut.log
Additionally: Even though this only occurs when exiting Godot, and even though Godot should keep track of and properly free all orphan resources and string names, it is still incredibly annoying to see every time I exit Godot via the command line. Plus, it makes debugging memory leaks from my own code much harder, since they are essentially hidden within Gut's own leaks when using
--verbose
.