[Solved] 2021.3.29f1 Hang on play or on exit

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?

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 … :wink:

(sorry for the movie reference … +100 points if you get it :smile: )

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

I tried also to delete ALL assets files from the project. Some result…

Some things to check that might help:

  • Delete the Library folder
  • Check both the Player log and the Editor log - see if the last line(s) there can give you any hints
  • Check if you have any 3rd party packages installed, and if so try to disable them one by one

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:

[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```

![9263151--1296237--hangonexit.PNG|875x719](upload://xkJIIYehX9PZkPiLYbe4o85UmNL.png)

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 :frowning: