Very weird game crash when switching between some scenes in an exported project

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Robot_With_A_Hat_Gam

I don’t know why, but my exported game crashes everytime when switching from level 2 to level 3.
Also, it only does that if the exported project is ran from a shortcut with a different name as the executable on Windows.
Also this is the non-mono version, because I switched to GDScript for this project (this project was always in the non-mono version).
Any ideas on why this happens and how to fix it?
Game in question: A Trip to Meet a Friend by Robot_With_A_Hat_Games

:bust_in_silhouette: Reply From: codabase

Do you have any info on the engine logs or running the game from command line to see the log statements? This should help us figure out what’s going wrong here

Got this:
WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
at: cleanup (core/object/object.cpp:1982)
ERROR: Resources still in use at exit (run with --verbose for details).
at: clear (core/io/resource.cpp:489)
A time it didn’t crash (shortcut had different name than the .exe)
Did I “find” a memory leak?
EDIT: It was when closing the game
EDIT: Also forgot to mention that the crash is more random now.

Robot_With_A_Hat_Gam | 2023-03-28 01:02

Played it like 10 times without the crash happening. Weird.

Robot_With_A_Hat_Gam | 2023-03-28 01:11