GNU bug report logs - #82169
Crash in face_for_font on macOS in master

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Robert Pluim <rpluim@HIDDEN>; merged with #81619; dated Mon, 2 Nov 2026 17:45:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 9 Nov 2026 14:25:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 09 09:25:50 2026
Received: from localhost ([127.0.0.1]:53781 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xQQJh-0008AY-2P
	for submit <at> debbugs.gnu.org; Mon, 09 Nov 2026 09:25:50 -0500
Received: from mail-vk1-xa31.google.com ([2607:f8b0:4864:20::a31]:52331)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1xQQJe-00088b-5k
 for 82169 <at> debbugs.gnu.org; Mon, 09 Nov 2026 09:25:47 -0500
Received: by mail-vk1-xa31.google.com with SMTP id
 71dfb90a1353d-5ead5ff47caso291906e0c.0
 for <82169 <at> debbugs.gnu.org>; Mon, 09 Nov 2026 06:25:46 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1794234340; cv=none;
 d=google.com; s=arc-20260327;
 b=rgIW95aY2TrnUcfmXv5uWc/iblInEjwM/36vyOLT/r8y3ijaDP328CmfC/+sUrP7N1
 rRgYyMA2hpg5AO9fLcYgKb7kYG2/1HnJbwgdhS5Rlpej/aa7zkWc26KbnFm4o5gt/WNq
 CMxDKEHQzkHHDN3iYYbAbKe7WfRvhlLiMyKkp4lPnp9gHBXseyxWL3IttQoYUTL7HABv
 EWBKR49r8Aj71aElUb/NDSBscUxqF749C9IfepBA2Z7lrNHmkekRe33wbb5nObkdGia8
 YLrvIuhtQiv7N5OybcWb7Nhg9m9bJJp6A3MM4vm9zurbc4UDXNODmb4xpx+PrT/2dU4C
 ZxEg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=HwcyCk+wnGnzXhSrLYQ9ztqn5/+82ZsyP7xMiwyF+r4=;
 fh=KhpZB5av7/4sd+JUNQZqiPR4oP4on7GH+WB0EMfbA8c=;
 b=F8BWvp7+B1EmFByTADk48uRREearqIXe/X67e9uQEfKSWYXefPVTGADWBLW8+yJQkj
 3HzGrXLLjXhR4JuDeaA9v/HrMt8cMYO8ughzzwuIHGM1nO+EDwLsgLpIDFefWpu3eIeC
 7Z0d0SnIQnKGVt8z9EDBc+C8rMfOhGRW0J7BZHyTu7sEVvcl6c6aQR7C1dVDfE4LiFQs
 +cFvBBcrgKV2/eTZ9/SEDI98ujS3Ke5+f4D3T+lS43GO9PJFRjRSwrYOU4Irlt+dhWX3
 UwJV5+9zdmGhtSOy6fwzkvDhX2QYrjFF9Z8jpM73OQvOwBydJv+Z86bEBAOFcYqr7G1t
 wEYw==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1794234340; x=1794839140; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=HwcyCk+wnGnzXhSrLYQ9ztqn5/+82ZsyP7xMiwyF+r4=;
 b=yT/Q7N0xkXzfymwkFQ63dTpwlFiE8CAY1PIUz2COQfMrxTEtouayv1Be/XsHFVYmA2
 nzNB6kygQetB75GxURJEm/3hf+KB6N//yJB/liEEUFizgxUXJxuCfiN/SaVNHOALG/5/
 GKykH0oolfsBEnzR4/zU7TCXM/zvC7Qp+iwlack6m3WI4RK6tz0tCk8cioXReczJ5WPZ
 ycOuYhLQt2rJ/VPCuplGq6SHkvr40tRU1xN7FcoEyJ3I1PKoYcdAMuL71IOqdTVihTxS
 8ltGYT1pG4ZKy3h+/6sQOB46TaJyWRXV30qVI2x8VkWLulhYXP3Z2cTfmNPEZK48L5Kj
 8kCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1794234340; x=1794839140;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=HwcyCk+wnGnzXhSrLYQ9ztqn5/+82ZsyP7xMiwyF+r4=;
 b=KqvLt6bt5MzyW4dqXJmIvunVwO5N5sqZbJs99sNiuLfum96NAC/SI2rBTWfvzNY/Cu
 rSphu03L3X6JLizCvKmYzTe7lYlJubbSTDjMUXA4v/M1ZSp5egNOUKmscb9b0dKv33Tg
 2sdu4VdlMG1mobO7j7JDcS1AS62g+jV9GnbT6M91WXdFXZySdkUi4TlrrQhVp9fZLFNM
 YkIZG+JJImJd421pDvD8E5TRSDRUN49bJd07fN5lo8sLCebgb9yiuQE2rtmzyX6X/0G8
 A+scHurGdyhy7J1R/nLWf60t3gMwP2v5rWbCgOCUEeC5LWxTsfIUkoOYHslB1r/FYtWB
 abyA==
X-Forwarded-Encrypted: i=1;
 AL+hErHAhkHWNCrSQwtdLCVY59EHgOEqcVzyv2Qn4tdqmq1i+S7gCpGS7t6HOYOkF+d9mWVTG97e9A==@debbugs.gnu.org
X-Gm-Message-State: APuU4Z/ZGtkGFydRAiijP44nd1R1bwa7tsbkVtIWrxwBdoG/r3vjUTGS
 IdnQt+JEId7YwPmdn9hC4vmIIIczLIYCnivUzF1kiP3E2+m9CjUBe8NcjU4NjBPj2+Y36WQ/X5R
 6O8TBaxkl/obue+jUjQwsjVTObUjaRvk=
X-Gm-Gg: AYBFou2y4bNuZukWzzF5NqlS7LpSsT52Gl6cOGMesN7ZMVEbE2/+x/zY/kn9IwVb5cE
 GLRcIeb1vF7EJbLQsd15495a/JarTgEM6wPB2kJ9k9BHGCLfN3Mrjl5YPoasQdvQN9Qzz+aiZXH
 U4Xk5w2+j9WubLOrHTjYmrhNDdi9B4Vl7j3GwsILqYxXuEacrZtJG0VD+kxPRivFXbNvzQDa2sR
 ziMGZRNbWrHLkO2yWqgARMrOBr9D/98O1TqpL2AWuXSz+8XQJxUH95kdhWnFBUHYAGq2ia8a5YE
 M6V+cUvdEEw6aI+4bGCitU8oSPz1/FSHVtbZ8sFdpCbkuyCWVYwiQlyQKcwJXutFT63F5n3tnQj
 xMv/71qe1l2zPOMjSqx5c6xkcekJXOxq1ignbZMuv0XiXEFwddvOW04ZELpttEfCDq6wmTCzw+B
 9MdUYNM/akJZ7KHnW/Ny4hGm/zWsKatOZ4MEFJpRLV2CACrLcs6d8jkXhoEu8fmgUmB0MsTzHyV
 0QQfku7GKbCyUjuWQHzDn8+3x8jpr0pdKZg4ACiEpDE08745QbQIQMIqRYvdg==
X-Received: by 2002:a05:6123:4a:b0:5ec:c162:d58c with SMTP id
 71dfb90a1353d-5ece7232e04mr1205455e0c.9.1794234340512; Mon, 09 Nov 2026
 06:25:40 -0800 (PST)
MIME-Version: 1.0
References: <87cxsn86xh.fsf@HIDDEN> <86mrrroveg.fsf@HIDDEN>
 <874idy8g0y.fsf@HIDDEN> <m2fqxi3txx.fsf@HIDDEN>
 <8733ti6m8a.fsf@HIDDEN>
 <auphg6Gu8k8B9zb7@HIDDEN> <87bj85nfkf.fsf@HIDDEN>
 <86se1goiwm.fsf@HIDDEN>
In-Reply-To: <86se1goiwm.fsf@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Mon, 9 Nov 2026 09:25:27 -0500
X-Gm-Features: AclHuK8Sf2ZnGHobg5qpuenCagXcLoO-gXqaD29S5OG3p1-JA2jvhNFvhPGzzl8
Message-ID: <CAN+1Hbq_QeaS7Zjw25+GDccQ=PukBxjR+6kvcTqQip2iyK0wzw@HIDDEN>
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000008298c7065fd8bc4b"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82169
Cc: gerd.moellmann@HIDDEN, Robert Pluim <rpluim@HIDDEN>,
 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

--0000000000008298c7065fd8bc4b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I've merged this into bug#81619 and will submit a combined patch (they're
nearly identical).

-St=C3=A9phane

On Wed, Nov 4, 2026 at 7:56=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote:

> > From: Robert Pluim <rpluim@HIDDEN>
> > Cc: Eli Zaretskii <eliz@HIDDEN>,  82169 <at> debbugs.gnu.org
> > Date: Wed, 04 Nov 2026 09:53:04 +0100
> >
> > >>>>> On Tue, 3 Nov 2026 22:34:43 +0000, Alan Third <alan@HIDDEN>
> said:
> >     Alan> That looks good. There might be circumstances where we'll now
> see a
> >     Alan> blank screen briefly, but I can't think what they'd be.
> >
> >     Alan> Perhaps when the frame is resized programmatically?
> >
> > I did
> >
> > (dolist (s '(10 20 30 40 50 60 50 40 30 20 10))
> >   (set-frame-size nil s s ))
> >
> > And the frames changed size instantaneously, with no blank
> > screen. Similarly if I do a (sit-for 2) after `set-frame-size'.
> >
> > Eli, OK for master? And then I think we can close this bug.
>
> Yes, if you think it's tested thoroughly enough.  (I would suggest to
> run with this for a week or two, to be more sure.)
>
>
>
>

--0000000000008298c7065fd8bc4b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">I&#39;ve merged this into=C2=A0bug#81619 and will submit a combined patc=
h (they&#39;re nearly identical).</div><div class=3D"gmail_default" style=
=3D"font-family:monospace"><br></div><div class=3D"gmail_default" style=3D"=
font-family:monospace">-St=C3=A9phane</div></div><br><div class=3D"gmail_qu=
ote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, No=
v 4, 2026 at 7:56=E2=80=AFAM Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN=
rg">eliz@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa=
dding-left:1ex">&gt; From: Robert Pluim &lt;<a href=3D"mailto:rpluim@gmail.=
com" target=3D"_blank">rpluim@HIDDEN</a>&gt;<br>
&gt; Cc: Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank=
">eliz@HIDDEN</a>&gt;,=C2=A0 <a href=3D"mailto:82169 <at> debbugs.gnu.org" targ=
et=3D"_blank">82169 <at> debbugs.gnu.org</a><br>
&gt; Date: Wed, 04 Nov 2026 09:53:04 +0100<br>
&gt; <br>
&gt; &gt;&gt;&gt;&gt;&gt; On Tue, 3 Nov 2026 22:34:43 +0000, Alan Third &lt=
;<a href=3D"mailto:alan@HIDDEN" target=3D"_blank">alan@HIDDEN</a>&g=
t; said:<br>
&gt;=C2=A0 =C2=A0 =C2=A0Alan&gt; That looks good. There might be circumstan=
ces where we&#39;ll now see a<br>
&gt;=C2=A0 =C2=A0 =C2=A0Alan&gt; blank screen briefly, but I can&#39;t thin=
k what they&#39;d be.<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0Alan&gt; Perhaps when the frame is resized programm=
atically?<br>
&gt; <br>
&gt; I did<br>
&gt; <br>
&gt; (dolist (s &#39;(10 20 30 40 50 60 50 40 30 20 10))<br>
&gt;=C2=A0 =C2=A0(set-frame-size nil s s ))<br>
&gt; <br>
&gt; And the frames changed size instantaneously, with no blank<br>
&gt; screen. Similarly if I do a (sit-for 2) after `set-frame-size&#39;.<br=
>
&gt; <br>
&gt; Eli, OK for master? And then I think we can close this bug.<br>
<br>
Yes, if you think it&#39;s tested thoroughly enough.=C2=A0 (I would suggest=
 to<br>
run with this for a week or two, to be more sure.)<br>
<br>
<br>
<br>
</blockquote></div>

