Search Unity

Question the program is frozen and does not respond

Discussion in 'Editor & General Support' started by dumanmahatbaev, May 6, 2021.

  1. dumanmahatbaev

    dumanmahatbaev

    Joined:
    Mar 27, 2021
    Posts:
    1
    Hello. You can help with the problem, I start the project by pressing the play button and the program freezes.Nothing happens neither the mouse nor the keyboard does not work and through the task manager you can see that the program is frozen and does not respond . I thought unity was the problem, but other projects are opening up. Maybe there is a problem in the version?
     

    Attached Files:

    • err.PNG
      err.PNG
      File size:
      353.8 KB
      Views:
      288
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,735
    Check your scripts for any loops that do not exit.

    You can NEVER "stay inside" any function inside of Unity. Eg, you cannot loop in your function.

    You must always return immediately.
     
    Joe-Censored likes this.
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    @Kurt-Dekker is likely correct about your issue. The most likely cause of an Editor freeze in play mode is an infinite loop in your own code.