![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | alwaysusa |
Hey all,
I have a first playable demo of my game ready to send out to a few testers for feedback - but when I export a release build the game randomly crashes. It works fine in editor, and fine when exporting to a debug build - the issue only happens in release.
I have no idea how to track this down. I have no errors in the editor (I even cleaned up all warnings so it runs with zero issues that I know of) - but the Release build crashes every time. I vaguely know the repro steps for the crash, but without further data, I’m having problems debugging.
So, any ideas on what one does in this situation? If I could get it to crash in the debug build - I still wouldn’t know what to do as there doesn’t seem to be any logs generated?
Cheers for any help!
EDIT: More info:
I had an engineer friend take a look and he noted that an invalid memory call was causing the issue - possibly from a null reference. He then figured out I could turn on verbose logging (by running the exe from a cmd prompt and using -v).
Now the problem is when using -v, it won’t crash. Without logging, it crashes. Same executable.
What could cause that?
I have exactly the same problem, and it seems to be related to a queue_free() call, deleting a node.
In my case, I want to delete a node. When I use queue_ free() it crashes (in release build only), when I use remove _child(), it works (at least for testing).
Edit: I also delete other nodes with queue_free() without problems so there has to be more to it, but I could not pinpoint it yet. It could be related to collisions (the problematic node collides with another when deleted, while the others don’t).
Lorgarmor | 2020-11-29 20:05