Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2019.4.X, 2020.3.X, 2021.2.X
Editor crashes on TextCore::FontEngine::GetSystemFontReferencesInternal when opening the project
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
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 ()
Jan 13, 2022 13:31
I solved this issues that copy from other pc's windows fonts folder, and pasted it to my pc.
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 ;)
Dec 21, 2021 08:28
Reproducible with 2021.2.5f1, 2021.2.6f1, 2021.2.7f1.
Dec 15, 2021 11:34
i have the same problem, whatever old projects or create new project in 2021.2.x, it always crashed
Dec 15, 2021 09:22
hope this bug can fix quickly
Dec 14, 2021 19:27
Is it possible to workaround by installing a font? Is there any way to know what font is missing?
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- [VFX Graph] VFX graph is still dark when using Light Mode
- The Rotation of Child GameObject with the Interpolating RigidBody is set to a random number when changing the Rotation of Parent GameObject
- [Shader Graph] Shader graph is still dark when using Light Mode
- [Android] QosService.Instance.GetSortedMultiplayQosResultsAsync crashes Player when it's built
- [Linux][IL2CPP] Player is not killed when using xkill command
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