Reproduction steps:
- Open the attached project “FontCrash.zip“
- Enter Play mode
Expected result: Play mode is entered successfully
Actual result: the Editor crashes
Reproducible with: 2021.3.10f1, 2022.1.17f1, 2022.2.0b8, 2023.1.0a10
Could not test with: 2020.3.39f1 - due to errors in the Console when downgrading the project
Reproduced on: Windows 10 Pro
First few lines of the stack traces:
{{0x00007ff6c178a644 (Unity) FontEngine_CUSTOM_GetFaceInfo_Internal }}
{{0x0000023087551cf1 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.TextCore.LowLevel.FontEngine:GetFaceInfo_Internal (UnityEngine.TextCore.FaceInfo&) }}
{{0x0000023087551a9b (Mono JIT Code) UnityEngine.TextCore.LowLevel.FontEngine:GetFaceInfo () }}
{{0x000002308754dde3 (Mono JIT Code) [TMP_FontAsset.cs:464] TMPro.TMP_FontAsset:CreateFontAsset (UnityEngine.Font,int,int,UnityEngine.TextCore.LowLevel.GlyphRenderMode,int,int,TMPro.AtlasPopulationMode,bool) }}
{{0x000002308754ca93 (Mono JIT Code) [TMP_FontAsset.cs:434] TMPro.TMP_FontAsset:CreateFontAsset (UnityEngine.Font) }}
{{0x00007FFF57F7F039 (Unity) TextCore::FontEngine::GetFaceInfo }}
{{0x00007FFF56C9B439 (Unity) FontEngine_CUSTOM_GetFaceInfo_Internal }}
{{0x0000026EAC0644B1 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.TextCore.LowLevel.FontEngine:GetFaceInfo_Internal (UnityEngine.TextCore.FaceInfo&) }}
{{0x0000026EAC06425B (Mono JIT Code) UnityEngine.TextCore.LowLevel.FontEngine:GetFaceInfo () }}
0x0000026EAC060353 (Mono JIT Code) [C:\Users\AgnieteMargeviciute\Documents\Unity Projects\My project (1)\Library\PackageCache\com.unity.textmeshpro@3.0.6\Scripts\Runtime\TMP_FontAsset.cs:464] TMPro.TMP_FontAsset:CreateFontAsset (UnityEngine.Font,int,int,UnityEngine.TextCore.LowLevel.GlyphRenderMode,int,int,TMPro.AtlasPopulationMode,bool) 8