0 votes

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: https://robot-with-a-hat-games.itch.io/a-trip-to-meet-a-friend

Godot version 4.0.1
in Engine by (16 points)

1 Answer

0 votes

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

by (135 points)

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.

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.