Unity freezes on 'Run'

Hi all,

I’m experienced a very wierd error that started happening a few days ago when i was making changes to the project. I managed to get the code stuck in a loop which caused it to go out of memory and obviously system became unstable.

Every time after that that I have tried to RUN the project (play button in editor), it will freeze unity and be unresponsive until I kill it through task manager. This issue still remains. Here’s what I have tried:

  • Force recompiled the code (and removed offending code ofc)
  • Restarted computer (a few times)
  • Updated unity
  • Tried the same project from cloud (that works fine)
  • Deleted the unity Temp folder in the project

The code compiled and ran smoothly before i made the changes and after i’ve undone them unity still fails to run. Putting in intentional syntaxx errors into the code will cause it to fail to run so it obviously is compiling correctly.

Also i let it try to run for extended periods of time and it ‘does’ run after about 10 hours, and if i stop and try to run again immediately it still freezes for another 10.

I’m going to have to merge changes into my cloud backup at this rate, does anyone have any better suggestions on what I can do?

Thanks,
Primoz

I’m also getting the same issue. The editor seems to randomly freeze. I won’t even make changes to the code and it has the risk of freezing. Subsequently it also sometimes freezes during compile and when I forcefully close the editor it just doesn’t start up unless I open another Unity project and try again. Even then it doesn’t always work.

Do you have any video assets or photo assets?

i’ve found that i had an endless loop in an Start procedure, fixing my code removed the issue