Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Endless application.tick and freeze

Discussion in 'Editor & General Support' started by heh223, Feb 23, 2022.

  1. heh223

    heh223

    Joined:
    Jan 2, 2020
    Posts:
    25
    At my one project Unity suddenly started to freeze in play mode. It stuck at application.tick. I have no idea what is going on. A day ago everything was alright but now when I go into play mode it simply freezes and I have to reset my PC every time. But weirdly if I go into play mode from a different scene and move to this problematic scene, it is ok and there is no freeze at all. I searched google and didn't find anything helpful. Maybe there is a "while" loop or something that is causing the problem but I don't know. I actually did some tests with a script where it checks the quality of the settings in Unity using a "while" loop but I deleted that script. Is there any way in Unity that I can run and find what is causing this endless application.tick and make my PC freeze every time?

    Tom
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,723
    Most likely, as you said, a problematic loop or other non-terminating section of code in your scripts. Hard to say more than that without seeing your code. A good place to check would be any recently added or modified code.
     
    heh223 likes this.
  3. heh223

    heh223

    Joined:
    Jan 2, 2020
    Posts:
    25
    Ooh, I found an error. It had nothing to do with the "while" loop. :D I was changing some code and didn't see one additional line which had to be changed also. I feel so relieved now. :D Anyway, big thanks for the help. It forced me to really check the code to which I didn't pay attention before.
    This Thread can be deleted/locked now.^^
     
    PraetorBlue likes this.