Search Unity

65K limit possibly leading to runtime crash using 1.3.0 and 2018.3.7f1

Discussion in 'UGUI & TextMesh Pro' started by NS24, Mar 7, 2019.

  1. NS24

    NS24

    Joined:
    Feb 21, 2018
    Posts:
    15
    Hi Stephan

    In a VR scene with Curved UI I have a TMProUGUI component in a ScrollRect that is set at runtime to a rather large piece of text which exceeds the 65K vertex count.

    This appears to be causing a crash in the Unity Editor and on the Rift as well.

    In the past I was able to set this to the text at design time and while the editor complained, it was able to build/run ok. However doing this at design time seems to be causing a crash.

    Below is a quick summary, and attached is the full log in from the Development Build on Rift.

    Hope you can suggest a way around this.


    kind regards,

    Nalin

    Character with ASCII value of 65533 was not found in the Font Asset Glyph Table. It was replaced by a space.
    UnityEngine.DebugLogHandler:Internal_Log()
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object, Object)
    UnityEngine.Debug:LogWarning(Object, Object)
    TMPro.TextMeshProUGUI:SetArraySizes(Int32[]) (at C:\Users\nalin\Documents\Unity\Spiderman3\Library\PackageCache\com.unity.textmeshpro@1.3.0\Scripts\Runtime\TMPro_UGUI_Private.cs:1304)
    TMPro.TMP_Text_ParseInputText() (at C:\Users\nalin\Documents\Unity\Spiderman3\Library\PackageCache\com.unity.textmeshpro@1.3.0\Scripts\Runtime\TMP_Text.cs:1700)
    TMPro.TextMeshProUGUI:OnPreRenderCanvas() (at C:\Users\nalin\Documents\Unity\Spiderman3\Library\PackageCache\com.unity.textmeshpro@1.3.0\Scripts\Runtime\TMPro_UGUI_Private.cs:1623)
    TMPro.TextMeshProUGUI:Rebuild(CanvasUpdate) (at C:\Users\nalin\Documents\Unity\Spiderman3\Library\PackageCache\com.unity.textmeshpro@1.3.0\Scripts\Runtime\TextMeshProUGUI.cs:209)
    UnityEngine.UI.CanvasUpdateRegistryPerformUpdate() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\CanvasUpdateRegistry.cs:198)
    UnityEngine.Canvas:SendWillRenderCanvases()
    UnityEngine.Canvas:ForceUpdateCanvases()
    UnityEngine.UI.ScrollRect:EnsureLayoutHasRebuilt() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\ScrollRect.cs:606)
    UnityEngine.UI.ScrollRect:LateUpdate() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\ScrollRect.cs:792)
    (Filename: C:/Users/nalin/Documents/Unity/Spiderman3/Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TMPro_UGUI_Private.cs Line: 1304)
    Crash!!!
     

    Attached Files:

    Last edited: Mar 8, 2019