From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: struct face question Date: Fri, 16 Sep 2022 15:31:47 +0800 Message-ID: <87fsgrwza4.fsf@yahoo.com> References: <87o7vfx4ni.fsf.ref@yahoo.com> <87o7vfx4ni.fsf@yahoo.com> <83leqj4xvh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30670"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 16 09:33:39 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oZ5qy-0007mx-IK for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Sep 2022 09:33:36 +0200 Original-Received: from localhost ([::1]:60904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZ5qv-0006Kt-VV for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Sep 2022 03:33:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ5pR-0005dC-9Y for emacs-devel@gnu.org; Fri, 16 Sep 2022 03:32:01 -0400 Original-Received: from sonic314-22.consmr.mail.ne1.yahoo.com ([66.163.189.148]:35146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZ5pO-0000c4-EE for emacs-devel@gnu.org; Fri, 16 Sep 2022 03:32:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663313515; bh=Nk+LZi75pe+T85MmqL0RwatOYRKe5n65UeAMkEp5FY8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=q+jfaKIvKlS3ySLk+FgidY/2XoJYwEClObFhcfvXcEdhQK6DA1FbkVRZ/j/8ssRbdh/QB8X6a4Kod/dbLJ/q36v5qSHjtyKMQ999ni9KQ8w/Dx2omhXpGLa18jUI1FotF/KnX/OPZ2NExXQnphtB1Y7rXz0I32kYYw2DlaHCQPnnUMr6rSw77pdmWN48nRUQsJAFgP5tI6fAYowyUgdrz/8N69RkGi5m/lyc2rbwHjRTFELgToiT05fMP89x4LHJR9nXS53WtA3x/t/61m2jDrDmE2t/cVVhNi7nXaW+j/U5aRwFtHgwWE7vdHB5eTbDB4gFx1GAL1Bn6yl3n65SPA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663313515; bh=Y0PnpOlwBkXCt5npzyt8cFQsQSWZDHBimUp3qDRkAbK=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=F4PlP9hoDaADvfFjCJf2sD8OQ41YgouBCpS0xvdq1g8Vp4I+g50dnIsYAAyR1dSYR5jhgvn+P36Kd2RIL7gf6QbwESxTUp1Jj4iEd9CQiEZd9En91Sev1qbyPZ5IqLtGo5ARLH6QZ5i2or3GzxuXLxYTX1VYtGs+vUzHKZggFtdoRCRX9JrAcA9/I/H1yKjgGk/JdFQcbkCWqZmg1ng0CfUveA8C/183uv3CMMR+gnojMpz2SLgkaG89CrjKGPpce3q1Zk+p9r50qeLCJIntqbOkUf42v1pOH9wSfWweDCtbpfO3INb/t5bjIdkj+oOpFhgG6ja0iEklqXHZyP+XWg== X-YMail-OSG: iurwx90VM1nbd95K8f2BBra9NSAFXB52ZrH8L9tBhSp1Qu3CARO6slom13DCDsc 6wqJFnP8bybZ2WNynhVYOSpd7yMv_PtGFYsDpxr1I61BHuiaaRBgmg9ieulzkTPV7SONEdEUJQae No5c9MrrcIsVJOC3R6n9pzjszSaXUjjgAFsiw9Uaq_lDZtAAX6hVEyqhA2clFs22MujrVJGyqSf9 9OZhXJ9BSu2OgjMMm20_VI0ru_VKNC2KocEeVk3VBroM9jzaTWOtxaSOJtqaJ2dE5RrL8iXnjb6X TVp2_LiIWX3RFCtnHesngqOP8X21IwcZ9eqwg0WJzi8NKsv1BGUXDa3HWF0zj47d3MsEYPLgit6B 7uJdJYYW3uYyJDAiplyHLHWQ8BQy0u63HY7pxWI.RMLQjvIjqQN4wLQRqYRvvmnilfeQMxULboIo f3iPYmjFci87nFHLzAjRqdk_IDBdlK__yK.6qFoBCKOQ9vdt.dddjpgHzv9e1aarZz0ksbhWZDJa v2hbioJmx9q_SIoboCVweLWOciSwzePT4eGA941VR3RNHjDK4zQXaW71JJkxmmzqTTNqHoiAOBIu BzkpavH7Wa1iJwxY1U9TjcqfAQRun6fd8wL_jy8zs7J8zqVYJ_yA2JEaHMY71sdVnlit6DapCmgv f07e.jUhmWDA7ShpU_KsNyz.wNdmw1sDIJkxmkpGev.0L_z4fUDPBcIBmuF8WU68i4MnrVkutKtm SfrPch0CHQLYW9mNPy16XG72RCu_xYRIGcuoEPVsHKzB4csq4SCZaQ_ONKfr4fvWcZb0AkzRHH88 L8plYRbCDjFhRk9Q9YDPjdV1kYUu.54G6RfyPaZQ3I X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Fri, 16 Sep 2022 07:31:55 +0000 Original-Received: by hermes--canary-production-sg3-6bb8946c47-r6ds5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 10e5a6156b3c70499df75448613892c2; Fri, 16 Sep 2022 07:31:51 +0000 (UTC) In-Reply-To: <83leqj4xvh.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 16 Sep 2022 09:49:38 +0300") X-Mailer: WebService/1.1.20612 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.148; envelope-from=luangruo@yahoo.com; helo=sonic314-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295458 Archived-At: Eli Zaretskii writes: > Yes, I think so. It means there's no fontset for this face. Which is > normal when there's no font. Thanks. >> The X font backend doesn't >> support scaling fonts, so displaying the separator-line face fails to >> find a font with height 0.1, causing the following part of >> realize_gui_face to be called: >> >> else >> { >> face->font = NULL; >> face->fontset = -1; >> } >> >> leading to face_for_char aborting from face->fontset being -1 later on. > > Please show a full backtrace from the crash, and preferably also a > reproducer. What character are we trying to display in that case? In that specific case, a newline character. But the problem can also be easily reproduced with the following code: (insert (propertize "foo" 'face '(:height 0.1))) as long as no core font of that height is installed. Here is the backtrace from one such crash: #0 terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at emacs.c:421 #1 0x000000000042df2a in die (msg=msg@entry=0x7181c0 "fontset_id_valid_p (face->fontset)", file=file@entry=0x717ebc "fontset.c", line=line@entry=925) at alloc.c:7672 #2 0x000000000043b697 in face_for_char (f=0x1a98c30 , face=face@entry=0x9101e90, c=102, pos=1, object=XIL(0)) at fontset.c:925 #3 0x00000000004825a7 in FACE_FOR_CHAR (object=, pos=, character=, face=0x9101e90, f=) at /home/oldosfan/emacs-dev/emacs-gc/src/dispextern.h:1911 #4 get_next_display_element (it=0x7fffffff5c80) at xdisp.c:8244 #5 0x0000000000489140 in display_line (it=0x7fffffff5c80, cursor_vpos=) at xdisp.c:24726 #6 0x000000000048e903 in try_window (window=XIL(0x1a99c35), pos=..., flags=) at xdisp.c:20594 #7 0x00000000004afe08 in redisplay_window (window=, just_this_one_p=) at xdisp.c:19991 #8 0x00000000004b1a2b in redisplay_window_0 (window=window@entry=XIL(0x1a99c35)) at xdisp.c:17493 #9 0x0000000000611d64 in internal_condition_case_1 (bfun=bfun@entry=0x4b1a00 , arg=arg@entry=XIL(0x1a99c35), handlers=, hfun=hfun@entry=0x45df30 ) at eval.c:1516 #10 0x000000000045c8e9 in redisplay_windows (window=XIL(0x1a99c35)) at xdisp.c:17463 #11 0x00000000004987eb in redisplay_internal () at xdisp.c:16912 #12 0x0000000000587821 in read_char (commandflag=1, map=XIL(0x9778b93), prev_event=XIL(0), used_mouse_menu=0x7fffffffd97b, end_time=0x0) at keyboard.c:2634 #13 0x000000000058b159 in read_key_sequence (keybuf=, prompt=XIL(0), dont_downcase_last=, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:10036 #14 0x000000000058d2ac in command_loop_1 () at /home/oldosfan/emacs-dev/emacs-gc/src/lisp.h:1163 #15 0x0000000000611cb7 in internal_condition_case (bfun=bfun@entry=0x58d090 , handlers=handlers@entry=XIL(0x90), hfun=hfun@entry=0x57f9d0 ) at eval.c:1492 #16 0x0000000000575c7a in command_loop_2 (handlers=handlers@entry=XIL(0x90)) at keyboard.c:1132 #17 0x0000000000611bf1 in internal_catch (tag=, func=func@entry=0x575c60 , arg=arg@entry=XIL(0x90)) at eval.c:1215 #18 0x0000000000576570 in command_loop () at keyboard.c:1110 #19 0x000000000057f19c in recursive_edit_1 () at keyboard.c:719 #20 0x000000000057f792 in Frecursive_edit () at keyboard.c:802 #21 0x000000000043dd6f in main (argc=, argv=) at emacs.c:2517