Game goes to blue screen after short freeze

Hello,

I am having a reoccuring problem with one of my game projects. Mind you, I have another game project where I have never seen this happen. Not in the Editor, but in an actual game build, I will be playing the game then all of a sudden the game will freeze for about a second or two, and then the screen goes to a bright blue blank screen.

It is NOT the blue screen of death for windows, it’s a brighter blue screen as if it’s a video driver issue or something. But it only occurs in this particular game for some reason. Below I have put a screenshot of what it looks like – notice that there is one GUI button in the bottom right of the screen that is still showing. And I can actually click on that button when the blue screen is showing.

Any ideas of what could be the problem?

I’ve only tested this once, but it may be caused by a value being NaN (not a number). I was assigning a vector3 rigidbody angular velocity to a variable and the Vector3 was {NaN, NaN, NaN}.

I don’t know why this would have such a dramatic effect as causing the game to stop and the screen to go blue like this…perhaps someone can confirm?