On Sat, Feb 10, 2018 at 04:50:59PM -0200, Igor Fontana wrote:
> 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
>
It doesn't sound like a dwm issue, but rather Xft. I won't add more
dependencies to dwm. Rather we should get rid of Xft.
I cannot reproduce the issue on my machine, but there are other reports that
have a similar issue. Feel free to debug it and send a patch.
--
Kind regards,
Hiltjo
Received on Sat Feb 10 2018 - 20:13:27 CET