X RID allocations of type <type> were leaked at exit

Godot Version

v4.2.2.stable.mono.official [15073afe3]

Question

So I’m not even sure where to start with this one. I’ve been SOMETIMES getting these error messages WHEN I exit my game, but only sometimes. I cannot reproduce it consistently, as it won’t always show up, but sometimes, after I exit my game, my IDE reports the following errors and warnings:


As I said, not always, and even when I do get them, it’s always something different, sometimes only one item, sometimes multiple ones like this. I can’t reproduce it consistently, it just sometimes happens and sometimes doesn’t, and it never CRASHES the game, these always come up after I exit the game.

I’d appreciate any help or direction on what these might be or where to go from here to figure out what’s causing them, as they’re becoming increasingly more worrying as I get closer to release. Thank you!

I tried to reproduce the issue to be more consistent, but it’s really difficult to do without knowing which scripts are actually generating the issue, and using the mentioned verbose mode won’t really give me any specifics either, only things from the C++ source code. Any ideas?

If these errors are occurring when closing the game then I wouldn’t be too worried.
This is probably happening when the game is being offloaded from memory and so some things are still running and leak because other components they depended on were offloaded before they were.
I know a game made in Godot on Steam that constantly throw these errors when closing the game and it doesn’t break anything.