NullReferenceException: I have no clue why I am getting this error...
Hello, I have been trying to troubleshoot this bug for days but to no avial. Since I have no clue what is causing this since it even occurs after opening a brand new project. So this has nothing to do with my C# scripts and or it's code.
Here is the complete error message that is spammed in an infinite loop in my console:
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:340) UnityEditor.Scripting.Compilers.ScriptCompilerBase.DumpStreamOutputToLog () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:354) UnityEditor.Scripting.Compilers.ScriptCompilerBase.GetCompilerMessages () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:333) UnityEditor.Scripting.ScriptCompilation.CompilationTask.Poll () (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/CompilationTask.cs:105) UnityEditor.Scripting.ScriptCompilation.EditorCompilation.PollCompilation () (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:1136) UnityEditor.Scripting.ScriptCompilation.EditorCompilation.TickCompilationPipeline (EditorScriptCompilationOptions options, BuildTargetGroup platformGroup, BuildTarget platform) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:1129) UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface+c_AnonStorey3.<>m_0 () (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:272) UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface.EmitExceptionAsError[CompileStatus] (System.Func`1 func, CompileStatus returnValue) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:85) UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget)
Thanks for any help that could be provided on this issue, I have tried multiple fresh installations, creating new projects, etc. But this error is spammed in my console in an infinite loop preventing me from ever being able to do anything, so I am trying to get this fixed so that I can actually use Unity.
Thanks.
Which version of Unity are you using? Did you try to install an older / newer version of it?
Well @Hellium I have been installing an older version of Unity (2018.2.3) since that is the same version that my school uses and since Unity is not backwards compatable I wanted to have the same version at home as I did on campus. The version of Unity shouldn't make a difference, because if it caused problems Unity wouldn't allow the ability of downloading older versions of the software...
BU$$anonymous$$P.
I really need to get this solved, and being ignored is really not helping. This issue is urgent since I use this software for my college course and NEED to get this resolved ASAP. So any assistance would be great... I am pretty desperate at this point.
Is your problem solved? I have encountered the same problem!
Your answer
![](https://koobas.hobune.stream/wayback/20220612173919im_/https://answers.unity.com/themes/thub/images/avi.jpg)