[dev] [dwm] Crash with emojis on title bar

From: Igor Fontana <rogi_AT_skylittlesystem.org>
Date: Sat, 10 Feb 2018 16:50:59 -0200

I received an email today which had a emoji on it's subject and every
time I tried to open it, X would crash. It took me some time to figure
out what was crashing X, and it was dwm.

If I try to open some window with this emoji '🏖' (U+1F3D6) on it's
title:

    $ gvim '🏖'

dwm will crash with:

    dwm: fatal error: request code=139, error code=16
    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: 523
      Current serial number in output stream: 538

I tried to just ignore this error on teh XErrorHandler, but it only made
dwm to stay crashed without exiting.

I did some research and other applications are affected. It seems to be
a problem with Xft and google noto fonts.

And there is this guy saying Xft is old and we should migrate to
fontconfig:

https://bugzilla.redhat.com/show_bug.cgi?id=1498269#c1

I could try to make a patch. What do you think?

<3

-- 
Igor
Received on Sat Feb 10 2018 - 19:50:59 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 10 2018 - 20:00:24 CET