Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Crash in TryAddGlyphToTexture_Internal (2021.2.0b7)

Discussion in 'UI Toolkit' started by pawelduda, Aug 18, 2021.

  1. pawelduda

    pawelduda

    Joined:
    Feb 1, 2019
    Posts:
    45
    We run into an error while using font asset set to Multi atlas texture and not set Clear Dynamic Data on Build.

    This is probably related to https://forum.unity.com/threads/crash-in-tmp.987477/

     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    Is the target graphic API Vulkan?

    Can you post a screenshot of the font asset inspector so I can see the Face Info and Generation Settings?
     
  3. pawelduda

    pawelduda

    Joined:
    Feb 1, 2019
    Posts:
    45
    GeForce GTX 1060 6GB so AFAIK it is Vulcan.

    Here:
    upload_2021-8-20_21-56-2.png
     
  4. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    Just for testing purposes, can you switch to OpenGL instead of Vulkan to see if you are experiencing the same crash?
     
  5. ickydime

    ickydime

    Joined:
    Nov 20, 2012
    Posts:
    110
    Also getting a crash on a similar line. We have it set to AutoGraphics and it is crashing in windows.

    It is crashing on one of these hex characters (645 641 636 651 644 )
    Which is ascii مفضّل

    We are just calling TextMeshProUGUI.text = مفضّل
    And boom.

    Unity version 2020.1.17f1

    Error log attached. Going to try OpenGL.

    TextMeshPro version 3.0.4

    Submitted a bug report.
     

    Attached Files:

    Last edited: Jul 1, 2022