- Home /
Build crashes but keeps running
Hello guys,
I'm having an issue with my Unity Application. Sometimes it crashes and I can't figure out why. The application is built using Unity 4.6.6f2 (standalone Windows 32). My PC has the following configuration : Windows 7 x64, Intel Xeon E5-1620, GeForce 670GTX). But the crash issue looks the same on every PC I have been testing (whatever the GPU or CPU). It only crashes one time out of 30 or 40...
Here are some pieces of information I managed to collect :
(1) It looks like the application doesn't always crash at the same point in my code;
(2) The StackTrace of the crash is merged with some debug logs I added to track the crash reason,
(3) When I look at the StackTrace of the crash, I can't find any of my methods
For the record, I'm using some Network object containing Nodes (Vertices) and Segments (Edges). See Wikipedia - Network for more information. Most of the time, the game crashes during this Network initialization, but not only, and the crash stacktrace is exactly the same when the game crashes somewhere else. I was thinking may be some piece of my network might be corrupted. So I added logs to check if the crash always occurs on the same Segment or Node and it doesn't...
The output.log file shows no exception before the crash. Observation (2) makes me think that somehow, a piece of Unity's internal Engine crashed while my code keeps executing (that would be the reason why it keeps logging stuff while the app is crashed).
I already checked memory use, but it doesn't seem to be the problem. Windows' TaskManager says my app uses about 1Gb (on 8Gb - 16Gb RAM Computers).
The output.log is attached to this post but you'll see it's kinda hard to read. So I attached a CrashLog.txt in which you'll only find the crash related lines.
Hopefully you can help me !
Ok, I managed to have my app crashed with the window saying "Oops! The game crashed.". If I move away the error window without pressing the O$$anonymous$$ button. I can keep playing my game without trouble... (I have been able to reproduce this behaviour several times).
So while we all think about this issue, as a workaround, I was wondering if it would be possible to prevent the crash window from popping. I tried launching my app with the -silent-crashes argument. Well the crash window doesn't pop but the app closes... I'm not proud to investigate this option but would it be possible to prevent the crash window from popping without killing my app ?
Your answer
Follow this Question
Related Questions
game crashes on android lollipop 1 Answer
Play video using native code in Unity3d via NDK 0 Answers
Game Crash When Changing Scene 1 Answer
App Store Rejection - Crashes 2 Answers