From unknown Fri Jun 20 07:14:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#43177 <43177@debbugs.gnu.org> To: bug#43177 <43177@debbugs.gnu.org> Subject: Status: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' Reply-To: bug#43177 <43177@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:14:01 +0000 retitle 43177 Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' fro= m '/usr/lib/libfontconfig.so.1' reassign 43177 emacs submitter 43177 Alexander Shukaev severity 43177 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 03:19:05 2020 Received: (at submit) by debbugs.gnu.org; 3 Sep 2020 07:19:05 +0000 Received: from localhost ([127.0.0.1]:33313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDjWT-0008PS-2t for submit@debbugs.gnu.org; Thu, 03 Sep 2020 03:19:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:41380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDjWQ-0008PC-0X for submit@debbugs.gnu.org; Thu, 03 Sep 2020 03:19:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDjWP-0000bN-QR for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2020 03:19:01 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:36403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDjWN-0000oa-4h for bug-gnu-emacs@gnu.org; Thu, 03 Sep 2020 03:19:01 -0400 X-Originating-IP: 95.223.75.175 Received: from [192.168.0.61] (ip-95-223-75-175.hsi16.unitymediagroup.de [95.223.75.175]) (Authenticated sender: forum@alexander.shukaev.name) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 690671BF20F for ; Thu, 3 Sep 2020 07:18:53 +0000 (UTC) From: Alexander Shukaev Subject: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' To: bug-gnu-emacs@gnu.org Message-ID: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> Date: Thu, 3 Sep 2020 09:18:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=217.70.183.201; envelope-from=emacs@Alexander.Shukaev.name; helo=relay8-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/03 03:18:54 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, With latest Emacs, I have a sporadic hang issue when either opening a file or scrolling a buffer. The best part is that it's impossible to get break back to evaluation loop of Emacs even with 'USR2' signal. That is when 'USR2' is sent, it does show "Entering debugger...", though it remains frozen afterwards. Resending 'USR2' leads to the same outcome. One thing is for certain, every time 'USR2' is sent into such a hang, the stack traceback leads to `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1': Thread 1 "emacs" received signal SIGUSR2, User defined signal 2. 0x00007ffff60f8211 in FcCharSetSubtractCount () from /usr/lib/libfontconfig.so.1 (gdb) bt #0 0x00007ffff60f8211 in FcCharSetSubtractCount () at /usr/lib/libfontconfig.so.1 #1 0x00007ffff61057df in () at /usr/lib/libfontconfig.so.1 #2 0x00007ffff6105c05 in () at /usr/lib/libfontconfig.so.1 #3 0x00007ffff6105fa7 in () at /usr/lib/libfontconfig.so.1 #4 0x00007ffff61060b4 in () at /usr/lib/libfontconfig.so.1 #5 0x00007ffff6106ef8 in FcFontMatch () at /usr/lib/libfontconfig.so.1 #6 0x00005555558e523c in ftcrfont_open (f=0x5555563d5f50, entity=..., pixel_size=15) at ftcrfont.c:137 #7 0x00005555558466c8 in font_open_entity (f=0x5555563d5f50, entity=..., pixel_size=13) at font.c:2913 #8 0x0000555555848372 in font_open_for_lface (f=0x5555563d5f50, entity=..., attrs=0x55555cd757d0, spec=...) at font.c:3350 #9 0x00005555558eaf63 in fontset_find_font (fontset=..., c=25253, face=0x55555cd757d0, charset_id=-1, fallback=true) at fontset.c:713 #10 0x00005555558eb632 in fontset_font (fontset=..., c=25253, face=0x55555cd757d0, id=-1) at fontset.c:806 #11 0x00005555558ec00b in face_for_char (f=0x5555563d5f50, face=0x55555cd757d0, c=25253, pos=257429, object=...) at fontset.c:996 #12 0x00005555555bd121 in FACE_FOR_CHAR (f=0x5555563d5f50, face=0x55555cd757d0, character=25253, pos=257429, object=...) at dispextern.h:1882 #13 0x00005555555db943 in get_next_display_element (it=0x7ffffffe5290) at xdisp.c:7753 #14 0x00005555555df551 in move_it_in_display_line_to (it=0x7ffffffe5290, to_charpos=-1, to_x=-1, op=(unknown: 0)) at xdisp.c:9244 #15 0x00005555555e291d in move_it_to (it=0x7ffffffe5290, to_charpos=-1, to_x=-1, to_y=-1, to_vpos=1, op=4) at xdisp.c:9853 #16 0x00005555555e4157 in move_it_by_lines (it=0x7ffffffe5290, dvpos=1) at xdisp.c:10386 #17 0x00005555555c1484 in line_bottom_y (it=0x7ffffffe5290) at xdisp.c:1451 #18 0x00005555555c257e in pos_visible_p (w=0x5555563d6190, charpos=257337, x=0x7ffffffe9f3c, y=0x7ffffffe9f38, rtop=0x7ffffffe9f4c, rbot=0x7ffffffe9f48, rowh=0x7ffffffe9f44, vpos=0x7ffffffe9f40) at xdisp.c:1753 #19 0x000055555564e225 in Fpos_visible_in_window_p (pos=..., window=..., partially=...) at window.c:1910 #20 0x0000555555756d97 in Fposn_at_point (pos=..., window=...) at keyboard.c:11249 #21 0x000055555582158d in funcall_subr (subr=0x555555de5c20 , numargs=2, args=0x7ffffffea1a8) at eval.c:2870 --Type for more, q to quit, c to continue without paging-- #22 0x0000555555820fc9 in Ffuncall (nargs=3, args=0x7ffffffea1a0) at eval.c:2795 #23 0x000055555587d61a in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=1, args=0x7ffffffea858) at bytecode.c:632 #24 0x0000555555821815 in fetch_and_exec_byte_code (fun=..., syms_left=..., nargs=1, args=0x7ffffffea850) at eval.c:2917 #25 0x0000555555821cce in funcall_lambda (fun=..., nargs=1, arg_vector=0x7ffffffea850) at eval.c:2998 #26 0x000055555582100d in Ffuncall (nargs=2, args=0x7ffffffea848) at eval.c:2797 #27 0x000055555587d61a in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=2, args=0x7ffffffeae08) at bytecode.c:632 #28 0x0000555555821815 in fetch_and_exec_byte_code (fun=..., syms_left=..., nargs=2, args=0x7ffffffeadf8) at eval.c:2917 #29 0x0000555555821cce in funcall_lambda (fun=..., nargs=2, arg_vector=0x7ffffffeadf8) at eval.c:2998 #30 0x000055555582100d in Ffuncall (nargs=3, args=0x7ffffffeadf0) at eval.c:2797 #31 0x000055555587d61a in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=2, args=0x7ffffffeb348) at bytecode.c:632 #32 0x0000555555821815 in fetch_and_exec_byte_code (fun=..., syms_left=..., nargs=2, args=0x7ffffffeb338) at eval.c:2917 #33 0x0000555555821cce in funcall_lambda (fun=..., nargs=2, arg_vector=0x7ffffffeb338) at eval.c:2998 #34 0x000055555582100d in Ffuncall (nargs=3, args=0x7ffffffeb330) at eval.c:2797 #35 0x000055555587d61a in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=2, args=0x7ffffffeb908) at bytecode.c:632 #36 0x0000555555821815 in fetch_and_exec_byte_code (fun=..., syms_left=..., nargs=2, args=0x7ffffffeb8f8) at eval.c:2917 #37 0x0000555555821cce in funcall_lambda (fun=..., nargs=2, arg_vector=0x7ffffffeb8f8) at eval.c:2998 #38 0x000055555582100d in Ffuncall (nargs=3, args=0x7ffffffeb8f0) at eval.c:2797 #39 0x000055555587d61a in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=2, args=0x7ffffffebf78) at bytecode.c:632 #40 0x0000555555821815 in fetch_and_exec_byte_code (fun=..., syms_left=..., nargs=2, args=0x7ffffffebf78) at eval.c:2917 #41 0x0000555555821cce in funcall_lambda (fun=..., nargs=2, arg_vector=0x7ffffffebf78) at eval.c:2998 --Type for more, q to quit, c to continue without paging-- #42 0x000055555582100d in Ffuncall (nargs=3, args=0x7ffffffebf70) at eval.c:2797 #43 0x0000555555820069 in Fapply (nargs=2, args=0x7ffffffec020) at eval.c:2425 #44 0x000055555582075e in apply1 (fn=..., arg=...) at eval.c:2641 #45 0x00005555558194bf in call_debugger (arg=...) at eval.c:339 #46 0x000055555581dde8 in maybe_call_debugger (conditions=..., sig=..., data=...) at eval.c:1831 #47 0x000055555581d689 in signal_or_quit (error_symbol=..., data=..., keyboard_quit=true) at eval.c:1667 #48 0x000055555581d350 in quit () at eval.c:1577 #49 0x000055555581d23b in process_quit_flag () at eval.c:1524 #50 0x000055555581d281 in maybe_quit () at eval.c:1544 #51 0x000055555582df32 in Fassq (key=..., alist=...) at fns.c:1609 #52 0x00005555556ae6ad in uniprop_table (prop=...) at chartab.c:1284 #53 0x00005555557af2aa in prepare_casing_context (ctx=0x7ffffffec320, flag=CASE_UP, inbuffer=false) at casefiddle.c:72 #54 0x00005555557afac6 in casify_object (flag=CASE_UP, obj=...) at casefiddle.c:326 #55 0x00005555557afb9d in Fupcase (obj=...) at casefiddle.c:349 #56 0x000055555582a190 in Fcompare_strings (str1=..., start1=..., end1=..., str2=..., start2=..., end2=..., ignore_case=...) at fns.c:320 #57 0x00005555557966f2 in Fassoc_string (key=..., list=..., case_fold=...) at minibuf.c:1855 #58 0x0000555555847bbb in font_find_for_lface (f=0x5555563d5f50, attrs=0x55555cd757d0, spec=..., c=-1) at font.c:3250 #59 0x00005555558ead1e in fontset_find_font (fontset=..., c=25253, face=0x55555cd757d0, charset_id=-1, fallback=true) at fontset.c:660 #60 0x00005555558eb632 in fontset_font (fontset=..., c=25253, face=0x55555cd757d0, id=-1) at fontset.c:806 #61 0x00005555558ec00b in face_for_char (f=0x5555563d5f50, face=0x55555cd757d0, c=25253, pos=257429, object=...) at fontset.c:996 #62 0x00005555555bd121 in FACE_FOR_CHAR (f=0x5555563d5f50, face=0x55555cd757d0, character=25253, pos=257429, object=...) at dispextern.h:1882 #63 0x00005555555db943 in get_next_display_element (it=0x7fffffff5160) at xdisp.c:7753 #64 0x00005555555df551 in move_it_in_display_line_to (it=0x7fffffff5160, to_charpos=-1, to_x=-1, op=(unknown: 0)) at xdisp.c:9244 #65 0x00005555555e291d in move_it_to (it=0x7fffffff5160, to_charpos=-1, to_x=-1, to--Type for more, q to quit, c to continue without paging-- _y=-1, to_vpos=1, op=4) at xdisp.c:9853 #66 0x00005555555e4157 in move_it_by_lines (it=0x7fffffff5160, dvpos=1) at xdisp.c:10386 #67 0x00005555555c1484 in line_bottom_y (it=0x7fffffff5160) at xdisp.c:1451 #68 0x00005555555c257e in pos_visible_p (w=0x5555563d6190, charpos=257337, x=0x7fffffff9e20, y=0x7fffffff9e1c, rtop=0x7fffffff9e18, rbot=0x7fffffff9e14, rowh=0x7fffffff9e10, vpos=0x7fffffff9e0c) at xdisp.c:1753 #69 0x0000555555658633 in window_scroll_pixel_based (window=..., n=1, whole=true, noerror=false) at window.c:5549 #70 0x00005555556582ec in window_scroll (window=..., n=1, whole=true, noerror=false) at window.c:5471 #71 0x000055555565b461 in scroll_command (window=..., n=..., direction=1) at window.c:6177 #72 0x000055555565b5c8 in Fscroll_up (arg=...) at window.c:6204 #73 0x0000555555821569 in funcall_subr (subr=0x555555de1960 , numargs=1, args=0x7fffffffc718) at eval.c:2868 #74 0x0000555555820fc9 in Ffuncall (nargs=2, args=0x7fffffffc710) at eval.c:2795 #75 0x000055555587d61a in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=1, args=0x7fffffffcd28) at bytecode.c:632 #76 0x0000555555821815 in fetch_and_exec_byte_code (fun=..., syms_left=..., nargs=1, args=0x7fffffffcd20) at eval.c:2917 #77 0x0000555555821cce in funcall_lambda (fun=..., nargs=1, arg_vector=0x7fffffffcd20) at eval.c:2998 #78 0x000055555582100d in Ffuncall (nargs=2, args=0x7fffffffcd18) at eval.c:2797 #79 0x0000555555814e31 in Ffuncall_interactively (nargs=2, args=0x7fffffffcd18) at callint.c:253 #80 0x000055555582143b in funcall_subr (subr=0x555555dec8e0 , numargs=2, args=0x7fffffffcd18) at eval.c:2848 #81 0x0000555555820fc9 in Ffuncall (nargs=3, args=0x7fffffffcd10) at eval.c:2795 #82 0x000055555581760c in Fcall_interactively (function=..., record_flag=..., keys=...) at callint.c:779 #83 0x00005555558215bc in funcall_subr (subr=0x555555dec920 , numargs=3, args=0x7fffffffd0b0) at eval.c:2873 #84 0x0000555555820fc9 in Ffuncall (nargs=4, args=0x7fffffffd0a8) at eval.c:2795 #85 0x000055555587d61a in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=1, args=0x7fffffffd600) at bytecode.c:632 #86 0x0000555555821815 in fetch_and_exec_byte_code (fun=..., syms_left=..., nargs=1, args=0x7fffffff--Type for more, q to quit, c to continue without paging-- d5f8) at eval.c:2917 #87 0x0000555555821cce in funcall_lambda (fun=..., nargs=1, arg_vector=0x7fffffffd5f8) at eval.c:2998 #88 0x000055555582100d in Ffuncall (nargs=2, args=0x7fffffffd5f0) at eval.c:2797 #89 0x00005555558207d8 in call1 (fn=..., arg1=...) at eval.c:2655 #90 0x000055555573b7f3 in command_loop_1 () at keyboard.c:1463 #91 0x000055555581cc20 in internal_condition_case (bfun=0x55555573af39 , handlers=..., hfun=0x55555573a516 ) at eval.c:1356 #92 0x000055555573ab17 in command_loop_2 (ignore=...) at keyboard.c:1091 #93 0x000055555581c045 in internal_catch (tag=..., func=0x55555573aaea , arg=...) at eval.c:1117 #94 0x000055555573aab6 in command_loop () at keyboard.c:1070 #95 0x0000555555739ff9 in recursive_edit_1 () at keyboard.c:714 #96 0x000055555573a1f5 in Frecursive_edit () at keyboard.c:786 #97 0x0000555555735f3a in main (argc=1, argv=0x7fffffffdae8) at emacs.c:2047 The package for 'fontconfig' is local/fontconfig 2:2.13.91+48+gfcb0420-2 Library for configuring and customizing font access For me, it's definitely a blocker for an upgrade to this new Emacs. Maybe the issue is with 'fontconfig', in any case, would be nice to understand what's happening here. Please, advise. Kind regards, Alexander From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 03:28:36 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 07:28:36 +0000 Received: from localhost ([127.0.0.1]:33346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDjff-0000F8-Sv for submit@debbugs.gnu.org; Thu, 03 Sep 2020 03:28:36 -0400 Received: from mail-wm1-f48.google.com ([209.85.128.48]:35864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDjfb-0000Es-P3 for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 03:28:35 -0400 Received: by mail-wm1-f48.google.com with SMTP id z9so1806398wmk.1 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 00:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=RdWUknsplwpdL1Ju828UtUMBKv4MftFzbpK0Bk+GJOU=; b=saKfuZ4BeHXt5iwmSmRgJc6L0vhH1j2jm6fQH/NbEsRTLlEiD0uasA8HrlJVuKaKcA ny8fn+PRqapr/YkQcRvkNfrrk4PhPecY6R9mEttAi0WRdKljTgLRqjeXnIRPhEU7RIT9 k6pnguho8NssoPClr4sQfHQjka1kRIGzoWNIRscqJksoTAYpPDgiKMoW9yj9rBvhkhpq rsNsHYq4TVmjtjZ1wOm7UmMyMjO2Nv6Hu4ar9Py/2nF4EZlXFXZZRNyz+UL0/tx0lc9u wMKsbEA5xEvbUECMoUFag67sET2Mc1dURWt/B21QEeSLcYBCqNstYYEGdCOrXQSAAZMK 4qyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=RdWUknsplwpdL1Ju828UtUMBKv4MftFzbpK0Bk+GJOU=; b=hioAfmknP8ehhTD91h1vfKfp8qKHHSPf5Gypkn1UDfZaYsMUZmJC3+5trnPhfRJYkX ZkDdOoP2TvEdhWSkZJmdO2ZGbGcXUo6bxscOMHXKUIWl+QNSK/LBLUOAhYEcJF8Xr0MG gj5RZM5tqIXFcHor61ZVdx9PMGO/UtkhsJkF4J+DgW0/5UcGx6D7xy7SiFFI1Y/PLo2A l3nAnvht5gBJBHdpR9dRgXGEzcLHS88yfOjr0xlQvxkc+Fp8NZBsuknWbrqU/MK6Cjhr hybpJDjBnTrSRFTABMpNpKQ27psE7bN8DNObTiL3SMYPDnFRmNSjsxg+YOUoxqlbvG3A FKCQ== X-Gm-Message-State: AOAM531xuIKMzWHsA4Xv/wV0njo82QJ/Q4+4GzewrbY0+81fT7+nvjks fZZsEvPR7Dr6QEFJ85iLWvwF03FHtHo= X-Google-Smtp-Source: ABdhPJz1C7htFvSqYfrAYwhKFrz4XOCziQtnLAlEzB8WWScmJdG6U/8S5dPjFFuk+qel7yWzdeSprg== X-Received: by 2002:a7b:c387:: with SMTP id s7mr949808wmj.171.1599118104910; Thu, 03 Sep 2020 00:28:24 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id p14sm3205805wrg.96.2020.09.03.00.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 00:28:24 -0700 (PDT) From: Robert Pluim To: Alexander Shukaev Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> Date: Thu, 03 Sep 2020 09:28:23 +0200 In-Reply-To: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> (Alexander Shukaev's message of "Thu, 3 Sep 2020 09:18:53 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 3 Sep 2020 09:18:53 +0200, Alexander Shukaev said: Alexander> Hi, Alexander> With latest Emacs, I have a sporadic hang issue when either = opening a Alexander> file or scrolling a buffer. The best part is that it's impo= ssible to Alexander> get break back to evaluation loop of Emacs even with 'USR2' Alexander> signal. That is when 'USR2' is sent, it does show "Entering Alexander> debugger...", though it remains frozen afterwards. Resendin= g 'USR2' Alexander> leads to the same outcome. One thing is for certain, every = time Alexander> 'USR2' is sent into such a hang, the stack traceback leads to Alexander> `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1': If you've still got this in gdb, can you go to frame #6 and do pp entity (this is assuming you've sourced the .gdbinit in src/) That will tell us which font we=CA=BCre trying to open. Perhaps it=CA=BCs a= bad font or fontconfig configuration. Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 03:30:33 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 07:30:33 +0000 Received: from localhost ([127.0.0.1]:33353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDjhZ-0000oY-9i for submit@debbugs.gnu.org; Thu, 03 Sep 2020 03:30:33 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:55325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDjhX-0000gZ-2Z for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 03:30:31 -0400 X-Originating-IP: 95.223.75.175 Received: from [192.168.0.61] (ip-95-223-75-175.hsi16.unitymediagroup.de [95.223.75.175]) (Authenticated sender: forum@alexander.shukaev.name) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 3FEE6C000B for <43177@debbugs.gnu.org>; Thu, 3 Sep 2020 07:30:23 +0000 (UTC) Subject: Re: bug#43177: Acknowledgement (Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1') To: 43177@debbugs.gnu.org References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> From: Alexander Shukaev Message-ID: <22fe6681-6c4e-774d-316b-688670564b6f@Alexander.Shukaev.name> Date: Thu, 3 Sep 2020 09:30:23 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Here is also a cleaner stack traceback, where I didn't issue 'USR2' multiple times, but only one time: Thread 1 "emacs" received signal SIGUSR2, User defined signal 2. 0x00007ffff6107823 in ?? () from /usr/lib/libfontconfig.so.1 (gdb) bt #0 0x00007ffff6107823 in () at /usr/lib/libfontconfig.so.1 #1 0x00007ffff61079b5 in () at /usr/lib/libfontconfig.so.1 #2 0x00007ffff6107cc2 in () at /usr/lib/libfontconfig.so.1 #3 0x00007ffff6107dee in () at /usr/lib/libfontconfig.so.1 #4 0x00007ffff6108b82 in FcFontMatch () at /usr/lib/libfontconfig.so.1 #5 0x00005555558e523c in ftcrfont_open (f=0x5555564cfb40, entity=..., pixel_size=18) at ftcrfont.c:137 #6 0x00005555558466c8 in font_open_entity (f=0x5555564cfb40, entity=..., pixel_size=13) at font.c:2913 #7 0x0000555555848372 in font_open_for_lface (f=0x5555564cfb40, entity=..., attrs=0x555556114b80, spec=...) at font.c:3350 #8 0x00005555558ead90 in fontset_find_font (fontset=..., c=30693, face=0x555556114b80, charset_id=-1, fallback=false) at fontset.c:668 #9 0x00005555558eb440 in fontset_font (fontset=..., c=30693, face=0x555556114b80, id=-1) at fontset.c:782 #10 0x00005555558ec00b in face_for_char (f=0x5555564cfb40, face=0x555556114b80, c=30693, pos=257426, object=...) at fontset.c:996 #11 0x00005555555bd121 in FACE_FOR_CHAR (f=0x5555564cfb40, face=0x555556114b80, character=30693, pos=257426, object=...) at dispextern.h:1882 #12 0x00005555555db943 in get_next_display_element (it=0x7fffffff80c0) at xdisp.c:7753 #13 0x0000555555610bda in display_line (it=0x7fffffff80c0, cursor_vpos=1) at xdisp.c:23350 #14 0x0000555555601099 in try_window (window=..., pos=..., flags=0) at xdisp.c:19297 #15 0x00005555555fcc94 in redisplay_window (window=..., just_this_one_p=false) at xdisp.c:18448 #16 0x00005555555f4f38 in redisplay_window_0 (window=...) at xdisp.c:16429 #17 0x000055555581ccff in internal_condition_case_1 (bfun=0x5555555f4ef6 , arg=..., handlers=..., hfun=0x5555555f4ebe ) at eval.c:1380 #18 0x00005555555f4e92 in redisplay_windows (window=...) at xdisp.c:16409 #19 0x00005555555f4e44 in redisplay_windows (window=...) at xdisp.c:16403 #20 0x00005555555f37c4 in redisplay_internal () at xdisp.c:15877 #21 0x00005555555f1158 in redisplay () at xdisp.c:15099 #22 0x000055555573f13d in read_char (commandflag=1, map=..., prev_event=..., used_mouse_menu=0x7fffffffd47d, end_time=0x0) at keyboard.c:2493 #23 0x0000555555752a81 in read_key_sequence (keybuf=0x7fffffffd660, prompt=..., dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9547 #24 0x000055555573b3d6 in command_loop_1 () at keyboard.c:1350 #25 0x000055555581cc20 in internal_condition_case (bfun=0x55555573af39 , handlers=..., hfun=0x55555573a516 ) at eval.c:1356 #26 0x000055555573ab17 in command_loop_2 (ignore=...) at keyboard.c:1091 #27 0x000055555581c045 in internal_catch (tag=..., func=0x55555573aaea , arg=...) at eval.c:1117 #28 0x000055555573aab6 in command_loop () at keyboard.c:1070 #29 0x0000555555739ff9 in recursive_edit_1 () at keyboard.c:714 #30 0x000055555573a1f5 in Frecursive_edit () at keyboard.c:786 #31 0x0000555555735f3a in main (argc=1, argv=0x7fffffffdae8) at emacs.c:2047 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 03:42:46 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 07:42:46 +0000 Received: from localhost ([127.0.0.1]:33358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDjtO-0002qK-FT for submit@debbugs.gnu.org; Thu, 03 Sep 2020 03:42:46 -0400 Received: from mail-ot1-f53.google.com ([209.85.210.53]:37293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDjtM-0002q4-92 for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 03:42:45 -0400 Received: by mail-ot1-f53.google.com with SMTP id 37so1848169oto.4 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 00:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Y9W+RjHdd8fMUgE+ylAVdJnurOR4JLnGGjN05JDXsak=; b=KcrI1hpExwLsoPP95L53lnj8q9AFIsSwKdsdk/655xcEwJmSp4bIovDNXMZxbnnq82 LbedFQafbnSBGlz42Fx7lZqMZbJI0LylywSjdLwxo6J7qu8HgoMIjKF9xWBc71aNwlHd 9LYmkE/boAZ42HWq10+i81p7zeP+zG8SJHdSns1OwU5IWamhWCoq3udHzpGvUp3X20Nq Tk6TkFqyZq5hMwZLMQPkUSphwAhjfFDfbpziLmFCCZWLMLFdoBAXfi7G3uNBfYGgleRe KY5ZyvLwkg/0kHeD84ka1oUv90clrSl88DOFA/in15owcsWPAjilHFPJgUSL4HUGR6RM Q8Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Y9W+RjHdd8fMUgE+ylAVdJnurOR4JLnGGjN05JDXsak=; b=UIigltYMcNDgGXcM/6dMf5t7r9VZIIUGBzdbCRXKrIA+jkyb6UviilWe4drFaHapNy SHzRrpiqIpZT/P3JTJq8CYVQQhY3CNAMCdGAGqKu6fr3PzHfqZtNl1fesXWoAbsrPF35 pVJ+Sv6OfuXY5R8LdZKAaBneo75Lly8AXtWNh7S6GMD4bBe8voOWUqWp7jhniX0+YTSR YGXZOvfLktcL+2kPW9Pi5nus9Zc6GFijVjvIGLFahopZSP9bMfBfeZpCcob2NpM/2uIC kCyc0Jbe60CHIPUM1eoioJ94BC1/PD4hfqU+jCqCf6rKO5vpDefTo+Q0IfmLSndOT0oF +yXg== X-Gm-Message-State: AOAM531f+Czi3Vda/4acOAUz01+MUxQifsVFfA7WQf6IvrXwhIg1ES/h VSISgPEXhu2JcgHyucZc7EYEUcY47VKpW2KCWHk= X-Google-Smtp-Source: ABdhPJzkccMnPjLjXFB8jwbQ6vPm89LQ+N7R3EXM7woCDjp0yl2fiJld2kYjMuOCXyHRIBeWkoEhYUG8eawc5S3iP14= X-Received: by 2002:a9d:2c43:: with SMTP id f61mr740026otb.154.1599118958580; Thu, 03 Sep 2020 00:42:38 -0700 (PDT) MIME-Version: 1.0 References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> In-Reply-To: From: Pip Cet Date: Thu, 3 Sep 2020 07:42:01 +0000 Message-ID: Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' To: Robert Pluim Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, Alexander Shukaev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, Sep 3, 2020 at 7:33 AM Robert Pluim wrote: > > >>>>> On Thu, 3 Sep 2020 09:18:53 +0200, Alexander Shukaev said: > > Alexander> Hi, > Alexander> With latest Emacs, I have a sporadic hang issue when eithe= r opening a > Alexander> file or scrolling a buffer. The best part is that it's im= possible to > Alexander> get break back to evaluation loop of Emacs even with 'USR2= ' > Alexander> signal. That is when 'USR2' is sent, it does show "Enterin= g > Alexander> debugger...", though it remains frozen afterwards. Resend= ing 'USR2' > Alexander> leads to the same outcome. One thing is for certain, ever= y time > Alexander> 'USR2' is sent into such a hang, the stack traceback leads= to > Alexander> `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1= ': > > If you've still got this in gdb, can you go to frame #6 and do > > pp entity > > (this is assuming you've sourced the .gdbinit in src/) > > That will tell us which font we=CA=BCre trying to open. Perhaps it=CA=BCs= a bad > font or fontconfig configuration. Is this bug #40733, maybe? https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40733 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 04:43:19 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 08:43:19 +0000 Received: from localhost ([127.0.0.1]:33410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDkpy-0004MN-Up for submit@debbugs.gnu.org; Thu, 03 Sep 2020 04:43:19 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:33557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDkpx-0004MA-Dk for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 04:43:18 -0400 X-Originating-IP: 95.223.75.175 Received: from [192.168.0.61] (ip-95-223-75-175.hsi16.unitymediagroup.de [95.223.75.175]) (Authenticated sender: forum@alexander.shukaev.name) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id A3AA31C0006 for <43177@debbugs.gnu.org>; Thu, 3 Sep 2020 08:43:10 +0000 (UTC) Subject: Re: bug#43177: Acknowledgement (Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1') To: 43177@debbugs.gnu.org References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> From: Alexander Shukaev Message-ID: <722bca80-de04-910b-7427-70f114b9cc82@Alexander.Shukaev.name> Date: Thu, 3 Sep 2020 10:43:09 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is another stack when I open a file and it hangs, then I send 'ABRT': Thread 1 "emacs" received signal SIGABRT, Aborted. 0x00007ffff5c0646f in poll () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007ffff5c0646f in poll () at /usr/lib/libc.so.6 #1 0x00007ffff6e2c7b4 in () at /usr/lib/libxcb.so.1 #2 0x00007ffff6e2cb31 in () at /usr/lib/libxcb.so.1 #3 0x00007ffff6e2a8c7 in () at /usr/lib/libxcb.so.1 #4 0x00007ffff6e2c08f in () at /usr/lib/libxcb.so.1 #5 0x00007ffff6e2c203 in xcb_wait_for_reply64 () at /usr/lib/libxcb.so.1 #6 0x00007ffff6e904b9 in _XReply () at /usr/lib/libX11.so.6 #7 0x00007ffff6e71e71 in () at /usr/lib/libX11.so.6 #8 0x00007ffff6e7254e in XLoadQueryFont () at /usr/lib/libX11.so.6 #9 0x0000555555a8d875 in xfont_supported_scripts (display=0x555556594940, fontname=0x555564f03ae2 "-misc-cormorant garamond-medium-i-normal--0-0-0-0-p-0-iso10646-1", props=XIL(0x7ffff27926e5), encoding=0x7ffff23ab8d0) at xfont.c:266 #10 0x0000555555a8e5eb in xfont_list_pattern (display=0x555556594940, pattern=0x7fffffff6450 "-*-*-*-*-*-*-*-*-*-*-*-*-iso10646-1", registry=XIL(0x84c0), script=XIL(0x2aaa9c470db0)) at xfont.c:441 #11 0x0000555555a8e94d in xfont_list (f=0x5555564db330, spec=XIL(0x7ffff2794475)) at xfont.c:486 #12 0x0000555555983724 in font_list_entities (f=0x5555564db330, spec=XIL(0x555564e94e75)) at font.c:2794 #13 0x000055555598588c in font_find_for_lface (f=0x5555564db330, attrs=0x555564a240b0, spec=XIL(0x55555688e725), c=-1) at font.c:3285 #14 0x0000555555ab4a23 in fontset_find_font (fontset=XIL(0x555564e945c5), c=43695, face=0x555564a240b0, charset_id=-1, fallback=false) at fontset.c:661 #15 0x0000555555ab514f in fontset_font (fontset=XIL(0x555564e93b45), c=43695, face=0x555564a240b0, id=-1) at fontset.c:783 #16 0x0000555555ab5cff in face_for_char (f=0x5555564db330, face=0x555564a240b0, c=43695, pos=38, object=XIL(0)) at fontset.c:997 #17 0x00005555555d0b96 in FACE_FOR_CHAR (f=0x5555564db330, face=0x555564a240b0, character=43695, pos=38, object=XIL(0)) at dispextern.h:1891 #18 0x00005555555f091a in get_next_display_element (it=0x7fffffff8040) at xdisp.c:7651 #19 0x0000555555626aae in display_line (it=0x7fffffff8040, cursor_vpos=9) at xdisp.c:23222 #20 0x0000555555617030 in try_window (window=XIL(0x5555564db575), pos=..., flags=1) at xdisp.c:19182 #21 0x0000555555613c67 in redisplay_window (window=XIL(0x5555564db575), just_this_one_p=false) at xdisp.c:18600 #22 0x000055555560aefd in redisplay_window_0 (window=XIL(0x5555564db575)) at xdisp.c:16314 #23 0x000055555594c082 in internal_condition_case_1 (bfun=0x55555560aebb , arg=XIL(0x5555564db575), handlers=XIL(0x7ffff279a6f3), hfun=0x55555560ae83 ) at eval.c:1380 #24 0x000055555560ae55 in redisplay_windows (window=XIL(0x5555564db575)) at xdisp.c:16294 #25 0x000055555560ae06 in redisplay_windows (window=XIL(0x5555624922f5)) at xdisp.c:16288 #26 0x000055555560978e in redisplay_internal () at xdisp.c:15762 #27 0x000055555560712f in redisplay () at xdisp.c:14989 #28 0x00005555557e20ca in read_char (commandflag=1, map=XIL(0x555564e79803), prev_event=XIL(0), used_mouse_menu=0x7fffffffd3f5, end_time=0x0) at keyboard.c:2493 #29 0x00005555557f5a94 in read_key_sequence (keybuf=0x7fffffffd5e0, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9553 #30 0x00005555557de249 in command_loop_1 () at keyboard.c:1350 #31 0x000055555594bfa5 in internal_condition_case (bfun=0x5555557ddda4 , handlers=XIL(0x90), hfun=0x5555557dd370 ) at eval.c:1356 #32 0x00005555557dd97c in command_loop_2 (ignore=XIL(0)) at keyboard.c:1091 #33 0x000055555594b3ea in internal_catch (tag=XIL(0xd530), func=0x5555557dd94e , arg=XIL(0)) at eval.c:1117 #34 0x00005555557dd919 in command_loop () at keyboard.c:1070 #35 0x00005555557dce47 in recursive_edit_1 () at keyboard.c:714 #36 0x00005555557dd046 in Frecursive_edit () at keyboard.c:786 #37 0x00005555557d313e in main (argc=1, argv=0x7fffffffda68) at emacs.c:2062 Lisp Backtrace: "redisplay_internal (C function)" (0x0) From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 04:50:34 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 08:50:34 +0000 Received: from localhost ([127.0.0.1]:33427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDkx0-0004bq-1z for submit@debbugs.gnu.org; Thu, 03 Sep 2020 04:50:34 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:14007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDkwx-0004bV-Jl for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 04:50:32 -0400 X-Originating-IP: 95.223.75.175 Received: from [192.168.0.61] (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 7EEBC240005; Thu, 3 Sep 2020 08:50:24 +0000 (UTC) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' To: Pip Cet , Robert Pluim References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> From: Alexander Shukaev Message-ID: Date: Thu, 3 Sep 2020 10:50:23 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Not sure how to debug further: (gdb) f 7 #7 0x0000555555aa48f0 in ftcrfont_open (f=0x555556521410, entity=XIL(0x55555aa0d7c5), pixel_size=21) at ftcrfont.c:137 137 match = FcFontMatch (NULL, pat, &result); (gdb) p pat $1 = (FcPattern *) 0x55556845efb0 (gdb) p *pat $2 = (gdb) info locals result = FcResultNoMatch val = XIL(0x5555658e2a23) filename = XIL(0x55555ba4d1e4) font_object = XIL(0x555565b558a5) pat = 0x55556845efb0 match = 0x55555be76210 ftcrfont_info = 0x555565b558a0 font = 0x555565b558a0 size = 21 font_face = 0x55555ef899f0 extents = { ascent = 18, descent = 3.0000000000000004, height = 20, max_x_advance = 4.6355841119114706e-310, max_y_advance = 6.9533558052579579e-310 } ft_face = 0x55555a74ab50 matrix = 0x555564edf50f font_matrix = { xx = 4.6355841119112235e-310, yx = 4.6355841119114706e-310, xy = 4.6355707518995349e-310, yy = 2.000000208656282, x0 = 6.9533558052595389e-310, y0 = 4.6355707518839718e-310 } ctm = { xx = 4.6355707529419146e-310, yx = 4.6355841119114706e-310, xy = 6.9533558052611199e-310, yy = 4.6355707529569342e-310, x0 = 0, y0 = 4.6355841119114706e-310 } options = 0x555557584e40 scaled_font = 0x555558791990 stack_glyph = { index = 127, x = 0, y = 0 } From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 04:51:51 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 08:51:52 +0000 Received: from localhost ([127.0.0.1]:33437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDkyF-0004e4-Ma for submit@debbugs.gnu.org; Thu, 03 Sep 2020 04:51:51 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:37285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDkyD-0004dp-Fk for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 04:51:49 -0400 X-Originating-IP: 95.223.75.175 Received: from [192.168.0.61] (ip-95-223-75-175.hsi16.unitymediagroup.de [95.223.75.175]) (Authenticated sender: forum@alexander.shukaev.name) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id AC38EC0007; Thu, 3 Sep 2020 08:51:42 +0000 (UTC) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' To: Robert Pluim References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> From: Alexander Shukaev Message-ID: Date: Thu, 3 Sep 2020 10:51:42 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ah, just noticed your suggestion: (gdb) pp entity # From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 05:02:27 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 09:02:27 +0000 Received: from localhost ([127.0.0.1]:33447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDl8V-0004vV-71 for submit@debbugs.gnu.org; Thu, 03 Sep 2020 05:02:27 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:59863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDl8S-0004v9-UG for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 05:02:25 -0400 Received: from [192.168.0.61] (ip-95-223-75-175.hsi16.unitymediagroup.de [95.223.75.175]) (Authenticated sender: forum@alexander.shukaev.name) by relay11.mail.gandi.net (Postfix) with ESMTPSA id D354310000C; Thu, 3 Sep 2020 09:02:17 +0000 (UTC) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' From: Alexander Shukaev To: Robert Pluim References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> Message-ID: Date: Thu, 3 Sep 2020 11:02:16 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) /usr/share/fonts/TTF/AdobeBlank-Regular.ttf is owned by ttf-google-fonts-git 20171026-1 I will try updating it now and see if it fixes the issue. However, even if it does, I have a bunch of follow-up questions: 1. How to protect Emacs from having that issue again regardless of broken/out-dated fonts? Can I somehow, for example, exclude such fonts from consideration by Emacs? 2. Why was this font queried at all in the first place? I don't use this font. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 05:07:37 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 09:07:37 +0000 Received: from localhost ([127.0.0.1]:33451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDlDU-000534-Ro for submit@debbugs.gnu.org; Thu, 03 Sep 2020 05:07:37 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:43676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDlDS-00052r-5y for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 05:07:36 -0400 Received: by mail-wr1-f53.google.com with SMTP id k15so2303255wrn.10 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 02:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=gc2sP1rfek/H1Tl0m/sRWk6sqeKz0rJmxr/V6G939N0=; b=otFddTdDCHQIWsdSKn95J7LCDJCQV50FsbHUyFDCxsQOK26DFSQMYWavsjKLhE8rFG rV/nmZZYuTn3mgBXVlTpSWckerhuI4Z+D/xOyboYgC1hvoZImA+sNtN4Oyf78mRY0Bxv IUWalpW+DqDda7erthlYUefarSwHTCWHy2RH2zhD6wjhOREdDn2wnq9Vsbx9DpJEpOOH XRI6KMH/sebgU6XxTVWNIJBTkYUFpsN5W79uj2JZg1Te/z8XqXuILa5MbZH6Iw2PUyPK Chh5S7AsVfRqODglbxIliU8v1+Vwx9AiBvyZ6GzxkE3TsKXrdRozPpupsy4lpo7o6vR5 4uNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=gc2sP1rfek/H1Tl0m/sRWk6sqeKz0rJmxr/V6G939N0=; b=JetcbJjwBG7z7Mc8rg1ZUY4xyoFb82nOwM7oHxZ2TwDUypi9E+40PY7VMkHD03gjwD 3RDQd60X/nhxiQ6jaGRrbYVxopQm9cs9z4FkHVNmb9vEIbyWg/5GeP1iWulexbPIr/YM Iu0UBwNdV1FblVurEiONq39CrHs48/ClWMVn0WCodjW1YSZVI5QvXPbBQLS5jEztHWBV bcAmdbyLEqXLfKyc0pB0yuyqF3q3NWXRnk/iOMthM913MklcSa7DEPlifCwBV98SkNOi fD7+ct1REDAXgPIVI0iJq8kuGeTAkUYipizwlTYlE4WNFbhKwR3RzmOsLPTmuqZoem28 LgJw== X-Gm-Message-State: AOAM532YZkl44JHi+MRfD43yxWqU8BGb2bOKBoa9LfQ53g0zZy0svkQB hGFWanCB7kCsmScCUBDI3FUR4Nfml+Q= X-Google-Smtp-Source: ABdhPJyzCKl8s7PtO/78v335ht0SUmgpfW+3Rlp2EQff8o2qiF+J6OPASkg63z+QOjGOQKAmfstbvQ== X-Received: by 2002:adf:efc9:: with SMTP id i9mr1383145wrp.187.1599124047821; Thu, 03 Sep 2020 02:07:27 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id b2sm3247528wmh.47.2020.09.03.02.07.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 02:07:27 -0700 (PDT) From: Robert Pluim To: Alexander Shukaev Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> Date: Thu, 03 Sep 2020 11:07:26 +0200 In-Reply-To: (Alexander Shukaev's message of "Thu, 3 Sep 2020 11:02:16 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 3 Sep 2020 11:02:16 +0200, Alexander Shukaev said: Alexander> /usr/share/fonts/TTF/AdobeBlank-Regular.ttf is owned by Alexander> ttf-google-fonts-git 20171026-1 Looks like Pip's crystal ball was right, that=CA=BCs the same font impicated in Bug#40733 Alexander> I will try updating it now and see if it fixes the issue. H= owever, Alexander> even if it does, I have a bunch of follow-up questions: Alexander> 1. How to protect Emacs from having that issue again regard= less of Alexander> broken/out-dated fonts? Can I somehow, for example, exclude= such Alexander> fonts from consideration by Emacs? face-ignored-fonts is a variable defined in `C source code'. Its value is nil Probably introduced at or before Emacs version 21.1. Documentation: List of ignored fonts. Each element is a regular expression that matches names of fonts to ignore. Alexander> 2. Why was this font queried at all in the first place? I = don't use Alexander> this font. You don=CA=BCt use it, but fontconfig know about it, so it queries it when Emacs queries fontconfig for available fonts covering a certain codepoint. Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 05:40:17 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 09:40:17 +0000 Received: from localhost ([127.0.0.1]:33517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDlj7-0005qi-0w for submit@debbugs.gnu.org; Thu, 03 Sep 2020 05:40:17 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:54675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDlj5-0005qU-9G for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 05:40:16 -0400 X-Originating-IP: 95.223.75.175 Received: from [192.168.0.61] (ip-95-223-75-175.hsi16.unitymediagroup.de [95.223.75.175]) (Authenticated sender: forum@alexander.shukaev.name) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 4962CC0015; Thu, 3 Sep 2020 09:40:07 +0000 (UTC) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' To: Robert Pluim References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> From: Alexander Shukaev Message-ID: <3598262d-b65c-b1b4-310a-29149fd89ebf@Alexander.Shukaev.name> Date: Thu, 3 Sep 2020 11:40:07 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 03/09/2020 11:07, Robert Pluim wrote: >>>>>> On Thu, 3 Sep 2020 11:02:16 +0200, Alexander Shukaev said: > > Alexander> /usr/share/fonts/TTF/AdobeBlank-Regular.ttf is owned by > Alexander> ttf-google-fonts-git 20171026-1 > > Looks like Pip's crystal ball was right, thatʼs the same font > impicated in Bug#40733 > > Alexander> I will try updating it now and see if it fixes the issue. However, > Alexander> even if it does, I have a bunch of follow-up questions: > > Alexander> 1. How to protect Emacs from having that issue again regardless of > Alexander> broken/out-dated fonts? Can I somehow, for example, exclude such > Alexander> fonts from consideration by Emacs? > > face-ignored-fonts is a variable defined in `C source code'. > Its value is nil > > Probably introduced at or before Emacs version 21.1. > > Documentation: > List of ignored fonts. > Each element is a regular expression that matches names of fonts to > ignore. > > Alexander> 2. Why was this font queried at all in the first place? I don't use > Alexander> this font. > > You donʼt use it, but fontconfig know about it, so it queries it when > Emacs queries fontconfig for available fonts covering a certain > codepoint. > > Robert > Right, so briefly testing, I think the scrolling hang is gone thanks to (add-to-list 'face-ignored-fonts "Adobe.*Blank") However, hang from opening certain files is still there and is also font-related, though with a different symptom: Thread 1 "emacs" received signal SIGABRT, Aborted. 0x00007ffff5c0646f in poll () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007ffff5c0646f in poll () at /usr/lib/libc.so.6 #1 0x00007ffff6e2a63b in () at /usr/lib/libxcb.so.1 #2 0x00007ffff6e2c08f in () at /usr/lib/libxcb.so.1 #3 0x00007ffff6e2c203 in xcb_wait_for_reply64 () at /usr/lib/libxcb.so.1 #4 0x00007ffff6e904b9 in _XReply () at /usr/lib/libX11.so.6 #5 0x00007ffff6e71e71 in () at /usr/lib/libX11.so.6 #6 0x00007ffff6e7254e in XLoadQueryFont () at /usr/lib/libX11.so.6 #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 #8 0x0000555555a8e5eb in xfont_list_pattern (display=0x555556594940, pattern=0x7fffffff6450 "-*-*-*-*-*-*-*-*-*-*-*-*-iso10646-1", registry=XIL(0x84c0), script=XIL(0x2aaa9c470db0)) at xfont.c:441 #9 0x0000555555a8e94d in xfont_list (f=0x5555564db330, spec=XIL(0x7ffff2794475)) at xfont.c:486 #10 0x0000555555983724 in font_list_entities (f=0x5555564db330, spec=XIL(0x55556932a495)) at font.c:2794 #11 0x000055555598588c in font_find_for_lface (f=0x5555564db330, attrs=0x555564a499c0, spec=XIL(0x5555568e6125), c=-1) at font.c:3285 #12 0x0000555555ab4a23 in fontset_find_font (fontset=XIL(0x555569329a45), c=43695, face=0x555564a499c0, charset_id=-1, fallback=false) at fontset.c:661 #13 0x0000555555ab514f in fontset_font (fontset=XIL(0x5555568a0d45), c=43695, face=0x555564a499c0, id=-1) at fontset.c:783 #14 0x0000555555ab5cff in face_for_char (f=0x5555564db330, face=0x555564a499c0, c=43695, pos=38, object=XIL(0)) at fontset.c:997 #15 0x00005555555d0b96 in FACE_FOR_CHAR (f=0x5555564db330, face=0x555564a499c0, character=43695, pos=38, object=XIL(0)) at dispextern.h:1891 #16 0x00005555555f091a in get_next_display_element (it=0x7fffffff8040) at xdisp.c:7651 #17 0x0000555555626aae in display_line (it=0x7fffffff8040, cursor_vpos=8) at xdisp.c:23222 #18 0x0000555555617030 in try_window (window=XIL(0x5555564db575), pos=..., flags=1) at xdisp.c:19182 #19 0x0000555555613c67 in redisplay_window (window=XIL(0x5555564db575), just_this_one_p=false) at xdisp.c:18600 #20 0x000055555560aefd in redisplay_window_0 (window=XIL(0x5555564db575)) at xdisp.c:16314 #21 0x000055555594c082 in internal_condition_case_1 (bfun=0x55555560aebb , arg=XIL(0x5555564db575), handlers=XIL(0x7ffff279a6f3), hfun=0x55555560ae83 ) at eval.c:1380 #22 0x000055555560ae55 in redisplay_windows (window=XIL(0x5555564db575)) at xdisp.c:16294 #23 0x000055555560ae06 in redisplay_windows (window=XIL(0x5555629c9865)) at xdisp.c:16288 #24 0x000055555560978e in redisplay_internal () at xdisp.c:15762 #25 0x000055555560712f in redisplay () at xdisp.c:14989 #26 0x00005555557e20ca in read_char (commandflag=1, map=XIL(0x555569315a13), prev_event=XIL(0), used_mouse_menu=0x7fffffffd3f5, end_time=0x0) at keyboard.c:2493 #27 0x00005555557f5a94 in read_key_sequence (keybuf=0x7fffffffd5e0, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9553 #28 0x00005555557de249 in command_loop_1 () at keyboard.c:1350 #29 0x000055555594bfa5 in internal_condition_case (bfun=0x5555557ddda4 , handlers=XIL(0x90), hfun=0x5555557dd370 ) at eval.c:1356 #30 0x00005555557dd97c in command_loop_2 (ignore=XIL(0)) at keyboard.c:1091 #31 0x000055555594b3ea in internal_catch (tag=XIL(0xd530), func=0x5555557dd94e , arg=XIL(0)) at eval.c:1117 #32 0x00005555557dd919 in command_loop () at keyboard.c:1070 #33 0x00005555557dce47 in recursive_edit_1 () at keyboard.c:714 #34 0x00005555557dd046 in Frecursive_edit () at keyboard.c:786 #35 0x00005555557d313e in main (argc=1, argv=0x7fffffffda68) at emacs.c:2062 Lisp Backtrace: "redisplay_internal (C function)" (0x0) (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) From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 05:51:04 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 09:51:04 +0000 Received: from localhost ([127.0.0.1]:33533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDltY-00066Z-3V for submit@debbugs.gnu.org; Thu, 03 Sep 2020 05:51:04 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:37299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDltV-000664-Nt for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 05:51:02 -0400 X-Originating-IP: 95.223.75.175 Received: from [192.168.0.61] (ip-95-223-75-175.hsi16.unitymediagroup.de [95.223.75.175]) (Authenticated sender: forum@alexander.shukaev.name) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 8AC12C000D; Thu, 3 Sep 2020 09:50:54 +0000 (UTC) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' From: Alexander Shukaev To: Robert Pluim References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> <3598262d-b65c-b1b4-310a-29149fd89ebf@Alexander.Shukaev.name> Message-ID: <04c384ac-bfbe-6073-829c-20712053bb1d@Alexander.Shukaev.name> Date: Thu, 3 Sep 2020 11:50:53 +0200 MIME-Version: 1.0 In-Reply-To: <3598262d-b65c-b1b4-310a-29149fd89ebf@Alexander.Shukaev.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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? From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 05:53:15 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 09:53:15 +0000 Received: from localhost ([127.0.0.1]:33538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDlvf-00069h-F8 for submit@debbugs.gnu.org; Thu, 03 Sep 2020 05:53:15 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:49357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDlvd-00069T-4N for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 05:53:13 -0400 X-Originating-IP: 95.223.75.175 Received: from [192.168.0.61] (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 40FAE240012; Thu, 3 Sep 2020 09:53:05 +0000 (UTC) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' From: Alexander Shukaev To: Robert Pluim 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> Message-ID: <28ddec32-bee2-e6fd-d572-b09766f2be37@Alexander.Shukaev.name> Date: Thu, 3 Sep 2020 11:53:05 +0200 MIME-Version: 1.0 In-Reply-To: <04c384ac-bfbe-6073-829c-20712053bb1d@Alexander.Shukaev.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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? Hmm, right, waited for about a minute or so, and the file got opened finally. Reopening it was instant as well as if something got cached/loaded already. So any ideas how to speed things up here? I don't think I've encountered that with 26.3... From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 05:58:59 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 09:58:59 +0000 Received: from localhost ([127.0.0.1]:33545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDm1D-0006Hl-9k for submit@debbugs.gnu.org; Thu, 03 Sep 2020 05:58:59 -0400 Received: from mail-wm1-f47.google.com ([209.85.128.47]:55773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDm1C-0006HY-0u for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 05:58:58 -0400 Received: by mail-wm1-f47.google.com with SMTP id a65so2212305wme.5 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 02:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=l40re2vb5VIGRxCVCwoJvm9DfS0HEGJd2I02DAGvJGc=; b=BdyFEitQP0nPAbtbQWaj5xIakWGswPYK+hjd2JdNqx7nH4n40il/4bqv2i0prJxB6b KNMt8HDSF1VAfmPb631LEQwbIOXYea3eEVu3lpBBmkAg/OaDEX0EZKy92wFamXKAsc1J Uef1bI5wme0zpKj8t9nuHyOHoq9ojSAtLzKCTxppeQwG5GynHEUzPADYNBj7P2tqd/vu w4MBUQX3ikTG2S8ycdjaiiZa+yP3+35doIosKsGW/ajW6GLQ4zItY/L1j+8reWusbwOl 0VBFPXNcqZovyActTj9uM8ZDuZxGsDZW4Yeilk2ZykgHkZE3QUX9OaP3aRG/MMN5tcOO Vb0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=l40re2vb5VIGRxCVCwoJvm9DfS0HEGJd2I02DAGvJGc=; b=QqH9JTl5SWQJZE/+bmIf2LLmnZqHgeHToLsK/foBk8Hy+jtJYwfWt8VpeChkzhpCvE FUVB9gquTO9i28qCX3TlSIxI/cuC3GhTaUFON7gUDowwbZXUiQYDn02D1nuEK7Bjlbil yBS4YeeXUrInY1h8MQF/qhP3kvV/OvyxXi/w11IJm/hYJoqI8Je8RvwBUP0pjsdNAmSK PbI19kgHwpgxwNCSNK5r9hzKwpk+PEjvelNmTzgLWjh/dxA+8u+g+GU4ctAxZg2HHnBr bMRhVKFE5+kymA4EMNq9Ajlal1KWbFIUCXZ1u3dzEO6vwS6R0/w2NwmWH7U5nM8QjXgP f9yw== X-Gm-Message-State: AOAM531CDmqzfNeEcWGYeYGrtlxZyuyPXd5aiIK2vJOzDuuGL/p2nHmZ DkBUlo/Pj/3MRWiyPU+TJQgEmRlh8JvQNg== X-Google-Smtp-Source: ABdhPJwOI0T/fqkXzdhR1kCNo6Df7hccmfetc9zB1qHIZrKD6I/hkjBFDaXD6MSb4ff2bzKlIJNhmA== X-Received: by 2002:a1c:7502:: with SMTP id o2mr1600247wmc.29.1599127131703; Thu, 03 Sep 2020 02:58:51 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id t4sm3517329wre.30.2020.09.03.02.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 02:58:51 -0700 (PDT) From: Robert Pluim To: Alexander Shukaev Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> <3598262d-b65c-b1b4-310a-29149fd89ebf@Alexander.Shukaev.name> Date: Thu, 03 Sep 2020 11:58:50 +0200 In-Reply-To: <3598262d-b65c-b1b4-310a-29149fd89ebf@Alexander.Shukaev.name> (Alexander Shukaev's message of "Thu, 3 Sep 2020 11:40:07 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 3 Sep 2020 11:40:07 +0200, Alexander Shukaev said: Alexander> Right, so briefly testing, I think the scrolling hang is gon= e thanks to Alexander> (add-to-list 'face-ignored-fonts "Adobe.*Blank") Alexander> However, hang from opening certain files is still there and = is also Alexander> font-related, though with a different symptom: Alexander> Thread 1 "emacs" received signal SIGABRT, Aborted. Alexander> 0x00007ffff5c0646f in poll () from /usr/lib/libc.so.6 Alexander> (gdb) bt Alexander> #0 0x00007ffff5c0646f in poll () at /usr/lib/libc.so.6 Alexander> #1 0x00007ffff6e2a63b in () at /usr/lib/libxcb.so.1 Alexander> #2 0x00007ffff6e2c08f in () at /usr/lib/libxcb.so.1 Alexander> #3 0x00007ffff6e2c203 in xcb_wait_for_reply64 () at /usr/li= b/libxcb.so.1 Alexander> #4 0x00007ffff6e904b9 in _XReply () at /usr/lib/libX11.so.6 Alexander> #5 0x00007ffff6e71e71 in () at /usr/lib/libX11.so.6 Alexander> #6 0x00007ffff6e7254e in XLoadQueryFont () at /usr/lib/libX= 11.so.6 Alexander> #7 0x0000555555a8d875 in xfont_supported_scripts Alexander> (display=3D0x555556594940, fontname=3D0x55556a79e428 "-m= isc-trirong Alexander> medium-medium-i-normal--0-0-0-0-p-0-iso10646-1", Alexander> props=3DXIL(0x7ffff27926e5), encoding=3D0x7ffff23ab8d0) Alexander> at xfont.c:266 So this is the 'x' font backend, rather than the 'ftcr' font backend, which I would not expect emacs to be falling back to. Do you have any face/fontset customisations? Could you show them to us? (I=CA=BCm hoping you=CA=BCre not messing with the font-backend frame parameter anywhe= re) Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 06:07:04 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 10:07:04 +0000 Received: from localhost ([127.0.0.1]:33550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDm92-0006Vb-4n for submit@debbugs.gnu.org; Thu, 03 Sep 2020 06:07:04 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:34074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDm8z-0006V3-Au for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 06:07:03 -0400 Received: by mail-wr1-f53.google.com with SMTP id t10so2587504wrv.1 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 03:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=I35EIY8Z9fQiRzhjYQIyDd3LI60q1udhstZhOtp0YqM=; b=Gwp71L5EqHGtjYdD1dxx4mCMst7/GBmIdSMTmPITwC9pQrDFsgtsMST6CWv/r5eiR/ X11pKd09JxKh/Ugsga5FOridFiAOQ0OH9CEUZzveCAe7kRmIh+N8YeZKqnTFkALMF9yy zNryoCVi6+Xlv7JMQz5keMYhy5Vy7E1xQRvlpNM0JDmRI7rQdgvsjjYdb13Gj622Abag NNJdRaULmAVxQ6vOMA1V96NNpgkP8f9zL1NPVod03CCCY8KvUG6wlRjwKch56EmKiB2C RL2dR0V73h8sbjr1lyQC5LiqQ9W25qRRAML6miOXBbqui/5NZKJ5Js2wx89+hXAzBSLk 8hbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=I35EIY8Z9fQiRzhjYQIyDd3LI60q1udhstZhOtp0YqM=; b=CWt2i85CGTKzaf/20dYFIdEh4Sasa/vuv3Boxr1NIdyGEbBfgk3VzypigPhQqIM/9a zCyMIZ8Z3Yjgi1cocJdb3VN1xNZDtUh2lMdBZW159Gu6znjtCbGKWYAW51V8Oe3Ex1Pr exvNU+7tTBwuDYMAxbRILSRpNH98n2Q/T12G9nXfGiSNGQ0+y//rYzyU4KYqhLyNV5+2 PjhUHXAFa7RQI2HjJeRDDDLfvXLZS6BV+3MQUZR04fs80aE+CwS8hlz7DNxwbVx4lndQ ekmLgZzLM0ZDMMX1h1ptdvNnMGLIoBfa5IbUPFBFOTpat+6Ci3mLxULcVMFEda5W4N3m brSQ== X-Gm-Message-State: AOAM533mx65vhcSzEzzNAMT6bAdNqyvHrGn+RewK9OSp/zy9J6gbsK4B ixIq4j7/69nPUsp93vXwnzkQWf9g5O0DSQ== X-Google-Smtp-Source: ABdhPJwNxeoqsMyVGtVX5k474idQwhlvFo1UK5s7kXJnDWXny20GJMsn3rAU2SeogRCZTlLCBGa3mA== X-Received: by 2002:a5d:4949:: with SMTP id r9mr1662659wrs.27.1599127614985; Thu, 03 Sep 2020 03:06:54 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id 189sm3599251wmb.3.2020.09.03.03.06.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 03:06:54 -0700 (PDT) From: Robert Pluim To: Alexander Shukaev Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> Date: Thu, 03 Sep 2020 12:06:53 +0200 In-Reply-To: <28ddec32-bee2-e6fd-d572-b09766f2be37@Alexander.Shukaev.name> (Alexander Shukaev's message of "Thu, 3 Sep 2020 11:53:05 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> 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=C2=A0 0x0000555555a8d875 in xfont_supported_scripts >>> (display=3D0x555556594940, fontname=3D0x55556a79e428 "-misc-trirong >>> medium-medium-i-normal--0-0-0-0-p-0-iso10646-1", >>> props=3DXIL(0x7ffff27926e5), >>> =C2=A0=C2=A0=C2=A0=C2=A0 encoding=3D0x7ffff23ab8d0) at xfont.c:266 >>> 266=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xfont =3D= XLoadQueryFont (display, fontname); >>> (gdb) pp fontname >>> # >>> (gdb) pp fontname >>> # >>> (gdb) p fontname >>> $3 =3D 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.=C2=A0 Maybe it's not really hanging but is merely >> ultra-slow somehow in looping over the fonts here.=C2=A0 Any ideas? Alexander> Hmm, right, waited for about a minute or so, and the file go= t opened Alexander> finally. Reopening it was instant as well as if something g= ot 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 06:24:42 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 10:24:42 +0000 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 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 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) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' To: Robert Pluim 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> From: Alexander Shukaev Message-ID: <20b43a48-2aac-032b-8bdf-16dffb25de99@Alexander.Shukaev.name> Date: Thu, 3 Sep 2020 12:24:30 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 08:13:14 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 12:13:15 +0000 Received: from localhost ([127.0.0.1]:33868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDo78-0005bL-Op for submit@debbugs.gnu.org; Thu, 03 Sep 2020 08:13:14 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:38485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDo76-0005b6-QA for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 08:13:13 -0400 Received: by mail-wm1-f49.google.com with SMTP id l9so2649207wme.3 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 05:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=E/v9X5gn+wmFrSC8MDtX7KQKbTQWAS1YTKpWLcqrCPA=; b=K1gvWRSeXXqp4ZD0Ird6SyW+jyKUL5anyPoCDobfA+sZFoajPmfpwFxT9G6p0WbFZM cYfNOm9CMpcmapWUS4hqzU0aEv8Lbsuo+z0U45KoxnvtZm8qUr8dxiiGEtYlOrSXYnTD lpFVWfEfci17EQee0Zn624HxY3YkurFm2m+vlrngyHmb8No05+NjMW5Na3ZNPi5FCgyQ l2XRkVrbwzjYZPMhQX9gqLEvtb77PQrCY+BX6LKUUrLH24WwSenc0QT3JmXVhbRZEPMk rs5Ub4liSL7r8xfFlZzVy5WuIyNwbddDG3oxIey6DHF+DrcUcn5hKPJjQptpfSrBEYMK YYZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=E/v9X5gn+wmFrSC8MDtX7KQKbTQWAS1YTKpWLcqrCPA=; b=XAWBKRzY9mLY4tBlYrmGstf0bOI9PnnFj16oFg7HvXuFbiD7EBPDPA6OYb8cmxsOzE X74bC+cms3otj2Jh7MFE6H+8+6Mb6+QgkYQiKfnnc9pcN93C6VWR83Ws9JyKdBXV/nzo UHWoRZSCDD5en2MyXeAq10kyem+NMTPaESDYMA4GF6r6AQkygzX3j0ezP6usO4LbDtrp M2bJXtOE7g9rxKY4jTHOFQp050OaWC7bz0xvxYcz+GCfZw/oUqQZeILkDKbuIqpV0Sz+ RwWs0i6vdaTS2JF5tikUwgzfIPJwM0TZpog0ocQw4ny8ozZ/dr/zJ0owPbGuz+tuYPQk 6OQA== X-Gm-Message-State: AOAM531fwn18rQpxoIahlLP+QiNlZrezuTlw1F7roWmWfUY8FMv1q12U jhcEYnomIumRMh68KjrKaW/qBZ51na9Tkg== X-Google-Smtp-Source: ABdhPJypSaHeJGBU9vbBeCLJ7ymEdSjCffO9OZEKECXyWXS00V2OLpiRJKWiRMKjSdZy9OhpyxPBwQ== X-Received: by 2002:a1c:7714:: with SMTP id t20mr2298311wmi.55.1599135186423; Thu, 03 Sep 2020 05:13:06 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id n17sm896735wrw.0.2020.09.03.05.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 05:13:05 -0700 (PDT) From: Robert Pluim To: Alexander Shukaev Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> Date: Thu, 03 Sep 2020 14:13:03 +0200 In-Reply-To: <20b43a48-2aac-032b-8bdf-16dffb25de99@Alexander.Shukaev.name> (Alexander Shukaev's message of "Thu, 3 Sep 2020 12:24:30 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 3 Sep 2020 12:24:30 +0200, Alexander Shukaev said: Alexander> The only related font configurations that I can think of are= the following: Alexander> With what I consistently get output Alexander> Font: =E2=80=98Consolas-12=E2=80=99 Alexander> for several years already on various Linux systems that I'm = using so far. OK. Is this happening on particular files? Is it possible they have esoteric Unicode characters in them? One other thing: do you have Symbola installed? That=CA=BCs the default fallback font Emacs uses for symbols, if it=CA=BCs not found it needs to search harder. Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 08:29:09 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 12:29:09 +0000 Received: from localhost ([127.0.0.1]:33885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDoMW-0005y5-PC for submit@debbugs.gnu.org; Thu, 03 Sep 2020 08:29:09 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:52275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDoMU-0005xZ-R8 for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 08:29:07 -0400 X-Originating-IP: 95.223.75.175 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 relay3-d.mail.gandi.net (Postfix) with ESMTPSA id CE14C60004; Thu, 3 Sep 2020 12:28:59 +0000 (UTC) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' To: Robert Pluim 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> From: Alexander Shukaev Message-ID: Date: Thu, 3 Sep 2020 14:28:58 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 03/09/2020 14:13, Robert Pluim wrote: >>>>>> On Thu, 3 Sep 2020 12:24:30 +0200, Alexander Shukaev said: > > Alexander> The only related font configurations that I can think of are the following: > > Alexander> With what I consistently get output > > Alexander> Font: ‘Consolas-12’ > > Alexander> for several years already on various Linux systems that I'm using so far. > > OK. Is this happening on particular files? Is it possible they have > esoteric Unicode characters in them? > > One other thing: do you have Symbola installed? Thatʼs the default > fallback font Emacs uses for symbols, if itʼs not found it needs to > search harder. > > Robert > That file is indeed special because it has some Unicode: ꪯ鵞 Symbola was there, though outdated, I just updated it. Not sure if it's related, but now that file loads somewhat faster, under 10 seconds roughly. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 08:43:44 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 12:43:44 +0000 Received: from localhost ([127.0.0.1]:33919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDoae-0006KP-8P for submit@debbugs.gnu.org; Thu, 03 Sep 2020 08:43:44 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:55318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDoab-0006KB-UQ for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 08:43:42 -0400 Received: by mail-wm1-f45.google.com with SMTP id a65so2713713wme.5 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 05:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=BWis+tvc2mFu6KmpdzpRBgzU+xn4kL2lXVjqAdy7fes=; b=ACXTUP9VkFAWIGGxHJX2tR3nl9V+qOhzpU0yI9pENzQK0N9/1E9+QOpzLRDpwH1/On deq9ikKNfeiGLuaHzUFTnapaLBTY+WGqXDDEllSDWQZ9oOcfIft+VoR6vKeheDyGtm8f sQt5XOZFXev5XTZXl/6wlzlv0+32RCJmB5Rlzgfn5FpLViXN5cJwPLXziICMWm8k39Jw 0TABI0MEojBSAzV5ctlKx8jMKIy5Esfr6k668j50tTlT3LoMvsu2G4lFp8i/xsiPMfuk ctB1jOrl472Umqilp7otgXU0qphiMowBHgwk3DlU2LLplgStRh53zzNtpUWnPzU8e8D/ mTaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=BWis+tvc2mFu6KmpdzpRBgzU+xn4kL2lXVjqAdy7fes=; b=NNUG1NXgeI3oSnpwB+bUgyg2W4MBcetwTXsp8t0RXBPFrPmv7chZpsvuvK/8cxB9Vs xqvgtnzy5RsudBj0aAF336FaXYFebR2wXlcgnsJA8IjHPDwsuvgkrstv0q3SAmYvJH0l Ly0meuE4115rq/5RckByUURKrPiGXIT1XxE74d0K7veiXh0sozSgDm/I2PZ/VCx1Kle1 9a+bL3du+U+lLInpKC8Dhan6j61OkOtlk99QlbdrksW1J8n4kS7IWCUvcQopP3MxmXR6 9OBXWgQ0Gcg/6J1mB+6gBkR8iauQNoZ1+obJDSkC54pdmbKWVgg28Gbk+mOSCWGIGL+F 7D6A== X-Gm-Message-State: AOAM532kqaiS46L5pF+evEdgiX5bTjiweUH/X+UTUl2TBjwABEQ2mcTI T4+vFhHfM0t9TF0CtuIqWR5NPhjThY779Q== X-Google-Smtp-Source: ABdhPJxhhJM5BxxEJKUTLGxO7zsCB2iAy2XxHk9bpY+ufokk/XmBudpqJ/rCnmstIuWaTIGtUyMG8Q== X-Received: by 2002:a1c:a789:: with SMTP id q131mr2267900wme.141.1599137015699; Thu, 03 Sep 2020 05:43:35 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id l15sm4425351wrt.81.2020.09.03.05.43.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 05:43:34 -0700 (PDT) From: Robert Pluim To: Alexander Shukaev Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> Date: Thu, 03 Sep 2020 14:43:34 +0200 In-Reply-To: (Alexander Shukaev's message of "Thu, 3 Sep 2020 14:28:58 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 3 Sep 2020 14:28:58 +0200, Alexander Shukaev said: Alexander> On 03/09/2020 14:13, Robert Pluim wrote: >>>>>>> On Thu, 3 Sep 2020 12:24:30 +0200, Alexander Shukaev said: Alexander> The only related font configurations that I can >> think of are the following: Alexander> With what I consistently get output Alexander> Font: =E2=80=98Consolas-12=E2=80=99 Alexander> for several years already on various Linux systems >> that I'm using so far. >> OK. Is this happening on particular files? Is it possible they have >> esoteric Unicode characters in them? >> One other thing: do you have Symbola installed? That=CA=BCs the defa= ult >> fallback font Emacs uses for symbols, if it=CA=BCs not found it need= s to >> search harder. >> Robert >>=20 Alexander> That file is indeed special because it has some Unicode: Alexander> =EA=AA=AF=E9=B5=9E tai-viet and han scripts. My GNU/Linux build uses 'Noto Sans Tai Viet' for the one, and 'Noto Sans CJK KR' for the other (both via the ftcr backend), and there=CA=BCs no slowdown. (you can use C-u C-x =3D to check). Alexander> Symbola was there, though outdated, I just updated it. Not = sure if Alexander> it's related, but now that file loads somewhat faster, under= 10 Alexander> seconds roughly. I guess that depends if you have characters in there that are covered by Symbola. Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 08:52:28 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 12:52:29 +0000 Received: from localhost ([127.0.0.1]:33958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDoj6-0006ZS-Lu for submit@debbugs.gnu.org; Thu, 03 Sep 2020 08:52:28 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:45287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDoj3-0006ZG-I4 for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 08:52:27 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Bj1140h63z1qs3X; Thu, 3 Sep 2020 14:52:24 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Bj113745Mz1qrgK; Thu, 3 Sep 2020 14:52:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id PFCDyPFV0AKa; Thu, 3 Sep 2020 14:52:23 +0200 (CEST) X-Auth-Info: 8qBbODqJbZ6dm0e7I7G9v1wzRyzfOm6J5gf5+Sro79onW8h8rXdFImSsA/K7USaG Received: from igel.home (ppp-46-244-174-137.dynamic.mnet-online.de [46.244.174.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 3 Sep 2020 14:52:23 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id B798F2C2591; Thu, 3 Sep 2020 14:52:22 +0200 (CEST) From: Andreas Schwab To: Robert Pluim Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> X-Yow: I'm ANN LANDERS!! I can SHOPLIFT!! Date: Thu, 03 Sep 2020 14:52:22 +0200 In-Reply-To: (Robert Pluim's message of "Thu, 03 Sep 2020 14:43:34 +0200") Message-ID: <87o8mnqayh.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, Alexander Shukaev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sep 03 2020, Robert Pluim wrote: > tai-viet and han scripts. My GNU/Linux build uses 'Noto Sans Tai Viet' > for the one, and 'Noto Sans CJK KR' for the other (both via the ftcr > backend), and thereʼs no slowdown. (you can use C-u C-x = to check). Do you have many fonts installed? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 09:19:29 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 13:19:29 +0000 Received: from localhost ([127.0.0.1]:34042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDp9F-0007GH-Fh for submit@debbugs.gnu.org; Thu, 03 Sep 2020 09:19:29 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:42382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDp9E-0007G4-4t for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 09:19:28 -0400 Received: by mail-wr1-f53.google.com with SMTP id c18so3180679wrm.9 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 06:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=AyXMz6APHlWhiMb7qZ8FcGkJr5vGmmSOuRHRb5N1vqU=; b=qZ6xu2gs9+vBKm44D2SYcYdsXqS0jx72y5PJ5+dLhm9c9QiywHLHCisdCaF5gffs/p VUGddHVQ3RU15EjUytgwyzZTeRZMYt3ubKrWtqqKRN398zByYLMK1uq2jS+L9vmnD9VP yOA9zAmMivOXPjJaKJsGv69x7FDjBl47jJvAOdxGmxXO3H4W17c5I+y2bPAAJObP4K23 KiXYfZVcg05NkuVV4vgnmxWlrnYyN6/4nfE2aE+0UAV9rJsg0W8SAjm0rZ14ZwHot5BO HcNCsBKG64IuvxqZeSDZGvbPF6vgzp0EgYLdfbJhG2wnrEI03Uj+3YQNyd0widURIPSN aSdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=AyXMz6APHlWhiMb7qZ8FcGkJr5vGmmSOuRHRb5N1vqU=; b=nzd+yLO5Aqo0Dqp70w0VPGJ+P9EWz2ba5bvwNHVkZCdQLgjng3UbtqIt8WdtJacwXq muqadx7zUfr0/Zw6L4WQ0PNlRA61yghOeC9whkmrj0n7gKIjKW6sssDWoHXIcBGrTYs8 dl5dcMc/ys/psZlBoExrbqiWi6nwy4pHrLo95SjYhBkx3w6EsWXGyoiuY5qHi/dqhyGm QSdVu7bBY9mhUEIqVPGofkKBuijDv6YnyqWPOARf0qIG2Y4j3RiWoNakj2I96tdR354p OM4N+lfvyxcPFtPmFOEvf2t4Hu+Ar4UOAQB01mw0qHEe6UhTTZkeYQeXz67xQ5ljVfks 4VNw== X-Gm-Message-State: AOAM532nHDoftb23JWkTvnJpwnbCUNtD8l4iyjvLzt7GQvVEWT/8/fVe oeAW21EckKm6S5zJkZyAl7c= X-Google-Smtp-Source: ABdhPJyOZDpUjWokRIUihrRiJ0ygSqETJiEX3oPUPtTbutV5qUZFY1GkFce3DceY2tpEWN1T0m6whQ== X-Received: by 2002:adf:f10a:: with SMTP id r10mr2386990wro.86.1599139162205; Thu, 03 Sep 2020 06:19:22 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id d190sm4565008wmd.23.2020.09.03.06.19.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 06:19:21 -0700 (PDT) From: Robert Pluim To: Andreas Schwab Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> Date: Thu, 03 Sep 2020 15:19:20 +0200 In-Reply-To: <87o8mnqayh.fsf@igel.home> (Andreas Schwab's message of "Thu, 03 Sep 2020 14:52:22 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, Alexander Shukaev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 03 Sep 2020 14:52:22 +0200, Andreas Schwab said: Andreas> On Sep 03 2020, Robert Pluim wrote: >> tai-viet and han scripts. My GNU/Linux build uses 'Noto Sans Tai Vie= t' >> for the one, and 'Noto Sans CJK KR' for the other (both via the ftcr >> backend), and there=CA=BCs no slowdown. (you can use C-u C-x =3D to = check). Andreas> Do you have many fonts installed? fc-list | wc -l 2897 Is that a lot? I don=CA=BCt know; at some point I went through and made sure I had all the fonts required to display etc/HELLO, which included finding ones for Tai Viet. Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 09:20:19 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 13:20:19 +0000 Received: from localhost ([127.0.0.1]:34055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDpA3-0007IC-Ha for submit@debbugs.gnu.org; Thu, 03 Sep 2020 09:20:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDpA2-0007Hq-5d for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 09:20:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37187) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDp9w-0006Bd-2x; Thu, 03 Sep 2020 09:20:12 -0400 Received: from [176.228.60.248] (port=1211 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kDp9t-0002LQ-C1; Thu, 03 Sep 2020 09:20:10 -0400 Date: Thu, 03 Sep 2020 16:19:56 +0300 Message-Id: <83k0xbuhdv.fsf@gnu.org> From: Eli Zaretskii To: Robert Pluim In-Reply-To: (message from Robert Pluim on Thu, 03 Sep 2020 11:58:50 +0200) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> <3598262d-b65c-b1b4-310a-29149fd89ebf@Alexander.Shukaev.name> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, emacs@Alexander.Shukaev.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Robert Pluim > Date: Thu, 03 Sep 2020 11:58:50 +0200 > Cc: 43177@debbugs.gnu.org > > So this is the 'x' font backend, rather than the 'ftcr' font > backend, which I would not expect emacs to be falling back to. Why do you think this is evidence of using the fallback backend? AFAIR, when Emacs needs to find a font for a character, it loops over all the fonts with all the available backends, and only later decides which of the fonts to use. Don't you see that if you type some character unlikely to have been seen in an "emacs -Q" session? From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 09:28:51 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 13:28:51 +0000 Received: from localhost ([127.0.0.1]:34074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDpIJ-0007U4-ET for submit@debbugs.gnu.org; Thu, 03 Sep 2020 09:28:51 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:58323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDpIG-0007Tu-8C for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 09:28:49 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Bj1q30zdkz1qrfk; Thu, 3 Sep 2020 15:28:47 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Bj1q30jbgz1qrgN; Thu, 3 Sep 2020 15:28:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id AzwLsSBEfokE; Thu, 3 Sep 2020 15:28:46 +0200 (CEST) X-Auth-Info: TCMRWWOJ2K9ICTAo00T5kBZj9GPdQA0LpKbwLXRJaHa3cDHe3sIus+FyvnEyBUvr Received: from igel.home (ppp-46-244-174-137.dynamic.mnet-online.de [46.244.174.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 3 Sep 2020 15:28:46 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id E36872C2591; Thu, 3 Sep 2020 15:28:45 +0200 (CEST) From: Andreas Schwab To: Robert Pluim Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> X-Yow: Content: 80% POLYESTER, 20% DACRON.. The waitress's UNIFORM sheds TARTAR SAUCE like an 8'' by 10'' GLOSSY.. Date: Thu, 03 Sep 2020 15:28:45 +0200 In-Reply-To: (Robert Pluim's message of "Thu, 03 Sep 2020 15:19:20 +0200") Message-ID: <87k0xboupe.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, Alexander Shukaev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sep 03 2020, Robert Pluim wrote: >>>>>> On Thu, 03 Sep 2020 14:52:22 +0200, Andreas Schwab said: > > Andreas> On Sep 03 2020, Robert Pluim wrote: > >> tai-viet and han scripts. My GNU/Linux build uses 'Noto Sans Tai Viet' > >> for the one, and 'Noto Sans CJK KR' for the other (both via the ftcr > >> backend), and thereʼs no slowdown. (you can use C-u C-x = to check). > > Andreas> Do you have many fonts installed? > > fc-list | wc -l > 2897 $ fc-list | wc -l 11168 And there is a huge slowdown here. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 10:04:02 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 14:04:02 +0000 Received: from localhost ([127.0.0.1]:35830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDpqM-0000KS-Cz for submit@debbugs.gnu.org; Thu, 03 Sep 2020 10:04:02 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:52135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDpqK-0000K3-Qv for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 10:04:01 -0400 Received: by mail-wm1-f52.google.com with SMTP id w2so3039155wmi.1 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 07:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=g5FCNxdoGK6GKRPQv8SoHfaF9wvJIKbHwywGxHn/O+o=; b=U6p+RD18IByY3/JhVUpL/bf5hs7PkeofTPCtrYgJWfCFmXYiZfvCJJWgq076HpyVAO FJqWigHvLl0Z9aLu4FamVlxIpz7zwyu0phgLuhn/Vil+fgBsPTaNYSywGKS18hjOh1RL mbwLeN6crS4RXqbwJ4RSlje1Nepo2BUF5zAdpbUI6Y5SBi53Hm1p6q3zmAUUpTH28g6a uhdu1jydgfBrCWKuVBJyrq7b+hcIpadu87hr1PeofS78iOofk3KzKSRN7nDVwfr+o2Uw mYKkvmABSuPZf2ofCVyPx48A3VFiI3XWrB1jIZRtlHOFMVXG43qahdWRHh280w1zmrPn Z2UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=g5FCNxdoGK6GKRPQv8SoHfaF9wvJIKbHwywGxHn/O+o=; b=TiIELieNd1XhSUGWDRKpCD3vw+0SuD1CoUHpfsHZOwRbCU9hdu6uXFgOYD8dBPWZad jOIn0RwE/qfZYWvni+F5kLJDX7KIqmm1vlrKxGWKttwmQhvVYMnCqIfUqPI0cDTUJ0a5 YoMSyGedbE20eilf5etqfKc7cnYADjxdiQVlHOUqiBZGqoxdtcVYkf2MuICWRhItMCwg m7LAUTNSOZp2f0R658uZ6QrPmL1TMv4GF6MlgtdkjS3JbUATYRzhKBv4XURj4akt2661 fKs0dEmyVbMP4dN5cQQS6D5bafiEKcK9YBCg4/7hvE4gpk6sLuSh5DsLud5ndHWvZNHJ /p6A== X-Gm-Message-State: AOAM533uL7WoaaigczoXIEHfBrQuvp85ngY3haWTfpXNYmc4qL+scmxf dzkEq4PzjXO55rX50LUIOBI= X-Google-Smtp-Source: ABdhPJwRGWU9zL23ScCc4YTiEbBfjV28cS9kkPbtmqaf0d+bcYYrisYfB6iEiLgnnyhqocHaGKReyQ== X-Received: by 2002:a1c:23c8:: with SMTP id j191mr2588263wmj.64.1599141834823; Thu, 03 Sep 2020 07:03:54 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id u66sm4559276wmg.44.2020.09.03.07.03.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 07:03:53 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' References: <7bb2d5e3-1abf-08d6-d7c8-0f1bd139815e@Alexander.Shukaev.name> <3598262d-b65c-b1b4-310a-29149fd89ebf@Alexander.Shukaev.name> <83k0xbuhdv.fsf@gnu.org> Date: Thu, 03 Sep 2020 16:03:53 +0200 In-Reply-To: <83k0xbuhdv.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Sep 2020 16:19:56 +0300") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, emacs@Alexander.Shukaev.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 03 Sep 2020 16:19:56 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Date: Thu, 03 Sep 2020 11:58:50 +0200 >> Cc: 43177@debbugs.gnu.org >>=20 >> So this is the 'x' font backend, rather than the 'ftcr' font >> backend, which I would not expect emacs to be falling back to. Eli> Why do you think this is evidence of using the fallback backend? Eli> AFAIR, when Emacs needs to find a font for a character, it loops o= ver Eli> all the fonts with all the available backends, and only later deci= des Eli> which of the fonts to use. Don't you see that if you type some Eli> character unlikely to have been seen in an "emacs -Q" session? You=CA=BCre right, I=CA=BCd run through this in gdb, and set my breakpoint = on the wrong function. 'C-u C-x =3D' would tell us which backend ended up being used. Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 10:21:54 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 14:21:55 +0000 Received: from localhost ([127.0.0.1]:35865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDq7e-0000kd-LX for submit@debbugs.gnu.org; Thu, 03 Sep 2020 10:21:54 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:54850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDq7d-0000kP-7K for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 10:21:53 -0400 Received: by mail-wm1-f49.google.com with SMTP id s13so3078750wmh.4 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 07:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=sb5d12gXtgf7K66YKsaw8JKKbPzLb4ZDSiRGtTWcDCA=; b=RKblNQGAhX8O8JCvy2UFF4T/CKXB3CZ8QZVsvS/nuNMrLcH66TFPRmn0qizX2EHtB6 /o4ftSWHjbG+Y9/om+uO5sJoRZiexohP6Kd5ShmAKAeG/bRyjW58qsw9MyylB3OBIWm3 uqEOo8pxhhH94cVGv7468SNnensQhh1letwzBaqrapI5T5OGqk5UrWStjDnQtwSDeX2J P7iZ2A8OPBFKnqkZfsEbw2pwWAECfgUclXv0UXnC+fx9SAZvbzAleCbvVSevrdK6SR0Z N3/Fw9uDNplPqGZ1jqrN/cH6GHgS5dAm5OAoikU/UHnlj0fMFFAg9TKvazsG3CXkkH0v jO/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=sb5d12gXtgf7K66YKsaw8JKKbPzLb4ZDSiRGtTWcDCA=; b=ITH/7sv+cmXnfzQT3SWmGj5CyImNpLsonENucfjlpcVEhtN5fs+8BIptNag/uxmTP3 5T8Mflvd5m7ZfIBviuTynpIhrphJdo+Qctpoc+TKAgXD4F24oQ4CT/68FjZ9vmVdTJW9 7AxfgoG12D44cmgrWZopnsCjHkto1w3m+n/2E/Po9ljEDrZBC5n3oYLqRnrN9NVLZU4w 0OGTyhUg0FY3hkOHxzEA9vzpW9TNRj2Cdum004a19+Mt19BR4K6o7t1cjvufksUvQnlw I2rLysF7+F9tuh85CaW0++XRNWWIGLAjqABYRNtXFrwJcyllcfLhYtlo8Ea0LjKUNnN4 tVMA== X-Gm-Message-State: AOAM533806OkMisCpRIkGfx/jPer9IHEB6exsuaBjqpKRYd3XbvuwK1S GFRSR5/jvuEMu3UAuqgk3HA= X-Google-Smtp-Source: ABdhPJzHC0wApon1Pk5dVTHBu4ejFza/BsFyCcpayH9pfG/afXZAuMHUmyDWjWqH4GG2I6S2wL0Pig== X-Received: by 2002:a1c:4e17:: with SMTP id g23mr2875265wmh.135.1599142907303; Thu, 03 Sep 2020 07:21:47 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id c10sm5271471wrn.24.2020.09.03.07.21.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 07:21:46 -0700 (PDT) From: Robert Pluim To: Andreas Schwab Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> Date: Thu, 03 Sep 2020 16:21:45 +0200 In-Reply-To: <87k0xboupe.fsf@igel.home> (Andreas Schwab's message of "Thu, 03 Sep 2020 15:28:45 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, Alexander Shukaev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 03 Sep 2020 15:28:45 +0200, Andreas Schwab said: Andreas> On Sep 03 2020, Robert Pluim wrote: >>>>>>> On Thu, 03 Sep 2020 14:52:22 +0200, Andreas Schwab said: >>=20 Andreas> On Sep 03 2020, Robert Pluim wrote: >> >> tai-viet and han scripts. My GNU/Linux build uses 'Noto Sans Tai = Viet' >> >> for the one, and 'Noto Sans CJK KR' for the other (both via the f= tcr >> >> backend), and there=CA=BCs no slowdown. (you can use C-u C-x =3D = to check). >>=20 Andreas> Do you have many fonts installed? >>=20 >> fc-list | wc -l >> 2897 Andreas> $ fc-list | wc -l Andreas> 11168 Andreas> And there is a huge slowdown here. Does it go away if you set font-backend . ftcrhb in your frame parameters (assuming you=CA=BCre using Cairo)? Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 10:48:08 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 14:48:09 +0000 Received: from localhost ([127.0.0.1]:35913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDqX2-0001O4-NN for submit@debbugs.gnu.org; Thu, 03 Sep 2020 10:48:08 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:56548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDqX0-0001Nw-KE for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 10:48:07 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Bj3ZY2q9zz1qs0Z; Thu, 3 Sep 2020 16:48:05 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Bj3ZY2W6Rz1qrgc; Thu, 3 Sep 2020 16:48:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id tsOQMJiwv_vd; Thu, 3 Sep 2020 16:48:04 +0200 (CEST) X-Auth-Info: fbbfkZBX5tfCs5lGWOU4Z8Z2ibALqOg5EwstgfRj+DArhdj499jCWNcv5yjw1OIn Received: from igel.home (ppp-46-244-174-137.dynamic.mnet-online.de [46.244.174.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 3 Sep 2020 16:48:04 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 155662C2771; Thu, 3 Sep 2020 16:48:04 +0200 (CEST) From: Andreas Schwab To: Robert Pluim Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> X-Yow: I know th'MAMBO!! I have a TWO-TONE CHEMISTRY SET!! Date: Thu, 03 Sep 2020 16:48:04 +0200 In-Reply-To: (Robert Pluim's message of "Thu, 03 Sep 2020 16:21:45 +0200") Message-ID: <87eeniq5ln.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, Alexander Shukaev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sep 03 2020, Robert Pluim wrote: > Does it go away if you set font-backend . ftcrhb in your frame > parameters (assuming youʼre using Cairo)? That completely removes the delay. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 11:10:40 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 15:10:41 +0000 Received: from localhost ([127.0.0.1]:35936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDqsq-0001vp-LM for submit@debbugs.gnu.org; Thu, 03 Sep 2020 11:10:40 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:44061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDqso-0001vb-FZ for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 11:10:39 -0400 Received: by mail-wr1-f53.google.com with SMTP id c15so3586037wrs.11 for <43177@debbugs.gnu.org>; Thu, 03 Sep 2020 08:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=4djSJCCrJfvOO9S5PWSMVwHE1ieJtawKJMb1XVDYP/U=; b=Oc9oEP1esS0859K29VKiR/49EIqX4H32QpUuTOC3K6nSzxCrtfyb5+ONqUJkjY0Hi3 7b4yrSm0Hk855CFxH2YLiFMubXhVmXGyhpH71lKvusQCL3jIakDSyiuuY8zJql0XHVuT WymkhfSzvfAJuGjANWvHRolRyNHhYQXQiAXUE3vck65kvOIzzeVzTXN4ZVJSu7UwXvgv GWaV6dUoAQGZNSXuiuYgGrRFi/hF/3nLUb5ug903u9OGDWwTk3rdnG7yFQy7wou5V221 7I2gdtdYMenvwi3GUgpGkcBmgkaOZh7+RsvlRdu4KyIU1UHaM9MX4rqGRj93Mw8T2uYo Ov6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=4djSJCCrJfvOO9S5PWSMVwHE1ieJtawKJMb1XVDYP/U=; b=bypQjzwhSnQvS8+K0Ig29dcnNZbx7E9cnVWt4suLzGrrCrzDacWWysYKVhajSAL8fw ZLIehgZftAsKVfL94EgcVJ3xulWIdDiUDAxixqw7QA8MA5TEVwbjdA3Q4/L+kdaSD+uv 9dvCBgpc413l7A1FLTNGAU4AVZF0+uO5fS6tvyJV91jrlHyNPBNp4Yi4KhbDyIax0/W7 xizlZXIiBfcX4VH+CaIudAT6+AElX8JJNLJ2Ux4grL0HCfmg9jmHQ2N0VidlMtn7YMLR 6TUJbGAbEYyegOvuwkhWhMKVWnWyq5owr7ZIjG3METRV1N/s6QQXzV6NGLXZgJzE9FdM Xt5Q== X-Gm-Message-State: AOAM5331GHUrbOW0tJefxFjPrfvwzQbdbYCkmV8XfzByTAmqJOXqCewp n7i/86oXcRC4kVDrWbH+KTI= X-Google-Smtp-Source: ABdhPJyChwpAXoAtwWHQx+yJb5wrFK/JGGOhVf75hpA7oYShAmevwl8cXgH+XCSWuzxa0c+S1QbblQ== X-Received: by 2002:a5d:6cd4:: with SMTP id c20mr2847325wrc.234.1599145832457; Thu, 03 Sep 2020 08:10:32 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:7c82:fd7:9e25:6f18]) by smtp.gmail.com with ESMTPSA id o4sm895424wru.55.2020.09.03.08.10.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 08:10:31 -0700 (PDT) From: Robert Pluim To: Andreas Schwab Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> Date: Thu, 03 Sep 2020 17:10:30 +0200 In-Reply-To: <87eeniq5ln.fsf@igel.home> (Andreas Schwab's message of "Thu, 03 Sep 2020 16:48:04 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, Alexander Shukaev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 03 Sep 2020 16:48:04 +0200, Andreas Schwab said: Andreas> On Sep 03 2020, Robert Pluim wrote: >> Does it go away if you set font-backend . ftcrhb in your frame >> parameters (assuming you=CA=BCre using Cairo)? Andreas> That completely removes the delay. So the solution is easy: just deprecate and remove the 'x' backend :-) Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 12:39:56 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 16:39:56 +0000 Received: from localhost ([127.0.0.1]:36004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDsHE-00047r-1U for submit@debbugs.gnu.org; Thu, 03 Sep 2020 12:39:56 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:58199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDsHB-00047d-Vv for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 12:39:54 -0400 X-Originating-IP: 95.223.75.175 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 relay8-d.mail.gandi.net (Postfix) with ESMTPSA id BAB8C1BF207; Thu, 3 Sep 2020 16:39:46 +0000 (UTC) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' To: Robert Pluim , Andreas Schwab 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> From: Alexander Shukaev Message-ID: <237d1b4a-4f7c-20e2-1b40-f406eadb2d0f@Alexander.Shukaev.name> Date: Thu, 3 Sep 2020 18:39:45 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 03/09/2020 17:10, Robert Pluim wrote: >>>>>> On Thu, 03 Sep 2020 16:48:04 +0200, Andreas Schwab said: > > Andreas> On Sep 03 2020, Robert Pluim wrote: > >> Does it go away if you set font-backend . ftcrhb in your frame > >> parameters (assuming youʼre using Cairo)? > > Andreas> That completely removes the delay. > > So the solution is easy: just deprecate and remove the 'x' backend :-) > > Robert > Love that tip, man! Confirming the speed up. Thanks a lot! From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 13:38:07 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 17:38:07 +0000 Received: from localhost ([127.0.0.1]:36084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDtBX-0005Y9-CS for submit@debbugs.gnu.org; Thu, 03 Sep 2020 13:38:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDtBV-0005XY-Ey for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 13:38:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41568) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDtBO-0003zl-RW; Thu, 03 Sep 2020 13:37:58 -0400 Received: from [176.228.60.248] (port=1102 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kDtBO-0003z4-5N; Thu, 03 Sep 2020 13:37:58 -0400 Date: Thu, 03 Sep 2020 20:37:47 +0300 Message-Id: <83ft7yvk0k.fsf@gnu.org> From: Eli Zaretskii To: Robert Pluim In-Reply-To: (message from Robert Pluim on Thu, 03 Sep 2020 17:10:30 +0200) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, schwab@linux-m68k.org, emacs@Alexander.Shukaev.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Robert Pluim > Date: Thu, 03 Sep 2020 17:10:30 +0200 > Cc: 43177@debbugs.gnu.org, Alexander Shukaev > > >>>>> On Thu, 03 Sep 2020 16:48:04 +0200, Andreas Schwab said: > > Andreas> On Sep 03 2020, Robert Pluim wrote: > >> Does it go away if you set font-backend . ftcrhb in your frame > >> parameters (assuming youʼre using Cairo)? > > Andreas> That completely removes the delay. > > So the solution is easy: just deprecate and remove the 'x' backend :-) Easy: yes. Possible: no. Unfortunately. Do we understand why including the x backend produces such a huge delay? Where is most of that time spent, and why? From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 13:51:22 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 17:51:22 +0000 Received: from localhost ([127.0.0.1]:36098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDtOM-0005rC-21 for submit@debbugs.gnu.org; Thu, 03 Sep 2020 13:51:22 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:48847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDtOK-0005r2-AB for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 13:51:21 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Bj7dy6Jg4z1rrLW; Thu, 3 Sep 2020 19:51:18 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Bj7dy5bbxz1qsnd; Thu, 3 Sep 2020 19:51:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id I0ly3GPP86HH; Thu, 3 Sep 2020 19:51:17 +0200 (CEST) X-Auth-Info: NVDf/zEL0gO3uX2mNU+nUPW82j9Kknko1j/PYe4PdGtJzzMciYX34Dy8L1J8ZswX Received: from igel.home (ppp-46-244-174-137.dynamic.mnet-online.de [46.244.174.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 3 Sep 2020 19:51:17 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 6FFE32C276A; Thu, 3 Sep 2020 19:51:17 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> X-Yow: Is something VIOLENT going to happen to a GARBAGE CAN? Date: Thu, 03 Sep 2020 19:51:17 +0200 In-Reply-To: <83ft7yvk0k.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Sep 2020 20:37:47 +0300") Message-ID: <87a6y6oiju.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, Robert Pluim , emacs@Alexander.Shukaev.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sep 03 2020, Eli Zaretskii wrote: > Do we understand why including the x backend produces such a huge > delay? Where is most of that time spent, and why? 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). Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 14:24:46 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 18:24:46 +0000 Received: from localhost ([127.0.0.1]:36150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDtuf-0000R7-RN for submit@debbugs.gnu.org; Thu, 03 Sep 2020 14:24:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDtud-0000Qu-E2 for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 14:24:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42378) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDtuX-0001wc-SM; Thu, 03 Sep 2020 14:24:37 -0400 Received: from [176.228.60.248] (port=4307 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kDtuW-0002eS-UT; Thu, 03 Sep 2020 14:24:37 -0400 Date: Thu, 03 Sep 2020 21:24:24 +0300 Message-Id: <83blimvhuv.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-Reply-To: <87a6y6oiju.fsf@igel.home> (message from Andreas Schwab on Thu, 03 Sep 2020 19:51:17 +0200) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, rpluim@gmail.com, emacs@Alexander.Shukaev.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Andreas Schwab > Cc: Robert Pluim , 43177@debbugs.gnu.org, > emacs@Alexander.Shukaev.name > Date: Thu, 03 Sep 2020 19:51:17 +0200 > > On Sep 03 2020, Eli Zaretskii wrote: > > > Do we understand why including the x backend produces such a huge > > delay? Where is most of that time spent, and why? > > 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). If that is the reason, I guess we should try to minimize the number of fonts for which this is done. Like, for example, set up some data structure to be consulted when a deciding whether a given font should be used with the x backend. After all, the number of fonts for which that backend is needed is quite small, basically bitmapped fonts. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 15:47:53 2020 Received: (at 43177) by debbugs.gnu.org; 3 Sep 2020 19:47:53 +0000 Received: from localhost ([127.0.0.1]:36256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDvD7-0002U6-FO for submit@debbugs.gnu.org; Thu, 03 Sep 2020 15:47:53 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:53297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDvD4-0002Tr-U4 for 43177@debbugs.gnu.org; Thu, 03 Sep 2020 15:47:51 -0400 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 relay10.mail.gandi.net (Postfix) with ESMTPSA id 8CB92240007; Thu, 3 Sep 2020 19:47:43 +0000 (UTC) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' From: Alexander Shukaev To: Robert Pluim , Andreas Schwab 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> <237d1b4a-4f7c-20e2-1b40-f406eadb2d0f@Alexander.Shukaev.name> Message-ID: Date: Thu, 3 Sep 2020 21:47:41 +0200 MIME-Version: 1.0 In-Reply-To: <237d1b4a-4f7c-20e2-1b40-f406eadb2d0f@Alexander.Shukaev.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 03/09/2020 18:39, Alexander Shukaev wrote: > On 03/09/2020 17:10, Robert Pluim wrote: >>>>>>> On Thu, 03 Sep 2020 16:48:04 +0200, Andreas Schwab >>>>>>> said: >> >>      Andreas> On Sep 03 2020, Robert Pluim wrote: >>      >> Does it go away if you set font-backend . ftcrhb in your frame >>      >> parameters (assuming youʼre using Cairo)? >> >>      Andreas> That completely removes the delay. >> >> So the solution is easy: just deprecate and remove the 'x' backend :-) >> >> Robert >> > > Love that tip, man!  Confirming the speed up.  Thanks a lot! For future visitors and for completeness sake, my per-frame font setup function now looks like this: (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-backend (assoc 'font-backend default-frame-alist))) (if font-backend (when (eq frame frame-initial-frame) (modify-frame-parameters frame `((font-backend . ,font-backend))) (unless noninteractive (message "Font Backend: `%s'" font-backend))) (when (and (> emacs-major-version 26) (boundp 'cairo-version-string)) (setq font-backend "ftcrhb")) (when font-backend (add-to-list 'default-frame-alist `(font-backend . ,font-backend)) (modify-frame-parameters frame `((font-backend . ,font-backend))) (unless noninteractive (message "Font Backend: `%s'" font-backend))))) (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)))))))) Typical usage is to add the following stanza to Emacs Lisp initialization file(s): (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)) From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 04 02:54:37 2020 Received: (at 43177) by debbugs.gnu.org; 4 Sep 2020 06:54:37 +0000 Received: from localhost ([127.0.0.1]:37098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kE5cL-0005Nd-4M for submit@debbugs.gnu.org; Fri, 04 Sep 2020 02:54:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kE5cJ-0005NP-F1 for 43177@debbugs.gnu.org; Fri, 04 Sep 2020 02:54:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53865) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kE5c9-0001Ir-VA; Fri, 04 Sep 2020 02:54:28 -0400 Received: from [176.228.60.248] (port=2305 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kE5c8-0001Gy-Nu; Fri, 04 Sep 2020 02:54:25 -0400 Date: Fri, 04 Sep 2020 09:54:14 +0300 Message-Id: <83a6y6uj55.fsf@gnu.org> From: Eli Zaretskii To: Alexander Shukaev In-Reply-To: (message from Alexander Shukaev on Thu, 3 Sep 2020 21:47:41 +0200) Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> <237d1b4a-4f7c-20e2-1b40-f406eadb2d0f@Alexander.Shukaev.name> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, rpluim@gmail.com, schwab@linux-m68k.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Alexander Shukaev > Date: Thu, 3 Sep 2020 21:47:41 +0200 > Cc: 43177@debbugs.gnu.org > > >> So the solution is easy: just deprecate and remove the 'x' backend :-) > >> > >> Robert > >> > > > > Love that tip, man!  Confirming the speed up.  Thanks a lot! > > For future visitors and for completeness sake, my per-frame font setup > function now looks like this: For those same future visitors, a word of warning: removing the x font backend will make some (rarely used) fonts unavailable to Emacs. Caveat emptor! From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 04 03:45:46 2020 Received: (at 43177) by debbugs.gnu.org; 4 Sep 2020 07:45:46 +0000 Received: from localhost ([127.0.0.1]:37159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kE6Pq-0006ik-HH for submit@debbugs.gnu.org; Fri, 04 Sep 2020 03:45:46 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:46973) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kE6Pp-0006iX-6Q for 43177@debbugs.gnu.org; Fri, 04 Sep 2020 03:45:45 -0400 Received: by mail-wr1-f52.google.com with SMTP id o5so5666472wrn.13 for <43177@debbugs.gnu.org>; Fri, 04 Sep 2020 00:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=XH/Ie4DKm1TqHh0kPhqz6sB2YWKPrQzAChBCd5kui0Y=; b=Qkc4zIggo5Q0T6YmX4V42YuYGzEf9xz9nx0mF2X9tRVKFRCpH2xOQpxjRlwlMbkMdu 1cOmYEfkOUTCvh9lEgJtHbg+an3jBfI74iFdhpDQOVZPiPJX/TGlBlfG2iKLpnox66y/ ugsu8Dee8WAnrjzEgpiRpNp12PqPu0jAVNw/qq13WDjaNSXjVzlqAsIZoMh9M35AgQRC +R7rljGwMT0xN9YLfG/1kf/oYmXM1/c/UXoEDIMAuMwXVCMnbotJImThof/YgfwxeAtK INRIcIlGTzj+R+yTugXBxa50Gxz2cJqrH9M3nIYsleNEs7plsCFbTbsiJjibvNEsiTqH 0LIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=XH/Ie4DKm1TqHh0kPhqz6sB2YWKPrQzAChBCd5kui0Y=; b=Rx3IFx5V6SsnNsl22Iun6A6xJCh/AXBHoxtQuM84PbmPykq/Xwo/uWmAbrKznT2C11 NVd7LNYurZhad1iVgzIIai9Bad7Vw3sxHWUGcDu9yIjJdP5rr7FrA2HGXBLwCkPhE47G 2TTVkD4APsRbrz568PkA+9SBcdl67ECztl5RPrCeoJZbqXEtDmgBq4zt0S3XwIfX5iTa UQPkBizfCLWiywHZPN90W8YDbxDxzqPbqzKPYhq6BISxhOO5jLERB+ggvuLiq7HwBL9+ nruLewoHP+TP+w8Fw1zbzMkB1EfaqDvJLsFgRc+7SCABg9qiFFj9CUWqN2hkizhNQ7YU zCOw== X-Gm-Message-State: AOAM533+zXJbaDUFYuSEvvkkNkYnDX6Q30ewEq6tD9l51jZnbTjw/gKp 3NlgQ3qbShKo2bYfT5JOIQg= X-Google-Smtp-Source: ABdhPJymQ7BGU2gTu+De4cwbSxrA8rRXzMvbl/bj1QNG4hoDPDSgm3QMFYqpZ4My6uSLTfSWmtzNeA== X-Received: by 2002:adf:e4cf:: with SMTP id v15mr6197020wrm.174.1599205539061; Fri, 04 Sep 2020 00:45:39 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:8409:1beb:8d81:9d2a]) by smtp.gmail.com with ESMTPSA id m10sm9185521wmi.9.2020.09.04.00.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 00:45:38 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#43177: Bug: Emacs 27.1 hangs forever in `FcCharSetSubtractCount' from '/usr/lib/libfontconfig.so.1' 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> Date: Fri, 04 Sep 2020 09:45:37 +0200 In-Reply-To: <83blimvhuv.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Sep 2020 21:24:24 +0300") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43177 Cc: 43177@debbugs.gnu.org, Andreas Schwab , emacs@Alexander.Shukaev.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 03 Sep 2020 21:24:24 +0300, Eli Zaretskii said: >> From: Andreas Schwab >> Cc: Robert Pluim , 43177@debbugs.gnu.org, >> emacs@Alexander.Shukaev.name >> Date: Thu, 03 Sep 2020 19:51:17 +0200 >>=20 >> On Sep 03 2020, Eli Zaretskii wrote: >>=20 >> > Do we understand why including the x backend produces such a huge >> > delay? Where is most of that time spent, and why? >>=20 >> 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 numbe= r 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 sho= uld Eli> be used with the x backend. After all, the number of fonts for wh= ich Eli> that backend is needed is quite small, basically bitmapped fonts. xfont_supported_scripts already skips opening a font if it=CA=BCs for Japanese or Korean. Perhaps we should add tai-viet to that list?