Search Unity

TextMesh Pro Assertion failed on expression: 'ins.second || ins.first->second == targetHash || (ins.first->second

Discussion in 'UGUI & TextMesh Pro' started by Hyp-X, Oct 18, 2020.

  1. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    438
    Hi,

    I get the following assert in 2020.1.8f1:
    Code (CSharp):
    1. Assertion failed on expression: 'ins.second || ins.first->second == targetHash || (ins.first->second == CircularDependencyHash() && !targetHash.IsValid()) || GetPathFromAssetGuidV2(key.GetGUID()).ends_with(".cs")'
    2. UnityEditor.AssetDatabase:LoadAssetAtPath(String, Type)
    3. TMPro.EditorUtilities.TMPro_TexturePostProcessor:OnPostprocessTexture(Texture2D) (at Library/PackageCache/com.unity.textmeshpro@3.0.1/Scripts/Editor/TMPro_TexturePostProcessor.cs:14)
    4. UnityEditor.AssetPostprocessingInternal:PostprocessTexture(Texture2D, String)
    5.  
    What does it mean and what should I do about it?
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Are you getting this error while creating a build?

    What are the steps to reproduce this error?
     
  3. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    438
    I got this error in editor.
    I've downloaded some changes from our version control, so I assume some assets are changed.
    I'll see if it reproduces going back to an older version and downloading again.
     
  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    See the following post which includes a solution for that issue.

    The code changes contained in that post will be included in the next release of the TMP package.