- Home /
NullReferenceException on empty project because of ScriptCompilerBase
I'm getting this error every second:
NullReferenceException: Object reference not set to an instance of an object UnityEditor.Scripting.Compilers.ScriptCompilerBase.CompilationHadFailure () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:158)
full error: NullReferenceException: Object reference not set to an instance of an object UnityEditor.Scripting.Compilers.ScriptCompilerBase.CompilationHadFailure () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:158) UnityEditor.Scripting.Compilers.ScriptCompilerBase.DumpStreamOutputToLog () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:172) UnityEditor.Scripting.Compilers.ScriptCompilerBase.GetCompilerMessages () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:151) UnityEditor.Scripting.ScriptCompilation.CompilationTask.Poll () (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/CompilationTask.cs:101) UnityEditor.Scripting.ScriptCompilation.EditorCompilation.TickCompilationPipeline (EditorScriptCompilationOptions options, BuildTargetGroup platformGroup, BuildTarget platform) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:859) UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface+c_AnonStorey3.<>m_0 () (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:219) UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface.EmitExceptionAsError[CompileStatus] (System.Func`1 func, CompileStatus returnValue) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:75) UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget)
and I have no scripts its just an empty scene with unity version 2017.3.1f1
I get this too. Building UWP with .NET backend. Same Unity version.