My game freezes in both the Unity Editor and the Unity Player (developer and normal builds) on both Windows and Mac. The freeze occurs sporadically, at many different points during gameplay with no obvious trigger. I have to force quit to exit the program once it freezes. The only information I get in the logs is:
Receiving unhandled NULL exception
Obtained 10 stack frames.
That appears at the very end of the log file with no information following.
I tried running Unity with the MonoDevelop debugger attached, but could get no information after the game freezes.
I am currently using Unity 2017.2.0f2, but this issue began a few weeks ago when I was using Unity 2017.1.2. I had to switch to a beta release to deal with MonoDevelop incompatibilities with OSX 10.13.
It is unclear to me if this is an error occurring in my code somewhere or something deeper than that, but I’m at a loss at to how to proceed in debugging the issue. Any suggestions would be much appreciated.