Search Unity

Unity Creating Huge Editor.log file

Discussion in 'Editor & General Support' started by Kashif024, Jan 16, 2019.

  1. vladk

    vladk

    Joined:
    Jul 10, 2008
    Posts:
    167
    When you're looking at the project in the Hub - look to the right, there are 3 vertical dots for each project, click them and you will see a drop-down with the option "Advanced Project Settings". This is what you need to add -logFile NUL
     
  2. ArtyBoomshaka

    ArtyBoomshaka

    Joined:
    Mar 5, 2013
    Posts:
    226
    ScottAdams likes this.
  3. CheekySparrow78

    CheekySparrow78

    Joined:
    Feb 9, 2019
    Posts:
    15
    Happened to me too,

    selector_thread_wakeup_drain_pipes: recv () failed, error (10054)

    80GB of log file and I lost some unrelated work.
    I use Windscribe VPN, and it wasn't even on!
    What gives? I expect it's only time before somebody's SSD gets fried or somebody loses something valuable due to this 'feature' and all sorts of legal trouble could ensue.
     
    Last edited: Mar 1, 2020
  4. ArtyBoomshaka

    ArtyBoomshaka

    Joined:
    Mar 5, 2013
    Posts:
    226
    Last edited: Mar 6, 2020
    CheekySparrow78 likes this.
  5. Antan

    Antan

    Joined:
    Jun 22, 2017
    Posts:
    5
    Just confirming NordVPN-problems. Opening NordVPN often crashes Unity. I just had a 65gb log file after having had NordVPN open for couple hours. It stopped at 65gb due to disk space. Cannot open log file in NP++ due to too large file size.
     
  6. ABerlemont

    ABerlemont

    Joined:
    Sep 27, 2012
    Posts:
    67
    I confirm that sometimes having NordVPN connected slow down or crash Unity opening.
    Why would NordVPN make that log file go bigger ? Unity is waiting for online validation :shrug: ?
     
    patbosun and Zebadiah like this.
  7. avvie

    avvie

    Joined:
    Jan 26, 2014
    Posts:
    74
    I get the same problems with huge editor files. I also use a vpn (windscribe in my case, I have seen some random crashes). But mostly I have an issue with the editor log.

    Can I start Unity from console and pass a parameter such that it doesnt save to a file? (Unity version 2018.x.x, 2019.x.x)
     
  8. Koak

    Koak

    Joined:
    Feb 11, 2013
    Posts:
    4
    Last edited: Apr 7, 2020
  9. AMIR_REZAs

    AMIR_REZAs

    Joined:
    Jan 20, 2014
    Posts:
    54
    Same happened to me ! 30 GB log file omg !!!
     
  10. patbosun

    patbosun

    Joined:
    Sep 18, 2018
    Posts:
    3
    I found a 44GB file log file today - Unity 2019.3.10f1 (64-bit). Also using NordVPN and have had some troubles with blank Unity window and extremely slow startup because of it. Deleted it without looking though.
     
  11. TheWarper

    TheWarper

    Joined:
    Nov 3, 2013
    Posts:
    112
    I found a 780 GB log file with WinDirStat - I'm guessing it's the NordVPN conflict as mentioned above, whew!
     
    milox777 and Tanoshimi2000 like this.
  12. Tanoshimi2000

    Tanoshimi2000

    Joined:
    Feb 10, 2014
    Posts:
    46
    I've had this problem with different versions of Unity from 2017 onward. Usually it's a Shader script repeating an error, but I've had the log files fill my drive. I do have NordVPN, so that may be causing it now.

    My thought is, why can't we configure the Unity Editor to enable/disable logging, rather than having to add "-logFile NUL" to each project? Or to set a limit to the Editor.Log filesize?
     
  13. milox777

    milox777

    Joined:
    Sep 23, 2012
    Posts:
    195
    I just noticed suddenly over 100GB of free space disappeared from my SSD, and lo and behold, 100GB Editor.log is sitting there. Not cool, as it also hurts the SSD lifespan. And yes, I do use a VPN. This is on Unity 2020.1b8.

    Also, there's a file called Editor-prev.log, it seems to have a modified date of today as well, and the last lines in this log have this to say, so maybe it could be a hint of some memory leak:

    Code (CSharp):
    1. Cleanup mono
    2. debugger-agent: Unable to listen on 5156
    3. [usbmuxd] Stop listen thread
    4. [usbmuxd] Error:
    5. [usbmuxd] Listen thread exiting
    6. 10 TextureIDs were not freed
    7. (Filename: C:\buildslave\unity\build\Runtime/GfxDevice/GfxDevice.cpp Line: 1588)
    8.  
    9. Checking for leaked weakptr:
    10.   Found no leaked weakptrs.
    11. [Package Manager] Server::Kill -- Server was shutdown
    12. Internal: There are remaining Allocations on the JobTempAlloc. This is a leak, and will impact performance
    13. (Filename: C:\buildslave\unity\build\Runtime/Allocator/ThreadsafeLinearAllocator.cpp Line: 582)
    14.  
    15. Internal: There are remaining Allocations on the JobTempAlloc. This is a leak, and will impact performance
    16. (Filename: C:\buildslave\unity\build\Runtime/Allocator/ThreadsafeLinearAllocator.cpp Line: 582)
    17.  
    18. ##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1589120044567,"processId":1776,"allocatedMemory":2387222,"memoryLabels":[{"Default":-3444},{"NewDelete":463723},{"Thread":95},{"Manager":10824},{"VertexData":4128},{"Texture":456},{"Shader":2166},{"Material":5020},{"GfxDevice":200240},{"GfxThread":24},{"Physics":401},{"Serialization":40},{"Renderer":8},{"File":16916},{"String":205432},{"DynamicArray":196100},{"HashMap":39047},{"UTF16String":86},{"Utility":600},{"Curl":1440},{"PoolAlloc":179392},{"ScriptManager":109965},{"Sprites":96},{"GI":14208},{"VR":3572},{"NativeArray":36224},{"Secure":4237},{"Subsystems":96},{"VirtualTexturing":44960},{"EditorGui":352},{"EditorUtility":15176},{"AssetDatabase":787478},{"AssetImporter":32},{"RestService":56},{"ProgressiveLightmapper":-520},{"License":17184},{"UnityConnect":26628},{"Collab":760},{"Licensing":4024}]}
    19. Internal: There are remaining Allocations on the JobTempAlloc. This is a leak, and will impact performance
    20. (Filename: C:\buildslave\unity\build\Runtime/Allocator/ThreadsafeLinearAllocator.cpp Line: 582)
    21.  
     
  14. Murble

    Murble

    Joined:
    Aug 7, 2019
    Posts:
    14
    Had a unity project open over night and started working on it again this morning. After an hour of work I went to eat and opened a video, leaving unity running in the background. Half-way through the video, windows popped-up saying I'm out of space. It created a 268 GB Editor.log file....
     
  15. Tyrant99

    Tyrant99

    Joined:
    Dec 6, 2018
    Posts:
    4
    Yeah, this seems to be VPN related, at least for me, activating VPN while Unity is running causes huge editor file, 100gigs+. Why can't Unity coexist with VPN services? Lots of people use them.
     
  16. StellarStellar

    StellarStellar

    Joined:
    Jun 1, 2017
    Posts:
    5
  17. Ali_V_Quest

    Ali_V_Quest

    Joined:
    Aug 2, 2015
    Posts:
    138
    I have the same problem with unity 2019.3.14f1 , regarding vpn, I've used tunnel bear extension with chrome before, I can't see how it conflicts with unity
     
  18. Ali_V_Quest

    Ali_V_Quest

    Joined:
    Aug 2, 2015
    Posts:
    138
    two points:

    1. the bug might be caused by a 3rd party plugin that keeps throwing warnings
    I Found one plugin that kept throwing warnings ( a favorites plugin that couldn't find a deleted game object )
    I think this is probably the cause of the issue in my case.


    2. another quick fix that I think worked for me was to set the editor log file to read only ( which should prevent unity from writing anything to it )
     
  19. KillDashNine

    KillDashNine

    Joined:
    Apr 19, 2020
    Posts:
    453
    I have had this issue happen several times now. I can confirm that Editor.log file keeps growing despite the application is not running. It grows until disk is full, at which points evil things happen.

    Yes, I am a NordVPN user. Yes, today it happened and I had used the VPN at some point.

    I would appreciate an editor option for maximum log size. I will however try that -logfile NUL option
     
  20. Ali_V_Quest

    Ali_V_Quest

    Joined:
    Aug 2, 2015
    Posts:
    138
    - Have you checked the warnings in the editor ? ( is there anything that keeps logging warnings or info ? )
    - have you tried setting the log file to read only ?
     
  21. KillDashNine

    KillDashNine

    Joined:
    Apr 19, 2020
    Posts:
    453
    I added the -logfile NUL parameter and problem disappeared. Didn't check the logfile content as I never use it. Thanks anyway.
     
  22. forestrf

    forestrf

    Joined:
    Aug 28, 2010
    Posts:
    231
    This was fixed for me in the latest Unity 2019 version. Now putting the computer to sleep and waking it up doesn't flood the editor.log with errors. Thank you a lot!
     
  23. Ziplock9000

    Ziplock9000

    Joined:
    Jan 26, 2016
    Posts:
    360
    Just looked at mine, 78,000 lines LOL
     
  24. Trindenberg

    Trindenberg

    Joined:
    Dec 3, 2017
    Posts:
    398
    At least its not 100gb lol