I get this error repeatedly when trying to build a project using Burst.
Unhandled Exception: System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at Burst.Backend.StandardCompilerBackend.OptimizeModule(Module module, TargetMachine targetMachine, IntPtr diagnosticDelegate, UInt32 optLevel)
at Burst.Backend.ChainCompilerBackend.OptimizeModule(Module module, TargetMachine targetMachine, IntPtr diagnosticDelegate, UInt32 optLevel)
at Burst.Backend.CompilerBackend.OptimizeModule(TargetMachine target, Module module, UInt32 optimizationLevel, Boolean getDiagnostics, OptimizeModuleDiagnosticCallback logDiagnostic)
at Burst.Compiler.IL.NativeCompiler.Compile()
at Burst.Bcl.BclApp.CompilerThread.Compile(CompilerRequest request)
at Burst.Bcl.BclApp.CompilerThread.Run()
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()
Followed by:
BuildFailedException: Burst compiler (1.3.7) failed running
stdout:
stderr:
Unhandled Exception: System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at Burst.Backend.StandardCompilerBackend.OptimizeModule(Module module, TargetMachine targetMachine, IntPtr diagnosticDelegate, UInt32 optLevel)
at Burst.Backend.ChainCompilerBackend.OptimizeModule(Module module, TargetMachine targetMachine, IntPtr diagnosticDelegate, UInt32 optLevel)
at Burst.Backend.CompilerBackend.OptimizeModule(TargetMachine target, Module module, UInt32 optimizationLevel, Boolean getDiagnostics, OptimizeModuleDiagnosticCallback logDiagnostic)
at Burst.Compiler.IL.NativeCompiler.Compile()
at Burst.Bcl.BclApp.CompilerThread.Compile(CompilerRequest request)
at Burst.Bcl.BclApp.CompilerThread.Run()
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()
Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:856)
Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:794)
Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:768)
Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:441)
Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:163)
UnityEditor.Build.BuildPipelineInterfaces.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at :0)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
I can run it in the Editor just fine. I get that error when building, when Burst compilation is enabled and when it’s disabled. I’m on 2016.1.16f1, jobs version 0.7.0-preview.17.
Edit: and, randomly, the build will be successful after failing multiple times (just happened).
Any clues?
tertle
January 14, 2021, 1:45am
2
What platform are you building To and From
Windows and Windows. Just 32 bit.
Could you please file a repro for us for this? We can then take a look.
Well now every build is succeeding. I’m not sure if that’s good or bad…
If it pops up again, where and how should I do that? Never reported a bug before.