--0000000000008298c7065fd8bc4b--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.
Forcibly Merged 81619 82169. Request was from Stéphane Marks <shipmints@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 9 Nov 2026 09:45:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 09 04:45:05 2026
Received: from localhost ([127.0.0.1]:46549 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xQLw1-0000Nx-CA
	for submit <at> debbugs.gnu.org; Mon, 09 Nov 2026 04:45:05 -0500
Received: from mout.gmx.net ([212.227.15.19]:46797)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rudalics@HIDDEN>) id 1xQLvz-0000Me-Gr
 for 82169 <at> debbugs.gnu.org; Mon, 09 Nov 2026 04:45:03 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at;
 s=s31663417; t=1794217494; x=1794822294; i=rudalics@HIDDEN;
 bh=svBobWkWZ58cXJd5QcYGKUeLF/aYddujxrzYTX+tbXA=;
 h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc:
 References:From:In-Reply-To:Content-Type:
 Content-Transfer-Encoding:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=euAvNcvBIVp7kxLMlkSvUIdYCL679dEPySHq8wFPhKvyMlsRjBGBQMTOE+6u/s65
 Bqf5iqUQ2cUHtMBFR2Z/mTEyNbPkO65KBmkfghxRrjE8Q2GqXyQHGXUJbSFzVjdQC
 dXqMWiFcDyoEcpxIjb2aMPAlAO62vNYkyQxcf0WccQaUkBG3TFhUD4QQ7HnjOZR4o
 91Fxaz+cLibGigSzG0eJ7KRmnCtCgGhKZjp9pQSE3Dc5R5Sq1ad/n9P1ynTOP7k8O
 eo/T1JRbu7CEH8cgCY7Yc4a2X/HcOH3LFmewYskDOQQhKCrifFNXaZVmZkPPhxfSJ
 wi5Xoohm9HG3JijDNA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from client.hidden.invalid by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MPog5-1x4gD71IGp-00Tsl1; Mon, 09
 Nov 2026 10:44:54 +0100
Message-ID: <7a25c41b-451a-49be-b0f0-ab1b19980c9f@HIDDEN>
Date: Mon, 9 Nov 2026 10:44:50 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
To: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>
References: <87cxsn86xh.fsf@HIDDEN> <86mrrroveg.fsf@HIDDEN>
 <874idy8g0y.fsf@HIDDEN> <m2fqxi3txx.fsf@HIDDEN>
 <8733ti6m8a.fsf@HIDDEN> <auphg6Gu8k8B9zb7@HIDDEN>
 <87bj85nfkf.fsf@HIDDEN> <86se1goiwm.fsf@HIDDEN>
 <CAN+1HboF2RbSs_G8Ce+Pd05axxkodVQAA3Vs2XxRGWegM_pZyA@HIDDEN>
Content-Language: en-US
From: martin rudalics <rudalics@HIDDEN>
In-Reply-To: <CAN+1HboF2RbSs_G8Ce+Pd05axxkodVQAA3Vs2XxRGWegM_pZyA@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:VMU43Z69ogftBW49idfOAy7dMv+aDAcopwWVOKEZo/z1DeHOQxc
 DsaoEJegYaGUUPyY8qh6EDPSrOgmIArhFlM62fXI3XdZvHCITfiVHMhZaSw9V33mUAWPQRB
 06PUh8Vz4MEMWFheydkMk4kN4JuRFi+nCESOtrzLrFZ8t8J/J3Ai6KsjLPVSMXGBEmVghJb
 doA6iz8wDzmTYpJ6szqqw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:uTakFNMJ2o0=;AYb+JG6BA3TsoVgswp/rSyG8E7F
 QdGdygJRR4Ym+iSJZwPsw9Fen3lL2VYyBNxc7ZnwnQEESjonIJfIyA3vO/CwhhgxEHb4rDekl
 1LtrkpRrYQCG7DPmxxU623axFHqP0g398+bJWfG8abb/hUURCJs0PV+Bkx0UNUGdJeIetYm41
 0hEoPWQDNyFH2Yucj5bTri6O+JuIso8oWk1uAHjzTbKlwMAIH/SaVv/a6+Mpk8xm/kZTMmVwq
 ztOHUxuyQntAP1AB7wWpwTPA2LqVqjC8d2XdziP1K2bsqAMwaR7jakF4NNzdgmFG3KhKIJjQV
 AZ+pOcXwUMbExcSEDY0FnQycG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qxLiqhSeelZvWPppLz8zHDpVj76KtSYbEsm3J8L0nn7Lkz41HQvzo+7aq1f
 LgtF0MHRJezmNqMWP2pibHRfWVEnPuyAsB1NPtZb4SLWnhidOFATpJiBnQZfqfyWWnfTAngZy
 gXHesbOYFr6qPY6KGE6gKPPqSZcKGaTsdopo+vNUANJ66PsxEgRq48MEC/gfZBNbt8D+m2s7f
 Dla2VFzyvGe5ZJovAvGCy8erj+Gghe+IWYQHMeDrQk2EKI8ztPl3gm8ha3wWcD+mXTJCo9hBW
 cX6JjCpa30w/x3BCHc3P5rBnCsJHdPpdF7YHKXmNeROMm+rFl3DsLOaOsKay3EFMusiSBWPyr
 dcOER9Sjazxb74qoMkxf4B0AQMJ1r6dhhnJFbfEKqUNOCf5yiodY8dUKYC2SNdQ1a3bPKakGi
 f3PHaeGOUmUau5tweFcsSGvnjzYuyoW0c/LkeeszRonAMKw1AcmBluFoJkveDyIRP3032ExX9
 fQ4opPnv914w9BYBvPBDC3grmLoh+IoQumL6wc4tWG9fumKACOq2hwNI7JfHlfCu0AHeGAvgM
 zrwpW7FYwZBid//lcLE3q1HOTH+7KUJYAuiWbXkUdtWYPGzkv5ZHGkY64Z/OPkJJtXX31eff5
 znnjviev2B00s+D6K52ub1yRUyE7wgBNhWFv20QzgQCKaboljBcgL4C3L1RviKTshqyEUi7Lv
 7bi2ci1VHAT+Qx+5puhPNka8ucmIpE2jk
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 82169
Cc: gerd.moellmann@HIDDEN, Robert Pluim <rpluim@HIDDEN>,
 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

 > Not sure if this is a separate bug, but one thing I noticed on macOS (the
 > only place I tested), is when frame-parameter 'fullscreen is 'maximized,
 > set-frame-size does nothing.  It's been a while since I looked at frame
 > sizing logic, but this was unexpected.  Should 'fullscreen be reset from
 > 'maximized to nil by set-frame-size?

I think it should be made customizable so we can have the same behavior
on all platforms.  But there are many questions to resolve first also
because window managers seem to have changed their behavior in this area
over the past decades.  For example:

- If we reset 'fullscreen' from 'fullboth' or 'maximized' to nil first,
   the window manager might show the frame with its old size first.
   Would we want that?

- If we don't reset them, would we continue to store the new sizes in
   'fullscreen-restore' in the hope they get applied when 'fullscreen'
   gets reset explicitly later.  I don't even know whether and how these
   work in practice nowadays.

- When we have a fullheight/fullwidth frame and we change one of its
   fullsize borders, should the fullheight/fullwidth property be
   retained?

- Should moving a maximized frame make it non-maximized (my WM does
   that, for example)?

Also I think that the entire want_fullscreen mechanism should be just
abandoned - IIRC it stems from pre-EWMH times where we tried to emulate
the fullscreen behavior manually.  But rewriting this is difficult
nowadays since we would have to change the behavior on android and haiku
too and I don't have access to these platforms.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 8 Nov 2026 17:39:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 08 12:39:52 2026
Received: from localhost ([127.0.0.1]:48364 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xQ6rv-0003cG-VV
	for submit <at> debbugs.gnu.org; Sun, 08 Nov 2026 12:39:52 -0500
Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]:43344)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1xQ6rt-0003bl-Tw
 for 82169 <at> debbugs.gnu.org; Sun, 08 Nov 2026 12:39:50 -0500
Received: by mail-vs1-xe2a.google.com with SMTP id
 ada2fe7eead31-78fb1fb9508so186558137.1
 for <82169 <at> debbugs.gnu.org>; Sun, 08 Nov 2026 09:39:49 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1794159584; cv=none;
 d=google.com; s=arc-20260327;
 b=ck6rGdJrTu3DiZ6Ajit+9qicRgs6yFIYW5qqOoLdfipsdX4dXNcIQrOuHvlG+wd/lk
 NvPHBdspqV0hsdYLGS8rDZul915z8YdrW/YaeVHyT5M4guVFs9UHa9p4+6x5KYNrCKKc
 IDKIWmg3KEYJzxBLbISOn04ARXRtLgBtpWBvJIuwvZRZ9vr0jQDeTs7zgVuRM0oQuU9O
 gY3lUnBkvm2pYyqWaIRSbF9hNapoT4oD7CBels6D4gjI+lV8WVGXgwtTpyZ78uQCNm+3
 3BeJ4nBYv9/KJQzGMDFFZ+29RzmzXr+ykijAy3d7X1/zrcFLwoEJ6G9XtQrfoOkiYBiS
 lMkw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=SDYwIY8pShM1S0ObGXdRg/ujuEdtCSeyqBS8016NaUk=;
 fh=r549XmIkEqp6sVLRjSOnXOjdbmNRIbPf5CrdTmC0awY=;
 b=ZCtPiA5eSIQdysqd/4Y/BVSanyo55zfXNnybgKjoj5i09yKLIGonK0MGa40LpY/zYA
 uPBTDz+b6oBXaVqw4WAC4itzzW2b0SRQbta1iGJ+T5p0DwOC3XXB3RdeZGaytjwYH2qk
 kLpeSK1VCS6CW+9CPK2v1Otq/j60gFt7Dl2n2Sf19UhoxsOA67+fHdmkshzvpQt8Ywb4
 QOVV4wm23CmQ3mO9NdZBDIcBejVhWwVg8RWStBbgXo5xgwJz8wj4JOV+2odZ+DX4AJS2
 2fmLrVTf6mKXUkZxCT9N0a1JHlBHy14JsecWLmwr8kSyJqMsMNuMHNSzIaWNS+s7vVBX
 o/bQ==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1794159584; x=1794764384; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=SDYwIY8pShM1S0ObGXdRg/ujuEdtCSeyqBS8016NaUk=;
 b=eKZ6BIYP7HZuh8j1mDhcJOjwibq2oqgSGP2bXPrgRv/U/xcSw/bc+Mx+bENOhAS99U
 nc8bcUaIYKW/GIk/rsqODD5Ww+vhff+ewPF96rdZ2+Niz+WZDFCefvolnqzS194xpDmm
 hY04/y8FS3QvJgmYDwu8g1oPmDMYMenDtZlvyKDzjrXZZKa/L2Iy2u7NNY03N37yjqkk
 s4jXXIaAZOrB+1eUxGEWTS108WqkUUpVdWoLE/JUNpkmfxNW8vEriQvbiAtD5oUcb5Iq
 bp4pFzN9uqMbvq22EXKrUkat2KPUpsTKoBK4/Va14ccJkIFvFgHy3uYTE1Ecc8b2ZAu4
 YAmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1794159584; x=1794764384;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id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GUvgeBw6OaEykT280jnQd
 AeGZ6MY0dakBmw7DyzAvA6ucH74UkBLSJObxAggLKcesWaHQ9vAXANj+5vWUcOayl/VD3KMlMcZ
 fKUTuAjTY0NukH4zW2hbpRJ68nwwgy9YLNUv1WwgDNAEVY3aMSaWM1dejhp5jxRegYAq6df2zds
 N2fTn2I/pbuoeK0i1t5Shc2mz3DFzMeHpJSrmgfaIYsC6NU3/MW7qPJvu9Gug==
