Skip to content

Editor crashes using the "Noto Color Emoji" font #75490

Closed
@jeroenheijmans

Description

@jeroenheijmans

Godot version

4.0.1.stable.official [cacf499]

System information

Windows 10, OpenGL API 3.3.0 NVIDIA 528.49

Issue description

The editor hard crashes when a specific sequence of actions is done on the Label Settings of a Label control. It seems that selecting only one specific font as a SystemFont the editor crashes. For me it happens with "NotoColorEmoji-Regular.ttf" (version 2.038;GOOG;noto-emoji:20220906:4b1c5bfb0d5b1f5c69aa321d5b6e70656ead1d30) installed in C:\Users\MYUSERNAME\AppData\Local\Microsoft\Windows\Fonts; it might be because only that one font file sits there as the only Noto font file installed system wide, but regardless the Godot Editor should probably not hard-crash when this happens?

Steps to reproduce

Edit: even easier steps

  1. Download https://fonts.google.com/noto/specimen/Noto+Color+Emoji/
  2. Create new project
  3. Drag the .ttf to the Godot window file root
  • Result: the font file name shortly appears in Godot's file explorer before it crashes

Original steps

  1. Create a new project
  2. Add a root Control scene
  3. Add a Label child
  4. Add "New Label Settings" and expand it
  5. Expand the "Font" section, click the "" in the dropdown, pick "New SystemFont"
  6. Click "SystemFont" to expand it
  7. Click "Font Names" value "PackedStringArray (size 0)" to expand it
  8. Pick "+ Add Element" and choose "Courier New"
  9. Pick "+ Add Element" and choose "Noto Color Emoji"
  10. Click the trash icon next to "Courier New" to delete it
  • Result: editor window immediately crashes and closes down

  • Expected: array of font names to go back to 1, or a warning that my operation is not allowed

  • Variant steps: at step 8 (when no fonts are picked yet at all), add "Noto Color Emoji" as the first one

Minimal reproduction project

See steps to reproduce, it happens when starting clean as well.

Hope this helps! Let me know if I can add more details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions