Skip to content

pango: pango crashes on macOS when an emoji is entered into a text field #495186

Description

@aSapien

Nixpkgs version

  • Unstable (26.05)

Describe the bug

Many packages use pango and it is generally stable. However, I've recently hit a branch in pango that resulted in a crash in MacOS.

While my specific use-case involved an Emacs flow and relies on existing database state to reproduce, I found that the bug has been reported and fixed upstream in this issue.

Unfortunately though, there hasn't been a pango release with the fix yet.
Other package managers (i.e Brew) fix the issue by applying the patch in the formula.

Can we take a similar approach and apply the patch in Nixpkgs#pango please?

I'm willing to introduce a the PR.

Steps to reproduce

As per original report:

  • start gtk4-widget-factory
  • select the "Page 3" tab
  • right-click into a text box and select "Insert Emoji"
  • observe that the application crashes with this message:
(gtk4-widget-factory:96563): Pango-WARNING **: 14:14:04.864: couldn't load font "emoji Not-Rotated With-Color 17.279px", modified variant/weight/stretch as fallback, expect ugly output.
(gtk4-widget-factory:96563): Pango-ERROR **: 14:14:04.864: Could not load fallback font, bailing out.
Trace/BPT trap

Expected behaviour

Should not crash

Screenshots

No response

Relevant log output

(gtk4-widget-factory:96563): Pango-WARNING **: 14:14:04.864: couldn't load font "emoji Not-Rotated With-Color 17.279px", modified variant/weight/stretch as fallback, expect ugly output.
(gtk4-widget-factory:96563): Pango-ERROR **: 14:14:04.864: Could not load fallback font, bailing out.
Trace/BPT trap

Additional context

It seems that the underlying issue may somehow correspond to a 2023 report here: #236671

However, the upstream bug report is addressing range of versions released in 2025, therefore I'm not sure whether it will anyhow contribute to it as well.

System metadata

  • system: "aarch64-darwin"
  • host os: Darwin 25.2.0, macOS 26.2
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.33.1
  • nixpkgs: /nix/store/kkx2hzq20ggrwhy385jglnxjncg4lqck-source

Notify maintainers

@7c6f434c @bobby285271 @dasj19 @hedning @jtojnar


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions