IL2CPP build crashes for all projects

This used to be fine until a couple weeks ago, but now whenever I build my projects (even small ones) with IL2CPP backend, it fails with random errors each time. Either Access Violation, or Internal Compiler Error, or even sometimes it crashes the whole computer and I have to do a hardware restart. This only applies to IL2CPP and not Mono backend.

What I’ve tried:

  • Reinstalling Unity
  • Repairing Visual Studio 2022
  • Switching between projects, and even platforms, including Windows, WebGL, and Android

Notice that this only suddenly started happening on my PC and my colleague can still build our games without any issues

This together with a complete system crash and that it “suddenly started” on just one machine makes me lean towards a system failure. I would recommend checking for and rolling back system-wide changes if possible. Also checking for driver updates.

Lastly a complete system analysis, eg memtest86 over night, running Prime95+Furmark together for hours.

1 Like

I did a full fresh Windows installation. Installed Visual Studio and everything. Tried downgrading .NET 8 to .NET 6.0, cloned the project all over again and still no luck.

It’s just impossible to build using IL2CPP anymore!
Most of the time I’m getting the following error:

Building Library\Bee\artifacts\WebGL\GameAssembly\release_WebGL_wasm\qe4iuwdfose0.o failed with output:
PLEASE submit a bug report to Issues · llvm/llvm-project · GitHub and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: “C:/Program Files/Unity/Hub/Editor/2022.3.28f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\clang++.exe” -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=8 -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL “–sysroot=C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot” -Xclang -iwithsysroot/include\compat -D__webgl__ -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-threadsafe-statics -std=c++11 -Wno-#warnings -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -O3 -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DHAVE_BDWGC_GC -DNDEBUG -I. -ID:/Projects/XXX/Library/Bee/artifacts/WebGL/il2cppOutput/cpp “-IC:/Program Files/Unity/Hub/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp/pch” “-IC:/Program Files/Unity/Hub/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp” “-IC:/Program Files/Unity/Hub/Editor/2022.3.28f1/Editor/Data/il2cpp/external/baselib/Include” “-IC:/Program Files/Unity/Hub/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include” “-IC:/Program Files/Unity/Hub/Editor/2022.3.28f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include” -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ D:/Projects/XXX/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/UnityEngine.UIElementsModule__8.cpp -o Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/qe4iuwdfose0.o

  1. parser at end of file
  2. Code generation
  3. Running pass ‘Function Pass Manager’ on module ‘D:/Projects/XXX/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/UnityEngine.UIElementsModule__8.cpp’.
  4. Running pass ‘Slot index numbering’ on function ‘@Length_Equals_mFFEB4478ADE2C602ED8006F4043022862D677F82_AdjustorThunk’
    #0 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x60c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x5e6194
    #1 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x844c58 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x844ea3
    #2 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x8450e7 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x844960
    #3 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x108a338 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x108825c
    #4 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1089e01 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2f9382e
    #5 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2108a64 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1623857
    #6 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2f92628 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1623332
    #7 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x15edf45 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x168a288
    #8 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x73533 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x6e467
    #9 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x15064f7 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0xdc4e1d
    #10 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1506ad0 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1481fbf
    #11 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x148230d C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x14691be
    #12 0x00007ff7cf53c044 C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x708bb C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2d53484
    #13 0x00007ff7cf53c044 (C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x60c044)
    #14 0x00007ff7cf516194 (C:\Program Files\Unity\Hub\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5e6194)
    0x00007FF7CF53C044 (0x0000020301860110 0x0000009500000330 0x0000020301860280 0x0000020301860208)
    0x00007FF7CF516194 (0x00007FF7D2322788 0x0000020301860110 0x0000000000000000 0x000000958178B910)
    0x00007FF7CF774C58 (0x000002037F272F60 0x0000020301617430 0x0000000000000001 0x000002037F272F00)
    0x00007FF7CF774EA3 (0x0000000000000001 0x0000000000000000 0x000000958178BA69 0x000002037DDD6F10)
    0x00007FF7CF7750E7 (0x000000958178BF00 0x0000000000000001 0x000000958178BF00 0x0000009500000009)
    0x00007FF7CF774960 (0x000000958178BF50 0x000000958178BB89 0x0000000000000005 0x000000958178C988)
    0x00007FF7CFFBA338 (0x0000000000000000 0x000000958178BF50 0x000000958178BF50 0x00000203025D37C8)
    0x00007FF7CFFB825C (0x00000000000003FF 0x00007FFF9052AB11 0x0000000000000000 0x000002037DCF0000)
    0x00007FF7CFFB9E01 (0x000002037DDC15A0 0x000002037DDD6E48 0x000002037DDD6E48 0x0000000000000000)
    0x00007FF7D1EC382E (0x0000000000000000 0x000002037DDC15A0 0x000002037DD71120 0x0000000000000000)
    0x00007FF7D1038A64 (0x000002037DD6DA00 0x0000000000000000 0x000002037DD6DAB0 0x0000000000000000)
    0x00007FF7D0553857 (0x000002037DD72EF0 0x0000000000000000 0xFFFFFFFFFFFFFFFF 0x000002037DCF0150)
    0x00007FF7D1EC2628 (0x000000958178D6A0 0x00007FF7D05284B4 0x00005F3981CF6609 0x00007FF7D1C8314F)
    0x00007FF7D0553332 (0x0000000000000000 0x000000958178D618 0x0000000400000000 0x000002037DD72EF0)
    0x00007FF7D051DF45 (0x000002037DD33480 0x0000000000000038 0x0000000000000000 0x000002037DD6DAB0)
    0x00007FF7D05BA288 (0x0000000000000000 0x000000958178D850 0x000002037DCFC680 0x0000000000000000)
    0x00007FF7CEFA3533 (0x0000000000000000 0x000000958178DFC9 0x000000958178E0D0 0x0000000000000000)
    0x00007FF7CEF9E467 (0x0000000000000120 0x000000958178E0E8 0x000000958178E0D0 0x0000000000000002)
    0x00007FF7D04364F7 (0x000002037DCFD9D0 0x000000958178E0D0 0x0000020300000003 0x000002037DD6E190)
    0x00007FF7CFCF4E1D (0x000000958178FC70 0x0000000000000000 0x0000000000000001 0x00007FFF8DE9F49C)
    0x00007FF7D0436AD0 (0x000002037DD11600 0x000000958178E629 0x000002037DD6DFA0 0x0000000000000000)
    0x00007FF7D03B1FBF (0x000002037DD351D0 0x000002037DD351D0 0x000002030000003E 0x000002037DD6CF48)
    0x00007FF7D03B230D (0x000000958178E7A9 0x0000000000000000 0x000002037DD6CF50 0x000002037DD6CF50)
    0x00007FF7D03991BE (0x0000000000000000 0x0000000000000001 0x0000000000000001 0x0000000000000000)
    0x00007FF7CEFA08BB (0x0000000000000000 0x00007FF7D1C834FD 0x0000000000000000 0x0000000000000000)
    0x00007FF7D1C83484 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
    0x00007FFF8EBA257D (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x1D bytes(s)
    0x00007FFF9054AA48 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x28 bytes(s)

A clean install and still errors seem random. If these errors also occur in a new, empty project created under the user’s home directory to ensure permissions are in order I would focus on checking your hardware with the appropriate system tools.

For a start you should run Prime95+Furmark simultaneously for hours to see if that’s stable, no crashes, no errors logged in Prime.

Thank you for your response.
I ran them simultaneously from 6 pm to 9 am and the room was really hot but the hardware was running without any issues.
I also just tried creating and building a new empty URP project in the home folder and could build it without any issues!
Then I tried building the old project but it failed again then copied it to home folder, still failed. It’s so weird that both my colleagues can build it with weaker PCs and laptops. I also have the latest Windows updates and everything.

These are the errors I’m getting:

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Burst.Backend.StandardCompilerBackend.WriteModuleObjectToMemory(TargetMachine targetMachine, Module module, IntPtr delegateState, IntPtr printDataDelegate, IntPtr writeDataDelegate)
at Burst.Backend.ChainCompilerBackend.WriteModuleObjectToMemory(TargetMachine targetMachine, Module module, IntPtr delegateState, IntPtr printDataDelegate, IntPtr writeDataDelegate)
at Burst.Backend.CompilerBackend.WriteModuleObject(TargetMachine targetMachine, Module module, Stream stream)
at Burst.Compiler.IL.Aot.AotModule.WriteModuleToDisk(String intermediateOutputFolder)
at Burst.Compiler.IL.Server.LibraryCompiler.HashAndCompileMethodGroup(CompilationJob request, Int32 methodGroupIndex, SharedLibraryCompilationState sharedState, AotCompilerOptions defaultOptions, NativeCompiler& nativeCompiler, AotModuleGroup& aotModuleGroup)
at Burst.Compiler.IL.Server.LibraryCompiler.CompileMethodGroupImpl(CompilationJob request, Int32 methodGroupIndex, SharedLibraryCompilationState sharedState)
at Burst.Compiler.IL.Server.LibraryCompiler.CompileMethodGroup(CompilationJob request, Int32 methodGroupIndex, SharedLibraryCompilationState sharedState)
at Burst.Compiler.IL.Server.CompilerServer.CompileMethodGroup(CompileMethodGroupJob request, CompilationMessageStreamer streamer, ProgressMessageHelper progressHelper)
at Burst.Compiler.IL.Server.CompilerServer.<>c__DisplayClass19_1.b__0(CacheManager cacheManager)
at Burst.Compiler.IL.Server.CompilerServer.<>c__DisplayClass25_0.<b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at Burst.Compiler.IL.Server.CompilerServer.<>c__DisplayClass25_0.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at Burst.Compiler.IL.Server.CompilerThread.CompilerThreadLoop()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

===================================

Building Library\Bee\artifacts\Android\AsyncPluginsFromLinker failed with output:
UnityEditor.Build.BuildFailedException: Burst compiler (1.8.13) failed running

stdout:
Starting 1 library requests
stderr:

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Burst.Backend.StandardCompilerBackend.WriteModuleObjectToMemory(TargetMachine targetMachine, Module module, IntPtr delegateState, IntPtr printDataDelegate, IntPtr writeDataDelegate)
at Burst.Backend.ChainCompilerBackend.WriteModuleObjectToMemory(TargetMachine targetMachine, Module module, IntPtr delegateState, IntPtr printDataDelegate, IntPtr writeDataDelegate)
at Burst.Backend.CompilerBackend.WriteModuleObject(TargetMachine targetMachine, Module module, Stream stream)
at Burst.Compiler.IL.Aot.AotModule.WriteModuleToDisk(String intermediateOutputFolder)
at Burst.Compiler.IL.Server.LibraryCompiler.HashAndCompileMethodGroup(CompilationJob request, Int32 methodGroupIndex, SharedLibraryCompilationState sharedState, AotCompilerOptions defaultOptions, NativeCompiler& nativeCompiler, AotModuleGroup& aotModuleGroup)
at Burst.Compiler.IL.Server.LibraryCompiler.CompileMethodGroupImpl(CompilationJob request, Int32 methodGroupIndex, SharedLibraryCompilationState sharedState)
at Burst.Compiler.IL.Server.LibraryCompiler.CompileMethodGroup(CompilationJob request, Int32 methodGroupIndex, SharedLibraryCompilationState sharedState)
at Burst.Compiler.IL.Server.CompilerServer.CompileMethodGroup(CompileMethodGroupJob request, CompilationMessageStreamer streamer, ProgressMessageHelper progressHelper)
at Burst.Compiler.IL.Server.CompilerServer.<>c__DisplayClass19_1.b__0(CacheManager cacheManager)
at Burst.Compiler.IL.Server.CompilerServer.<>c__DisplayClass25_0.<b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at Burst.Compiler.IL.Server.CompilerServer.<>c__DisplayClass25_0.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at Burst.Compiler.IL.Server.CompilerThread.CompilerThreadLoop()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Boolean unreliableExitCode) [0x00267] in .\Library\PackageCache\com.unity.burst@1.8.13\Editor\BurstAotCompiler.cs:1943
at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0007b] in .\Library\PackageCache\com.unity.burst@1.8.13\Editor\BurstAotCompiler.cs:1812
at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x00001] in .\Library\PackageCache\com.unity.burst@1.8.13\Editor\BurstAotCompiler.cs:1777
at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (Unity.Burst.Editor.BurstAotCompiler+BurstAOTSettings settings, UnityEditor.Compilation.Assembly[ ] playerAssemblies) [0x00b20] in .\Library\PackageCache\com.unity.burst@1.8.13\Editor\BurstAotCompiler.cs:886
at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.DoGenerate (UnityEditor.Compilation.Assembly[ ] assemblies) [0x0001b] in .\Library\PackageCache\com.unity.burst@1.8.13\Editor\BurstAotCompiler.cs:332
at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.GenerateNativePluginsForAssemblies (UnityEditor.Build.IGenerateNativePluginsForAssemblies+GenerateArgs args) [0x0008a] in .\Library\PackageCache\com.unity.burst@1.8.13\Editor\BurstAotCompiler.cs:185
at UnityEditor.Modules.BeeBuildPostprocessor.GenerateNativePluginsForAssemblies (PlayerBuildProgramLibrary.Data.GenerateNativePluginsForAssembliesArgs args) [0x00050] in :0
at Bee.BeeDriver.BuildRequest+<>c__DisplayClass63_0`1[T].b__0 (System.Object o) [0x00000] in <3f5bd82a14d442d9848a73363c91f22e>:0
at Bee.BeeDriver.BeeDriver_RunBackend+<>c__DisplayClass1_0.b__0 () [0x00021] in <3f5bd82a14d442d9848a73363c91f22e>:0
at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in :0
at System.Threading.Tasks.Task.Execute () [0x00000] in :0
— End of stack trace from previous location where exception was thrown —

at Bee.BeeDriver.BeeDriver_RunBackend.ProcessRPCRequest (Bee.BinLog.RPCActionMessage msg, Bee.BeeDriver.BuildRequest+RPCCallback rpcCallback, IPCConnection ipcConnection, System.Threading.Tasks.Task writePipeConnectionTask, Bee.BeeDriver.InternalState state) [0x00102] in <3f5bd82a14d442d9848a73363c91f22e>:0 hasis_CustomPlayFeedback_m9217FFDF84403145CE1291D0D1354E2AB6619CF9 (void);
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Seems like the error is related to Mono.Cecil, or CLR or JIT. The Mono.Cecil name keeps popping up. I’m sometimes getting random errors that sometimes do no harm and sometimes prevent me from compiling the game when opening the project, like this:

During build I’m getting the usual “PLEASE submit a bug report” error.

Also I ran memtest86+ for 5 passes without any errors

The only thing about my pc is that the ram sticks are not placed in the optimized slots. Could this be the source of the problem?