Random burst compilation bug? Error 126 unable to load unmanaged library

Hey guys,

I’ve been working on my project, when suddenly this error started popping up out of nowhere, and it stops burst from compiling.

My project runs fine in editor mode. I’m not sure if this error will affect gameplay mode, but I’d rather just fix it.

I have no idea what might have caused this. I haven’t modified any core files, only been working on my scripts. So I don’t know what I can undo to solve this.

Unity version: 2022.3.16f1
Burst version: 1.8.11
Entities: 1.0.16

I’ve been using these versions since the start of the project, and no errors ever happened.

I did install Unity Physics later into the project, but this error started happening like 2 or 3 days ago.

If anyone has any insight as to why this happens and how to solve it, I’d be really grateful:

Unexpected error in Burst compilation: System.AggregateException: One or more errors occurred. (Unable to load the unmanaged library `C:\Users\Moonlab PC\Project WorldSim\Library\BurstCache\JIT\95d0d98a2040083cd6fc06f0916bde2c.dll`, error code 126) ---> System.DllNotFoundException: Unable to load the unmanaged library `C:\Users\Moonlab PC\Project WorldSim\Library\BurstCache\JIT\95d0d98a2040083cd6fc06f0916bde2c.dll`, error code 126
  at Burst.Backend.UnmanagedLibrary+WindowsUnmanagedLibrary.LoadLibrary (System.String name, System.Boolean addPlatformPrefix, System.Boolean addPlatformFileExtension) [0x00037] in <e9f151f593194ad3a28f21a2eb01a7fa>:0
  at Burst.Backend.UnmanagedLibrary.LoadLibrary (System.String name, System.Boolean addPlatformPrefix, System.Boolean addPlatformFileExtension) [0x00020] in <e9f151f593194ad3a28f21a2eb01a7fa>:0
  at Burst.Compiler.IL.Client.CompilerClient.OnLibraryCompiled (Burst.Compiler.IL.Server.CompilationMessage+Types+LibraryCompiledMessage e) [0x0020c] in <e7ce1913c76b45e18786ed3f1a11fde7>:0
  at Burst.Compiler.IL.Client.CompilerClient+<>c__DisplayClass58_0.<ScheduleCompilation>b__0 () [0x000f3] in <e7ce1913c76b45e18786ed3f1a11fde7>:0
  at Burst.Compiler.IL.Client.CompilerClient+<>c__DisplayClass58_0.<ScheduleCompilation>b__0 () [0x00224] in <e7ce1913c76b45e18786ed3f1a11fde7>:0
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.DllNotFoundException: Unable to load the unmanaged library `C:\Users\Moonlab PC\Project WorldSim\Library\BurstCache\JIT\95d0d98a2040083cd6fc06f0916bde2c.dll`, error code 126
  at Burst.Backend.UnmanagedLibrary+WindowsUnmanagedLibrary.LoadLibrary (System.String name, System.Boolean addPlatformPrefix, System.Boolean addPlatformFileExtension) [0x00037] in <e9f151f593194ad3a28f21a2eb01a7fa>:0
  at Burst.Backend.UnmanagedLibrary.LoadLibrary (System.String name, System.Boolean addPlatformPrefix, System.Boolean addPlatformFileExtension) [0x00020] in <e9f151f593194ad3a28f21a2eb01a7fa>:0
  at Burst.Compiler.IL.Client.CompilerClient.OnLibraryCompiled (Burst.Compiler.IL.Server.CompilationMessage+Types+LibraryCompiledMessage e) [0x0020c] in <e7ce1913c76b45e18786ed3f1a11fde7>:0
  at Burst.Compiler.IL.Client.CompilerClient+<>c__DisplayClass58_0.<ScheduleCompilation>b__0 () [0x000f3] in <e7ce1913c76b45e18786ed3f1a11fde7>:0
  at Burst.Compiler.IL.Client.CompilerClient+<>c__DisplayClass58_0.<ScheduleCompilation>b__0 () [0x00224] in <e7ce1913c76b45e18786ed3f1a11fde7>:0 <---

Idk why this error happened, but it went away when I updated burst from 1.8.11 to 1.8.13, in case anyone looks this up in the future.