Search Issue Tracker

Active

Planned for 2019.4.X, 2020.3.X, 2021.2.X

Votes

11

Found in

2019.4

2021.2

2021.2.3f1

Issue ID

1382082

Regression

No

Editor crashes on TextCore::FontEngine::GetSystemFontReferencesInternal when opening the project

Text

-

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 ()

Comments (6)

  1. 51d459a8057d0c21f169f344531fd801?d=mm

    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.

  2. 9af028c15d05f4aebae9ddfe9c9a3b05?d=mm

    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 ;)

  3. 3b4e1f6288011bb02232c5dff1ffd6ea?d=mm

    knutmc

    Dec 21, 2021 08:28

    Reproducible with 2021.2.5f1, 2021.2.6f1, 2021.2.7f1.

  4. D8d4e5bd363358c2aec4d2289de9a4ce?d=mm

    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

  5. 42693f73ddc7c424d4f4fc4712e5d278?d=mm

    luoweihong

    Dec 15, 2021 09:22

    hope this bug can fix quickly

  6. Bc555b63ea3b3b7c7721d022685db3fd?d=mm

    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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.