Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug Unity stuck at Reloading Domain

Discussion in '2023.1 Beta' started by Crocoder, Jan 16, 2023.

  1. Crocoder

    Crocoder

    Joined:
    Mar 19, 2019
    Posts:
    12
    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
     
  2. Crocoder

    Crocoder

    Joined:
    Mar 19, 2019
    Posts:
    12
    Tried:
    - reverting back to old versions of unity 2021, 2020
    - editing and disabling domain reload
    - deleting lib/obj/... folders
    - deleting unity cache
    - removing extra unused packages from project
    - trying with VS Code
    - creating new scene
    - cloning project fresh from git
    - disabling auto refresh (then occasionally it gets stuck when I do ctrl+r)
    - disabling/enabling breakpoints while in run mode
    - editing/saving files while in play mode
     
  3. Crocoder

    Crocoder

    Joined:
    Mar 19, 2019
    Posts:
    12
    upload_2023-1-16_23-30-17.png
     

    Attached Files:

  4. Crocoder

    Crocoder

    Joined:
    Mar 19, 2019
    Posts:
    12
    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.

    upload_2023-1-17_22-4-50.png

    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!
     
  5. ilezhnin

    ilezhnin

    Joined:
    Jul 17, 2013
    Posts:
    17
    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.
     
    GameLoomer likes this.