I am having trouble with the build crashing and identifying the cause. When the crash occurs the game has been running for a while and a number of scenes have been loaded. Could be to do with a few null refs in the code but they are relatively benign shouldn’t? be able to cause the entire player to crash.
Any insight as to what could be the cause would be greatly appreciated.
Crash logs attached.
It could be bad written loops (so make sure to yield and break them). They could be constantly running in the background finally forcing your game to a halt.
"I also don’t think the null refs would crash your game "
they can do… shouldn’t be able to but I have solved player crashes by fixing null refs or missing references before which is why that was my initial line of questioning. The game isn’t super massive and the load system is pretty efficient so I really don’t think it is a memory issue but I can’t read crash logs either so I’m at a loss
Crash happens randomly after 2 - 5 mins but not every play through… in fact it is only about 1 in 10 play through this has happened which is why it is hard to trap. Only happens in builds, get no feedback from the error, isn’t consistent… bleh
I’m hoping that fixing the null refs will sort this one out.
I hope you figure it out. Earlier my player kept crashing due some recently added game objects. (It’d work once and then crash the second time). I’m still not certain why it was crashing because I received no error, but I deleted the game objects and re-inserted them. Now it seems to be working fine. I think Unity was glitching when I added the objects because it wouldn’t apply changed properties to the prefab either. Retrace your steps if anything Good luck.