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

AnimatorOverrideController trying to produce UnityEditor class ID 1108 (PreviewAssetType)

Discussion in 'Scripting' started by ict_joe, Sep 20, 2019.

  1. ict_joe

    ict_joe

    Joined:
    Aug 25, 2012
    Posts:
    2
    Running into issues interacting with AnimatorController & AnimatorOverrideController objects on builds, Unity reporting
    Could not produce class with ID 1108.


    The code runs, and animations override successfully, but the fact that Unity internally catches the exception and logs the error means an unpreventable expensive stack-trace, stuttering runtime performance (costs 60-100ms on our system).

    Per Unity YAML documentation, something is trying to instantiate a PreviewAssetType, which, according to this thread and this closed issue, is an Editor-only class, sometimes triggered from null-named animation clips – but it is getting triggered over a few other calls:

    Code (CSharp):
    1. E Unity   : Could not produce class with ID 1108.
    2. E Unity   : UnityEngine.RuntimeAnimatorController:get_animationClips()
    3. E Unity   : GetAnimationClipMap(RuntimeAnimatorController)
    Code (CSharp):
    1. E Unity   : Could not produce class with ID 1108.
    2. E Unity   : UnityEngine.AnimatorOverrideController:Internal_SetClip(AnimationClip, AnimationClip, Boolean)
    3. E Unity   : UnityEngine.AnimatorOverrideController:Internal_SetClip(AnimationClip, AnimationClip) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/modules/Animation/AnimatorOverrideControllerBindings.gen.cs:88)
    4. E Unity   : UnityEngine.AnimatorOverrideController:set_Item(AnimationClip, AnimationClip) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/modules/Animation/AnimatorOverrideControllerBindings.gen.cs:72)
    5. AnimatorOverrideController[<AnimationClip>] = <AnimationClip>
    Using Unity 2017.3, running on Android 8. AnimationClips are loaded from AssetBundles successfully (names and types all print out happy).

    This would be a less pressing issue if it is resolved in Unity 2019.2 (I am unable to verify for now). Any suggestions welcomed! Thanks!
     
  2. ict_joe

    ict_joe

    Joined:
    Aug 25, 2012
    Posts:
    2
    Solved!

    As it turns out, the animator somehow got preview-take assets looped in as animator states, which caused this... removing those animator states fixes this issue. Strange how those are add-able, since they aren't especially valid assets.