From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Emacs 28: Specific TTF font gets loaded with font-backend x instead of ftcrhb Date: Sat, 08 Feb 2020 10:39:22 +0100 Message-ID: <87v9oh8lkl.fsf@gnu.org> References: <87pneu1u9e.fsf@gnu.org> <83mu9ygyi7.fsf@gnu.org> <87imkmi46d.fsf@gnu.org> <83eevagoh8.fsf@gnu.org> <878slh0yr8.fsf@gnu.org> <83y2thezjq.fsf@gnu.org> <87v9okyyt5.fsf@gnu.org> <83pnerfuq1.fsf@gnu.org> <835zgig231.fsf@gnu.org> <87lfpe65my.fsf@gnu.org> <83y2teedbh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="90808"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 08 10:39:48 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j0MaZ-000NXL-S4 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Feb 2020 10:39:47 +0100 Original-Received: from localhost ([::1]:39394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0MaY-0006Tf-UH for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Feb 2020 04:39:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34993) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0MaC-0006JP-MG for help-gnu-emacs@gnu.org; Sat, 08 Feb 2020 04:39:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j0MaC-0000NS-I4 for help-gnu-emacs@gnu.org; Sat, 08 Feb 2020 04:39:24 -0500 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:57445) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1j0MaB-0005wL-VJ; Sat, 08 Feb 2020 04:39:23 -0500 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id A9FC821B1B; Sat, 8 Feb 2020 04:39:23 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sat, 08 Feb 2020 04:39:23 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrheejgddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgesthdtredttdertdenucfhrhhomhepvfgrshhsihhl ohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucfkphepkeegrddufedvrdelle druddvkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekje ekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p54846380.dip0.t-ipconnect.de [84.132.99.128]) by mail.messagingengine.com (Postfix) with ESMTPA id 020D9328005E; Sat, 8 Feb 2020 04:39:22 -0500 (EST) In-Reply-To: <83y2teedbh.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Feb 2020 15:28:50 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122370 Archived-At: Eli Zaretskii writes: >> By the way, if I enable ligatures, I get reproducible infloops or >> something alike. The visual bell starts ringing/blinking, C-g won't >> help, and even with debug-on-{error,quit} I'm unable to get into the >> debugger. I can reproduce that simply by starting Gnus and trying to >> enter a group but I got that also once with pushing my commits in >> Magit and sometimes when quitting emacs with C-x C-c. >> >> Attached is a GDB backtrace. > > Some Lisp error happens during command processing. We need to know > which error. Try this: > > (gdb) frame 16 > (gdb) pp data > > The number 16 may need to be changed, it should be the number of this > call-stack frame: > > #16 0x000055555566d191 in cmd_error (data=XIL(0x555558f70713)) at > keyboard.c:953 (gdb) frame 16 #16 0x000055555566d16e in cmd_error (data=XIL(0x555559b53a43)) at keyboard.c:953 953 cmd_error_internal (data, macroerror); (gdb) pp data (error "Attempt to shape unibyte text") That's signalled in composite.c's Fcomposition_get_gstring function, either line 1738 or 1749. I've set beakpoints there, and now I have an emacs instance halted at 1749. Thread 1 "emacs" hit Breakpoint 4, Fcomposition_get_gstring ( from=, to=, font_object=XIL(0x5555562346e5), string=XIL(0x555556a34ec4)) at composite.c:1749 1749 error ("Attempt to shape unibyte text"); The backtrace is this: --8<---------------cut here---------------start------------->8--- (gdb) bt #0 0x000055555572f850 in Fcomposition_get_gstring (from=, to=, font_object=XIL(0x5555562346e5), string=XIL(0x555556a34ec4)) at composite.c:1749 #1 0x000055555572fd75 in autocmp_chars (rule=XIL(0x555556899e35), charpos=, bytepos=0, limit=2, win=0x55555621c3e0, face=0x5555588fa5d0, string=XIL(0x555556a34ec4), direction=XIL(0x25b0)) at lisp.h:1147 #2 0x00005555557331ea in composition_reseat_it (cmp_it=0x7fffffff9340, charpos=0, bytepos=0, endpos=2, w=0x55555621c3e0, bidi_level=, face=0x5555588fa5d0, string=XIL(0x555556a34ec4)) at composite.c:1222 #3 0x00005555555bcdba in next_element_from_string (it=0x7fffffff8ac0) at xdisp.c:8408 #4 0x00005555555bcbcd in next_element_from_string (it=0x7fffffff8ac0) at xdisp.c:8316 #5 0x00005555555bf267 in get_next_display_element (it=0x7fffffff8ac0) at xdisp.c:7518 #6 0x00005555555c50b9 in display_string (string=, lisp_string=, face_string=, face_string_pos=, start=, it=0x7fffffff8ac0, field_width=, precision=, max_x=871, multibyte=) at xdisp.c:26721 #7 0x00005555555c567a in display_mode_element (it=0x7fffffff8ac0, depth=3, field_width=0, precision=-3, elt=XIL(0x555556a3--Type for more, q to quit, c to continue without paging--c 4ec4), props=XIL(0), risky=false) at lisp.h:1541 #8 0x00005555555c6cd0 in display_mode_element (it=0x7fffffff8ac0, depth=1, field_width=0, precision=0, elt=XIL(0x555558f75af3), props=XIL(0), risky=) at lisp.h:1449 #9 0x00005555555c7590 in display_mode_line (w=, face_id=MODE_LINE_FACE_ID, format=XIL(0x555558f75b33)) at xdisp.c:25065 #10 0x00005555555c785b in display_mode_lines (w=0x55555621c3e0) at lisp.h:730 #11 0x00005555555e2894 in redisplay_window (window=XIL(0x55555621c3e5), just_this_one_p=) at xdisp.c:18861 #12 0x00005555555e3d77 in redisplay_window_0 (window=) at xdisp.c:16194 #13 0x00005555556dac06 in internal_condition_case_1 (bfun=0x5555555e3d48 , arg=XIL(0x55555621c3e5), handlers=, hfun=0x5555555a9fa8 ) at eval.c:1379 #14 0x00005555555ad7d6 in redisplay_windows (window=XIL(0x55555621c3e5)) at xdisp.c:16174 #15 0x00005555555d1b0e in redisplay_internal () at xdisp.c:15642 #16 0x00005555555d2b5f in redisplay () at xdisp.c:14869 #17 0x0000555555673e35 in read_char (commandflag=1, map=XIL(0x555559798473), prev_event=XIL(0), used_mouse_menu=0x7fffffffe08b, end_time=0x0) at keyboard.c:2493 #18 0x0000555555677272 in read_key_sequence (keybuf=0x7fffffffe1c0, prompt=XIL(0), dont_downcase_last=, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9553 #19 0x0000555555677dd5 in command_loop_1 () at keyboard.c:1350 #20 0x00005555556dab90 in internal_condition_case (bfun=0x555555677bf8 , handlers=, hfun=0x55555566d058 ) at eval.c:1355 #21 0x0000555555669db5 in command_loop_2 (ignore=) at lisp.h:1032 #22 0x00005555556dab07 in internal_catch (tag=, func=0x555555669d99 , arg=XIL(0)) at eval.c:1116 #23 0x0000555555669acb in command_loop () at keyboard.c:1070 #24 0x000055555566cd2e in recursive_edit_1 () at keyboard.c:714 #25 0x000055555566cfb1 in Frecursive_edit () at keyboard.c:786 #26 0x0000555555668cc7 in main (argc=1, argv=0x7fffffffe608) at emacs.c:2037 Lisp Backtrace: "redisplay_internal (C function)" (0x0) --8<---------------cut here---------------end--------------->8--- I keep this instance open for inspection (but it is easy for me to get there again anyway). Just tell me what frames are of interest to you and what I should inspect there. (I guessed that maybe frame 6 could be of interest to get the string but that's optimized out [should I requild -O0?], and frame 14 to get the window but "p window" just prints $5 = XIL(0x55555621c3e5)). Bye, Tassilo