From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.bugs Subject: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' Date: Thu, 3 Sep 2020 12:24:30 +0200 Message-ID: <20b43a48-2aac-032b-8bdf-16dffb25de99@Alexander.Shukaev.name> References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> <3598262d-b65c-b1b4-310a-29149fd89ebf@Alexander.Shukaev.name> <04c384ac-bfbe-6073-829c-20712053bb1d@Alexander.Shukaev.name> <28ddec32-bee2-e6fd-d572-b09766f2be37@Alexander.Shukaev.name> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20617"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43177@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 03 12:25:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDmQh-0005Hx-Cy for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Sep 2020 12:25:19 +0200 Original-Received: from localhost ([::1]:44080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDmQg-00035g-9H for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Sep 2020 06:25:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDmQT-00035Y-OF for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2020 06:25:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDmQQ-0007kK-Rw for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2020 06:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDmQP-0006wA-Kf for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2020 06:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexander Shukaev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Sep 2020 10:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43177 X-GNU-PR-Package: emacs Original-Received: via spool by 43177-submit@debbugs.gnu.org id=B43177.159912868226622 (code B ref 43177); Thu, 03 Sep 2020 10:25:01 +0000 Original-Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 10:24:42 +0000 Original-Received: from localhost ([127.0.0.1]:33586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDmQ5-0006vK-PN for submit@debbugs.gnu.org; Thu, 03 Sep 2020 06:24:42 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:28611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDmQ3-0006v5-7V for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 06:24:41 -0400 X-Originating-IP: 95.223.75.175 Original-Received: from [192.168.0.190] (ip-95-223-75-175.hsi16.unitymediagroup.de [95.223.75.175]) (Authenticated sender: forum@alexander.shukaev.name) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id CDB4A240006; Thu, 3 Sep 2020 10:24:31 +0000 (UTC) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186998 Archived-At: On 03/09/2020 12:06, Robert Pluim wrote: >>>>>> On Thu, 3 Sep 2020 11:53:05 +0200, Alexander Shukaev said: > > Alexander> On 03/09/2020 11:50, Alexander Shukaev wrote: > >> On 03/09/2020 11:40, Alexander Shukaev wrote: > >>> (gdb) f 7 > >>> #7  0x0000555555a8d875 in xfont_supported_scripts > >>> (display=0x555556594940, fontname=0x55556a79e428 "-misc-trirong > >>> medium-medium-i-normal--0-0-0-0-p-0-iso10646-1", > >>> props=XIL(0x7ffff27926e5), > >>>      encoding=0x7ffff23ab8d0) at xfont.c:266 > >>> 266          xfont = XLoadQueryFont (display, fontname); > >>> (gdb) pp fontname > >>> # > >>> (gdb) pp fontname > >>> # > >>> (gdb) p fontname > >>> $3 = 0x55556a79e428 "-misc-trirong > >>> medium-medium-i-normal--0-0-0-0-p-0-iso10646-1" > >>> (gdb) > >> It appears to always be different `fontname' here as I try multiple > >> times to reproduce.  Maybe it's not really hanging but is merely > >> ultra-slow somehow in looping over the fonts here.  Any ideas? > > Alexander> Hmm, right, waited for about a minute or so, and the file got opened > Alexander> finally. Reopening it was instant as well as if something got > Alexander> cached/loaded already. So any ideas how to speed things up here? I > Alexander> don't think I've encountered that with 26.3... > > You can check easily enough by building emacs-27 --without-cairo, that > should get you back to emacs-26's font handling. > > The issue is: why is Emacs falling back to the 'x' backend? > > Robert > The only related font configurations that I can think of are the following: (defcustom init-font-families '("Powerline Consolas" "Consolas for Powerline" "Consolas" ;; "Powerline Inconsolata-g" "Inconsolata-g for Powerline" "Inconsolata-g" ;; "Powerline Source Code Pro" "Source Code Pro for Powerline" "Source Code Pro" ;; "Powerline DejaVu Sans Mono" "DejaVu Sans Mono for Powerline" "DejaVu Sans Mono" ;; "Monospace") "List of font families." :group 'init :type 'list) (defcustom init-font-size 12 "Size of font." :group 'init :type 'integer) (defun init-frame-font-setup (&optional frame) (unless frame (setq frame (selected-frame))) (with-selected-frame frame (when (and (not noninteractive) (init-display-graphic-p)) (let ((font (assoc 'font default-frame-alist))) (if font (when (eq frame frame-initial-frame) (set-frame-font font t t) (unless noninteractive (message "Font: `%s'" font))) (let ((font-family (catch 'break (dolist (font-family init-font-families) (when (member font-family (font-family-list)) (throw 'break font-family)))))) (setq font (when font-family (format "%s-%d" font-family init-font-size)))) (when font (add-to-list 'default-frame-alist `(font . ,font)) (set-frame-font font t t) (unless noninteractive (message "Font: `%s'" font)))))))) (unless (or noninteractive (daemonp)) (when (init-display-graphic-p) (init-frame-font-setup))) (dolist (hook '(after-make-frame-functions focus-in-hook)) (add-hook hook #'init-frame-font-setup)) With what I consistently get output Font: ‘Consolas-12’ for several years already on various Linux systems that I'm using so far.