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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 31316 <at> debbugs.gnu.org, wl <at> gnu.org
Subject: bug#31316: Emacs hangs in `font_open_entity'
Date: Sun, 17 Nov 2019 17:55:57 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Sun, 17 Nov 2019 09:23:07 +0100
> Cc: 31316 <at> debbugs.gnu.org
> 
> >   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?

The infloop was fixed in commit e2879c1.

There was an additional issue that caused the bug to remain open, but
I think we can close this now.




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.