Search Unity

Bug Can't build on windows with Burst 1.8.3 unity 2022.2.6f1

Discussion in 'Burst' started by Skaltum, Feb 16, 2023.

  1. Skaltum

    Skaltum

    Joined:
    Nov 1, 2013
    Posts:
    28
    I'm having trouble creating a build when the burst package is in the project.

    The problematic portion seems to be related to
    System.Diagnostics.Tracing
    not being available.

    In the editor I can enter play mode.

    Without the burst package I can build (only the test project, not the actual project that requires it).

    [Licensing::Client] Successfully resolved entitlements
    Asset Pipeline Refresh (id=50789ce300fbe4d4e8101b77eebe40b8): Total: 0.007 seconds - Initiated by RefreshV2(AllowForceSynchronousImport)
    info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
    Request starting HTTP/2 POST http://ilpp/UnityILPP.PostProcessing/Ping application/grpc -
    info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
    Executing endpoint 'gRPC - /UnityILPP.PostProcessing/Ping'
    info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
    Executed endpoint 'gRPC - /UnityILPP.PostProcessing/Ping'
    info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
    Request finished HTTP/2 POST http://ilpp/UnityILPP.PostProcessing/Ping application/grpc - - 200 - application/grpc 0.0867ms
    Starting: C:\Program Files\Unity\2022.2.6f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --defer-dag-verification --dagfile="Library/Bee/1900b0aEDbgSkipCompile.dag" --continue-on-failure --profile="Library/Bee/backend1.traceevents" ScriptAssembliesAndTypeDB
    WorkingDir: I:/Experiments/Win3D 2022
    ExitCode: 0 Duration: 0s83ms
    *** Tundra build success (0.06 seconds), 0 items updated, 3 evaluated
    Asset Pipeline Refresh (id=85ed0ae85544ba74b8a3052b00881ac7): Total: 0.004 seconds - Initiated by RefreshV2(NoUpdateAssetOptions)
    [ScriptCompilation] Requested script compilation because: Recompiling scripts for player build.
    BuildPlayer: start building target 19
    info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
    Request starting HTTP/2 POST http://ilpp/UnityILPP.PostProcessing/Ping application/grpc -
    info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
    Executing endpoint 'gRPC - /UnityILPP.PostProcessing/Ping'
    info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
    Executed endpoint 'gRPC - /UnityILPP.PostProcessing/Ping'
    info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
    Request finished HTTP/2 POST http://ilpp/UnityILPP.PostProcessing/Ping application/grpc - - 200 - application/grpc 0.0880ms
    Starting: C:\Program Files\Unity\2022.2.6f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --defer-dag-verification --dagfile="Library/Bee/1900b0aP.dag" --continue-on-failure --profile="Library/Bee/backend1.traceevents" ScriptAssembliesAndTypeDB
    WorkingDir: I:/Experiments/Win3D 2022
    info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
    Request starting HTTP/2 POST http://ilpp/UnityILPP.PostProcessing/ConfigurePostProcessors application/grpc -
    info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
    Executing endpoint 'gRPC - /UnityILPP.PostProcessing/ConfigurePostProcessors'
    info: Unity.ILPP.Runner.PostProcessingAssemblyLoadContext[0]
    Current configuration matches the requested one, skipping
    info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
    Executed endpoint 'gRPC - /UnityILPP.PostProcessing/ConfigurePostProcessors'
    info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
    Request finished HTTP/2 POST http://ilpp/UnityILPP.PostProcessing/ConfigurePostProcessors application/grpc - - 200 - application/grpc 0.7052ms
    Total cache size 268341486
    Total cache size after purge 268341486
    ExitCode: 0 Duration: 0s809ms
    [292/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/UnityEngine.TestRunner.pdb
    [296/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/UnityEngine.TestRunner.dll
    [302/338 0s] ILPP-Configuration Library/ilpp-configuration.nevergeneratedoutput
    [314/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/GPUInstancer.dll
    [315/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/GPUInstancer.pdb
    [316/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.Timeline.pdb
    [317/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.Timeline.dll
    [318/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.TextMeshPro.dll
    [319/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.AI.Navigation.dll
    [320/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/UnityEngine.UI.dll
    [321/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.VisualScripting.Flow.pdb
    [322/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.Burst.dll
    [323/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.Burst.pdb
    [324/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Assembly-CSharp.dll
    [325/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.VisualScripting.State.dll
    [326/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.VisualScripting.Flow.dll
    [327/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/UnityEngine.UI.pdb
    [328/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.Mathematics.dll
    [329/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.VisualScripting.State.pdb
    [330/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.AI.Navigation.pdb
    [331/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.VisualScripting.Core.dll
    [332/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.Mathematics.pdb
    [333/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Assembly-CSharp.pdb
    [334/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.TextMeshPro.pdb
    [335/338 0s] CopyFiles Library/Bee/PlayerScriptAssemblies/Unity.VisualScripting.Core.pdb
    *** Tundra build success (0.79 seconds), 25 items updated, 338 evaluated
    Total cache size 268341486
    Total cache size after purge 268341486
    Not rebuilding Data files -- no changes
    [Licensing::Client] Successfully resolved entitlements
    Asset Pipeline Refresh (id=c7f612798837d674e86609efb915b5b9): Total: 0.046 seconds - Initiated by RefreshV2(NoUpdateAssetOptions)


    Mono dependencies included in the build
    Dependency assembly - System.Net.Http.dll
    Dependency assembly - System.Data.dll
    Dependency assembly - Unity.AI.Navigation.dll
    Dependency assembly - System.IO.Compression.FileSystem.dll
    Dependency assembly - mscorlib.dll
    Dependency assembly - System.ComponentModel.Composition.dll
    Dependency assembly - System.Runtime.dll
    Dependency assembly - System.Configuration.dll
    Dependency assembly - Unity.TextMeshPro.dll
    Dependency assembly - System.Transactions.dll
    Dependency assembly - System.ServiceModel.Internals.dll
    Dependency assembly - Unity.Mathematics.dll
    Dependency assembly - System.Runtime.Serialization.dll
    Dependency assembly - System.Xml.Linq.dll
    Dependency assembly - Assembly-CSharp.dll
    Dependency assembly - System.Security.dll
    Dependency assembly - DelaunayER.dll
    Dependency assembly - System.EnterpriseServices.dll
    Dependency assembly - System.Numerics.dll
    Dependency assembly - System.Core.dll
    Dependency assembly - Unity.VisualScripting.Antlr3.Runtime.dll
    Dependency assembly - Unity.Burst.dll
    Dependency assembly - Unity.VisualScripting.State.dll
    Dependency assembly - Unity.Burst.Unsafe.dll
    Dependency assembly - System.IO.Compression.dll
    Dependency assembly - System.dll
    Dependency assembly - System.Xml.dll
    Dependency assembly - UnityEngine.UI.dll
    Dependency assembly - GPUInstancer.dll
    Dependency assembly - netstandard.dll
    Dependency assembly - Unity.VisualScripting.Core.dll
    Dependency assembly - EasyRoads3Dv3.dll
    Dependency assembly - Unity.Timeline.dll
    Dependency assembly - Mono.Security.dll
    Dependency assembly - System.Drawing.dll
    Dependency assembly - Unity.VisualScripting.Flow.dll
    Dependency assembly - System.Data.DataSetExtensions.dll

    info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
    Request starting HTTP/2 POST http://ilpp/UnityILPP.PostProcessing/Ping application/grpc -
    info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
    Executing endpoint 'gRPC - /UnityILPP.PostProcessing/Ping'
    info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
    Executed endpoint 'gRPC - /UnityILPP.PostProcessing/Ping'
    info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
    Request finished HTTP/2 POST http://ilpp/UnityILPP.PostProcessing/Ping application/grpc - - 200 - application/grpc 0.1232ms
    Starting: C:\Program Files\Unity\2022.2.6f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --dagfile="Library/Bee/Player14426f38.dag" --profile="Library/Bee/backend1.traceevents" Player
    WorkingDir: I:/Experiments/Win3D 2022
    I:\Experiments\Win3D 2022\Library\PackageCache\com.unity.burst@1.8.3\.Runtime\bcl.exe exited after 817 ms.
    [146/149 0s] GenerateNativePluginsForAssemblies Library/Bee/artifacts/WinPlayerBuildProgram/AsyncPluginsFromLinker
    ##### CommandLine
    GenerateNativePluginsForAssemblies
    ##### ExitCode
    -1
    ##### Output
    UnityEditor.Build.BuildFailedException: Burst compiler (1.8.3) failed running



    stdout:

    Error: Failed to find entry-points:

    System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

    --- End of inner exception stack trace ---

    at System.Buffers.DefaultArrayPool`1.Rent(Int32 minimumLength)

    at Burst.Compiler.IL.Hashing.Storage.StringCollection.AddString(String value)

    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.ProcessAssemblyReference(AssemblyReferenceHandle assemblyReferenceHandle, StringCollection strings)

    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.ProcessAssemblyReferences(StringCollection strings)

    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.<>c__DisplayClass13_0.<HashImpl>b__3()

    at System.Threading.Tasks.Task.Execute()

    --- End of inner exception stack trace ---

    at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)

    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.HashImpl()

    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.HashAssembly(String filePath, TaskFactory taskFactory)

    at Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheLoader.CreateHashingResult(AssemblyNameReference assemblyNameReference, AssemblyLoader assemblyLoader, DebugLogWriter debugLogWriter)

    at Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore.GetAssemblyState(String assemblyName, AssemblyLoader assemblyLoader)

    at Burst.Compiler.IL.Server.EntryPointMethodFinder.LoadAllAssemblyReferences(AssemblyDefinition asmDef, Dictionary`2 visited, Dictionary`2 jobProducers, HashCacheAssemblyStore assemblyStore, AssemblyLoader assemblyLoader)

    at Burst.Compiler.IL.Server.EntryPointMethodFinder.FindEntryPoints(String[] rootAssemblyNames, HashCacheAssemblyStore assemblyStore, AssemblyLoader assemblyLoader, NativeCompilerOptions options, ProfileDelegate profileCallback, Boolean includeRootAssemblyReferences, Boolean splitTargets)

    at Burst.Compiler.IL.Server.FindMethodsJob.Execute(CompilerServerJobExecutionContext context)

    ---> (Inner Exception #0) System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

    File name: 'System.Diagnostics.Tracing, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

    File name: 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'



    Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll

    Running under executable I:\Experiments\Win3D 2022\Library\PackageCache\com.unity.burst@1.8.3\.Runtime\bcl.exe

    --- A detailed error log follows.



    === Pre-bind state information ===

    LOG: DisplayName = System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

    (Fully-specified)

    LOG: Appbase = file:///I:/Experiments/Win3D 2022/Library/PackageCache/com.unity.burst@1.8.3/.Runtime/

    LOG: Initial PrivatePath = NULL

    Calling assembly : System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51.

    ===

    LOG: This bind starts in default load context.

    LOG: Using application configuration file: I:\Experiments\Win3D 2022\Library\PackageCache\com.unity.burst@1.8.3\.Runtime\bcl.exe.Config

    LOG: Using host configuration file:

    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.

    LOG: Redirect found in application configuration file: 4.0.0.0 redirected to 4.2.0.0.

    LOG: Post-policy reference: System.Diagnostics.Tracing, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

    LOG: Attempting download of new URL file:///I:/Experiments/Win3D 2022/Library/PackageCache/com.unity.burst@1.8.3/.Runtime/System.Diagnostics.Tracing.DLL.

    LOG: Attempting download of new URL file:///I:/Experiments/Win3D 2022/Library/PackageCache/com.unity.burst@1.8.3/.Runtime/System.Diagnostics.Tracing/System.Diagnostics.Tracing.DLL.

    LOG: Attempting download of new URL file:///I:/Experiments/Win3D 2022/Library/PackageCache/com.unity.burst@1.8.3/.Runtime/System.Diagnostics.Tracing.EXE.

    LOG: Attempting download of new URL file:///I:/Experiments/Win3D 2022/Library/PackageCache/com.unity.burst@1.8.3/.Runtime/System.Diagnostics.Tracing/System.Diagnostics.Tracing.EXE.



    at System.Buffers.DefaultArrayPool`1.Rent(Int32 minimumLength)

    at Burst.Compiler.IL.Hashing.Storage.StringCollection.AddString(String value)

    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.ProcessAssemblyReference(AssemblyReferenceHandle assemblyReferenceHandle, StringCollection strings)

    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.ProcessAssemblyReferences(StringCollection strings)

    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.<>c__DisplayClass13_0.<HashImpl>b__3()

    at System.Threading.Tasks.Task.Execute()



    <---



    stderr:



    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) [0x00237] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:1656

    at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0004d] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:1533

    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.3\Editor\BurstAotCompiler.cs:1508

    at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (Unity.Burst.Editor.BurstAotCompiler+BurstAOTSettings settings, UnityEditor.Compilation.Assembly[] playerAssemblies) [0x00a34] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:706

    at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.DoGenerate (UnityEditor.Compilation.Assembly[] assemblies) [0x0001b] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:265

    at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.GenerateNativePluginsForAssemblies (UnityEditor.Build.IGenerateNativePluginsForAssemblies+GenerateArgs args) [0x0008a] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:179

    at UnityEditor.Modules.BeeBuildPostprocessor.GenerateNativePluginsForAssemblies (PlayerBuildProgramLibrary.Data.GenerateNativePluginsForAssembliesArgs args) [0x00050] in <dcccd05c4df34a519c0d00d5aed085b6>:0

    at Bee.BeeDriver.BuildRequest+<>c__DisplayClass63_0`1[T].<RegisterRPCCallback>b__0 (System.Object o) [0x00000] in <121dc6afd18c416ebb3890a6cc2efeb0>:0

    at Bee.BeeDriver.BeeDriver_RunBackend+<>c__DisplayClass1_0.<ProcessRPCRequest>b__0 () [0x00021] in <121dc6afd18c416ebb3890a6cc2efeb0>:0

    at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <697c5b3fd45741b99b7cab46a4b7b6ac>:0

    at System.Threading.Tasks.Task.Execute () [0x00000] in <697c5b3fd45741b99b7cab46a4b7b6ac>: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) [0x00111] in <121dc6afd18c416ebb3890a6cc2efeb0>:0
    *** Tundra build failed (0.86 seconds), 1 items updated, 146 evaluated
    Library\Bee\artifacts\WinPlayerBuildProgram\AsyncPluginsFromLinker: Failed to find entry-points:
    UnityEngine.StackTraceUtility:ExtractStackTrace ()
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    UnityEngine.Logger:Log (UnityEngine.LogType,object)
    UnityEngine.Debug:LogError (object)
    UnityEditor.Modules.BeeBuildPostprocessor:DefaultResultProcessor (Bee.BinLog.NodeFinishedMessage,bool,bool)
    UnityEditor.Modules.BeeBuildPostprocessor:ReportBuildResults ()
    UnityEditor.Modules.BeeBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs)
    UnityEditor.Modules.DefaultBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    UnityEditor.WindowsStandalone.WinPlayerPostProcessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    UnityEditor.PostprocessBuildPlayer:postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
    UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    UnityEditor.BuildPlayerWindow:OnGUI ()
    UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
    UnityEditor.DockArea:DrawView (UnityEngine.Rect)
    UnityEditor.DockArea:OldOnGUI ()
    UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    UnityEngine.UIElements.IMGUIContainer:processEvent (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    UnityEngine.UIElements.EventDispatcher:processEventQueue ()
    UnityEngine.UIElements.EventDispatcher:OpenGate ()
    UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

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

    stdout:
    Error: Failed to find entry-points:
    System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    --- End of inner exception stack trace ---
    at System.Buffers.DefaultArrayPool`1.Rent(Int32 minimumLength)
    at Burst.Compiler.IL.Hashing.Storage.StringCollection.AddString(String value)
    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.ProcessAssemblyReference(AssemblyReferenceHandle assemblyReferenceHandle, StringCollection strings)
    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.ProcessAssemblyReferences(StringCollection strings)
    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.<>c__DisplayClass13_0.<HashImpl>b__3()
    at System.Threading.Tasks.Task.Execute()
    --- End of inner exception stack trace ---
    at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.HashImpl()
    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.HashAssembly(String filePath, TaskFactory taskFactory)
    at Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheLoader.CreateHashingResult(AssemblyNameReference assemblyNameReference, AssemblyLoader assemblyLoader, DebugLogWriter debugLogWriter)
    at Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore.GetAssemblyState(String assemblyName, AssemblyLoader assemblyLoader)
    at Burst.Compiler.IL.Server.EntryPointMethodFinder.LoadAllAssemblyReferences(AssemblyDefinition asmDef, Dictionary`2 visited, Dictionary`2 jobProducers, HashCacheAssemblyStore assemblyStore, AssemblyLoader assemblyLoader)
    at Burst.Compiler.IL.Server.EntryPointMethodFinder.FindEntryPoints(String[] rootAssemblyNames, HashCacheAssemblyStore assemblyStore, AssemblyLoader assemblyLoader, NativeCompilerOptions options, ProfileDelegate profileCallback, Boolean includeRootAssemblyReferences, Boolean splitTargets)
    at Burst.Compiler.IL.Server.FindMethodsJob.Execute(CompilerServerJobExecutionContext context)
    ---> (Inner Exception #0) System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    File name: 'System.Diagnostics.Tracing, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    File name: 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

    Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable I:\Experiments\Win3D 2022\Library\PackageCache\com.unity.burst@1.8.3\.Runtime\bcl.exe
    --- A detailed error log follows.

    === Pre-bind state information ===
    LOG: DisplayName = System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    (Fully-specified)
    LOG: Appbase = file:///I:/Experiments/Win3D 2022/Library/PackageCache/com.unity.burst@1.8.3/.Runtime/
    LOG: Initial PrivatePath = NULL
    Calling assembly : System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: I:\Experiments\Win3D 2022\Library\PackageCache\com.unity.burst@1.8.3\.Runtime\bcl.exe.Config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Redirect found in application configuration file: 4.0.0.0 redirected to 4.2.0.0.
    LOG: Post-policy reference: System.Diagnostics.Tracing, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    LOG: Attempting download of new URL file:///I:/Experiments/Win3D 2022/Library/PackageCache/com.unity.burst@1.8.3/.Runtime/System.Diagnostics.Tracing.DLL.
    LOG: Attempting download of new URL file:///I:/Experiments/Win3D 2022/Library/PackageCache/com.unity.burst@1.8.3/.Runtime/System.Diagnostics.Tracing/System.Diagnostics.Tracing.DLL.
    LOG: Attempting download of new URL file:///I:/Experiments/Win3D 2022/Library/PackageCache/com.unity.burst@1.8.3/.Runtime/System.Diagnostics.Tracing.EXE.
    LOG: Attempting download of new URL file:///I:/Experiments/Win3D 2022/Library/PackageCache/com.unity.burst@1.8.3/.Runtime/System.Diagnostics.Tracing/System.Diagnostics.Tracing.EXE.

    at System.Buffers.DefaultArrayPool`1.Rent(Int32 minimumLength)
    at Burst.Compiler.IL.Hashing.Storage.StringCollection.AddString(String value)
    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.ProcessAssemblyReference(AssemblyReferenceHandle assemblyReferenceHandle, StringCollection strings)
    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.ProcessAssemblyReferences(StringCollection strings)
    at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.<>c__DisplayClass13_0.<HashImpl>b__3()
    at System.Threading.Tasks.Task.Execute()

    <---

    stderr:

    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) [0x00237] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:1656
    at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0004d] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:1533
    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.3\Editor\BurstAotCompiler.cs:1508
    at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (Unity.Burst.Editor.BurstAotCompiler+BurstAOTSettings settings, UnityEditor.Compilation.Assembly[] playerAssemblies) [0x00a34] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:706
    at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.DoGenerate (UnityEditor.Compilation.Assembly[] assemblies) [0x0001b] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:265
    at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.GenerateNativePluginsForAssemblies (UnityEditor.Build.IGenerateNativePluginsForAssemblies+GenerateArgs args) [0x0008a] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:179
    at UnityEditor.Modules.BeeBuildPostprocessor.GenerateNativePluginsForAssemblies (PlayerBuildProgramLibrary.Data.GenerateNativePluginsForAssembliesArgs args) [0x00050] in <dcccd05c4df34a519c0d00d5aed085b6>:0
    at Bee.BeeDriver.BuildRequest+<>c__DisplayClass63_0`1[T].<RegisterRPCCallback>b__0 (System.Object o) [0x00000] in <121dc6afd18c416ebb3890a6cc2efeb0>:0
    at Bee.BeeDriver.BeeDriver_RunBackend+<>c__DisplayClass1_0.<ProcessRPCRequest>b__0 () [0x00021] in <121dc6afd18c416ebb3890a6cc2efeb0>:0
    at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <697c5b3fd45741b99b7cab46a4b7b6ac>:0
    at System.Threading.Tasks.Task.Execute () [0x00000] in <697c5b3fd45741b99b7cab46a4b7b6ac>: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) [0x00111] in <121dc6afd18c416ebb3890a6cc2efeb0>:0
    UnityEngine.StackTraceUtility:ExtractStackTrace ()
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    UnityEngine.Logger:Log (UnityEngine.LogType,object)
    UnityEngine.Debug:LogError (object)
    UnityEditor.Modules.BeeBuildPostprocessor:DefaultResultProcessor (Bee.BinLog.NodeFinishedMessage,bool,bool)
    UnityEditor.Modules.BeeBuildPostprocessor:ReportBuildResults ()
    UnityEditor.Modules.BeeBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs)
    UnityEditor.Modules.DefaultBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    UnityEditor.WindowsStandalone.WinPlayerPostProcessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    UnityEditor.PostprocessBuildPlayer:postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
    UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    UnityEditor.BuildPlayerWindow:OnGUI ()
    UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
    UnityEditor.DockArea:DrawView (UnityEngine.Rect)
    UnityEditor.DockArea:OldOnGUI ()
    UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    UnityEngine.UIElements.IMGUIContainer:processEvent (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    UnityEngine.UIElements.EventDispatcher:processEventQueue ()
    UnityEngine.UIElements.EventDispatcher:OpenGate ()
    UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    ExitCode: 3 Duration: 0s874ms
    Unloading 1 Unused Serialized files (Serialized files now loaded: 0)
    Unloading 54 unused Assets / (0.7 MB). Loaded Objects now: 5399.
    Memory consumption went from 232.9 MB to 232.3 MB.
    Total: 30.766200 ms (FindLiveObjects: 0.528800 ms CreateObjectMapping: 0.202500 ms MarkObjects: 29.454800 ms DeleteObjects: 0.578800 ms)

    Build Finished, Result: Failure.
    Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
    Total cache size 268341486
    Total cache size after purge 268341486
    Loaded scene 'Temp/__Backupscenes/0.backup'
    Deserialize: 0.242 ms
    Integration: 237.264 ms
    Integration of assets: 0.001 ms
    Thread Wait Time: 0.018 ms
    Total Operation Time: 237.525 ms
    Unloading 0 unused Assets / (20.5 KB). Loaded Objects now: 5396.
    Memory consumption went from 231.1 MB to 231.1 MB.
    Total: 36.777600 ms (FindLiveObjects: 0.373400 ms CreateObjectMapping: 0.104100 ms MarkObjects: 36.266700 ms DeleteObjects: 0.032400 ms)

    Build completed with a result of 'Failed' in 4 seconds (4258 ms)
    2 errors
    UnityEngine.StackTraceUtility:ExtractStackTrace ()
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    UnityEngine.Logger:Log (UnityEngine.LogType,object)
    UnityEngine.Debug:LogError (object)
    UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
    UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    UnityEditor.BuildPlayerWindow:OnGUI ()
    UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
    UnityEditor.DockArea:DrawView (UnityEngine.Rect)
    UnityEditor.DockArea:OldOnGUI ()
    UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    UnityEngine.UIElements.IMGUIContainer:processEvent (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    UnityEngine.UIElements.EventDispatcher:processEventQueue ()
    UnityEngine.UIElements.EventDispatcher:OpenGate ()
    UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  2. MarcoPersson

    MarcoPersson

    Unity Technologies

    Joined:
    Jul 21, 2021
    Posts:
    52
    Hello @Skaltum, can you file a bug report via 'Help > Report a Bug' and post the report number here? Then I can look further into it
     
  3. Skaltum

    Skaltum

    Joined:
    Nov 1, 2013
    Posts:
    28
    Hi Marco

    I made the bug report. The number is IN-32399.
    Thanks for the assistance!
     
  4. latas

    latas

    Joined:
    Oct 9, 2013
    Posts:
    149
    I'm exactly in the same situation, with the same error. It looks some weird issue with Net Framework. I reparied Visual Studio 2019 and it's supposed framework was reinstalled .Net Framework and so on. Don't know what else to look :(
     
  5. joshuaFS

    joshuaFS

    Joined:
    Jul 23, 2018
    Posts:
    25
  6. joshuaFS

    joshuaFS

    Joined:
    Jul 23, 2018
    Posts:
    25
    To clarify, as I didn't see the title here first, I have this same issue in LTS 2021.3.19f1 Going back to 2021.3.15f1 doesn't have the problem. How we can call something LTS, and have this kind of breaking update yet again, is just crazy!

     
  7. latas

    latas

    Joined:
    Oct 9, 2013
    Posts:
    149
    It is very sad, LTS releases can fall in this kind of failures. I don't understand why it doesn't happen to other ppl. I mean, I've got a partner using same release 2021.3.19f1. He has created a project from scratch, and he can build it using burst. He compressed the project and he sent it to me. I try to build it, and I get the compilation error.
    I reinstalled Unity 2021.3.19f1.
    I uninstalled completely Visual Studio 2019 Community.
    I installed Visual Studio 2019 Community as addon from Unity package thru the Unity Hub.
    I cleaned caches.
    I upgraded packages thru Package Manager.
    The last thing remained to do was a full reimport. I tried to avoid it, because my project is quite big. But here we are. I'm currently doing it, but I don't have too much confidence because creating a new empty project, it happens. So my only guess is Burst 1.8.2 or Burst 1.8.3 is detecting something in my computer, maybe some environment var, or any garbage from other installation and it fails.

    Any help appreciated.
    Thanks.
     
  8. latas

    latas

    Joined:
    Oct 9, 2013
    Posts:
    149
    Completely agree. I'm developing as Partner for "Console" and I can not build. Downgrade is not supported, so I'd have to restore from git, and my project is huge. I prefer to disable Burst, and keep on working until the patch will be released.
    Very difficult to understand this kind of things happening in an LTS release.
     
  9. Enzi

    Enzi

    Joined:
    Jan 28, 2013
    Posts:
    959
    Yep, same issue as OP. Hope for a fix soon.
    Burst 1.8.3 and Unity 2022.2.7f1.

    Not everyone is affected. I also have lots of .net frameworks installed for web dev work. Maybe there lies the issue?
     
  10. tim_jones

    tim_jones

    Unity Technologies

    Joined:
    May 2, 2019
    Posts:
    287
    Thanks @Skaltum for the bug report - we'll take a look at this.

    For everyone affected by this - as a workaround, you could try explicitly using an older version of Burst, by setting the version in your "Packages/manifest.json" file:

    Code (CSharp):
    1. {
    2.   "dependencies": {
    3.     "com.unity.burst": "1.6.6",
    4.     ...
    5.   }
    6. }
     
  11. latas

    latas

    Joined:
    Oct 9, 2013
    Posts:
    149
    Hi Tim, thanks for the tip, but unfortunately it doesn't work either.
    I did the modification in the Packages/manifest.json as you suggest. I've tried to build and I get the error.
    In the Package Manager still shows Burst 1.8.2 as selected. It's truth I was in 1.8.3. When I did the modification in the json file it looks a modification of the burst package was installed. I can see Burst 1.6.6 with an "R" icon, as recommendad, but the selected one is 1.8.2.


     
  12. tim_jones

    tim_jones

    Unity Technologies

    Joined:
    May 2, 2019
    Posts:
    287
    Ah, thanks for trying that @latas. Some other package is overriding that requested version - I'm not sure which package it is, but it's likely a package that you actually need. So that workaround probably isn't going to help.

    From an initial look at the bug, it's "something" to do with the system-wide installation of the .NET Framework (not specific to Unity). We haven't been able to repro it on our end yet. I don't know why it's a problem on some computers and not on others - this is just a guess, but perhaps there's something missing in some .NET Framework installations? I'd appreciate if someone could try out Microsoft's .NET Framework Repair Tool to see if that helps.

    https://support.microsoft.com/en-us...vailable-942a01e3-5b8b-7abb-c166-c34a2f4b612a
     
  13. latas

    latas

    Joined:
    Oct 9, 2013
    Posts:
    149
    I can provide you my current installed packages related to Microsoft. I'm currently in Windows 10.
    Maybe it can helps you.
     
  14. latas

    latas

    Joined:
    Oct 9, 2013
    Posts:
    149
    The tool reported to me a tone of logs and it says it couln’t fix the issues. Do you know what are the really requirements to make unity work. I could try to remove one by one the files but I need to know what should be the files required.
    Thanks.
     
  15. tim_jones

    tim_jones

    Unity Technologies

    Joined:
    May 2, 2019
    Posts:
    287
    Burst will use whatever is the most recent version of the .NET Framework that you have installed on your system. The only requirement is that the installation is "valid", not corrupted in any way. I guess you could try uninstalling the most recent version you (.NET Framework 4.8) and then reinstall it?
     
  16. latas

    latas

    Joined:
    Oct 9, 2013
    Posts:
    149
    I removed a lot of packages. I reinstalled Net Framework 4.8 for dev. Still the bug. Maybe it could be a windows update.

    Tired and bored :)
     
  17. Skaltum

    Skaltum

    Joined:
    Nov 1, 2013
    Posts:
    28
    Dropping the package down to Burst 1.6.6 allowed me to build.
    I was also able to build with the latest burst package on a different machine (running Windows 10 instead of Windows 11).
     
  18. latas

    latas

    Joined:
    Oct 9, 2013
    Posts:
    149
    I’m not able to downgrade to burst 1.6.6. I guess some other packages are requiring 1.8.2 as dependency. Any suggestion?
     
  19. Enzi

    Enzi

    Joined:
    Jan 28, 2013
    Posts:
    959
    What's the expected .net Framework version?
    My highest legacy is 4.5.1. The rest is .net core 2,3, 7.
     
  20. tim_jones

    tim_jones

    Unity Technologies

    Joined:
    May 2, 2019
    Posts:
    287
    Those versions should be fine. It seems like the repro for this bug is not as simple as having or not having a particular .NET Framework version - but we haven't yet managed to repro it so we don't know that the trigger is.
     
  21. Jessie-Arr

    Jessie-Arr

    Joined:
    Dec 5, 2018
    Posts:
    5
    I am also experiencing this bug. Burst seems to have been added to my project as a dependency of some of the Multiplayer packages, as well as the 2D package.

    upload_2023-3-6_20-33-20.png

    Error: Failed to find entry-points:
    System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.


    I was able to work around it by going to Edit > Project Settings > Burst AOT Settings and unchecking "Enable Burst Compilation." This gets my project built so I can test, but of course doesn't allow me to use burst compilation which I would like to get working eventually so I can take advantage of the DOTS Unity features.

    Thanks in advance for any tips anyone may have!
     
    Tymac likes this.
  22. joshuaFS

    joshuaFS

    Joined:
    Jul 23, 2018
    Posts:
    25
    I have another "work around" that may be a kind of "fix". Using Unity 2021.3.20f1 (but, I bet works for other versions too).

    I noticed in the error log it said this: To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

    So I enabled that, and then saw that the specifics of the error were this:

    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\XXXX\Unity\XXXX\Library\PackageCache\com.unity.burst@1.8.2\.Runtime\bcl.exe.Config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Redirect found in application configuration file: 4.0.0.0 redirected to 4.2.0.0.
    LOG: Post-policy reference: System.Diagnostics.Tracing, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    LOG: Attempting download of new URL file:///C:/XXXX/Unity/XXXX/Library/PackageCache/com.unity.burst@1.8.2/.Runtime/System.Diagnostics.Tracing.DLL.
    LOG: Attempting download of new URL file:///C:/XXXX/Unity/XXXX/Library/PackageCache/com.unity.burst@1.8.2/.Runtime/System.Diagnostics.Tracing/System.Diagnostics.Tracing.DLL.
    LOG: Attempting download of new URL file:///C:/XXXX/Unity/XXXX/Library/PackageCache/com.unity.burst@1.8.2/.Runtime/System.Diagnostics.Tracing.EXE.
    LOG: Attempting download of new URL file:///C:/XXXX/Unity/XXXX/Library/PackageCache/com.unity.burst@1.8.2/.Runtime/System.Diagnostics.Tracing/System.Diagnostics.Tracing.EXE.


    So, as you can see, it is using the bcl.exe.Config to redirect the problem DLL to version 4.2.0.0, which apparently my computer doesn't have, and so it is failing. So I opened up the bcl.exe.Config file and changed FROM this:

    <assemblyIdentity name="System.Diagnostics.Tracing" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />


    TO this:

    <assemblyIdentity name="System.Diagnostics.Tracing" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />


    This fixed the problem, and now I can build just fine.

    However, I noticed that Burst 1.6.6 still has that same line in the bcl.exe.config, yet that still seems to work fine, so I don't know why this is happening, or why this is the fix either really. I just know that this worked for me. Hopefully someone who actually knows why can then propose what the actual final fix would be to get this as an update in Unity.
     
  23. JustASquid

    JustASquid

    Joined:
    Aug 22, 2015
    Posts:
    4
    @joshuaFS's solution worked for me - thanks for tracking that down!
     
    joshuaFS likes this.
  24. tim_jones

    tim_jones

    Unity Technologies

    Joined:
    May 2, 2019
    Posts:
    287
    @joshuaFS that's a great find, thank you! We should be able to do something about this on our end.
     
    Jessie-Arr and joshuaFS like this.
  25. Cartographer

    Cartographer

    Joined:
    Mar 19, 2013
    Posts:
    78
    The solution from @joshuaFS fixed the issue for me.

    This randomly started happening somepoint between 2022.2.7f1 and 2022.2.12f1 for me. Only real changes I was making was that I started to asmdef up my project properly. It all worked fine a few weeks ago.
     
  26. Therrato

    Therrato

    Joined:
    Mar 8, 2013
    Posts:
    1
  27. GeorgeGuan

    GeorgeGuan

    Joined:
    Dec 6, 2017
    Posts:
    3
    8avalon8 likes this.
  28. mikemnelhams

    mikemnelhams

    Joined:
    May 25, 2020
    Posts:
    1
    After many painful hours of debugging, assembly definitions (EDIT: combined with URP, Built-In render works fine with and without assembly definitions) are the likely culprit.

    As soon as I included unit testing assemblies I get this exact error and a new warning, the project no longer builds, but still compiles in editor and playmode. Such a headache.

    For me at least, the warning isn't fixed either:

    https://issuetracker.unity3d.com/is...ole-after-building-standalone?page=1#comments

    The provided fix (EDIT: by JoshuaFS) makes the warnings and errors disappear too, so I guess that works for now.

    EDIT: With URP, deleting all of the unit testing and asmdef files removes all warnings and all errors for me, if that's a viable option for anybody else too.

    EDIT (2): Upgrading to Unity 2022.3.4f1 LTS resolves this issue, burst compiling runs fine no errors, works for built-in, URP and HDRP, along with many assembly definition files.
     
    Last edited: Jul 1, 2023
  29. tim_jones

    tim_jones

    Unity Technologies

    Joined:
    May 2, 2019
    Posts:
    287
    @mikemnelhams that issue you linked to is a warning, not an error, so it shouldn't prevent anything working. If something isn't working then there's likely another error somewhere. Could you submit a bug report via Help > Report a Bug?
     
    mikemnelhams likes this.