X-Received: by 2002:a05:6102:5125:b0:7ba:b5ea:c4b8 with SMTP id
 ada2fe7eead31-7d2daa2a6c8mr361902137.1.1794159584195; Sun, 08 Nov 2026
 09:39:44 -0800 (PST)
MIME-Version: 1.0
References: <87cxsn86xh.fsf@HIDDEN> <86mrrroveg.fsf@HIDDEN>
 <874idy8g0y.fsf@HIDDEN> <m2fqxi3txx.fsf@HIDDEN>
 <8733ti6m8a.fsf@HIDDEN>
 <auphg6Gu8k8B9zb7@HIDDEN> <87bj85nfkf.fsf@HIDDEN>
 <86se1goiwm.fsf@HIDDEN>
In-Reply-To: <86se1goiwm.fsf@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Sun, 8 Nov 2026 12:39:33 -0500
X-Gm-Features: AclHuK9Av2S-oYJWnQQCfwm9hPs5oKlbIf4CL0LHGJgOdd4Pz0eK2rL2795d9wQ
Message-ID: <CAN+1HboF2RbSs_G8Ce+Pd05axxkodVQAA3Vs2XxRGWegM_pZyA@HIDDEN>
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000afb8d3065fc75415"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82169
Cc: gerd.moellmann@HIDDEN, martin rudalics <rudalics@HIDDEN>,
 Robert Pluim <rpluim@HIDDEN>, 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

--000000000000afb8d3065fc75415
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 4, 2026 at 7:56=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote:

> > From: Robert Pluim <rpluim@HIDDEN>
> > Cc: Eli Zaretskii <eliz@HIDDEN>,  82169 <at> debbugs.gnu.org
> > Date: Wed, 04 Nov 2026 09:53:04 +0100
> >
> > >>>>> On Tue, 3 Nov 2026 22:34:43 +0000, Alan Third <alan@HIDDEN>
> said:
> >     Alan> That looks good. There might be circumstances where we'll now
> see a
> >     Alan> blank screen briefly, but I can't think what they'd be.
> >
> >     Alan> Perhaps when the frame is resized programmatically?
> >
> > I did
> >
> > (dolist (s '(10 20 30 40 50 60 50 40 30 20 10))
> >   (set-frame-size nil s s ))
> >
> > And the frames changed size instantaneously, with no blank
> > screen. Similarly if I do a (sit-for 2) after `set-frame-size'.
> >
> > Eli, OK for master? And then I think we can close this bug.
>
> Yes, if you think it's tested thoroughly enough.  (I would suggest to
> run with this for a week or two, to be more sure.)
>

+ Martin

I applied the patch and it seems to be okay for me, so far.

Not sure if this is a separate bug, but one thing I noticed on macOS (the
only place I tested), is when frame-parameter 'fullscreen is 'maximized,
set-frame-size does nothing.  It's been a while since I looked at frame
sizing logic, but this was unexpected.  Should 'fullscreen be reset from
'maximized to nil by set-frame-size?

--000000000000afb8d3065fc75415
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b=
ackground-color:transparent">On Wed, Nov 4, 2026 at 7:56=E2=80=AFAM Eli Zar=
etskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:</spa=
n></div></div><div class=3D"gmail_quote gmail_quote_container"><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px sol=
id rgb(204,204,204);padding-left:1ex">&gt; From: Robert Pluim &lt;<a href=
=3D"mailto:rpluim@HIDDEN" target=3D"_blank">rpluim@HIDDEN</a>&gt;<br>
&gt; Cc: Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank=
">eliz@HIDDEN</a>&gt;,=C2=A0 <a href=3D"mailto:82169 <at> debbugs.gnu.org" targ=
et=3D"_blank">82169 <at> debbugs.gnu.org</a><br>
&gt; Date: Wed, 04 Nov 2026 09:53:04 +0100<br>
&gt; <br>
&gt; &gt;&gt;&gt;&gt;&gt; On Tue, 3 Nov 2026 22:34:43 +0000, Alan Third &lt=
;<a href=3D"mailto:alan@HIDDEN" target=3D"_blank">alan@HIDDEN</a>&g=
t; said:<br>
&gt;=C2=A0 =C2=A0 =C2=A0Alan&gt; That looks good. There might be circumstan=
ces where we&#39;ll now see a<br>
&gt;=C2=A0 =C2=A0 =C2=A0Alan&gt; blank screen briefly, but I can&#39;t thin=
k what they&#39;d be.<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0Alan&gt; Perhaps when the frame is resized programm=
atically?<br>
&gt; <br>
&gt; I did<br>
&gt; <br>
&gt; (dolist (s &#39;(10 20 30 40 50 60 50 40 30 20 10))<br>
&gt;=C2=A0 =C2=A0(set-frame-size nil s s ))<br>
&gt; <br>
&gt; And the frames changed size instantaneously, with no blank<br>
&gt; screen. Similarly if I do a (sit-for 2) after `set-frame-size&#39;.<br=
>
&gt; <br>
&gt; Eli, OK for master? And then I think we can close this bug.<br>
<br>
Yes, if you think it&#39;s tested thoroughly enough.=C2=A0 (I would suggest=
 to<br>
run with this for a week or two, to be more sure.)<br></blockquote><div><br=
></div><div><div class=3D"gmail_default" style=3D"font-family:monospace">+ =
Martin</div><br></div><div class=3D"gmail_default" style=3D"font-family:mon=
ospace">I applied the patch and it seems to be okay for me, so far.</div><d=
iv class=3D"gmail_default" style=3D"font-family:monospace"><br></div><div c=
lass=3D"gmail_default" style=3D"font-family:monospace">Not sure if this is =
a separate bug, but one thing I noticed on macOS (the only place I tested),=
 is when frame-parameter &#39;fullscreen is &#39;maximized, set-frame-size =
does nothing.=C2=A0 It&#39;s been a while since I looked at frame sizing lo=
gic, but this was unexpected.=C2=A0 Should &#39;fullscreen be reset from &#=
39;maximized to nil by set-frame-size?</div></div></div>

--000000000000afb8d3065fc75415--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 4 Nov 2026 12:55:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 04 07:55:48 2026
Received: from localhost ([127.0.0.1]:48800 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xOaWp-0002R3-MZ
	for submit <at> debbugs.gnu.org; Wed, 04 Nov 2026 07:55:48 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:57554)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xOaWm-0002Q0-UV
 for 82169 <at> debbugs.gnu.org; Wed, 04 Nov 2026 07:55:46 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1xOaWh-0007Of-Cl; Wed, 04 Nov 2026 07:55:39 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=2sphbYiNLolRTTZAGPwRlvvDsBkpf3/JjVyMwHiWZlU=; b=o9XbNylcoiiN
 ZWfhh8Q6Nb/IUeyLJrdQHrbGhGl/BH6sDDHSTI56fAYJyIYvVdKiP7WQzjLzar3jbnzt9FXerx53b
 axomk87tjyj6fEb+gKNLwrdSydv0Mt1RlPAbxPmmpVjh0KlZpGn3RW2DGUlDDsoe4b0scSjBjLWLT
 w32p6ilutJHDowreLQVWEMMPaF8/bK3sliGw11UWXG6YdoQXHCXToHxEtUMtdXQbMaj2qJRrD8pwE
 eKZqrCHOmhUe1ZHaF0XxA0APmQky6Ej7xUVXjz+N8RXB5PJoQbeDlAPKE6gTlAJd5d0LvgrE+/fNb
 w0flyKc8RkTbzYznfQDp4A==;
Date: Wed, 04 Nov 2026 14:55:37 +0200
Message-Id: <86se1goiwm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87bj85nfkf.fsf@HIDDEN> (message from Robert Pluim on Wed, 04
 Nov 2026 09:53:04 +0100)
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
References: <87cxsn86xh.fsf@HIDDEN> <86mrrroveg.fsf@HIDDEN>
 <874idy8g0y.fsf@HIDDEN> <m2fqxi3txx.fsf@HIDDEN>
 <8733ti6m8a.fsf@HIDDEN> <auphg6Gu8k8B9zb7@HIDDEN>
 <87bj85nfkf.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 82169
