Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

Windows Universal Build Issues RC1

Discussion in '2017.3 Beta' started by MrEsquire, Dec 2, 2017.

  1. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Im getting the below error:

    Code (CSharp):
    1. UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    2.   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181
    3.   at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:88
    4. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    Not sure what the issue is

    And also:

    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. UnityEditor.Scripting.ScriptCompilation.EditorCompilation.<GetAllScriptAssembliesForLanguage`1>m__8[CSharpLanguage] (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly a) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:8
    I have installed a few versions Unity in past, maybe this something to do with mono??
     
  2. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,459
    Hey do you have the full error message? The first error is just saying that the build failed with errors, but doesn't say what the errors are. As the for the second one - I honestly have no idea what that is. Could you enable full stacktrace logging for errors/exceptions in console settings, and paste the error again? That should make it contain more info.
     
  4. Barkers-Crest

    Barkers-Crest

    Joined:
    Jun 19, 2013
    Posts:
    155
    I am having a similar error in RC2. UWP builds worked fine. Then I added assembly definition files (.asmdef) to my project and now get this error when building for UWP. (Standalone builds fine).

    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. UnityEditor.Scripting.ScriptCompilation.EditorCompilation.<GetAllScriptAssembliesForLanguage`1>m__8[T] (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly a) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:899)
    3. System.Linq.Enumerable+WhereArrayIterator`1[TSource].ToArray () (at <11c1c8f1ba1046b191f565f88728429e>:0)
    4. System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <11c1c8f1ba1046b191f565f88728429e>:0)
    5. UnityEditor.Scripting.ScriptCompilation.EditorCompilation.GetAllScriptAssembliesForLanguage[T] () (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:899)
    6. UnityEditor.Scripting.ScriptCompilation.EditorCompilation.GetScriptAssemblyForLanguage[T] (System.String assemblyNameOrPath) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:906)
    7. UnityEditor.WSA.MetroCompilationExtension.GetCsCompiler (System.Boolean buildingForEditor, System.String assemblyName) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/MetroCompilationExtension.cs:22)
    8. UnityEditor.Scripting.Compilers.CSharpLanguage.GetCSharpCompiler (UnityEditor.BuildTarget targetPlatform, System.Boolean buildingForEditor, System.String assemblyName) (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/CSharpLanguage.cs:31)
    9. UnityEditor.Scripting.Compilers.CSharpLanguage.CreateCompiler (UnityEditor.Scripting.MonoIsland island, System.Boolean buildingForEditor, UnityEditor.BuildTarget targetPlatform, System.Boolean runUpdater) (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/CSharpLanguage.cs:36)
    10. UnityEditor.Scripting.ScriptCompilers.CreateCompilerInstance (UnityEditor.Scripting.MonoIsland island, System.Boolean buildingForEditor, UnityEditor.BuildTarget targetPlatform, System.Boolean runUpdater) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilers.cs:133)
    11. UnityEditor.Scripting.ScriptCompilation.CompilationTask.QueuePendingAssemblies () (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/CompilationTask.cs:186)
    12. UnityEditor.Scripting.ScriptCompilation.CompilationTask.Poll () (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/CompilationTask.cs:137)
    13. UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScripts (UnityEditor.Scripting.ScriptCompilation.ScriptAssemblySettings scriptAssemblySettings, System.String tempBuildDirectory, UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions options, UnityEditor.Scripting.ScriptCompilation.EditorBuildRules+TargetAssembly[]& notCompiledTargetAssemblies) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:706)
    14. UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScripts (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions options, UnityEditor.BuildTargetGroup platformGroup, UnityEditor.BuildTarget platform) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:584)
    15. UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface+<CompileScripts>c__AnonStorey2.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:177)
    16. UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface.EmitExceptionAsError[T] (System.Func`1[TResult] func, T returnValue) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:75)
    17. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    18.  
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,459
    Can we have a bug report on that?
     
  6. Barkers-Crest

    Barkers-Crest

    Joined:
    Jun 19, 2013
    Posts:
    155
    Case 979704
     
    Peter77 and LeonhardP like this.
unityunity