From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: struct face question
Date: Fri, 16 Sep 2022 10:42:20 +0300 [thread overview]
Message-ID: <83illn4vfn.fsf@gnu.org> (raw)
In-Reply-To: <87fsgrwza4.fsf@yahoo.com> (message from Po Lu on Fri, 16 Sep 2022 15:31:47 +0800)
> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Fri, 16 Sep 2022 15:31:47 +0800
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> 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.
The assertion that triggers is too early: we don't use the fontset
information before this part:
fontset = FONTSET_FROM_ID (face->fontset);
eassert (!BASE_FONTSET_P (fontset));
So does the problem go away if you move the assertion before the first
of these two lines?
next prev parent reply other threads:[~2022-09-16 7:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87o7vfx4ni.fsf.ref@yahoo.com>
2022-09-16 5:35 ` struct face question Po Lu
2022-09-16 6:49 ` Eli Zaretskii
2022-09-16 7:31 ` Po Lu
2022-09-16 7:42 ` Eli Zaretskii [this message]
2022-09-16 8:11 ` Po Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83illn4vfn.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.