Cc: gerd.moellmann@HIDDEN, 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Robert Pluim <rpluim@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  82169 <at> debbugs.gnu.org
> Date: Wed, 04 Nov 2026 09:53:04 +0100
> 
> >>>>> On Tue, 3 Nov 2026 22:34:43 +0000, Alan Third <alan@HIDDEN> said:
>     Alan> That looks good. There might be circumstances where we'll now see a
>     Alan> blank screen briefly, but I can't think what they'd be.
> 
>     Alan> Perhaps when the frame is resized programmatically?
> 
> I did
> 
> (dolist (s '(10 20 30 40 50 60 50 40 30 20 10))
>   (set-frame-size nil s s ))
> 
> And the frames changed size instantaneously, with no blank
> screen. Similarly if I do a (sit-for 2) after `set-frame-size'.
> 
> Eli, OK for master? And then I think we can close this bug.

Yes, if you think it's tested thoroughly enough.  (I would suggest to
run with this for a week or two, to be more sure.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 4 Nov 2026 08:53:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 04 03:53:14 2026
Received: from localhost ([127.0.0.1]:52177 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xOWk5-0005dI-Ja
	for submit <at> debbugs.gnu.org; Wed, 04 Nov 2026 03:53:14 -0500
Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:52547)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1xOWk3-0005bo-Mj
 for 82169 <at> debbugs.gnu.org; Wed, 04 Nov 2026 03:53:12 -0500
Received: by mail-wm1-x32d.google.com with SMTP id
 5b1f17b1804b1-4a20bdaf39cso3814345e9.1
 for <82169 <at> debbugs.gnu.org>; Wed, 04 Nov 2026 00:53:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793782385; x=1794387185; darn=debbugs.gnu.org;
 h=content-type:mime-version:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=newpgLB9lD+YZewf03fE5DakIHTfbf7OehKHIwZTx3Q=;
 b=PICJ2c6Qehq3HxJBc0yXAaBptdd2tgLC5Ovc7lm8ZFxmOW8mNx6chiUBa3GZpI/yZv
 pNYfU3S9OEVnUAg56bj7Vd3KcUI9Pqmh5cDsdkAVV03urSAHlRwfgOBYtpFZHHoFJX/6
 0lPyvflRXLPuWyZIcGcthciqHUqpG31nYJNVtIGRXdoqURTPAfyDKe/6jwZ3vgiZnHCT
 bZ/dDNHIXfaSsI4bpJw9OwXl/fco3/Km47FrhU1Wlg3ocZIEnu6U3rjBwXyInuS0IL9/
 1MCKqeki3ZLrghr7AR/8sQiPlxVqkJRffHaZhKV/BjSPbfq9Jv4esKzW76j3RtD6U7W/
 tMLA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793782385; x=1794387185;
 h=content-type:mime-version:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to:content-type;
 bh=newpgLB9lD+YZewf03fE5DakIHTfbf7OehKHIwZTx3Q=;
 b=cC1yBlWWdebAa0uQB+3qknfUeJTTXdno3fC3vLvA3VBlEoJ5KGFNgaUNfP/33RZUiL
 8PkMt06VIxDwLHKFGMjjfr4jwim+IIs0UYv9Mg8QFdF7CcD3GY+yXCo3g206vnysUvPT
 4knrXjJQrlqEvf4c5H5zYlwnf1KyLjupJyRYCLjhb9HVH2uT10zvtolwUimytf6bDGlo
 Eah5ivMxjzgpq0YuAhGdCtSKX3Vhf50Sni/RtfJI069iTVZUsE/iAcP5qBDAH3T6N2g9
 g4X0z12oQPTbC1nUxfwBoIVoNdrG5Fqg5EjdXQ7cL9LDl4kPj0EroNdSUb344XJcxCzp
 DO/w==
X-Forwarded-Encrypted: i=1;
 AKwUvBz8ShsWY0z3ZEw3DXuINWH6AYiglsA6X+MDqqCE+74YJ3CfBWA1u9fAe+1oJ6VBmF//o4WiUQ==@debbugs.gnu.org
X-Gm-Message-State: APuU4Z9hcI066C1L31Lral+K/0ORPXagjACzPxu2U8mTf1eeyfgomEkF
 M2YRbi+AXcd83WbKRhWUTaHiwkur13u8n+WJHm9kUD9yN1tPyZy+qNu1gh3pJoRT
X-Gm-Gg: AYBFou2fXtPu1gakp3eDe1fJBD2A6oHZ3H+rOz4cfmFtyxraD/t8z4ljof1EXiqZfYJ
 Za6pS8C6QwNMCspxzgDd+HnTz4o0NL1BbDxBpeNReVwLomg/UDAv2RWFr3WaPcXhw+G5BbOhrot
 TxaonuvZ6mn403T5Jzttl53YdFb9EgVib7CUW8IlSo+mjU19zJB7hwBXR/WINm4XgfWzsJ7iGWI
 wsM1QGUmq1DTFC8Zrq+h7xYvOLVbEslQFbPh+7TJ15rJC+lvOhJaDp4gh1DZYSoVCVSpb7imKJe
 DdYgUsDA249i26EDjmdThApwH0p5YgQMftzbezduuJr58IyCvN2gCVzJiS6SFpKRmLjRAwLzvkV
 Xi++FjYB7Sbq1HjAqd60lka66FK+n4idZtUkfCLK76JzWV2IQoVA2RxR4RiChm1RCQjWa1dSx1w
 hmgH6+lUIfxM3aWvzj9HXhlYIH1EFUtXvjp0DiBtbC0rIzu9ymzOvTI+TH5yQHUSMKEZHVT8ko0
 xDmH9tioeqtk/k0AcdGp8jrXgowfQUAsJ0Qguszz4sMXneWHNW9Kc+Uz3Jr87ULYlnO9cuvgv6F
 ylPFSC9Aq1gC92HF/BrrCySehGqkC7zolT2/C0J9s2Pl2CTGU6dDkv3XX+IA/xxVoCc1Kr7g6aa
 hr3Eik88kNOLS5UegKWOv5FoigUiQFdB7xKdIivRRJC49eLA5kdHqAQ==
X-Received: by 2002:a05:600c:3b97:b0:4a3:5a91:5f64 with SMTP id
 5b1f17b1804b1-4ac18e5dcbamr359125465e9.27.1793782385104; 
 Wed, 04 Nov 2026 00:53:05 -0800 (PST)
Received: from rlsb ([2a01:e0a:834:daf0:10a2:e1ff:fe2b:113a])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-48fece998absm2731315f8f.22.2026.11.04.00.53.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 04 Nov 2026 00:53:04 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
In-Reply-To: <auphg6Gu8k8B9zb7@HIDDEN>
References: <87cxsn86xh.fsf@HIDDEN> <86mrrroveg.fsf@HIDDEN>
 <874idy8g0y.fsf@HIDDEN> <m2fqxi3txx.fsf@HIDDEN>
 <8733ti6m8a.fsf@HIDDEN> <auphg6Gu8k8B9zb7@HIDDEN>
Date: Wed, 04 Nov 2026 09:53:04 +0100
Message-ID: <87bj85nfkf.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82169
Cc: Eli Zaretskii <eliz@HIDDEN>, 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

>>>>> On Tue, 3 Nov 2026 22:34:43 +0000, Alan Third <alan@HIDDEN> said:
    Alan> That looks good. There might be circumstances where we'll now see a
    Alan> blank screen briefly, but I can't think what they'd be.

    Alan> Perhaps when the frame is resized programmatically?

I did

(dolist (s '(10 20 30 40 50 60 50 40 30 20 10))
  (set-frame-size nil s s ))

And the frames changed size instantaneously, with no blank
screen. Similarly if I do a (sit-for 2) after `set-frame-size'.

Eli, OK for master? And then I think we can close this bug.

Robert
-- 




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 4 Nov 2026 04:30:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 03 23:30:42 2026
Received: from localhost ([127.0.0.1]:60009 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xOSe1-0000qJ-Dj
	for submit <at> debbugs.gnu.org; Tue, 03 Nov 2026 23:30:41 -0500
Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:55385)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1xOSdy-0000me-K6
 for 82169 <at> debbugs.gnu.org; Tue, 03 Nov 2026 23:30:39 -0500
Received: by mail-wr1-x42b.google.com with SMTP id
 ffacd0b85a97d-48fbe12cfdcso122734f8f.2
 for <82169 <at> debbugs.gnu.org>; Tue, 03 Nov 2026 20:30:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793766632; x=1794371432; darn=debbugs.gnu.org;
 h=content-transfer-encoding:content-type:mime-version:user-agent
 :message-id:date:references:in-reply-to:subject:cc:to:from:from:to
 :cc:subject:date:message-id:reply-to:content-type;
 bh=+8evVaebLp7NaQFZB44ONugYCnMMqOFH/TNYq0y73cM=;
 b=sd+yyDUDrvh2BIcpB//2H96WYWHBUTGrHznlCJo+wGeBhMElNp2FNQMnjaG0YDmX/3
 7uj/e+gs7QzEeuOJk/o9ABof2KJVYC5Lert66SOcJrkYV5nkVPS9DaSy3hFskC5T1mSM
 QOc6NAwNj+eiYZbSwfxLFxSn8gzPQ8zRsxWGxKk17Xa7jXw0v9mdnkusUJ+7jw7nEHTz
 fmIkj3D34VzIYTTPxUHAftd1bjGP/b6bPU02JKR6qJ8dr9z0Trkh9ePk17WjpOheBQc6
 8JLZ62YqTJOzh7oWrPffEU4vjbjdZYzvqOwbKsHxasWHi+ZDQhYJsu7CIjb4cslpHu7r
 ke/w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793766632; x=1794371432;
 h=content-transfer-encoding:content-type:mime-version:user-agent
 :message-id:date:references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
 :content-type;
 bh=+8evVaebLp7NaQFZB44ONugYCnMMqOFH/TNYq0y73cM=;
 b=e/j9Z2qtFlhHxV0N1jd6dwkcs24Es4rttnWCFmFB+FLbv51kQq8kPC79yRpEigP5ja
 Rr4qwBEfOYzKMFbnBk5PrMotk0bKUeU4S+vXNOweK/cOhCwP9tuYD38t3YkGfVOvZgVT
 pktvWdwQLfYYVDO/qQ61myFceQxVhX+7ZjsB/MER7yyK81FAOLh4DyfyxEMn39PmZmZb
 C24M7doK3B+BAmKZGIFWisGXRdEuOo0bpERMSF7EHry1uHj8wDL84efQ/Jf5rTSLwDtn
 yX1hM/U6FBTZXfFE0STpZyC5AWXENJ9Z+NfN75YDCEz07HjHBisO7ZZ2ezC11VRuRa5M
 7Ysw==
X-Forwarded-Encrypted: i=1;
 AKwUvByIPTY6L8vBLwGmVwVJ6WMoCC+Nq6GJiPJ5oSLV5TQNLTJnqE9DuR0rRgEa0P6Pb9gk14TpTA==@debbugs.gnu.org
X-Gm-Message-State: APuU4Z/7heWaATh9elieNKTosiRYJf9FPZhyT3GuLIox0Sd+oYDH2rf7
 pfhJQlbNOKe4VbC+5W64w9WcOBD/2p/mDmJrXhHGFiMOCF/ef5LWuJd1
X-Gm-Gg: AYBFou2AhnlPI/4/CXa5zz2COHPhfiac2itswBS4MooQhPk8wzt6PjiYy/7NWdU8SiJ
 hUqBh1Ztko/AMjWFauVibfNoW1UJofvgNn8Fs0MFfq/oEHr0g+YDMw9M27Ebfoixg80bDBv1P+C
 qKZR3vHiucHFnct0MyeQ13DkQ73TSAQvP5SfT4dQ8jw5SJ4Dghf8g07fx8EkMgIJ05aSblTyhbV
 qCT0adIqgxMGfkoj06QWOTHB84nVpwr6IVO5UW7cB7xYkF4dzXIgUx3wQ8cbNUQSYxnVYkj7GL8
 DFcHoAJ3LsjEo3O/pSdJrOW7+ZiltuLm/eDlzRXu9D+z0w6g1n14S58TCF48GZF12KHWmTBTjUO
 hl6bHql0VUJ+GaEGNri4WKVqq4ygDSqjMKPMmfySet1GFYoX6G8dHVZx9B8WTMJZYLLiFZ0QLwk
 dhuDNDVVZFUGzUy+snD98TsVAMEvDswbiuYC+xKLVPGeYs22cqoW26ZT6QRt8DlcTYcVoOJ7p4Y
 g19bfDOBUSAo1ofBU12vgAWzGmip+bRCNUdDvXLNbyb8ZPCa59dcUA0inw8dAOtliGFsWhhmQQi
 cC6OW/mKK+nSTuCREa+fDUKrZJcW55GqcB++/nCZLLE5HlHTf5f3/KbzKSQOOwZ5JS73QE8qz2x
 7zyvcqeRjeTXmMoYHEUqrRlkLnlromCXRNqI/
X-Received: by 2002:a05:6000:2386:b0:48f:bbf3:cf52 with SMTP id
 ffacd0b85a97d-48fbbf3d0efmr7337348f8f.52.1793766631890; 
 Tue, 03 Nov 2026 20:30:31 -0800 (PST)
Received: from pro4 (p200300e0b707560048b525c7fa7cf312.dip0.t-ipconnect.de.
 [2003:e0:b707:5600:48b5:25c7:fa7c:f312])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-48fed08343dsm1485449f8f.30.2026.11.03.20.30.31
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 03 Nov 2026 20:30:31 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Robert Pluim <rpluim@HIDDEN>
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
In-Reply-To: <8733ti6m8a.fsf@HIDDEN>
References: <87cxsn86xh.fsf@HIDDEN> <86mrrroveg.fsf@HIDDEN>
 <874idy8g0y.fsf@HIDDEN> <m2fqxi3txx.fsf@HIDDEN>
 <8733ti6m8a.fsf@HIDDEN>
Date: Wed, 04 Nov 2026 05:30:30 +0100
Message-ID: <m28q392p7d.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82169
Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>,
 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

Robert Pluim <rpluim@HIDDEN> writes:

>>>>>> On Tue, 03 Nov 2026 14:50:34 +0100, Gerd M=C3=B6llmann <gerd.moellma=
nn@HIDDEN> said:
>
>     Gerd> Robert Pluim <rpluim@HIDDEN> writes:
>     Gerd> See also bug#58334. NS is one big mess.
>
> Yes. But until the Great NS Runloop Rewrite finally happens, we have
> to make do.

Well, removing the redisplay unconditionally worked fine for me in 2022.
See the bug. That's all I wanted to tell.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 3 Nov 2026 22:34:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 03 17:34:54 2026
Received: from localhost ([127.0.0.1]:54756 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xON5i-0007Mb-5d
	for submit <at> debbugs.gnu.org; Tue, 03 Nov 2026 17:34:54 -0500
Received: from dane.soverin.net ([185.233.34.150]:54411)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <alan@HIDDEN>) id 1xON5f-0007Ko-KR
 for 82169 <at> debbugs.gnu.org; Tue, 03 Nov 2026 17:34:52 -0500
Received: from smtp.soverin.net (c03cst-smtp-sov01.int.sover.in
 [10.103.10.154])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by dane.soverin.net (Postfix) with ESMTPS id 4jK3Kd2sl0zsp;
 Tue, 03 Nov 2026 22:34:45 +0000 (UTC)
Received: from smtp.soverin.net (smtp.soverin.net [10.103.10.154]) by
 soverin.net (Postfix) with ESMTPSA id 4jK3Kc5tntz1L6q; 
 Tue, 03 Nov 2026 22:34:44 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=idiocy.org; s=soverin; 
 t=1793745285;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=HJPN3TSNakKfyKu18LV8BwW95pe4lBJnhlpjNV1ujhY=;
 b=fIobhLdOrHQ0EpSX/slSQxyowfhA7zhj+TQunIL4SwDKkubfBxnAD6IxS8qW6nn+aHqIg3
 TJHoI66e1AM6xRgPo2wwb/mJtgxOtwffdKTCkUp3m/yxrCh5d6dnc4Eg0KGTrq2tyCUPJ4
 eRCitrxvIDJBeZSzQxMTDtogk+Vnev4h8TwsC10m7J8s4tgeIaeTVGNsqDhzOLlw9Qy3hW
 Mf6jiqS1485qYPOS5b8E5qGqt3Axjg24V+JhPZ1VpIMLZl97IzrwPbOtuQlij4i0uH8IGO
 TKuto7PeHBVc/7EEKObDW5evt7ISO9uYiXxLI9M/sIbDNhChWZUjK/Alt5BJkw==
X-CM-Envelope: MS4xfLUVcIzjl1M/I50TemTpZb8YoczgazXamP/SP4mGweMzRC9ZlmWS86NC4Q7wo4mPQ6fUe7INMksyce8xqxEjYxX3A4HM9yUcNQq4yxzq3dgYPCI2ggcI
 qOK0uNU++ihavW3Q8v4nsnxJUN0XVN4fvrkh+CponWc7q0V6qCpGj8Oy+3hnRAZp/vmFA+06jf05X4jogCdfGOID78H+3rk4VNTmt5yCp648vYXmZr5RHAI1
 5HJv9q2RS5eM2mj/WJG7RBxPguYMUElBGT+UBHmdtMsxOGN/8aVF4fR0aqnBSu3+sV9nQMZw2fEuxc+40uR0gw==
X-Soverin-Id: 01a1a38c-ef88-79a5-89b3-a30390cd70e0
Received: from localhost (namib [local])
 by namib (OpenSMTPD) with ESMTPA id b7b372ec;
 Tue, 3 Nov 2026 22:34:43 +0000 (UTC)
Date: Tue, 3 Nov 2026 22:34:43 +0000
From: Alan Third <alan@HIDDEN>
To: Robert Pluim <rpluim@HIDDEN>
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
Message-ID: <auphg6Gu8k8B9zb7@HIDDEN>
Mail-Followup-To: Robert Pluim <rpluim@HIDDEN>,
 Gerd =?iso-8859-1?Q?M=F6llmann?= <gerd.moellmann@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>, 82169 <at> debbugs.gnu.org
References: <87cxsn86xh.fsf@HIDDEN> <86mrrroveg.fsf@HIDDEN>
 <874idy8g0y.fsf@HIDDEN> <m2fqxi3txx.fsf@HIDDEN>
 <8733ti6m8a.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <8733ti6m8a.fsf@HIDDEN>
X-Spampanel-Class: ham
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 82169
Cc: Gerd =?iso-8859-1?Q?M=F6llmann?= <gerd.moellmann@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>, 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Tue, Nov 03, 2026 at 03:08:53PM +0100, Robert Pluim wrote:
> >>>>> On Tue, 03 Nov 2026 14:50:34 +0100, Gerd Möllmann <gerd.moellmann@HIDDEN> said:
> 
>     Gerd> Robert Pluim <rpluim@HIDDEN> writes:
>     Gerd> See also bug#58334. NS is one big mess.
> 
> Yes. But until the Great NS Runloop Rewrite finally happens, we have
> to make do.
> 
>     >> I commented out the redisplay initially, maybe thereʼs a way to avoid
>     >> having it called during startup here, Iʼll do some searching.
> 
> No more crash, and live resizing with the trackpad works. No side
> effects that I can see, menus work, toolbar works. Alan?
> 
> diff --git a/src/nsterm.m b/src/nsterm.m
> index fa66b0e9c2c..99a598d5781 100644
> --- a/src/nsterm.m
> +++ b/src/nsterm.m
> @@ -9409,7 +9409,8 @@ - (void)copyRect:(NSRect)srcRect to:(NSPoint)dest
>     appears to be safe to call redisplay here.  */
>  - (void)layoutSublayersOfLayer:(CALayer *)layer
>  {
> -  if (!redisplaying_p && FRAME_GARBAGED_P (emacsframe))
> +  if (!redisplaying_p && FRAME_GARBAGED_P (emacsframe)
> +      && [[self window] inLiveResize])
>      {
>        /* If there is IO going on when redisplay is run here Emacs
>           crashes.  I think it's because this code will always be run

That looks good. There might be circumstances where we'll now see a
blank screen briefly, but I can't think what they'd be.

Perhaps when the frame is resized programmatically?
-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 3 Nov 2026 14:09:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 03 09:09:03 2026
Received: from localhost ([127.0.0.1]:38026 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xOFCB-0001b5-1M
	for submit <at> debbugs.gnu.org; Tue, 03 Nov 2026 09:09:03 -0500
Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:60495)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1xOFC8-0001ZJ-G6
 for 82169 <at> debbugs.gnu.org; Tue, 03 Nov 2026 09:09:01 -0500
Received: by mail-wm1-x32a.google.com with SMTP id
 5b1f17b1804b1-4a2d6d01ecbso27005215e9.0
 for <82169 <at> debbugs.gnu.org>; Tue, 03 Nov 2026 06:09:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793714934; x=1794319734; darn=debbugs.gnu.org;
 h=content-transfer-encoding:content-type:mime-version:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to:content-type;
 bh=H57oHTimHtG+PJ+0/ihzVNgV6uFi3YKNqzvVe3VuDvM=;
 b=zLtCvdwsPmrDmVMyieb8i6aHgP/PNzMsT2TI529coMIIawfJ13PgAj/U75qtUcCBuH
 ELzDdeDW27I1HAgY4BzsMKy3thDL5kafyBUa6C3A7koxMf/A2sycDIyAhQ8OhTK5nAAU
 kkX7fb7AH5nddjsm64dC+9+ZO0aPYn8h7Dkixg58BHTc1JjbhbjTjYfKiXUVHAkxHqQN
 tGP6Zm9IUvDTMibHfk2pqE7k4ITg8jSxwRpWBglF7XiFzfPoeRgytmq6Z3pF2bWbOS4M
 zabvPKejW32A1usyPTJa91rLb3I9nnkIV7ARBvJWvP2a99fouLJzS6j7FOQYUJT72g/Q
 Wwhg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793714934; x=1794319734;
 h=content-transfer-encoding:content-type:mime-version:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
 :content-type;
 bh=H57oHTimHtG+PJ+0/ihzVNgV6uFi3YKNqzvVe3VuDvM=;
 b=jUEkoVQsdWwhUfmioPxaGs1dj+LwOEsXKIUhIV6Jo7wjFWnZ+GeoIu6AQZgF+9K4Bi
 K9WaavLRczoCsQUsIr0WZJF7rxZPN025hJXtGczt1NlQsYgOKypB6LtDKqE80B1u63xV
 AR+y6YGPv1gkz/WANRgMizkZcv6pa3wLJvDg3TpBcD56RxKspd50aNpIEXVBExoun8re
 1f6EVnucMC0OMGW1MAti/sx/IhkvKsnJMgUlVWlGEyvNlpmIWcDk9AhkNTaL6MboR8Yh
 k811BjtQAae5Y4NiFvB8dhH5BZqkX2x1tvWYBjCILIm2W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05:600c:3554:b0:4a4:7a8d:c436 with SMTP id
 5b1f17b1804b1-4ac17470fdbmr305027525e9.11.1793714934024; 
 Tue, 03 Nov 2026 06:08:54 -0800 (PST)
Received: from rlsb ([2a01:e0a:834:daf0:10a2:e1ff:fe2b:113a])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-4b2aa38bb4asm59630625e9.6.2026.11.03.06.08.53
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 03 Nov 2026 06:08:53 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
In-Reply-To: <m2fqxi3txx.fsf@HIDDEN>
References: <87cxsn86xh.fsf@HIDDEN> <86mrrroveg.fsf@HIDDEN>
 <874idy8g0y.fsf@HIDDEN> <m2fqxi3txx.fsf@HIDDEN>
Date: Tue, 03 Nov 2026 15:08:53 +0100
Message-ID: <8733ti6m8a.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82169
Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>,
 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

>>>>> On Tue, 03 Nov 2026 14:50:34 +0100, Gerd M=C3=B6llmann <gerd.moellman=
n@HIDDEN> said:

    Gerd> Robert Pluim <rpluim@HIDDEN> writes:
    Gerd> See also bug#58334. NS is one big mess.

Yes. But until the Great NS Runloop Rewrite finally happens, we have
to make do.

    >> I commented out the redisplay initially, maybe there=CA=BCs a way to=
 avoid
    >> having it called during startup here, I=CA=BCll do some searching.

No more crash, and live resizing with the trackpad works. No side
effects that I can see, menus work, toolbar works. Alan?

diff --git a/src/nsterm.m b/src/nsterm.m
index fa66b0e9c2c..99a598d5781 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -9409,7 +9409,8 @@ - (void)copyRect:(NSRect)srcRect to:(NSPoint)dest
    appears to be safe to call redisplay here.  */
 - (void)layoutSublayersOfLayer:(CALayer *)layer
 {
-  if (!redisplaying_p && FRAME_GARBAGED_P (emacsframe))
+  if (!redisplaying_p && FRAME_GARBAGED_P (emacsframe)
+      && [[self window] inLiveResize])
     {
       /* If there is IO going on when redisplay is run here Emacs
          crashes.  I think it's because this code will always be run

Robert
--=20




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 3 Nov 2026 13:50:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 03 08:50:46 2026
Received: from localhost ([127.0.0.1]:56892 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xOEuT-0005DF-PV
	for submit <at> debbugs.gnu.org; Tue, 03 Nov 2026 08:50:46 -0500
Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:60838)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1xOEuQ-00059i-MZ
 for 82169 <at> debbugs.gnu.org; Tue, 03 Nov 2026 08:50:43 -0500
Received: by mail-wr1-x429.google.com with SMTP id
 ffacd0b85a97d-48afcfc4bf5so4338019f8f.1
 for <82169 <at> debbugs.gnu.org>; Tue, 03 Nov 2026 05:50:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793713836; x=1794318636; darn=debbugs.gnu.org;
 h=content-transfer-encoding:content-type:mime-version:user-agent
 :message-id:date:references:in-reply-to:subject:cc:to:from:from:to
 :cc:subject:date:message-id:reply-to:content-type;
 bh=1gVPzfLPi9qDGk433R9BVwL8tAuZvFUsct2panOaGqU=;
 b=c8f827oyDp76ICEuYCD1SfaC3mF+EcsgQIr0myG7FL89OxvlWLEEn5J/sgkBk0yYJ/
 tHEY6+QEpro9rygrfEpUZ/+YY9ePeNPeArJEZbYDnPAD8l4JjnSJB0bRKvpUrMqWeZkw
 GTMDIcBCHlqjy5LSe+WBwiNoTjUfL9ouHZ5H7hsHwzWVWFNco6JCOtMuv05gKMqVzQA5
 9qq4Pb6PavIQeueSSPnUbQVHwp4k2uZwdnUjH9CGSIYyYq4ZjAIfCWizVtAA1X88rfBI
 ZnH2gr6ssJHKpFMPnUpmcmP141OZL3ZA9Ne+ecIXdiOeauSS1LVROE+MQOJADCpbIuBh
 OK1g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793713836; x=1794318636;
 h=content-transfer-encoding:content-type:mime-version:user-agent
 :message-id:date:references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
 :content-type;
 bh=1gVPzfLPi9qDGk433R9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a8W6x5
 8wH68FgH70m1ZV7RRU3HvG5+darNVkPAUIrwxjcZvhZC3MrPHUsTI2GgBs2Gc+V6HjORGXu5b/a
 pM1/N2mJm6t73OQhuyS9M8xiIVaz5w/0io2x9Lqjmem1lwD4ECCOVFNTQ5wy8hcHAzWb5sLSoMm
 r+sNno2EF7MeqlfN6azSpWusLFMGJR+JBAk+6DYOmIn4+9dTHQlIhM39KZ7gv7ciBj1f9s5J7PO
 UVJRowgbw2cfuJXMnp7DrBptFJMg0feAJt41M
X-Received: by 2002:a05:6000:438a:b0:48e:5550:c64c with SMTP id
 ffacd0b85a97d-48e6e3022c4mr36528896f8f.14.1793713836253; 
 Tue, 03 Nov 2026 05:50:36 -0800 (PST)
Received: from pro4 (p200300e0b7064700680526dc458b4c68.dip0.t-ipconnect.de.
 [2003:e0:b706:4700:6805:26dc:458b:4c68])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-48e71b728f9sm25244272f8f.10.2026.11.03.05.50.35
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 03 Nov 2026 05:50:35 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Robert Pluim <rpluim@HIDDEN>
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
In-Reply-To: <874idy8g0y.fsf@HIDDEN>
References: <87cxsn86xh.fsf@HIDDEN> <86mrrroveg.fsf@HIDDEN>
 <874idy8g0y.fsf@HIDDEN>
Date: Tue, 03 Nov 2026 14:50:34 +0100
Message-ID: <m2fqxi3txx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82169
Cc: Eli Zaretskii <eliz@HIDDEN>, 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

Robert Pluim <rpluim@HIDDEN> writes:

See also bug#58334. NS is one big mess.

>>>>>> On Mon, 02 Nov 2026 22:01:11 +0200, Eli Zaretskii <eliz@HIDDEN> sai=
d:
>
>     Eli> I don't understand your logic.  You seem to be saying that the p=
roblem
>     Eli> is that the face cache was cleared, and that caused the problem?=
  But
>     Eli> if the face cache was cleared, then how come the dereference of =
the
>     Eli> face here:
>
>     Eli>   face_for_font (struct frame *f, Lisp_Object font_object,
>     Eli> 		 struct face *base_face)
>     Eli>   {
>     Eli>     struct face_cache *cache =3D FRAME_FACE_CACHE (f);
>     Eli>     uintptr_t hash;
>     Eli>     int i;
>     Eli>     struct face *face;
>
>     Eli>     eassert (cache !=3D NULL);
>     Eli>     base_face =3D base_face->ascii_face;  <<<<<<<<<<<<<<<<<<<<<<
>     Eli>     hash =3D lface_hash (base_face->lface);
>
>     Eli> still works?  Because base_face here is AFAIU what was obtained =
in
>     Eli> Finternal_char_font like this:
>
>     Eli>   face_id =3D FACE_FOR_CHAR (f, FACE_FROM_ID (f, face_id), c, po=
s, Qnil);
>
>     Eli> IOW, FACE_FROM_ID produced a valid face here, which means the ca=
che
>     Eli> seemed to be okay at that point.
>
>     Eli> What I see instead is that 'face' seems to be okay, but
>     Eli> face-> ascii_face is NULL, something that should never happen, a=
nd
>     Eli> cannot be cause by clearing the face cache.
>
> The face was freed when the face cache was cleared, so after that all bet=
s are off.
>
>     Eli> And in your patch:
>
>     >> --- a/src/fontset.c
>     >> +++ b/src/fontset.c
>     >> @@ -1002,7 +1002,23 @@ face_for_char (struct frame *f, struct face=
 *face, int c,
>     >> id =3D -1;
>     >> }
>     >>=20
>     >> +  int base_id =3D face->id;
>     >> rfont_def =3D fontset_font (fontset, c, face, id);
>     >> +
>     >> +  /* Sometimes during loading of the init file, the cache has been
>     >> +     reset, so we need to check for that and fall back to the def=
ault
>     >> +     face, otherwise we get a crash in Finternal_char_font.  */
>     >> +  struct face *new_face =3D FACE_FROM_ID_OR_NULL (f, base_id);
>
>     Eli> face-> id is the ID of the face in the face cache.  It is not "b=
ase_id"
>     Eli> face-> in any sense of that word.  And FACE_FROM_ID_OR_NULL shou=
ld
>     Eli> return the same face, because that's the definition of face->id,=
 so
>     Eli> how can it return NULL??
>
> It returns a face pointer for the same face, but because of the
> redisplay, recompute_basic_faces was called, which means it=CA=BCs not the
> same pointer as before fontset_font. So FACE_FROM_ID_OR_NULL is indeed
> the wrong check to use. I could just do
>
> int id =3D face->id;
> face =3D FACE_FROM_ID (f, id);
>
> I guess?
>
>     Eli> I think the fix, if we should do it anywhere here, should be in
>     Eli> face_for_font, when it discovers that face->ascii_face is NULL. =
 Bonus
>     Eli> points for figuring out how this calamity came to pass, because I
>     Eli> don't understand that, and without that it is hard to reason abo=
ut
>     Eli> solutions.
>
> fontset_font reset the face cache (because of the redisplay), so the
> face* that was valid before is no longer valid. And it won=CA=BCt be valid
> in face_for_font either.
>
> I commented out the redisplay initially, maybe there=CA=BCs a way to avoid
> having it called during startup here, I=CA=BCll do some searching.
>
> Robert




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 3 Nov 2026 08:40:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 03 03:40:08 2026
Received: from localhost ([127.0.0.1]:35950 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xOA3q-0000qJ-Ul
	for submit <at> debbugs.gnu.org; Tue, 03 Nov 2026 03:40:08 -0500
Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:43038)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1xOA3o-0000lW-Ju
 for 82169 <at> debbugs.gnu.org; Tue, 03 Nov 2026 03:40:05 -0500
Received: by mail-wr1-x435.google.com with SMTP id
 ffacd0b85a97d-48dfaa3fa12so229639f8f.0
 for <82169 <at> debbugs.gnu.org>; Tue, 03 Nov 2026 00:40:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793695198; x=1794299998; darn=debbugs.gnu.org;
 h=content-transfer-encoding:content-type:mime-version:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to:content-type;
 bh=k+uIOqmfTXZB6ZeLrdR/mixNT9zwk7VERxHzc9Z/9GE=;
 b=ULmKkgkDePSuVpt2SHIMT9j+5BNKLjy0tbi7apc7U2+JZaqbSGb4wOa2lOhF9262zs
 V765QA2j6zW7z955olzXI9Sw4UWLFJcgaq320utRWk2hOBT2GC9PG+FMLIr9tQE+0GqE
 wPpG+JXNgYpYoXk8WPntKy62E8BmgqzPZ7TT1aB9WgMP7CgdOzXdc3FqaJOYk6PXAoEL
 fZmI5n3jhgKOoHI8iQgZizH5szxbCTvPb/szm/i/A2sypcMTC1ehFZHLpCAp9cjRnOUy
 nyD3aL/AFeBZmtu88NOIjDhyXyzPJKZX1tb4FWd6m/rbS5dmJbzjAxCxFN0ucCI1svyd
 h48g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793695198; x=1794299998;
 h=content-transfer-encoding:content-type:mime-version:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
 :content-type;
 bh=k+uIOqmfTXZB6ZeLrdR/mixNT9zwk7VERxHzc9Z/9GE=;
 b=ipQMXbMJ9o+kY+nSV73tROHe18rUJ7jIDSNL2BXP5x2hpSz9qVgcTWTnVCaVFDAYoU
 w0X7Pii0EP9XCSGKfBzK8g17z10uwjqfWlLl9sv4f1mH62jkABGd9px0VyRwt97Uy3SH
 FbFIcCdfGZzCOkA2qncG1+AsGwqwSwa4SjkIIIBKvaKAO25GYpGgjd5QCY4iQMwSXjI1
 raETNXzfRJ1Gh1GaZceFN4W+nJ7Yj64P48K0ISbKiQxYIFtSCb2JV4IEFMlbMDuno0Aj
 KcqDYhDH1gf6Qs78aOJX0wjPnwEzHO6TzjSqLTWnPzAYcAUVdEZltM6af8qO3HGwCi3G
 4WBQ==
X-Gm-Message-State: APuU4Z/vPmeYGolBJY/BisR66d+aFr6Yb92kokN0h3PoOugiNmxa5RWa
 FyNZm+MRUT6++6PkL/mCYDoCnfxgfugpyAxsTkDnxK+543ZYgximjGnxFwbhaN6Y
X-Gm-Gg: AYBFou1ZLJSikGuCGcbKFsoGGrWr6pD5AzbsEhk9ujKiD06rb9h8D7YOSPw41ytMcMJ
 A7mw/oM/jvOUtidc0om8PQJsqOYEqTOFdGDf9CPgGhoZeCDoPUkWIBvNxBLkCbsYelImuOySdSt
 HZtFWqH1o1l56IeKpwMmdBkleKT6IvtcVT+u8vwBUt0KWA5pERDmKOlK+NOSU1lr5T84xFUvnga
 igOL+DOvzAYk6FKRS8eujx07LdgTTOiUUebEK/ypMpNAcfcaKd7VHPvWrs86tqa29vfaNG/4QFT
 8GUXsXw7B7j2UNgUAKPks2bEkT1Xajyi9o/jQ0U5yL7QP8hBQ741wMiIKvb1vC8hsOYfZ7NgYz8
 7zis8gbzmhb2lkYRL/8rs6jmrs8Vvc3gXtkhvwwhdpd4nA3PrMg/zlgtvE6EW1q/lAnydK7obNo
 A3AIx3JhmoxlCr0eknoPsprahc+LoityV9dLrgzmdWkhncKkV9NRgu37cBdEhes1vPqRHMB42n0
 tfV02LQYlis65iCwBvsdFsJTKFKHK3AbbNHg6HBx8HA0ANEXFaFXeWU5qfNKtHJzr3xL7Rg6eQS
 sVRzYpVF10APlVcEWfkLsDOtgAYJGElaIWFekAcMO7CJg8GOYo6q3GsTWwtQ5w1yARue031cn+j
 BNBE7vnadAlyxqkiY7KP/HAmjSbhOekjJou8JnSqfPekAO16Jp1aOmkJZYZprSzOVkM7D2aDoXm
 Q=
X-Received: by 2002:a5d:5d82:0:b0:48d:efcb:1fea with SMTP id
 ffacd0b85a97d-48e6e223dc2mr26927922f8f.0.1793695198162; 
 Tue, 03 Nov 2026 00:39:58 -0800 (PST)
Received: from rlsb ([2a01:e0a:834:daf0:10a2:e1ff:fe2b:113a])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-48e71b78a1dsm22795356f8f.24.2026.11.03.00.39.57
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 03 Nov 2026 00:39:57 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
In-Reply-To: <86mrrroveg.fsf@HIDDEN>
References: <87cxsn86xh.fsf@HIDDEN> <86mrrroveg.fsf@HIDDEN>
Date: Tue, 03 Nov 2026 09:39:57 +0100
Message-ID: <874idy8g0y.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82169
Cc: 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

>>>>> On Mon, 02 Nov 2026 22:01:11 +0200, Eli Zaretskii <eliz@HIDDEN> said:

    Eli> I don't understand your logic.  You seem to be saying that the pro=
blem
    Eli> is that the face cache was cleared, and that caused the problem?  =
But
    Eli> if the face cache was cleared, then how come the dereference of the
    Eli> face here:

    Eli>   face_for_font (struct frame *f, Lisp_Object font_object,
    Eli> 		 struct face *base_face)
    Eli>   {
    Eli>     struct face_cache *cache =3D FRAME_FACE_CACHE (f);
    Eli>     uintptr_t hash;
    Eli>     int i;
    Eli>     struct face *face;

    Eli>     eassert (cache !=3D NULL);
    Eli>     base_face =3D base_face->ascii_face;  <<<<<<<<<<<<<<<<<<<<<<
    Eli>     hash =3D lface_hash (base_face->lface);

    Eli> still works?  Because base_face here is AFAIU what was obtained in
    Eli> Finternal_char_font like this:

    Eli>   face_id =3D FACE_FOR_CHAR (f, FACE_FROM_ID (f, face_id), c, pos,=
 Qnil);

    Eli> IOW, FACE_FROM_ID produced a valid face here, which means the cache
    Eli> seemed to be okay at that point.

    Eli> What I see instead is that 'face' seems to be okay, but
    Eli> face-> ascii_face is NULL, something that should never happen, and
    Eli> cannot be cause by clearing the face cache.

The face was freed when the face cache was cleared, so after that all bets =
are off.

    Eli> And in your patch:

    >> --- a/src/fontset.c
    >> +++ b/src/fontset.c
    >> @@ -1002,7 +1002,23 @@ face_for_char (struct frame *f, struct face *=
face, int c,
    >> id =3D -1;
    >> }
    >>=20
    >> +  int base_id =3D face->id;
    >> rfont_def =3D fontset_font (fontset, c, face, id);
    >> +
    >> +  /* Sometimes during loading of the init file, the cache has been
    >> +     reset, so we need to check for that and fall back to the defau=
lt
    >> +     face, otherwise we get a crash in Finternal_char_font.  */
    >> +  struct face *new_face =3D FACE_FROM_ID_OR_NULL (f, base_id);

    Eli> face-> id is the ID of the face in the face cache.  It is not "bas=
e_id"
    Eli> face-> in any sense of that word.  And FACE_FROM_ID_OR_NULL should
    Eli> return the same face, because that's the definition of face->id, so
    Eli> how can it return NULL??

It returns a face pointer for the same face, but because of the
redisplay, recompute_basic_faces was called, which means it=CA=BCs not the
same pointer as before fontset_font. So FACE_FROM_ID_OR_NULL is indeed
the wrong check to use. I could just do

int id =3D face->id;
face =3D FACE_FROM_ID (f, id);

I guess?

    Eli> I think the fix, if we should do it anywhere here, should be in
    Eli> face_for_font, when it discovers that face->ascii_face is NULL.  B=
onus
    Eli> points for figuring out how this calamity came to pass, because I
    Eli> don't understand that, and without that it is hard to reason about
    Eli> solutions.

fontset_font reset the face cache (because of the redisplay), so the
face* that was valid before is no longer valid. And it won=CA=BCt be valid
in face_for_font either.

I commented out the redisplay initially, maybe there=CA=BCs a way to avoid
having it called during startup here, I=CA=BCll do some searching.

Robert
--=20




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.

Message received at 82169 <at> debbugs.gnu.org:


Received: (at 82169) by debbugs.gnu.org; 2 Nov 2026 20:01:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 02 15:01:25 2026
Received: from localhost ([127.0.0.1]:56864 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xNyDc-0004lG-RX
	for submit <at> debbugs.gnu.org; Mon, 02 Nov 2026 15:01:25 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51068)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xNyDa-0004jg-HY
 for 82169 <at> debbugs.gnu.org; Mon, 02 Nov 2026 15:01:23 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1xNyDU-0005Cu-Tp; Mon, 02 Nov 2026 15:01:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=b43U5s5yc4wBlZYyx49TVq39fAZ4qOJyMcbrBVWyVfY=; b=XYVgAOvNbRVWfh4cAJOu
 c4RdhnML1B24N/mAacNcq3jtknTLJuLlXsAflAUtZyeWeXfsG0kX3CJhdrj1MoLqTqJ/1M/onncWI
 51JAC245Fm9ox8HmzrcDlsDxKlRbQ3SWY40uGESIgXyty8XqDiXqpRub2Zr31OIq5Gmqh2Fyjx7e2
 Ymn0062EFT8mxIsuSiyZ2Ht0BkKKLsuGs2wh1wZWTLAAUwXuS+k7VQBo5lETfcE4oCbOhA3CNhhdi
 0KG57MgZ1U7CZoKZRND4/af3dbyPCycWHyC/Yl3UXCn95IkXZLlheJg833ZirpohKtIztJaLc+fUd
 5AjXbGCB7f/4/A==;
Date: Mon, 02 Nov 2026 22:01:11 +0200
Message-Id: <86mrrroveg.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87cxsn86xh.fsf@HIDDEN> (message from Robert Pluim on Mon, 02
 Nov 2026 18:44:10 +0100)
Subject: Re: bug#82169: Crash in face_for_font on macOS in master
References: <87cxsn86xh.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 82169
Cc: 82169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Robert Pluim <rpluim@HIDDEN>
> Date: Mon, 02 Nov 2026 18:44:10 +0100
> 
> This is emacs-master on macOS.
> 
> Emacs crashes on startup, but only with my config. I rebuilt it with
> --enable checking, and ran it under lldb.
> 
> Bisection narrowed it down to pdf-tools initializing itself, during
> which it calls:
> 
>     (char-displayable-p ?⎙)
> 
> resulting in:
> 
> Process 21314 stopped
> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
>        frame #0: 0x0000000100108594 emacs`lface_hash(v=(struct Lisp_Symbol *) $4 = 0x0000000100450128) at xfaces.c:4649:41 [opt]
>    4646 static uintptr_t
>    4647 lface_hash (Lisp_Object *v)
>    4648 {
> -> 4649   return (hash_string_case_insensitive (v[LFACE_FAMILY_INDEX])
>    4650           ^ hash_string_case_insensitive (v[LFACE_FOUNDRY_INDEX])
>    4651           ^ hash_string_case_insensitive (v[LFACE_FOREGROUND_INDEX])
>    4652           ^ hash_string_case_insensitive (v[LFACE_BACKGROUND_INDEX])
> 
> The crash backtrace:
> #0 lface_hash at xfaces.c:4649
> #1 face_for_font at xfaces.c:5163
> #2 face_for_char at fontset.c:1015
> #3 Finternal_char_font at font.c:4819
> 
> Frame 2 is ...
> 
>   rfont_def = fontset_font (fontset, c, face, id);
>   if (VECTORP (rfont_def))
>     {
>       if (FIXNUMP (RFONT_DEF_FACE (rfont_def)))
> 	face_id = XFIXNUM (RFONT_DEF_FACE (rfont_def));
>       else
> 	{
> 	  Lisp_Object font_object;
> 
> 	  font_object = RFONT_DEF_OBJECT (rfont_def);
> 	  face_id = face_for_font (f, font_object, face); <<<=== ...here
> 	  RFONT_DEF_SET_FACE (rfont_def, face_id);
> 	}
>     }
> 
> And frame 1 is ...
> 
> face_for_font (struct frame *f, Lisp_Object font_object,
>                struct face *base_face)
> {
>   struct face_cache *cache = FRAME_FACE_CACHE (f);
>   uintptr_t hash;
>   int i;
>   struct face *face;
> 
>   eassert (cache != NULL);
>   base_face = base_face->ascii_face;
>   hash = lface_hash (base_face->lface); <<<=== ...here
> 
> (lldb) p base_face
> (face *) NULL
> 
> I still have it in lldb if you want more info.
> 
> So the face cache has been corrupted somehow, but NULL is an awfully
> convenient value. I then stuck a breakpoint on `clear_face_cache', and
> took a long and boring ride on the 'c' and 'bt' keys in lldb to see
> which one preceded the crash. That got me:
> 
> #0 clear_face_cache at xfaces.c:761
> #1 recompute_basic_faces at xfaces.c:737
> #2 init_iterator at xdisp.c:3386
> #3 gui_consider_frame_title at xdisp.c:14197
> #4 prepare_menu_bars at xdisp.c:14314
> #5 redisplay_internal at xdisp.c:17514
> #6 redisplay at xdisp.c:17075
> #7 -[EmacsView layoutSublayersOfLayer:] at nsterm.m:9418
> #8 QuartzCore`CA::Layer::perform_update_
> 
> Iʼll leave aside why the heck weʼre calling redisplay from inside
> layoutSublayersOfLayer

That's your gift from macOS: due to the OS idiosyncrasies, we call
redisplay there from places that I wouldn't dream nor dare doing that.
It's a small wonder that this crashes from time to time.

> but I turned off that redisplay, and the crash
> disappeared.

Of course.

> I failed in answering the "how do I refill the cache"
> question, so I instead stole^Wdrew inspiration from similar code in
> other places, and came up with:
> 
> diff --git a/src/fontset.c b/src/fontset.c
> index 61a563ce918..4cba7f1afc3 100644
> --- a/src/fontset.c
> +++ b/src/fontset.c
> @@ -1002,7 +1002,23 @@ face_for_char (struct frame *f, struct face *face, int c,
>  	id = -1;
>      }
>  
> +  int base_id = face->id;
>    rfont_def = fontset_font (fontset, c, face, id);
> +
> +  /* Sometimes during loading of the init file, the cache has been
> +     reset, so we need to check for that and fall back to the default
> +     face, otherwise we get a crash in Finternal_char_font.  */
> +  struct face *new_face = FACE_FROM_ID_OR_NULL (f, base_id);
> +
> +  if (!new_face)
> +    {
> +      if (FRAME_FACE_CACHE (f)->used == 0)
> +	recompute_basic_faces (f);
> +      face = FACE_FROM_ID(f, DEFAULT_FACE_ID);
> +    }
> +  else
> +    face = new_face;
> +
>    if (VECTORP (rfont_def))
>      {
>        if (FIXNUMP (RFONT_DEF_FACE (rfont_def)))
> 
> (and looking at the patch, Iʼm now wondering if I need to check that
> FRAME_FACE_CACHE (f) is non-NULL).

I don't understand your logic.  You seem to be saying that the problem
is that the face cache was cleared, and that caused the problem?  But
if the face cache was cleared, then how come the dereference of the
face here:

  face_for_font (struct frame *f, Lisp_Object font_object,
		 struct face *base_face)
  {
    struct face_cache *cache = FRAME_FACE_CACHE (f);
    uintptr_t hash;
    int i;
    struct face *face;

    eassert (cache != NULL);
    base_face = base_face->ascii_face;  <<<<<<<<<<<<<<<<<<<<<<
    hash = lface_hash (base_face->lface);

still works?  Because base_face here is AFAIU what was obtained in
Finternal_char_font like this:

  face_id = FACE_FOR_CHAR (f, FACE_FROM_ID (f, face_id), c, pos, Qnil);

IOW, FACE_FROM_ID produced a valid face here, which means the cache
seemed to be okay at that point.

What I see instead is that 'face' seems to be okay, but
face->ascii_face is NULL, something that should never happen, and
cannot be cause by clearing the face cache.

And in your patch:

> --- a/src/fontset.c
> +++ b/src/fontset.c
> @@ -1002,7 +1002,23 @@ face_for_char (struct frame *f, struct face *face, int c,
>  	id = -1;
>      }
>  
> +  int base_id = face->id;
>    rfont_def = fontset_font (fontset, c, face, id);
> +
> +  /* Sometimes during loading of the init file, the cache has been
> +     reset, so we need to check for that and fall back to the default
> +     face, otherwise we get a crash in Finternal_char_font.  */
> +  struct face *new_face = FACE_FROM_ID_OR_NULL (f, base_id);

face->id is the ID of the face in the face cache.  It is not "base_id"
face->in any sense of that word.  And FACE_FROM_ID_OR_NULL should
return the same face, because that's the definition of face->id, so
how can it return NULL??

> +
> +  if (!new_face)
> +    {
> +      if (FRAME_FACE_CACHE (f)->used == 0)
> +	recompute_basic_faces (f);
> +      face = FACE_FROM_ID(f, DEFAULT_FACE_ID);
> +    }
> +  else
> +    face = new_face;
> +
>    if (VECTORP (rfont_def))
>      {
>        if (FIXNUMP (RFONT_DEF_FACE (rfont_def)))

I think the fix, if we should do it anywhere here, should be in
face_for_font, when it discovers that face->ascii_face is NULL.  Bonus
points for figuring out how this calamity came to pass, because I
don't understand that, and without that it is hard to reason about
solutions.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Nov 2026 17:44:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 02 12:44:32 2026
Received: from localhost ([127.0.0.1]:33537 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xNw5A-0001E7-1B
	for submit <at> debbugs.gnu.org; Mon, 02 Nov 2026 12:44:32 -0500
Received: from lists1p.gnu.org ([2001:470:142::17]:37642)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1xNw57-0001Bp-Lh
 for submit <at> debbugs.gnu.org; Mon, 02 Nov 2026 12:44:30 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rpluim@HIDDEN>) id 1xNw4t-0006cD-Hj
 for bug-gnu-emacs@HIDDEN; Mon, 02 Nov 2026 12:44:16 -0500
Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <rpluim@HIDDEN>) id 1xNw4r-0000zQ-Jl
 for bug-gnu-emacs@HIDDEN; Mon, 02 Nov 2026 12:44:15 -0500
Received: by mail-wm1-x32b.google.com with SMTP id
 5b1f17b1804b1-4a140e7405dso33354065e9.3
 for <bug-gnu-emacs@HIDDEN>; Mon, 02 Nov 2026 09:44:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793641451; x=1794246251; darn=gnu.org;
 h=content-transfer-encoding:content-type:mime-version:message-id:date
 :subject:to:from:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=FlOsuBlIHPM+TpA3N+HIzVDurEdAgp7nYEBIvD4ztDg=;
 b=MhZhfElX3ME/sedHEosM8yPptZ4QiqNDbmobsCi4RHaXrWOkAaMAyMvoFYIW29P4oa
 M+ZzgdNP0uMKwMi8z+5TvNyOpAMik4skwD6z7IJ2/0KVhR12kXRJoHV7joKr8BiSuy1e
 +o1qApw9JlnRd6qUPs0uP6ge4RfyQpich+UDkiL1WwRVUwn4p/Pj1z7hdEhtP7aXlbf0
 74uOaBhx1oDJ2hGhweRbP7UE6kR78WxxT+4u1u/Ch350kV1aH14eLVIv0zCakwYev+yE
 KSw67GNFhnU7YUprEwKUWGjw9h8Fb7S6mMnW9/lZnYmzKGOhkliNtxMq6O45wyVgG9V0
 iB6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793641451; x=1794246251;
 h=content-transfer-encoding:content-type:mime-version:message-id:date
 :subject:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to:content-type;
 bh=FlOsuBlIHPM+TpA3N+HIzVDurEdAgp7nYEBIvD4ztDg=;
 b=kubF/E9qjTp+m1Iiinqdl7+WUo2XNCEvAlkBmAvhAf3CslBk5SrlJ/vYVO0n5lcpsW
 35h5pqq12qsR8darqFTD7lqPgf7RezPqueEsUNw5HrNk0dbFE7f33cwlbqYhAqubK5c9
 cSI+SgAZYuXtKelLxScNJrVMQVAU6/T1Ax0G7CT6TwjIqGvVJTVoW4dbEmx7HJ5IfpQ5
 sU09GqtYrKjPaMbH5TrnB8YhuxGRxglVgofUyqChU8P51/D6FAB99ZiTtOa9GXOH0wvu
 e8xEdEyrfE2v9pfiwkY4dRiu9XMUUgaUWkNgSt8bpxk0Y3K0z908d7JlH7mOFk/qbQxo
 XXdg==
X-Gm-Message-State: AFq9FYJ0z65hiEk2o+pG+QilaC+E4u2pAeysyYj9e+JwB5jNuzDFfv6z
 E2ckIAJEtKLl0N8iDMjjJ+7ZOjz6fx/CtxR/DcDasov5D7fU7t5mVsCBsEH36vEW
X-Gm-Gg: AYBFou2VtXDyRTla7lbR7zCviXmtK7CxMLrpI63K9oItL2BXhza3gafAYpigCOsFjw+
 e0W3ibBqVMF9QgC5O5ZVfOPJqR2od2zMkcsZ5CU9++OQRirrW032RmLSWxFL4fV/7+MwEIM+7Sy
 3oYE5TTwR9oeWE1rTgJOgPNJ/796lz/cp+/4hG5RxAwPCyy93mIL4NO66tFTQqWnbWLJs+nnlPX
 y+gh0XMVfup9/3lQ3hAlRX0e7UZMC8SrnQVdbgxzJPfgU+UDgwug/5Z6yvVFvz4rGQUgRFpUnky
 OrfYZTRus4C6Z+EpDiGXtgLJg6kQKKcIRIHRKnLurop3tj+2BejAfCshYqgETjqj508slzpJrV9
 oPhwqX3nZ37G7BVUKur3IW8yeY38AQLjEwQRatWf4uBeBwmU344xHo3zBYqKHW/UW3vw7bBR64z
 XBBuVujNTP14oKBkFFSSdYf96XzSU9A4QoNM1o4W0E0jTcKaJdF3I9bzkvYwAffGLA1jLhmwq3b
 UsSgkBb1FlBPGx/2BgoHYbZokwxWRf1qHS3f/w/qPu8dk7W0gcaM9VjJdaNQ4HqTIMoGQLR8qUX
 UX1D/YYWjdldUWzRD3Y0sO5gn944ZLq3WQR1idIkFDOVuYJYrYULeboY2DBc3feJbYOtEEx70df
 JN7QeyQwqbfrTBpv04sMkY90B53SkbsFdjTvtX9vU0bAWhO4Onojz
X-Received: by 2002:a05:600c:674f:b0:4a2:1655:87db with SMTP id
 5b1f17b1804b1-4ac1228a434mr260719935e9.0.1793641451375; 
 Mon, 02 Nov 2026 09:44:11 -0800 (PST)
Received: from rlsb ([2a01:e0a:834:daf0:10a2:e1ff:fe2b:113a])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-4abeb77c132sm203678055e9.1.2026.11.02.09.44.10
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 02 Nov 2026 09:44:10 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Crash in face_for_font on macOS in master
X-Debbugs-No-Ack: yes
X-Debbugs-Cc: 
Date: Mon, 02 Nov 2026 18:44:10 +0100
Message-ID: <87cxsn86xh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::32b;
 envelope-from=rpluim@HIDDEN; helo=mail-wm1-x32b.google.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=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  This is emacs-master on macOS. Emacs crashes on startup, but
 only with my config. I rebuilt it with --enable checking, and ran it under
 lldb. Bisection narrowed it down to pdf-tools initializing itself, during
 which it calls: 
 Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (rpluim[at]gmail.com)
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 1.0 FORGED_GMAIL_RCVD      'From' gmail.com does not match 'Received'
 headers -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

This is emacs-master on macOS.

Emacs crashes on startup, but only with my config. I rebuilt it with
--enable checking, and ran it under lldb.

Bisection narrowed it down to pdf-tools initializing itself, during
which it calls:

    (char-displayable-p ?=E2=8E=99)

resulting in:

Process 21314 stopped
* thread #1, queue =3D 'com.apple.main-thread', stop reason =3D EXC_BAD_ACC=
ESS (code=3D1, address=3D0x8)
       frame #0: 0x0000000100108594 emacs`lface_hash(v=3D(struct Lisp_Symbo=
l *) $4 =3D 0x0000000100450128) at xfaces.c:4649:41 [opt]
   4646 static uintptr_t
   4647 lface_hash (Lisp_Object *v)
   4648 {
-> 4649   return (hash_string_case_insensitive (v[LFACE_FAMILY_INDEX])
   4650           ^ hash_string_case_insensitive (v[LFACE_FOUNDRY_INDEX])
   4651           ^ hash_string_case_insensitive (v[LFACE_FOREGROUND_INDEX])
   4652           ^ hash_string_case_insensitive (v[LFACE_BACKGROUND_INDEX])

The crash backtrace:
#0 lface_hash at xfaces.c:4649
#1 face_for_font at xfaces.c:5163
#2 face_for_char at fontset.c:1015
#3 Finternal_char_font at font.c:4819

Frame 2 is ...

  rfont_def =3D fontset_font (fontset, c, face, id);
  if (VECTORP (rfont_def))
    {
      if (FIXNUMP (RFONT_DEF_FACE (rfont_def)))
	face_id =3D XFIXNUM (RFONT_DEF_FACE (rfont_def));
      else
	{
	  Lisp_Object font_object;

	  font_object =3D RFONT_DEF_OBJECT (rfont_def);
	  face_id =3D face_for_font (f, font_object, face); <<<=3D=3D=3D ...here
	  RFONT_DEF_SET_FACE (rfont_def, face_id);
	}
    }

And frame 1 is ...

face_for_font (struct frame *f, Lisp_Object font_object,
               struct face *base_face)
{
  struct face_cache *cache =3D FRAME_FACE_CACHE (f);
  uintptr_t hash;
  int i;
  struct face *face;

  eassert (cache !=3D NULL);
  base_face =3D base_face->ascii_face;
  hash =3D lface_hash (base_face->lface); <<<=3D=3D=3D ...here

(lldb) p base_face
(face *) NULL

I still have it in lldb if you want more info.

So the face cache has been corrupted somehow, but NULL is an awfully
convenient value. I then stuck a breakpoint on `clear_face_cache', and
took a long and boring ride on the 'c' and 'bt' keys in lldb to see
which one preceded the crash. That got me:

#0 clear_face_cache at xfaces.c:761
#1 recompute_basic_faces at xfaces.c:737
#2 init_iterator at xdisp.c:3386
#3 gui_consider_frame_title at xdisp.c:14197
#4 prepare_menu_bars at xdisp.c:14314
#5 redisplay_internal at xdisp.c:17514
#6 redisplay at xdisp.c:17075
#7 -[EmacsView layoutSublayersOfLayer:] at nsterm.m:9418
#8 QuartzCore`CA::Layer::perform_update_

I=CA=BCll leave aside why the heck we=CA=BCre calling redisplay from inside
layoutSublayersOfLayer, but I turned off that redisplay, and the crash
disappeared. I failed in answering the "how do I refill the cache"
question, so I instead stole^Wdrew inspiration from similar code in
other places, and came up with:

diff --git a/src/fontset.c b/src/fontset.c
index 61a563ce918..4cba7f1afc3 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -1002,7 +1002,23 @@ face_for_char (struct frame *f, struct face *face, i=
nt c,
 	id =3D -1;
     }
=20
+  int base_id =3D face->id;
   rfont_def =3D fontset_font (fontset, c, face, id);
+
+  /* Sometimes during loading of the init file, the cache has been
+     reset, so we need to check for that and fall back to the default
+     face, otherwise we get a crash in Finternal_char_font.  */
+  struct face *new_face =3D FACE_FROM_ID_OR_NULL (f, base_id);
+
+  if (!new_face)
+    {
+      if (FRAME_FACE_CACHE (f)->used =3D=3D 0)
+	recompute_basic_faces (f);
+      face =3D FACE_FROM_ID(f, DEFAULT_FACE_ID);
+    }
+  else
+    face =3D new_face;
+
   if (VECTORP (rfont_def))
     {
       if (FIXNUMP (RFONT_DEF_FACE (rfont_def)))

(and looking at the patch, I=CA=BCm now wondering if I need to check that
FRAME_FACE_CACHE (f) is non-NULL).

Robert
--=20




Report forwarded to bug-gnu-emacs@HIDDEN:
bug#82169; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 9 Nov 2026 14:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.