- Home /
Random crash for client with UNET
Hello,
I'm working on a RTS game project with multiplayer, pathfinding and AI and currently having an issue with a random crash that occur only client side, i can't reproduce the crash and don't know how to fix this, is there any solution to trace the code to find the last line executed before the game crashed ?
Here is the crash trace log : output_log.txt
Answer by MrYch · Nov 27, 2015 at 07:51 PM
I fixed my problem by changing my destroy method.
When you destroy an object on the server, the destruction is synchronised on all clients, it's then possible to call some methods on the destroyed object which can cause a crash (pointer null exception).
Instead of destroying the object instantly, i do a RPC that disable the gameobject, and delete it after x seconds, in this way, the object do not update itselft and there is no more exceptions.
Answer by marcelop · Nov 27, 2015 at 04:54 PM
I am having this exact same problem. My game also uses UNET. But the logs don't say anything useful, did you have any hints that it's UNET that is causing the crash?
Your answer
Follow this Question
Related Questions
Unity 3d Network dies on Android 0 Answers
Unity crashing efter losing connection to other Unity 0 Answers
Editor crash when checking isServer in property 0 Answers
Random crash in ntdll.dll 0 Answers
ios Crash SetStatusCode() 0 Answers