GNU bug report logs - #31316
Emacs hangs in `font_open_entity'

Previous Next

Package: emacs;

Reported by: Werner LEMBERG <wl <at> gnu.org>

Date: Mon, 30 Apr 2018 08:14:01 UTC

Severity: normal

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 31316 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Werner LEMBERG <wl <at> gnu.org>
Cc: 31316 <at> debbugs.gnu.org
Subject: Re: bug#31316: Emacs hangs in `font_open_entity'
Date: Sun, 17 Nov 2019 09:23:07 +0100
Werner LEMBERG <wl <at> gnu.org> writes:

> If I call `emacs -Q' and load the attached file `testchar' with
>
>   C-x RET c gb18030 C-x C-f testchar
>
> Emacs hangs in `font_open_entity' on my GNU/Linux box:
>
>   for (psize = pixel_size; ; psize++)
>     {
>       font_object = driver_list->driver->open (f, entity, psize);
>       if (NILP (font_object))
>         return Qnil;
>       font = XFONT_OBJECT (font_object);
>       if (font->average_width > 0 && font->height > 0)
>         break;
>     }
>
> Both `average_width' and `height' are always zero for `font'
> regardless of `psize'; this effectively makes the above code an
> endless loop.

I tried reproducing this with Emacs 27 (on a Debian laptop), and I get
no hangs.  Are you still seeing this problem?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.