From: Adam Porter <adam@alphapapa.net>
To: esr@thyrsus.com
Cc: emacs-devel@gnu.org, schwab@suse.de
Subject: Re: Strange hangs when visiting .el and .html files
Date: Fri, 9 Feb 2024 12:50:54 -0600 [thread overview]
Message-ID: <1e5dc76b-5e82-4d9c-a1ac-a6104b6b1d03@alphapapa.net> (raw)
In-Reply-To: <ZcZqUUNP7p2VMOaD@thyrsus.com>
> Andreas Schwab <schwab@suse.de>:
>> On Feb 07 2024, Eric S. Raymond wrote:
>>
>> > About a week ago I noticed that my Emacs was hanging when I attempted
>> > to visit my init.el file. Then I saw the same hang when visiting an
>> > HTML file. Other modes, such as text and C modes, are working normally.
>>
>> Is it interruptable? Then you can enable debug-on-quit to see where it
>> hangs.
>
> I tried that first thing.
>
> Ctl-G after the hang does interrupt it, but doesn't yield a trace.
>
> It's a weird bug because it's so specific. Most Lisp modes are
> completely unaffected.
This sounds like a weird behavior that I've observed ever since Emacs
28, but I've never been able to pin it down well enough to file a report
about it.
Basically, what I observe is that:
1. Certain actions (like calling certain commands, perhaps including
ones that activate a major mode) cause Emacs to spin with 100% CPU usage
for some time, tens of seconds or even a couple of minutes sometimes.
2. It only happens when such an action happens for the first time in a
session.
3. If I interrupt with C-g, everything appears normal; no errors, no
partially initialized state, no weird behavior. It's as if whatever I
interrupted was "optional."
4. Over time (3 or 4 versions now), the actions that trigger this
behavior have not been consistent. I might even venture to say that,
between different builds of the same version, the actions might not be
consistent.
5. It seems to happen less now, on Emacs 29.1 (I still need to upgrade)
than it did on builds of 28.0 and 28.1.
6. Without being able to verify it, I have the impression or intuition
that it happens when Emacs loads a library for the first time in a
session (I don't mean when it loads any library, just a certain one or
ones, but I haven't been able to pin it down).
Over the past couple of years, I've heard a few other users mention
observing similar behavior at times, but again, always being difficult
to nail down.
If this seems like the same behavior you're seeing, maybe it's time we
give this problem a name and an real bug report.
next prev parent reply other threads:[~2024-02-09 18:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-07 19:28 Strange hangs when visiting .el and .html files Eric S. Raymond
2024-02-07 19:33 ` Eli Zaretskii
2024-02-07 19:55 ` Eric S. Raymond
2024-02-07 20:13 ` Eli Zaretskii
2024-02-07 21:00 ` Eric S. Raymond
2024-02-08 9:14 ` Andreas Schwab
2024-02-09 18:09 ` Eric S. Raymond
2024-02-09 18:50 ` Adam Porter [this message]
2024-02-09 21:06 ` Eric S. Raymond
2024-02-10 0:19 ` T.V Raman
2024-02-10 6:59 ` Eli Zaretskii
2024-02-10 6:57 ` Eli Zaretskii
2024-02-11 18:05 ` Eric S. Raymond
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e5dc76b-5e82-4d9c-a1ac-a6104b6b1d03@alphapapa.net \
--to=adam@alphapapa.net \
--cc=emacs-devel@gnu.org \
--cc=esr@thyrsus.com \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.