Compilation errors

Hey, Unity Team. I paid for the Pro Licence and I’m in the middle of making my project and your Beta gave me the error:

  • starting compile Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll, for buildtarget 5
    ApplicationException: Unable to find a suitable compiler
    at UnityEditor.Scripting.ScriptCompilers.CreateCompilerInstance (MonoIsland island, Boolean buildingForEditor, BuildTarget targetPlatform, Boolean runUpdater) [0x00075] in C:\buildslave\unity\build\Editor\Mono\Scripting\ScriptCompilers.cs:99
    (Filename: C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilers.cs Line: 99)

Failed to create compiler instance
(Filename: C:/buildslave/unity/build/Editor/Src/AssetPipeline/MonoCompile.cpp Line: 86)

  • Finished compile Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll
    Compilation failed because the compiler couldn’t be executed!
    (Filename: Line: 2352008)

  • starting compile Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll, for buildtarget 5
    ApplicationException: Unable to find a suitable compiler
    at UnityEditor.Scripting.ScriptCompilers.CreateCompilerInstance (MonoIsland island, Boolean buildingForEditor, BuildTarget targetPlatform, Boolean runUpdater) [0x00075] in C:\buildslave\unity\build\Editor\Mono\Scripting\ScriptCompilers.cs:99
    (Filename: C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilers.cs Line: 99)

Failed to create compiler instance
(Filename: C:/buildslave/unity/build/Editor/Src/AssetPipeline/MonoCompile.cpp Line: 86)

  • Finished compile Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll
    Compilation failed because the compiler couldn’t be executed!

I have tried all and nothing! I can’t go into Play Mode.

I know it sounds dumb, but did you try to delete the library folder (after a backup) and simply restart your computer and open the project again? Sometimes it is like magic :slight_smile:

If that doesn’t work, it looks like a bug. Kind of obvious what to do in that case.

Never seen this before, try attaching Editor.log, maybe it contains something useful, but I also suggest you make a bug report with repro project attached.

I have tried all - I’m really fed up with Unity 5.0. Of course, I have deleted the Library folder many times. It started to work when I removed all stuff from the project leaving only the Assets folder. But I have other problems like moving my first person controller by some force when a collider is attached. No control over FPC. It’s crazy.

It is not really surprising that you get crazy results if there are compilation issues. It is surprising that you can even run the scene somehow?

Editor Log

1838272–117882–EditorLog.zip (81.1 KB)

Hi

There’s nothing in the log that would explain the issue (at least to me)

As Tomas said, a bug with a repro project would be great.

Best

Adriano

I analyzed the log many times too. My project is too big for sending to you. It makes no sense.

Is this really the correct log, I am trying to find your error in it, but failing. For ex., searching for “suitable compiler” doesn’t give any results.

Sorry, I opened other (much smaller) project that I had been able to fix by removing all stuff but the Assets folder and then Unity rebuilt all. It’s a tip for you, Unity Team. Now, I opened my big project (80 GB) and the problem exists. I’m testing my solution to use it for my big project. The earlier log was from the fixed project. As you noticed, nothing wrong. This log is from my big project I have opened now. If my solution works, I will be very happy. However, my first person controller behaves strange.

1838506–117893–EditorLog2.txt (15.6 KB)

Hi

nothing in this log either (other than the error saying it fails to compile).

The exception is telling us that some language that we don’t know how to compile has been passed in, but based on the code I don’t see how this could happen; maybe it is a memory corruption and we are getting garbage.

Without a repro project it is really hard to find out what’s going on. What about trying the following:

  • Zipping the project folder

  • If even the zip flle is still to big, try to remove all non script assets and try to open again. If it does not fail, try to remove only the biggest assets until you get a reasonable project size that still fails (I don’t know what are the limit of an acceptable project size, but I’ve already debugged 15Gb sized projects)

Anyway, I’ll change the code to include the language we’re looking for, so next time this happens we’ll get some more information.

BTW: Your previous log does have some entries that caught my attention (mainly, null references).

Adriano

Dear Vagaus,

My project is 80 GB! I will be testing my solution. If everything will be Ok, I will use it for my big project. In other words, deleting only the Library folder is not enough - only the Assets folder should be left in the project before rebuilding. This problem isn’t a serious obstacle for me now. I am fighting the First Person Controller’s behavior now.

Why does an attached Collider to a First Person Controller make it move automatically and without my control?! When I uncheck the Collider, my First Person Controller behaves normally.

Regarding the sending my project to you, I can say that… it’s too late now. I’m going to sleep.

Just as an info… Please turn isTrigger on when using an extra collider! or else you’ll get that weird behavior (NOT classifiable as a bug!) and when you have over 70 Warnings and 5 Errors, then i believe you should fix those also BEFORE complaining about a probable bug… please fix these issues and then come back with a complain :wink:

isTrigger is turned on on every extra collider. I have no problem with colliders now. I made them bigger and the problem was solved - no conflicts. Your advice has come too late but thank you :).

My project is very complicated and big that’s why I have a lot of problems after having upgraded to Unity 5.0. You only play with simple projects, so it’s easy and without pain.

What do you actually know about what i’m doing? nothing! i for one won’t want a project that fills up a total of 80GB’s since it’s not necessary because i have learned to save space, and those errors should still be fixed because one of them might be related to your “bug”… but you honestly do not know what i have in my project so you cannot possibly tell if it is a big one or not, but anyway… happy bug reporting!

I isolated one scene where I think there can be a source of my Unity’s bad behavior and I’m bug reporting now. The project is 315 MB. I hope this stuff will be enough for finding the bug for Unity Team. I think it is connected with my compilation errors because there are characteristic words like “buildslave”.

Unity Team, the bug report has been sent! I hope it will help you find the reason of the errors. I tried to make small project with the stuff that cause errors.

Case 648377

1 Like

I tried to build my project and I can’t because of the compilation errors. And now I can’t even go into Play Mode. So should I remove all stuff from my project and rebuild all again? It lasts one day. I’m losing time.

What is AnimatorControllerTool Script? Is it a script? I think it can make troubles for me.

IndexOutOfRangeException: Array index is out of range.
UnityEditor.Graphs.AnimatorControllerTool.ResetBreadCrumbs () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:349)
UnityEditor.Graphs.AnimatorControllerTool.ResetUI () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:325)
UnityEditor.Graphs.LayerControllerView.get_selectedLayerIndex () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/LayerControllerView.cs:27)
UnityEditor.Graphs.LayerControllerView.Init (IAnimatorControllerEditor host) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/LayerControllerView.cs:149)
UnityEditor.Graphs.AnimatorControllerTool.Init () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:284)
UnityEditor.Graphs.AnimatorControllerTool.OnEnable () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:233)
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)

looks like an issue with the Animation window? Can you open that window? Make a backup of the AnimatorControllers in your project and then remove them from the project? Maybe one of your AnimatorControllers is in a corrupted state or something, from the stack traces it seems like its getting a null reference exception on the selected animation layer while trying to draw the animator user interface, or something along those lines