Crash in player

Hey there,

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.

Thanks,
Johnty

3158394–240289–2017-07-18_171214.zip (69.2 KB)

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.

What do you mean? A memory useage issue? Not according to the profiler

I’m incapable of reading crash logs, sorry about that.

I also don’t think the null refs would crash your game.

Okay. When you say the crash happens after the game’s been running for a while, how long are we talking? Ten minutes? An hour? A few hours?

And does it happen at a specific point in the game? Or just randomly every time?

"I also don’t think the null refs would crash your game "

  • they can do… shouldn’t be able to :stuck_out_tongue: 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 :wink: Good luck.