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

Bug Unity Stuck at reloading Assemblies

Discussion in 'Scripting' started by JeanlucE, Dec 20, 2022.

  1. JeanlucE

    JeanlucE

    Joined:
    Dec 5, 2022
    Posts:
    2
    Every time I want to compile my scripts the Unity gets stuck at "Reloading Domain"

    OS: MacOS Ventura 13.0.1
    Unity Editor Version: 2022.2.0b16
    IDE: VS Code version 1.74.1, C# Extension version 1.25.0
    Mono Version: 6.12.0.182

    The console log shows this:

    Reloading assemblies after forced synchronous recompile.
    Begin MonoManager ReloadAssembly
    cant resolve internal call to "System.Runtime.InteropServices.Marshal::GetIUnknownForObjectInternal(object)" (tested without signature also)

    Your mono runtime and class libraries are out of sync.
    The out of sync library is: /Applications/Unity/Hub/Editor/2022.2.0b16/Unity.app/Contents/MonoBleedingEdge/lib/mono/unityjit-macos/mscorlib.dll

    When you update one from git you need to update, compile and install
    the other too.
    Do not report this as a bug unless you're sure you have updated correctly:
    you probably have a broken mono install.
    If you see other errors or faults after this message they are probably related
    and you need to fix your mono install first.
    cant resolve internal call to "System.Runtime.InteropServices.Marshal::GetHRForException_WinRT(System.Exception)" (tested without signature also)
    [40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
    Application is shutting down...

    How can i fix this?
     
    Last edited: Dec 21, 2022
  2. SF_FrankvHoof

    SF_FrankvHoof

    Joined:
    Apr 1, 2022
    Posts:
    780
    Have you tried deleting the Library-folder of your project and doing a full re-import?
     
  3. JeanlucE

    JeanlucE

    Joined:
    Dec 5, 2022
    Posts:
    2
    I just tried that and it didn't fix the issue.