Maniphest T95367

FreeType Crashing With Slight Hinting on Windows
Closed, ResolvedBUG

Assigned To
Brecht Van Lommel (brecht)
Authored By
Harley Acheson (harley)
Jan 31 2022, 6:03 PM
Tags
  • BF Blender
Subscribers
Brecht Van Lommel (brecht)
Harley Acheson (harley)
Ray Molenkamp (LazyDodo)

Description

System Information
Operating system: Windows only, mac/linux are unaffected.
Graphics card: Irrelevant

Blender Version
Broken: Latest Master + 3.1 (anything that has the freetype 2.11.0 libraries on windows)
Worked: 3.0

Short description of error

Blender crashes when selecting slight hinting in the text rendering user prefs.

Exact steps for others to reproduce the error

Edit / Preferences / Text Rendering / Hinting. Change "Auto" to "Slight" and you get an immediate access violation within FreeType's FT_Load_Glyph function

There is a section of their code where they do this...

if ( FT_ALLOC( metrics, writing_system_class->style_metrics_size ) )
        goto Exit;

But writing_system_class is NULL so it dies.

There is a table that is not being filled correctly due to a compiler quirk that is addressed in 2.11.1

Revisions and Commits

rBL Blender Libraries

Related Objects

Mentioned In
rBb2e43a4a9db3: deps_builder: Update to freetype 2.11.1
T93161: Libraries Changes for Blender 3.1
D13968: deps builder: Update freetype to 2.11.1

Event Timeline

Harley Acheson (harley) changed the task status from Needs Triage to Confirmed.Jan 31 2022, 6:03 PM
Harley Acheson (harley) triaged this task as High priority.
Harley Acheson (harley) created this task.
Ray Molenkamp (LazyDodo) updated the task description.Jan 31 2022, 6:06 PM
Ray Molenkamp (LazyDodo) added a subscriber: Ray Molenkamp (LazyDodo).

freetype tracking ticket : https://gitlab.freedesktop.org/freetype/freetype/-/issues/1075

I've confirmed in freetype 2.11.1 resolves this issue.

Ray Molenkamp (LazyDodo) mentioned this in T93161: Libraries Changes for Blender 3.1.Jan 31 2022, 7:08 PM
Aaron Carlisle (Blendify) changed the subtype of this task from "Report" to "Bug".Feb 1 2022, 11:35 PM
Ray Molenkamp (LazyDodo) mentioned this in rBb2e43a4a9db3: deps_builder: Update to freetype 2.11.1.Feb 4 2022, 5:19 PM
Brecht Van Lommel (brecht) closed this task as Resolved.Feb 15 2022, 2:06 AM
Brecht Van Lommel (brecht) claimed this task.
Brecht Van Lommel (brecht) added a subscriber: Brecht Van Lommel (brecht).

Freetype has been updated on all platforms now.

Brecht Van Lommel (brecht) added a commit: rBL62841: macOS: update freetype to 2.11.1.Feb 15 2022, 2:31 AM