• 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
46
Question by Statement · Jan 05, 2010 at 03:52 PM · editorcrashdebugfreezelog

How can I find editor log file?

Problem

I have a problem with the editor crashing when I am trying to run my game without any usable error messages. I was hoping to find a output.log but I have failed to see such a file. Basically I want to access the debug log output to see if I can find any obvious errors.


Solution

In the upper-right corner of the console window, there's two buttons for opening up the Editor and Player logs. If Unity crashes on you and you're interested in getting the log before re-launching it, you can also grab the log files here:

For Windows:

  • Editor
    • %localappdata%\Unity\Editor\
  • Web player
    • %temp%\UnityWebPlayer\log\

For OS X:

  • Editor
    • ~/Library/Logs/Unity/
  • Web player
    • ~/Library/Logs/Unity/

Please be sure to upvote the answers. Answer authors deserve the reputition.

Comment
Add comment · Show 3
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 yoyo · Feb 25, 2011 at 09:01 PM 0
Share

None of these answers mention log files from standalone builds -- do those exist, and if so where?

avatar image yoyo · Feb 25, 2011 at 09:03 PM 1
Share

Found it! It's in the data folder of the standalone build, called output_log.txt. (http://answers.unity3d.com/questions/1511/where-is-the-output-log-file-on-mac)

avatar image Statement · Feb 27, 2011 at 01:08 AM 1
Share

Yeah, and this question isnt about the standalone log files. This is the logfiles produced for the editor.

5 Replies

· Add your reply
  • Sort: 
avatar image
56
Best Answer

Answer by AngryAnt · Jan 05, 2010 at 03:58 PM

In the upper-right corner of the console window, there's two buttons for opening up the Editor and Player logs.

If Unity crashes on you and you're interested in getting the log before re-launching it, you can also grab the log files here:

Editor Logs:

  • Windows XP:
    • C:\Documents and Settings\YOUR_USERNAME\Local Settings\Application Data\Unity\Editor.
  • Windows Vista, 7:
    • C:\Users\YOUR_USERNAME\AppData\Local\Unity\Editor
  • OS X:
    • ~/Library/Logs/Unity/

WebPlayer Logs:

  • Windows XP:
    • C:\Documents and Settings\YOUR_USERNAME\Local Settings\temp\UnityWebPlayer\log
  • Windows Vista, 7:
    • C:\Users\YOUR_USERNAME\Local Settings\temp\UnityWebPlayer\log
  • OS X:
    • ~/Library/Logs/Unity/

Info available from http://unity3d.com/support/documentation/Manual/Web%20Player%20Debugging.html

What I usually do on OS X is view the log file with Console.app (/Applications/Utilities/Console.app) for a live update of things. Its also got a nice hierarchy view on its left for quickly switching between monitored logs.

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 Statement · Jan 05, 2010 at 03:59 PM 0
Share

Thanks. It was GUILayout.TextField which crashed the entire editor when sending a null string.

avatar image Statement · Jan 05, 2010 at 04:02 PM 0
Share

Actually - it only shows the current log. When I boot up the editor after the crash I can't access the (old) log.

avatar image AngryAnt ♦♦ · Jan 05, 2010 at 04:38 PM 0
Share

Updated the answer.

avatar image x4000 · Jun 15, 2010 at 02:59 AM 0
Share

On Windows 7, I am finding it here, ins$$anonymous$$d: C:\Users(current user)\AppData\Local\Unity\Editor

avatar image yoyo · Dec 04, 2010 at 08:01 AM 0
Share

Awesome, thanks! $$anonymous$$y log didn't have a stack trace, but it indicated a D3D problem. The issue seems to have gone away after docking the game view back into the editor and then undocking it. The problem started after copying someone else's scene (library, cache, and all) onto my machine.

Show more comments
avatar image
13

Answer by duck · Jan 05, 2010 at 04:27 PM

As already noted, you can open the current editor log by clicking the 'player log' or 'editor log' in the upper right corner of the console window.

In addition, as well as "Editor.log", Unity also keeps the editor log from the previous run in the same location as the current editor log file, named "Editor-prev.log".

On Windows, you can find these files in:

C:\Documents and Settings\Ben\Local Settings\Application Data\Unity\Editor

And on a Mac, you can find it here:

/Users/Duck/Library/Logs/Unity/

However, A neat way to deal with the problem of viewing logs to debug a crash is open your .log files with a text editor which detects changes to a file and notifies your or refreshes with the current changes (such as Notepad++ for Win). This way you'll be notified of changes after unity has crashed, and you just have to OK the refresh message in your text app and you get the new log displayed straight away.

You could even tail the log file (tail for mac, and perhaps BareTail for Win) or use an app which detects changes and refreshes the file, so that you get an external scrolling pane of text showing changes to the log file as they happen. You can also do this for the player log, or even the webplayer log files.

Comment
Add comment · Show 3 · 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 Statement · Jan 07, 2010 at 08:37 AM 0
Share
  • Helpful insight with the change detecting software.

avatar image moghes · Feb 07, 2013 at 10:54 AM 0
Share

I am having the same problem and I followed the log file as you guys have told. First I cut the content to a new file so that the editor log file is empty. I I opened the scene that was causing the crash, then opened editor.log with notepad++ , it was on line 172, then closed the file and clicked run the game. When I reopened the editor.log there 200 lines (about 30 new lines) the last message was : "Unloading 835 unused Assets to reduce memory usage. Loaded Objects now: 5780. Operation took 33.469468 ms. System memory in use: 329.1 $$anonymous$$B."

I can't figure out what's the problem here! Any hints about this?

avatar image moghes · Feb 07, 2013 at 10:57 AM 0
Share

I also see this message before the last message I mentioned above, the message is "----- Total AssetImport time: 0.011294s, Asset Import only: 0.000000s, CacheServerIntegrate only: 0.000000s, Cache$$anonymous$$ove: 0.000000s, CacheDelete: 0.000000s, CacheServer Download: 3493.744873s [$$anonymous$$, 4048016640.000000 mb/s], CacheServer Hashing: 3493.744873s [$$anonymous$$, 4048016640.000000 mb/s]" .. where I see huge numbers like 3493 seconds for CacheServer Hashing .. What might be causing this?

avatar image
8

Answer by z3ntu · Dec 11, 2015 at 04:39 PM

For Linux it is /home/luca/.config/unity3d/Editor.log

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
2

Answer by Dune2 · Sep 29, 2016 at 10:34 PM

For Windows 8.1

C:\Users\[User]\AppData\Local\Unity\Editor

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 aceakle · Sep 25, 2020 at 03:01 PM

When Unity crashes in editor it stores a crash log here:

Windows 10: C:\Users\YOUR_USERNAME\AppData\Local\Temp\Unity\Editor\Crashes\


If your on a different OS or this file path doesn't work you can find the crash log file path from the editor log. Just search for a line that says this "A crash has been intercepted by the crash handler. For call stack and other details, see the latest crash report generated in:" it should be towards the bottom of the editor log if you recently experienced a crash.

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

6 People are following this question.

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

Related Questions

How to get rid of the crash error in MonoDevelop 2 Answers

Troubleshooting desktop build receiving unhandled NULL exception 0 Answers

Android build crashes on launch. 2 Answers

Unity freezes 100% of the time right after build and run 2 Answers

Please help understand this Editor-Crash Log file 0 Answers


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