Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2019.4.X, 2020.3.X, 2021.2.X
Votes
14
Found in
2019.4
2021.2
2021.2.3f1
Issue ID
1382082
Regression
No
Editor crashes on TextCore::FontEngine::GetSystemFontReferencesInternal when opening the project
Reproduction steps:
1. Open a project that contains a font with a missing font family and/or style name
Reproducible with: 2021.2.0f1, 2021.2.4f1
Stack trace:
0x00007FF695B50263 (Unity) TextCore::FontEngine::GetSystemFontReferencesInternal
0x00007FF695B519B9 (Unity) TextCore::FontEngine::LoadFontFace
0x00007FF6949F1DA9 (Unity) FontEngine_CUSTOM_LoadFontFace_With_Size_by_FamilyName_and_StyleName_Internal
0x000002E2FB28CA18 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.TextCore.LowLevel.FontEngine:LoadFontFace_With_Size_by_FamilyName_and_StyleName_Internal (string,string,int)
0x000002E2FB28C933 (Mono JIT Code) UnityEngine.TextCore.LowLevel.FontEngine:LoadFontFace (string,string,int)
0x000002E2F858EE43 (Mono JIT Code) UnityEngine.TextCore.Text.FontAsset:LoadFontFace ()
0x000002E2F858EA03 (Mono JIT Code) UnityEngine.TextCore.Text.FontAsset:AddSynthesizedCharactersAndFaceMetrics ()
0x000002E2F858CD33 (Mono JIT Code) UnityEngine.TextCore.Text.FontAsset:ReadFontAssetDefinition ()
0x000002E2F858CC6B (Mono JIT Code) UnityEngine.TextCore.Text.FontAsset:OnValidate ()
-
SangYun_Yi
Jan 13, 2022 13:31
I solved this issues that copy from other pc's windows fonts folder, and pasted it to my pc.
-
Stephan_B
Jan 04, 2022 23:34
A fix for this issue landed in Unity 2022.2.a1 which should be available soon. This fix will be backported to previous versions of Unity but has not landed yet.
In terms of the issue, it is caused by a system font file that has no font family or style name which makes this font file invalid as all font files should have a family and style name. Ie. kind of strange to spend hours designing a font but to not give it a name ;)
A potential short term solution would be to look through the installed / system font files on your system(s) to identify this font file and remove it.
P.S. I would love to get my hands on such font file as I have not been able to find one. It is not possible to create such font file as font editing tools have safeguards / prevent font files from being created without a family or style name. Had to binary edit a font file to replicate this ;)
-
knutmc
Dec 21, 2021 08:28
Reproducible with 2021.2.5f1, 2021.2.6f1, 2021.2.7f1.
-
terry-boss
Dec 15, 2021 11:34
i have the same problem, whatever old projects or create new project in 2021.2.x, it always crashed
-
luoweihong
Dec 15, 2021 09:22
hope this bug can fix quickly
-
GainfulSage
Dec 14, 2021 19:27
Is it possible to workaround by installing a font? Is there any way to know what font is missing?
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
- "Unable to get the list of approved APIs." is thrown when testing the App Packages with Windows App Certification Kit
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0b7
Resolution Note (fix version 2021.2):
Fixed in 2021.2.12f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.28f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.36f1