From: Tobias Bora <tobias.bora@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 74541@debbugs.gnu.org
Subject: bug#74541: 28.2; Emacs hangs every few seconds
Date: Tue, 3 Dec 2024 14:42:33 +0100 [thread overview]
Message-ID: <768556f2-d08f-4a0a-8560-62b3a1d69d3e@gmail.com> (raw)
In-Reply-To: <86cyiiggmp.fsf@gnu.org>
Dear Eli,
Thank you very much for your answer. I was a bit dubious, but indeed,
since I tried:
╰─❯ cat ~/.Xresources ─╯
Emacs.useXIM: false
and restarting emacs, everything seems to be back to normal! Thank you
so much.
But out of curiosity, can't we, by default, disable XIM for emacs, since
anyway it is unusable when XIM is used?
Le 26/11/2024 à 16:27, Eli Zaretskii a écrit :
>> Date: Tue, 26 Nov 2024 09:36:14 +0100
>> From: Tobias Bora <tobias.bora@gmail.com>
>>
>> Bug description: since I upgraded my system, emacs hangs regularly
>> (usually every 10 seconds or so), during maybe 3 seconds on average.
>> Like just the time to write this bug report,
>> emacs hanged 13 times frankly (more than a few seconds), and a few times
>> I felt a bit of a lag when writting. The hang can
>> occur while typing, or while moving (e.g. with ctrl+arrow
>> left/right). The bug occurs also while starting emacs with -Q and with
>> multiple versions (tested with 28.2 and 29.4). Funily enough, the bug
>> started after I upgraded my system, but not emacs (emacs was installed
>> via home-manager, and I upgraded first my system, then home-manager but
>> still used emacs in the meantime). Note however that this bug is not
>> specific to the emacs installed via home-manager, as the system-wide
>> installed emacs also suffers from this bug. I am running KDE, and the
>> bug was present in KDE Plasma 5 and 6, with both wayland and X11, and
>> with both the lucid and gtk versions of emacs. Note
>> also that emacs is the only application witnessing hangs. I run nixos
>> unstable,
> Since you say that the issue began when you upgraded your system
> without changing Emacs, I would suggest first to look into the changes
> brought in by your system upgrade. The fact that Emacs is the only
> application you use which experiences these problems doesn't
> necessarily mean the problem is in Emacs. For example, Emacs might be
> the only program you use that makes use of some system software which
> causes this.
>
> Searching in etc/PROBLEMS for "hangs" I found this entry:
>
>
> ** Emacs hangs when using XIM
>
> This is due to an old bug in the implementation of the X protocol's
> XIM transport: when an input method crashes for some reason, Xlib
> cannot recover. Emacs cannot do anything about this except wait for
> input method developers to fix their crashes. You can work around
> these problems by disabling XIM in your X resources:
>
> Emacs.useXIM: false
>
> Could this be your problem?
>
> If nothing else helps, make sure you have debug information for Emacs,
> then attach a debugger when Emacs hangs, and post a backtrace here.
> Maybe that will give us some clues.
>
> It is also possible that a newer version of Emacs doesn't have this
> problem. The latest released Emacs version is 29.4, and Emacs 30.1 is
> currently in pretest. If you can try that, please do.
next prev parent reply other threads:[~2024-12-03 13:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-26 8:36 bug#74541: 28.2; Emacs hangs every few seconds Tobias Bora
2024-11-26 15:27 ` Eli Zaretskii
2024-12-03 13:42 ` Tobias Bora [this message]
2024-12-03 14:15 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=768556f2-d08f-4a0a-8560-62b3a1d69d3e@gmail.com \
--to=tobias.bora@gmail.com \
--cc=74541@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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 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).