From unknown Sun Aug 17 01:43:01 2025 X-Loop: don@donarmstrong.com Subject: bug#1076: Looping in redisplay due to font problem Reply-To: Chong Yidong , 1076@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 03 Oct 2008 16:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1076 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122305062931715 (code B ref -1); Fri, 03 Oct 2008 16:25:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.4 required=4.0 tests=AWL,BAYES_00,IMPRONONCABLE_2, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Oct 2008 16:17:09 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m93GH68m031709 for ; Fri, 3 Oct 2008 09:17:07 -0700 Received: from mail.gnu.org ([199.232.76.166]:49417 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KlnIm-0007j8-PT for emacs-pretest-bug@gnu.org; Fri, 03 Oct 2008 12:14:48 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KlnKx-0000tR-IP for emacs-pretest-bug@gnu.org; Fri, 03 Oct 2008 12:17:04 -0400 Received: from cyd.mit.edu ([18.115.2.24]:33527) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KlnKx-0000tF-9K for emacs-pretest-bug@gnu.org; Fri, 03 Oct 2008 12:17:03 -0400 Received: by cyd.mit.edu (Postfix, from userid 1000) id 7728E57E090; Fri, 3 Oct 2008 12:18:18 -0400 (EDT) From: Chong Yidong To: Kenichi Handa Cc: emacs-pretest-bug@gnu.org References: <878wt6a7aq.fsf@cyd.mit.edu> Date: Fri, 03 Oct 2008 12:18:18 -0400 In-Reply-To: (Kenichi Handa's message of "Fri, 03 Oct 2008 10:24:18 +0900") Message-ID: <87vdw91wl1.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Kenichi Handa writes: > That's a very strange phenomenon. But, I can't reproduce > it. When I hit PageDown four times, the top line is "Luxi > Sans:style=Regular", and "Corsivo" appears on the 9th line > (logically 8th line because of continuation). > > In my case, this font is selected for the default case: > > -bitstream-Bitstream Vera Sans > Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 > > Which font is selected in your case? C-u C-x = gives -unknown-DejaVu Sans Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 > And, what does "Emacs begins looping while in redisplay" exactly mean? Emacs is unresponsive to any further input, and the character "o" in "Corsivo" flickers. Interrupting the loop in gdb gives the following backtrace. It seems to be stuck in an Xft function. #0 0x00007f54662e1433 in select () from /lib/libc.so.6 #1 0x00007f546403b2b6 in ?? () from /usr/lib/libxcb.so.1 #2 0x00007f546403b8eb in ?? () from /usr/lib/libxcb.so.1 #3 0x00007f546403c050 in xcb_send_request () from /usr/lib/libxcb.so.1 #4 0x00007f5466e71f1a in _XPutXCBBuffer () from /usr/lib/libX11.so.6 #5 0x00007f5466e72267 in ?? () from /usr/lib/libX11.so.6 #6 0x00007f54650be5a3 in XRenderFillRectangle () from /usr/lib/libXrender.so.1 #7 0x00007f5466c1f5b1 in XftDrawRect () from /usr/lib/libXft.so.2 #8 0x0000000000656080 in xftfont_draw (s=0x7fff725843b0, from=0, to=1, x=100, y=175, with_background=1) at xftfont.c:549 #9 0x00000000004e0268 in x_draw_glyph_string_foreground (s=0x7fff725843b0) at xterm.c:1316 #10 0x00000000004e374c in x_draw_glyph_string (s=0x7fff725843b0) at xterm.c:2708 #11 0x00000000004616f1 in draw_glyphs (w=0x17ec430, x=110, row=0x1f49b20, area=TEXT_AREA, start=7, end=8, hl=DRAW_NORMAL_TEXT, overlaps=0) at xdisp.c:20504 #12 0x0000000000466ec1 in x_write_glyphs (start=0x145f748, len=1) at xdisp.c:21913 #13 0x0000000000418fa4 in update_text_area (w=0x17ec430, vpos=8) at dispnew.c:4584 ...