[SOLVED] Unity Editor freezes randomly during play

Hi all!

I have a problem where the Unity Editor freezes during play and it does not seem to be due to my code. The whole program freezes and needs to be shut down with Task Manager. I’m not able to click or interact with anything in the program. This happens at, to me random point and not at any specific events in my game from what I can see. It does however not seem to happen for another project that I only worked on shortly only in one version of Unity.

It started happening somewhere after I upgraded to 5.5.0f3 (but I also somwhere there upgraded nVidia drivers and software that messed up other stuff). I have now tried to uninstall Unity and install again (version 5.5.1f1), re-importing and even removing the Library folder and then open the project again. The Unity Editor still freezes at different points during play. I do not know what to do… I feel like I’m not getting anywhere when I need to restart all the time.

I have tried finding other threads with similar problem, but no solution for me.
I have no sound in my project yet.
I have no .bytes files in my project (so no Asset Bundles?)
I can not see what happens in the Profiles window since the whole editor freezes.
The project settings are set to PC.
I can find no adb.exe processes that caused problems for someone else.

I’m running on Win10 64-bit.

Is there any other info I can provide to help?

Since I think the editor UI runs on the same thread as the game, they both freeze if there’s an infinite loop in the game. Have you recently added a loop in a script that can be run at different points during play?

If you can’t find the culprit from your code, I suggest you create a bug report to Unity.

Thank you for your response mikael_juhala, I did have a loop that could get stuck at different points in the game under certain conditions that were caused somewhere else. Things seems to be much better now!