Re: [dev] [st] Crash when displaying these characters

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Tue, 17 Aug 2021 10:02:19 +0200

On Mon, Aug 16, 2021 at 03:34:51PM -0700, Menche wrote:
> On Mon, 16 Aug 2021 21:56:57 +0200
> Robert Alm Nilsson <robert_AT_robalni.org> wrote:
>
> > Hi, when I run this command:
> >
> > printf '\xf0\x9f\x8d\x95'
> >
> > st crashes with this output:
> >
> > X Error of failed request: BadLength (poly request too large or
> > internal Xlib length error)
> > Major opcode of failed request: 139 (RENDER)
> > Minor opcode of failed request: 20 (RenderAddGlyphs)
> > Serial number of failed request: 818
> > Current serial number in output stream: 845
> >
> > It doesn't generate any core dump; it just exits with status 1.
> >
> > Operating system: Debian unstable.
> >
> > Using latest commit on master, which is currently:
> > 2ec571a Add 14th bit to XK_SWITCH_MOD bitmask
> >
>
> That pizza character renders fine on my setup (git master st on
> openbsd). What font are you using? I suspect the other replies are
> referring to st's deliberate lack of support for colored glyphs.
>

st doesn't disable colored glyphs, but dmenu and dwm do apply this ugly
workaround.

It is a bug in Xft as the FAQ mentions.
There are patched Xft library versions that fix the bug also in the meantime.
Some distros are also not affected due to their (proper) font configuration.

> --
> Menche <menche_mt_AT_yahoo.com>
>

-- 
Kind regards,
Hiltjo
Received on Tue Aug 17 2021 - 10:02:19 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 17 2021 - 10:12:08 CEST