Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Compilation errors

Discussion in 'Unity 5 Pre-order Beta' started by Tomza, Nov 6, 2014.

  1. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    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.
     

    Attached Files:

  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    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 :)

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

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,875
    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.
     
  4. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    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.
     
  5. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    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?
     
  6. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    Editor Log
     

    Attached Files:

  7. AdrianoVerona_Unity

    AdrianoVerona_Unity

    Unity Technologies

    Joined:
    Apr 11, 2013
    Posts:
    317
    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
     
  8. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    I analyzed the log many times too. My project is too big for sending to you. It makes no sense.
     
    Last edited: Nov 6, 2014
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,875
    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.
     
  10. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    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.
     

    Attached Files:

  11. AdrianoVerona_Unity

    AdrianoVerona_Unity

    Unity Technologies

    Joined:
    Apr 11, 2013
    Posts:
    317
    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:
    1. Zipping the project folder

    2. 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
     
  12. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    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.
     
    Last edited: Nov 6, 2014
  13. davem250

    davem250

    Joined:
    May 28, 2013
    Posts:
    186
    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 ;)
     
  14. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    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.
     
  15. davem250

    davem250

    Joined:
    May 28, 2013
    Posts:
    186
    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!
     
  16. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    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".
     
  17. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    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
     
    Ostwind likes this.
  18. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    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.
     
  19. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    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)
     
  20. p87

    p87

    Joined:
    Jun 6, 2013
    Posts:
    318
    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
     
  21. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    You are right. I removed the animator controller before you wrote the post. Now I don't get those errors. But the compilation errors still exist. I tried to build my project for my employer and I couldn't. I have never experienced such a hard to solve problem. I have always been able to find a solution. Now I'm helpless.
     
  22. p87

    p87

    Joined:
    Jun 6, 2013
    Posts:
    318
    you could always install beta 12 or one of the other betas if they worked for you in the past?
     
  23. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    All Betas behave in the same way on my new laptop with Window 8.1 64 bit. When I worked on my old Windows 7 32 bit, I had no problems. My problems started when I changed my computer.
     
  24. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,875
  25. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    Sorry, but I installed that package a long ago - when I got the error during starting Unity 5.0 for the first time (Unity 5.0 didn't start because of dll missing).
     
  26. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    I have something new for Unity Team and others who will have such a problem! As some people said, I removed assets from my Unity Project step by step (one folder a time) and... when I removed the folder with ALL (!) my scripts ( I keep my all scripts in one folder to manipulate them easier) the compilation errors disappeared!!!

    Victory! But a project without scripts isn't a true project :(. It's good we know more what's happening because the best Unity specialists don't know what's happening with my Unity 5.0 :).

    I think there's something wrong with an Unity Project upgrading. Tomorrow, I will be eliminating my all scripts if it's possible.
     
  27. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    No so easy as I thought! Alas, the compilation errors are with me again! It's not connected with my scripts. They can appear while the scripts are removed from the Unity Project. Completely no rues and no scheme. They appear when they want. It's really strange. I catch them in one scene in a separated Unity Project and now I'm sending it as a bug report to Unity Technologies.
     
  28. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    The bug Report has been sent. Now it's your move, Unity Technologies. I hope you will be able to find the errors that make me furious :).

    Case 648696
     
  29. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    I notice something. When I try click on Avatar object in Project Windows and then click Configure Avatar in Inspector on Scene View I see my character and bones. Everything is OK, but when I click Done to come back to my Scene, in the Inspector I see still the Avatar. I click other object in Project Windows and no change in the Inspector. Always Avatar and Configure Avatar. When I click Configue Avatar again, I goes into ... a normal Inspector View with Transform, Animator, etc. But on the scene I see my character and her bones. I can't come back to my Scene. I don't know but there was not something like that in earlier versions. I think it is not normally.

    And, what's more important, to come back to me Scene, I am forced to close the Unity. Then, I start Unity again and...

    I see those f... compilation errors. So I do Reimport All to rebuild my Unity Project.

    And - Unity behaves normally.

    It's crazy I know. I think the problem is either my operating system or Unity 5.0. My assets were checked.
     
  30. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
  31. Tomza

    Tomza

    Joined:
    Aug 27, 2013
    Posts:
    596
    I uninstalled Unity 5.0 and installed Unity 4.6 Release Candidate 1 to check what will happen (I left one Unity Project not upgraded to Unity 5.0). Maybe it will be helpful, but I get the same compilation errors. So I think something wrong with my operating system.

    Does somebody use Windows 8.1 64 bit on an Asus laptop for making Unity Projects?