Debug vs Release version... Crash investigate

Godot Version

3.5.3

Question

Good morning.
I’m having issues with one of my games. When I launch it from the editor, everything works fine, but if I start the exported game in release mode, sometimes it crashes and I can’t figure out why… I suspect there’s some form of “help” in the debug version that is missing in the “release” version.
The question is: if I launch the game from the console with the -d parameter, am I actually debugging the release version? Or will it be like launching it from the editor?
Thank you.

Just had the same issue as you.

The way I debugged it was,

  1. Upon export, make sure you export it with the debug option checked>
  2. Run the executable .console on the command prompt if you are in windows.
1 Like

hiiI’m having issues with one of my games. When I launch it from the editor, everything works fine, but if I start the exported game in release mode, sometimes it crashes and I can’t figure out why… I suspect there’s som

1 Like

It’s same for me. I listen about some “help” behaviours of editor, such as automatic cast that happen in debug mode, but do nothing in release. If so, all is explained… But why!? I’d like to crash in editor, if must happen… or not?

I have no idea, on my editor the game runs fine and I did make sure to clean up all warnings and errors before exporting and still had crashes before.

I found on my project that it was remove_child() not freeing up properly and by using breakpoints and some print statements, not the ideal way and it took me hours,I fixed mine this way.

@gevonstria @k86874248 I don’t know if it’s your case, but I found the problem in mine… Remember? My project is still in Godot 3.5 because I started working on it a few years ago. Well: it’s the WebM videos: without any warning, they crash everything. In the Windows Event Viewer, only an error message appears due to an exception 0xc0000005 and nothing else. Nothing in the editor and nothing, even, when running the application in debug mode. Only in release mode! I’ve converted all video in Theora and now all works without any crash… But I’ve another problem: Theora videos simply sucks…

Glad you worked it out.