Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Unable to build UWP HoloLens project with DOTS

Discussion in 'Windows Mixed Reality' started by Xitech_, Oct 28, 2019.

  1. Xitech_

    Xitech_

    Joined:
    Feb 19, 2013
    Posts:
    127
    I am unable to build an empty scene as soon as the Burst package is in my project with the following error using both Unity 2019.2.9f1 and 2019.3.0b5:
    Code (CSharp):
    1. Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Windows.Networking.NetworkOperators.NetworkOperatorsTetheringContract, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
    2.    at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
    3.    at Burst.Compiler.IL.AssemblyLoader.Resolve(AssemblyNameReference name)
    4.    at Burst.Bcl.BclApp.LoadAllAssemblyReferences(AssemblyDefinition asmDef, Dictionary`2 visited)
    5.    at Burst.Bcl.BclApp.LoadAllAssemblyReferences(AssemblyDefinition asmDef, Dictionary`2 visited)
    6.    at Burst.Bcl.BclApp.LoadAllAssemblyReferences(AssemblyDefinition asmDef, Dictionary`2 visited)
    7.    at Burst.Bcl.BclApp.FindExecuteMethods(List`1 rootAssemblyPaths)
    8.    at Burst.Bcl.BclApp.GetMethodsToCompile()
    9.    at Burst.Bcl.Program.Main(String[] args)
    10.  
    And:
    Code (CSharp):
    1. BuildFailedException: Burst compiler (1.1.2) failed running
    2.  
    3. stdout:
    4. An unexpected exception occurred:
    5. stderr:
    6. Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Windows.Networking.NetworkOperators.NetworkOperatorsTetheringContract, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
    7.    at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
    8.    at Burst.Compiler.IL.AssemblyLoader.Resolve(AssemblyNameReference name)
    9.    at Burst.Bcl.BclApp.LoadAllAssemblyReferences(AssemblyDefinition asmDef, Dictionary`2 visited)
    10.    at Burst.Bcl.BclApp.LoadAllAssemblyReferences(AssemblyDefinition asmDef, Dictionary`2 visited)
    11.    at Burst.Bcl.BclApp.LoadAllAssemblyReferences(AssemblyDefinition asmDef, Dictionary`2 visited)
    12.    at Burst.Bcl.BclApp.FindExecuteMethods(List`1 rootAssemblyPaths)
    13.    at Burst.Bcl.BclApp.GetMethodsToCompile()
    14.    at Burst.Bcl.Program.Main(String[] args)
    15.  
    16. 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.1.2/Editor/BurstAotCompiler.cs:659)
    17. 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.1.2/Editor/BurstAotCompiler.cs:597)
    18. 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.1.2/Editor/BurstAotCompiler.cs:571)
    19. Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.1.2/Editor/BurstAotCompiler.cs:286)
    20. Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.1.2/Editor/BurstAotCompiler.cs:46)
    21. UnityEditor.Build.BuildPipelineInterfaces.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at <52c46852ed4749ed926125cda2005635>:0)
    22. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    23.  

    I have found this post: https://issuetracker.unity3d.com/is...s-when-using-burst-with-mixed-reality-toolkit and it should be fixed in Unity 2019.3.0b5. However, this is not the case. Anyone else know how to build a Unity DOTS project to the HoloLens? I also tried to disable burst compilation in the options but with no success.
     
  2. Xitech_

    Xitech_

    Joined:
    Feb 19, 2013
    Posts:
    127
    Created a bug report: Case 1194606
     
  3. Nyanpas

    Nyanpas

    Joined:
    Dec 29, 2016
    Posts:
    97
    I managed to build a project using Burst but I later found out that it wasn't true Burst as I didn't use Unity.Mathemathics in the iJobParallelFor...
     
  4. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    560
    Burst has some significant limitations on what you can and can not have in order for it to work. Just adding Burst or BurstCompile doesn't necessarily make things Bursted if it can't actually transform your code.

    Inclusion of ANY UnityEngine type in your job code will almost guarantee that you will not be Burst compiled.
     
    Nyanpas likes this.
  5. Nyanpas

    Nyanpas

    Joined:
    Dec 29, 2016
    Posts:
    97
    I guess Mike Geig was wrong in his presentations, then...
     
  6. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    560
    I haven't seen that presentation, just my experience in using ECS and Burst for things personally.
     
  7. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    560
    As to the original issue, are you sure that you have the assembly that is being called out in the error?
     
  8. Xitech_

    Xitech_

    Joined:
    Feb 19, 2013
    Posts:
    127
    What Unity version are you using?

    Thanks for your reply!

    How do I find out if I have?
     
    Last edited: Nov 6, 2019
  9. Xitech_

    Xitech_

    Joined:
    Feb 19, 2013
    Posts:
    127
    I've found the cause, with help of the Unity QA team:

    Installing the Hybrid Renderer package first will install the wrong version of the burst compiler (1.1.2).
    If you install the burst compiler first, version 1.2.0 preview.8 it will work. So I think the verified version of burst is causing this issue.
     
  10. Nyanpas

    Nyanpas

    Joined:
    Dec 29, 2016
    Posts:
    97
    2018.4.something for that test. Now we're on 2019.2 and higher.