* bug#42522: Emacs 27: 100% CPU when setting mode-name with ligatures
@ 2020-07-24 21:35 Evan Moses
2020-07-25 6:24 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Evan Moses @ 2020-07-24 21:35 UTC (permalink / raw)
To: 42522
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
Emacs version: GNU Emacs 27.0.91 (build 1, x86_64-apple-darwin18.7.0, NS
appkit-1671.60 Version 10.14.6 (Build 18G5033)) of 2020-07-24
Built d5acc509415869bce22c49ae311f2960494a0bdc locally
To reproduce, evaluate this
(set-char-table-range composition-function-table 47
'([".\\(?:\\(?:\\*\\*\\|//\\|==\\)\\|[*/=>]\\)" 0 font-shape-gstring]))
And then evaluate
(setq mode-name "test//")
Emacs will become unresponsive and consume 100% CPU.
--
Evan Moses
emoses@gmail.com
[-- Attachment #2: Type: text/html, Size: 838 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#42522: Emacs 27: 100% CPU when setting mode-name with ligatures
2020-07-24 21:35 bug#42522: Emacs 27: 100% CPU when setting mode-name with ligatures Evan Moses
@ 2020-07-25 6:24 ` Eli Zaretskii
2020-07-25 17:22 ` Robert Pluim
2020-07-25 21:13 ` Evan Moses
0 siblings, 2 replies; 8+ messages in thread
From: Eli Zaretskii @ 2020-07-25 6:24 UTC (permalink / raw)
To: Evan Moses; +Cc: 42522
> From: Evan Moses <emoses@gmail.com>
> Date: Fri, 24 Jul 2020 14:35:50 -0700
>
> To reproduce, evaluate this
>
> (set-char-table-range composition-function-table 47 '([".\\(?:\\(?:\\*\\*\\|//\\|==\\)\\|[*/=>]\\)" 0
> font-shape-gstring]))
>
> And then evaluate
>
> (setq mode-name "test//")
>
> Emacs will become unresponsive and consume 100% CPU.
It doesn't hang here. Could this be macOS-specific? Or maybe the
problem happens only with some fonts? Does it happen in "emacs -Q"?
In any case, did you really mean for Emacs to produce ligatures on the
mode line? More generally, what kind of ligatures are you trying to
produce with this setup?
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#42522: Emacs 27: 100% CPU when setting mode-name with ligatures
2020-07-25 6:24 ` Eli Zaretskii
@ 2020-07-25 17:22 ` Robert Pluim
2020-07-25 17:27 ` Eli Zaretskii
2020-07-25 21:13 ` Evan Moses
1 sibling, 1 reply; 8+ messages in thread
From: Robert Pluim @ 2020-07-25 17:22 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 42522, Evan Moses
>>>>> On Sat, 25 Jul 2020 09:24:47 +0300, Eli Zaretskii <eliz@gnu.org> said:
>> From: Evan Moses <emoses@gmail.com>
>> Date: Fri, 24 Jul 2020 14:35:50 -0700
>>
>> To reproduce, evaluate this
>>
>> (set-char-table-range composition-function-table 47 '([".\\(?:\\(?:\\*\\*\\|//\\|==\\)\\|[*/=>]\\)" 0
>> font-shape-gstring]))
>>
>> And then evaluate
>>
>> (setq mode-name "test//")
>>
>> Emacs will become unresponsive and consume 100% CPU.
Eli> It doesn't hang here. Could this be macOS-specific? Or maybe the
Eli> problem happens only with some fonts? Does it happen in "emacs -Q"?
I see this on macOS with -Q, which uses Menlo, but only with emacs-27,
not master.. I do see an 'Attempt to shape unibyte text' message from
emacs-27
Robert
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#42522: Emacs 27: 100% CPU when setting mode-name with ligatures
2020-07-25 17:22 ` Robert Pluim
@ 2020-07-25 17:27 ` Eli Zaretskii
2020-08-13 0:18 ` Stefan Kangas
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2020-07-25 17:27 UTC (permalink / raw)
To: Robert Pluim; +Cc: 42522, emoses
> From: Robert Pluim <rpluim@gmail.com>
> Cc: Evan Moses <emoses@gmail.com>, 42522@debbugs.gnu.org
> Date: Sat, 25 Jul 2020 19:22:19 +0200
>
> Eli> It doesn't hang here. Could this be macOS-specific? Or maybe the
> Eli> problem happens only with some fonts? Does it happen in "emacs -Q"?
>
> I see this on macOS with -Q, which uses Menlo, but only with emacs-27,
> not master.. I do see an 'Attempt to shape unibyte text' message from
> emacs-27
Then I guess the problem is already solved on master.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#42522: Emacs 27: 100% CPU when setting mode-name with ligatures
2020-07-25 17:27 ` Eli Zaretskii
@ 2020-08-13 0:18 ` Stefan Kangas
2020-08-13 16:18 ` Evan Moses
0 siblings, 1 reply; 8+ messages in thread
From: Stefan Kangas @ 2020-08-13 0:18 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 42522, Robert Pluim, emoses
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Robert Pluim <rpluim@gmail.com>
>> Cc: Evan Moses <emoses@gmail.com>, 42522@debbugs.gnu.org
>> Date: Sat, 25 Jul 2020 19:22:19 +0200
>>
>> Eli> It doesn't hang here. Could this be macOS-specific? Or maybe the
>> Eli> problem happens only with some fonts? Does it happen in "emacs -Q"?
>>
>> I see this on macOS with -Q, which uses Menlo, but only with emacs-27,
>> not master.. I do see an 'Attempt to shape unibyte text' message from
>> emacs-27
>
> Then I guess the problem is already solved on master.
Evan, could you please try this on the current master branch?
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#42522: Emacs 27: 100% CPU when setting mode-name with ligatures
2020-08-13 0:18 ` Stefan Kangas
@ 2020-08-13 16:18 ` Evan Moses
2020-08-13 16:54 ` Stefan Kangas
0 siblings, 1 reply; 8+ messages in thread
From: Evan Moses @ 2020-08-13 16:18 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 42522, Robert Pluim
[-- Attachment #1: Type: text/plain, Size: 838 bytes --]
Seems to work fine now; Thanks!
On Wed, Aug 12, 2020 at 5:18 PM Stefan Kangas <stefan@marxist.se> wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Robert Pluim <rpluim@gmail.com>
> >> Cc: Evan Moses <emoses@gmail.com>, 42522@debbugs.gnu.org
> >> Date: Sat, 25 Jul 2020 19:22:19 +0200
> >>
> >> Eli> It doesn't hang here. Could this be macOS-specific? Or maybe
> the
> >> Eli> problem happens only with some fonts? Does it happen in
> "emacs -Q"?
> >>
> >> I see this on macOS with -Q, which uses Menlo, but only with emacs-27,
> >> not master.. I do see an 'Attempt to shape unibyte text' message from
> >> emacs-27
> >
> > Then I guess the problem is already solved on master.
>
> Evan, could you please try this on the current master branch?
>
> Best regards,
> Stefan Kangas
>
--
Evan Moses
emoses@gmail.com
[-- Attachment #2: Type: text/html, Size: 1638 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#42522: Emacs 27: 100% CPU when setting mode-name with ligatures
2020-07-25 6:24 ` Eli Zaretskii
2020-07-25 17:22 ` Robert Pluim
@ 2020-07-25 21:13 ` Evan Moses
1 sibling, 0 replies; 8+ messages in thread
From: Evan Moses @ 2020-07-25 21:13 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 42522
[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]
FYI I was following the instructions here: https://github.com/tonsky/FiraCode/wiki/Emacs-instructions#using-composition-char-table to get Fira Code ligatures globally. It so happens that C-modes will add “//“ to the mode name in certain configurations; I just pared this down to a minimal repro case.
--
Evan Moses
emoses@gmail.com
> On Jul 24, 2020, at 11:25 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>
>>
>> From: Evan Moses <emoses@gmail.com>
>> Date: Fri, 24 Jul 2020 14:35:50 -0700
>>
>> To reproduce, evaluate this
>>
>> (set-char-table-range composition-function-table 47 '([".\\(?:\\(?:\\*\\*\\|//\\|==\\)\\|[*/=>]\\)" 0
>> font-shape-gstring]))
>>
>> And then evaluate
>>
>> (setq mode-name "test//")
>>
>> Emacs will become unresponsive and consume 100% CPU.
>
> It doesn't hang here. Could this be macOS-specific? Or maybe the
> problem happens only with some fonts? Does it happen in "emacs -Q"?
>
> In any case, did you really mean for Emacs to produce ligatures on the
> mode line? More generally, what kind of ligatures are you trying to
> produce with this setup?
[-- Attachment #2: Type: text/html, Size: 2330 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-08-13 16:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-24 21:35 bug#42522: Emacs 27: 100% CPU when setting mode-name with ligatures Evan Moses
2020-07-25 6:24 ` Eli Zaretskii
2020-07-25 17:22 ` Robert Pluim
2020-07-25 17:27 ` Eli Zaretskii
2020-08-13 0:18 ` Stefan Kangas
2020-08-13 16:18 ` Evan Moses
2020-08-13 16:54 ` Stefan Kangas
2020-07-25 21:13 ` Evan Moses
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).