Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Hard editor crash resulting from TMP's GetFallbackMaterial

Discussion in 'UGUI & TextMesh Pro' started by rhys_vdw, Oct 31, 2023.

  1. rhys_vdw

    rhys_vdw

    Joined:
    Mar 9, 2012
    Posts:
    111
    We've started getting editor crashes since updating to 2022.3.11f

    This one is coming from native Unity code, but is via TMP, so reporting here:

    Code (CSharp):
    1. =================================================================
    2.     Native Crash Reporting
    3. =================================================================
    4. Got a UNKNOWN while executing native code. This usually indicates
    5. a fatal error in the mono runtime or one of the native libraries
    6. used by your application.
    7. =================================================================
    8.  
    9. =================================================================
    10.     Managed Stacktrace:
    11. =================================================================
    12.       at <unknown> <0xffffffff>
    13.       at UnityEngine.Material:CreateWithMaterial <0x00094>
    14.       at UnityEngine.Material:.ctor <0x00022>
    15.       at TMPro.TMP_MaterialManager:GetFallbackMaterial <0x001ba>
    16.       at TMPro.TextMeshProUGUI:SetArraySizes <0x019c2>
    17.       at TMPro.TMP_Text:ParseInputText <0x000d5>
    18.       at TMPro.TextMeshProUGUI:OnPreRenderCanvas <0x00182>
    19.       at TMPro.TextMeshProUGUI:Rebuild <0x000da>
    20.       at UnityEngine.UI.CanvasUpdateRegistry:PerformUpdate <0x00580>
    21.       at <Module>:invoke_void <0x000a1>
    22.       at UnityEngine.Canvas:SendWillRenderCanvases <0x0002b>
    23.       at System.Object:runtime_invoke_void <0x00084>
    24. =================================================================
    Full editor log attached.
     

    Attached Files: