From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' Date: Fri, 04 Sep 2020 15:22:58 +0300 Message-ID: <83mu25u3x9.fsf@gnu.org> 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> <20b43a48-2aac-032b-8bdf-16dffb25de99@Alexander.Shukaev.name> <87o8mnqayh.fsf@igel.home> <87k0xboupe.fsf@igel.home> <87eeniq5ln.fsf@igel.home> <83ft7yvk0k.fsf@gnu.org> <87a6y6oiju.fsf@igel.home> <83blimvhuv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43177@debbugs.gnu.org, schwab@linux-m68k.org, emacs@Alexander.Shukaev.name To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 04 14:24:18 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 1kEAlN-0009b4-5G for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 14:24:17 +0200 Original-Received: from localhost ([::1]:48052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEAlM-0004qj-4M for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 08:24:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEAl8-0004qQ-Lh for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 08:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEAl8-0002Tr-AQ for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 08:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEAl8-0007q5-7T for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 08:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Sep 2020 12:24:02 +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.159922219930080 (code B ref 43177); Fri, 04 Sep 2020 12:24:02 +0000 Original-Received: (at 43177) by debbugs.gnu.org; 4 Sep 2020 12:23:19 +0000 Original-Received: from localhost ([127.0.0.1]:37742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEAkR-0007p5-0C for submit@debbugs.gnu.org; Fri, 04 Sep 2020 08:23:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEAkP-0007on-6t for 43177@debbugs.gnu.org; Fri, 04 Sep 2020 08:23:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41463) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEAkI-0002Pb-Dx; Fri, 04 Sep 2020 08:23:10 -0400 Original-Received: from [176.228.60.248] (port=2754 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kEAkH-0004It-PX; Fri, 04 Sep 2020 08:23:10 -0400 In-Reply-To: (message from Robert Pluim on Fri, 04 Sep 2020 09:45:37 +0200) 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:187115 Archived-At: > From: Robert Pluim > Cc: Andreas Schwab , 43177@debbugs.gnu.org, > emacs@Alexander.Shukaev.name > Date: Fri, 04 Sep 2020 09:45:37 +0200 > > >> My guess would be that probing fonts via the x backend is expensive due > >> to round trips to the X server (and the X server is quite busy during > >> that time). > > Eli> If that is the reason, I guess we should try to minimize the number of > Eli> fonts for which this is done. Like, for example, set up some data > Eli> structure to be consulted when a deciding whether a given font should > Eli> be used with the x backend. After all, the number of fonts for which > Eli> that backend is needed is quite small, basically bitmapped fonts. > > xfont_supported_scripts already skips opening a font if itʼs for > Japanese or Korean. Perhaps we should add tai-viet to that list? I don't think this would help, because most scripts don't specify language properties like 'ja' or 'ko', which is what xfont_supported_scripts uses. > Perhaps we should flip the default of scalable-fonts-allowed to nil > under GNU/Linux? [1] > (unless the only available font-backend is 'x', which can only happen > if the user explicitly sets it that way)? That'd be backward-incompatible. Besides, I think it's too late. I think we should do this in font.c, where the 'list' method of each font backend is called. There, we should not call the 'x' backend unless the no fonts were found by the backend called before it. This should be controlled by a variable exposed to Lisp, of course. Does that make sense?