• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by DomDom · Nov 24, 2015 at 12:08 PM · compilerinternal compiler error

Compile Error with empty message, version 5.2.2f1

Hi

I'm having compile errors but can't figure out which one or what the problem is because the is no Error message:

alt text

I check the Editor Log but I'm can't figure out what's wrong:

[...] -define:UNITY_ASSERTIONS -define:UNITY_EDITOR -define:UNITY_EDITOR_64 -define:UNITY_EDITOR_WIN Assets/Plugins/iTween/iTween.cs Assets/Plugins/iTween/iTweenHinting.cs -r:"C:\Program Files\Unity\Editor\Data\Mono\lib\mono\unity\System.Runtime.Serialization.dll" -r:"C:\Program Files\Unity\Editor\Data\Mono\lib\mono\unity\System.Xml.Linq.dll"

-----CompilerOutput:-stdout--exitcode: -1073741502--compilationhadfailure: True--outfile: Temp/Assembly-CSharp-firstpass.dll -----CompilerOutput:-stderr---------- -----EndCompilerOutput--------------- - Finished compile Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll

However there isn't a "Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll" or a "Temp/Assembly-CSharp-firstpass.dll" I guess that's the problem that they can't be created.

Goggling for the exitcode: "-1073741502" didn't help anything, I've read many different Threads, but couldn't find a solution.

Another thing I've seen is that Unity won't recompile the sources if I change something, moving files won't help (the error goes anyway when no scripts are there, once any script is there I get the error), editing doesn't trigger a compile. I tried with removing the iTween plugin and reducing the sources one by one, didn't work. As soon as I add an "NewBehaviourScript.cs" script the empty error appears.

I'm working with visual studio community where I can compile the sources without errors, but Unity for some reason won't do it...

I'd much appreciate any help.

Here is the full Editor Log: link text

editor-empty-compile-errorlog.txt (21.6 kB)
empty-compile-error.png (168.5 kB)
Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DomDom · Nov 24, 2015 at 12:28 PM 0
Share

I've recognized that it doesn't matter which project i open, as soon as something should be compiled I'm getting that invisible compile error.

avatar image Dave-Carlile DomDom · Nov 24, 2015 at 12:53 PM 0
Share

Have you restarted Unity? Rebooted? Reinstalled Unity? I'd try those things in that order.

avatar image Dave-Carlile Dave-Carlile · Nov 24, 2015 at 02:38 PM 1
Share

And maybe try running Unity as Administrator.

Show more comments
avatar image DomDom · Nov 24, 2015 at 03:51 PM 0
Share

thx for all the inputs, I tried it with deleting the library, didn't work since it couldn't compile anything. I could solve the problem (posted the answer but I guess it was to be reviewed by an moderator first?) I uninstalled Unity, deleted all remaining folders from unity and monodevelop in the userbased folders (ex. C:\Users[YourUserName]\AppData\Local etc.) and reinstalled 5.2.3f and it worked.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by DomDom · Nov 24, 2015 at 04:09 PM

Could get a Error message on another computer and it's the same as mentioned in this Thread: http://stackoverflow.com/questions/33798455/creating-managed-dll-for-unity-fails-with-error-when-importing-into-unity

Which lead to this: http://forum.unity3d.com/threads/5-2-1p3-mono-cecil-assemblyresolutionexception-unityengine-ui-dll.361666/

I could actually solve it with manually deleting all remains of Unity and Monodevelop after the deinstallation (ex. C:\Users[YourUserName]\AppData\Local etc. ) and then reinstalling 5.2.3f.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ohoud · Apr 09, 2017 at 06:26 AM 0
Share

I'm facing the same problem, and I did which you just suggested with deleting all local files after uninstallation. Unfortunately it didn't solve the error in my case.

avatar image IbraheemTuffaha Ohoud · Apr 14, 2017 at 10:29 AM 0
Share

I've got the same problem with Unity 5.6.0f3 64-bit and I tried that as well but it didn't work. Please let me know if you found anything that can resolve this. http://stackoverflow.com/questions/43403709/unity-built-in-packages-compiler-errors

avatar image Ohoud IbraheemTuffaha · Apr 14, 2017 at 11:01 AM 1
Share

Hi, I reported this as a bug and I just got the response from Unity today. Try changing system locale to not Arabic Go to Control Panel > Change date, time or number format> Administrative tab> Change system locale

This solved the problem for me.

Show more comments
avatar image
0

Answer by Dblincoe · Oct 31, 2017 at 04:24 PM

Changing locale has not worked for us. It has happened twice now. Only thing that has worked has been a fresh install.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by glitchers · Feb 22, 2018 at 09:37 AM

I had this issue with Console Pro which was logging an empty error at "Script: 0". Swapping back to the built-in Console actually displayed the error.

I've read also that opening the Editor Log via the menu on the top-right of the Console can help track it down too.


Also if it helps anybody - the error I had was to do with a ScriptableObject having a method called Update which took arguments.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Internal Compiler Error caused by Visual Studio project? 0 Answers

Optimizations in scripts 1 Answer

complier Error unexpected char' '. 1 Answer

Compiler errors need help with. Please 1 Answer

Error building a Unity Linux app through Cygwin 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges