Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Flooded with warrings: Empty track found while loading timeline. It will be removed.

Discussion in 'Timeline' started by rulk, May 21, 2020.

  1. rulk

    rulk

    Joined:
    Aug 1, 2015
    Posts:
    13
    Hi, maybe someone knows how to fix this.

    Every time on umity start up I get flooded with warrings:

    Code (CSharp):
    1. Empty track found while loading timeline. It will be removed.
    2. UnityEngine.Timeline.TimelineAsset:__internalAwake() (at Library/PackageCache/com.unity.timeline@1.2.10/Runtime/TimelineAsset.cs:376)
    3.  
    Is there a way to find timelines which casing this?

    We have quite a lot of timelines in our project so preferably some kind of clean up script ?
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    If you are using source control, this might work.

    In the project window, select all timeline assets (t:timelineAsset in the search window will make this easy).
    In the inspector change the frame rate
    Save Project
    Change the frame rate back. (hopefully they all use the same frame rate, if not undo might do the trick)
    Save Project

    The idea is to mark them all as 'dirty' to force Unity to re-save them all...this is the fastest non-scripting way I could think of.

    Check source control for which timelines have actually changed. That will tell you which ones had the error.

    If you commit them to source control, they will no longer spew the error - but this means those timelines have permanently deleted some tracks. However, by knowing which timelines are the cause, it is hopefully obvious why the tracks are not found, and it is safe to permanently remove them.

    For some clarity, this error will only occur if the track cannot be loaded _at all_. It should not be happening if the script can't be loaded - for example if you have a compile error on a custom track. In that case it will just display an error on that track in the timeline editor.