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. Dismiss Notice

Bug [Solved] 2021.3.29f1 Hang on play or on exit

Discussion in 'Editor & General Support' started by Klamore74, Aug 30, 2023.

  1. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    103
    I'm updating a working project from 2021.3.16f1 to 2021.3.29f1, but when I play start, the editor is stuck with an infinite progress bar.

    I tried to delete all scripts from the project, all plugins or code, and start with an empty scene. Every time, some result.

    The only option is to kill Unity task with task manager

    Any idea how to understand the problem?
     

    Attached Files:

    • hang.PNG
      hang.PNG
      File size:
      119.6 KB
      Views:
      14
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,054
    What happens if you create a new empty project?
    You could try 2021.3.30 which just came out.
    Or an earlier patch version, maybe 20, 25.

    If it's not happening with a new project it's got to be something in your project causing this. Usually it's an editor script or an AlwaysExecute/ExecuteInEditMode annotated script but one out of ten times, it's a ... ;)

    (sorry for the movie reference .. +100 points if you get it :D )
     
  3. Runeheads

    Runeheads

    Joined:
    May 11, 2017
    Posts:
    10
    Thanks, but as I said I deleted ALL scripts from the project. My suspect is about some Unity package that messed up during the configuration.

    The question is: how to fix it? I will try for sure the .30
     
  4. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    103
    I tried also to delete ALL assets files from the project. Some result...
     

    Attached Files:

  5. evyatron

    evyatron

    Joined:
    Jul 20, 2014
    Posts:
    132
    Some things to check that might help:
    1. Delete the Library folder
    2. Check both the Player log and the Editor log - see if the last line(s) there can give you any hints
    3. Check if you have any 3rd party packages installed, and if so try to disable them one by one
     
  6. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    103
    I tried to delete the library, temp and obj folder. I remove all the content of Assets folder and any 3rd package.

    The result is that I can go on play but when I showdown unity the editor hang again. I'm using now 2021.3.30

    The last lines of editor log was:
    [LAYOUT] About to save layout D:\unity_mondomio\mct_unity\UserSettings\Layouts\default-2021.dwlt
    [Licensing::IpcConnector] License Notification channel disconnected successfully.
    [Licensing::IpcConnector] License Client channel disconnected successfully.
    AcceleratorClientConnectionCallback - disconnected - :0
    Cleanup mono
    debugger-agent: Unable to listen on 5580
    [usbmuxd] Stop listen thread
     

    Attached Files:

  7. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    103
    I tried to use a empty project and I had the same problem.

    Luckly I accidentally moved the editor from the secondary monitor to the primary monitor and, this time, a Windows Firewall pop-up appear asking me to allow a Unity sub process to proceed.

    So, basically there is some bug or my Windows problem that the pop-up sourced by an app on a secondary monitor will not show it up.

    I lost two works days for this stupid problem. Very annoing :(