Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by Jeff-Kesselman · Jun 08, 2014 at 04:11 PM · compiler

Where does Unity store the compile log?

Every so often I get an error of this form...

"Internal compiler error. See the console log for more information. output was:Stacktrace:"

Its a bitch to debug because I don't know what file triggered it. Is there a compile log somewhere that will show me what file compile got up to before it died?

If not, there really should be...

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
-1
Best Answer

Answer by Jeff-Kesselman · Jun 08, 2014 at 05:52 PM

Answer: The log is available through the pull down on the console, but is mostly useless.

There appears to be no way to actually get mcs.exe to print the name of each file as it parses it (adding a -v flag didn't help).

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 PouletFrit · Jun 08, 2014 at 04:16 PM

In the console window, there should be the thing with a small arrow and three lines, that allow you to see more option and under that menu there should be a "Open Editor Log"... Is that what you are looking for?

Comment
Add comment · Show 6 · 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 Jeff-Kesselman · Jun 08, 2014 at 04:21 PM 0
Share

Ah, okay. It was buried. You need to detach for "Stacktrace" but it IS in there.

Very helpful, thank you.

edit: hrm spoke too soon. It doesn't list the files as it compiles them. $$anonymous$$aybe there is an option somewhere....

avatar image PouletFrit · Jun 08, 2014 at 04:39 PM 0
Share

doesn't it give you an error message somewhere? something like

 -----CompilerOutput:-stdout--exitcode: -123456789--   compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
 
 * Assertion at ..\mono\metadata\myclass.c:1111, condition `class->image->dynamic || field->offset > 0' not met
avatar image Jeff-Kesselman · Jun 08, 2014 at 04:43 PM 0
Share

I didn't see one. The compiler itself threw a stack trace.,

I'm trying adding a gmcs.rsp with -v in it to see if a verbose output will tell me more..

avatar image Jeff-Kesselman · Jun 08, 2014 at 04:48 PM 0
Share

Have found an error message.. not sure how helpful it is...

Temp/Assembly-CSharp.dll * Assertion at class.c:1727, condition `class->image->dynamic || field->offset > 0' not met

i have seen errors like this trying to use dynamic types but i just did a search for the word dynamic in the codebase and came up empty...

avatar image PouletFrit · Jun 08, 2014 at 05:02 PM 0
Share

I would try the old good trick, create a new project and reimport all your scripts.. just to see if it compile without error... it feel like if your mono master is screw for whatever reason

Show more comments
avatar image
0

Answer by Pescu · Jun 08, 2014 at 04:56 PM

If you run it in unity, you can see the log in the console (Window/Console, or press CTRL+Shift+C)

Comment
Add comment · Show 1 · 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 Jeff-Kesselman · Jun 08, 2014 at 05:49 PM 0
Share

Not the compiler log, but thanks.

avatar image
0

Answer by tcz8 · Sep 24, 2020 at 08:01 PM

I finally found a real answer thanks to this: https://answers.unity.com/questions/1689167/how-do-you-do-a-verbose-build-so-that-compiler-err.html

You need to start the editor using its executable within a command prompt with "-logFile -" as an argument ie.: "Unity.exe -logFile -"

Mind that trailing hypen in "-logFile -" it means STDOUT (standard output) which is old school for console (in this case the command prompt). If you want the log output in a file instead, replace the hyphen with a path ie.: "C:\logfile.txt"

When the editor starts leave the command prompt open/minimized and any log info and error should pop up inside it.

For more details on how to open an command prompt window: https://www.itechtics.com/open-command-window-folder/

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.

Follow this Question

Answers Answers and Comments

23 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to force warnings as errors? 5 Answers

Pickuptype script keeps ringing Compiler errors 2 Answers

Compiler errors need help with. Please 1 Answer

Compiler error issue(not what you think!) 1 Answer

Why compiler errors on a script that's not used in the scene? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges