Occurs randomly, whenever code gets changed, once every 2-3 recompiles
Unity version: 2023.1.0a25.2386.4619
Visual studio 2019 community
Editor.log:
processors: zzzUnity.Burst.CodeGen.BurstILPostProcessor
running zzzUnity.Burst.CodeGen.BurstILPostProcessor
[886/889 0s] CopyFiles Library/ScriptAssemblies/Assembly-CSharp.pdb
[887/889 0s] CopyFiles Library/ScriptAssemblies/Assembly-CSharp.dll
*** Tundra build success (1.06 seconds), 6 items updated, 889 evaluated
Reloading assemblies after forced synchronous recompile.
Begin MonoManager ReloadAssembly
Total cache size 55833648
Total cache size after purge 55833648
Tried all solutions found searching online, didn’t solve the issue
SOLUTION
After several days of trying to isolate the problem, the culprit was found.
MYSQL.DATA.DLL - CONNECTION WASN’T PROPERLY CLOSED - a faulty return statement skipped closing the connection. This caused unity to hang on next code recompile.
I really hope this helps someone one day and would really appreciate if Unity team would be able to somehow log which file caused the hanging so we can isolate the mistakes faster!
3 Likes
I had the same problem, the project was quite simple and there were no databases or calls to third-party libraries. I tried many different ways from restarting the computer and updating the engine version to clearing the cache and project files. But in the end, running the hub with administrator rights helped.
1 Like