From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tobias Bora Newsgroups: gmane.emacs.bugs Subject: bug#74541: 28.2; Emacs hangs every few seconds Date: Tue, 3 Dec 2024 14:42:33 +0100 Message-ID: <768556f2-d08f-4a0a-8560-62b3a1d69d3e@gmail.com> References: <9ec0c6a0-8c9b-4d1a-87c5-ac8426e1326b@gmail.com> <86cyiiggmp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17807"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 74541@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 03 14:44:29 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tITCX-0004Tz-Ca for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Dec 2024 14:44:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tITCJ-0008R7-NP; Tue, 03 Dec 2024 08:44:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tITC7-0008Fi-9W for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 08:44:06 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tITC7-0002GF-0m for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 08:44:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=OK1vO6wECWUJTJ7b1sHbgW9sNWo+748NuV25dGLWad0=; b=FaOuW9B0bdi7thTdzpkalVkKF8s/XJ2APc4EHcKZ7BJJj2KRedxne61OUryRdwCuFpIBxxnVxW9Ux5ToQEf31KVzHX/YrI3AA/35Al4YTYect1tRqDJypbOTLSNj7AZdLvDjCdc1SG8DQWadP4tVtk607ycaAyBp/i9kwtzMveV11Lh5f8I6hVdcIbvMGgpS6ltDHecVLfxqhCyv/IxR18/1Nab/6dPu82e7zNa9Tn3vqgu5v0r0r8joxwsehN/Qu9ffh0lBsRXnOcA3ygAOHlKJGsL7ReG1vXifR7PpyBQxU0v+8x6OEOkAj8YIUH0QBmiWAFqBkgCPBT+ZVubIRg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tITC6-0007Bc-BZ for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 08:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tobias Bora Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Dec 2024 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74541 X-GNU-PR-Package: emacs Original-Received: via spool by 74541-submit@debbugs.gnu.org id=B74541.173323343027596 (code B ref 74541); Tue, 03 Dec 2024 13:44:02 +0000 Original-Received: (at 74541) by debbugs.gnu.org; 3 Dec 2024 13:43:50 +0000 Original-Received: from localhost ([127.0.0.1]:58724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tITBs-0007B1-SU for submit@debbugs.gnu.org; Tue, 03 Dec 2024 08:43:49 -0500 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:45146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tITBg-0007Ad-GQ for 74541@debbugs.gnu.org; Tue, 03 Dec 2024 08:43:45 -0500 Original-Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-43497839b80so35823005e9.2 for <74541@debbugs.gnu.org>; Tue, 03 Dec 2024 05:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733233355; x=1733838155; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OK1vO6wECWUJTJ7b1sHbgW9sNWo+748NuV25dGLWad0=; b=fi0ndM2Z/a8fJCU+ewgTvL+Vi3+xP5dWhXwphGk6dbPVNcAx/RFWPb4X6qnk2VqkDB Im/v93vgcuLhIRvDYkkCYYpzt67/gDNtmoX9UlZrZ94N8UoQ86n1z4fW/YowYGKIbnZq rgzqywLv0BwofoysrO8OhPbIJsIufElkMFM87OZCp95Vz2Fj5W8nomfdQqgyJdnNhbke W5Jb/iC3whGgaid3XDOtjZzn/uA2f6tWfElvnzWFw3jCcfiNV5tw11gkW7AMmqGMMn6l ua2KjptUJgo25m91/qWDvdbF3VZMNwuJ9Kn3ukdxxLDPJ5NtMufcULF4OnVJMaOS/G2X VWdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733233355; x=1733838155; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OK1vO6wECWUJTJ7b1sHbgW9sNWo+748NuV25dGLWad0=; b=JHI5jzpXIpzKkG7D1/nmKRbIsVbdCDqEkZsWNfbGhC+/JW1CuHjD3A5PSTVe1JKkg7 GUDOABTXWeIGhY7YbJxeLMXpUr8h317ZZ6uN/84HxwG5HWOq79yWusGM5274F81NvhcN PsQzdeyglTl9ZhizI0/sJZ/7fIKpJyL6Ubk3XQOMghxy0MwjTOllzAtiMEzbxpKy5Gh8 VJhh+JMsjpxgzC616buYJVe9C2232xKbvImkjb5F+dc+soU3+rdYwBH2WmG7DNUOSDlc gTVSJo89RTq5gaFY9oNm7lRes1M/uZ/5tf8R/c4/j8HHu0b4loceNjg90Im+kwpqm34T eWbA== X-Gm-Message-State: AOJu0YxZbnl3CE6my1rgIyO5SIn+inDDTmPCtbcc/VnHYrM8PJoGXtjp sMRaem6Xp7O3EzjEv5lbpxZ4w5k6kc0QCX+BKteUtRv7GAbT8vdTStV1NA== X-Gm-Gg: ASbGncvQ1zXhbRCGFEnthV5qIjBDeKkHfrMM//gu9EPY81xHFYRYSLAHXOSO8ihZ3VV j2s4s9QxK9ZOcAVLFCIekQIc5Eq/IispIM/zJjV8kJPupRZiKru+/rT252TU3Zqb/8AvlubKb7t pdPuMGNb7rY8MDqv3sYTGzqGRuR4bsUgUfoSOgET1ZXjSaCLtR0JnctrRtv2On8oHRylY4ZD4t/ qhEcjB/NvZpvtwoynhhcf0GGN136j+/Ucon5GD+m6QNmWz8N+MsvSBEJjZQc24DsKkNVUqFeksL GApyIro= X-Google-Smtp-Source: AGHT+IEqchP9p8TU3EBlIRYJt5AMm/+JJEEilQbm1YoApTUdaTE9pQnmUDpT8MW3uedmUmOpyIkmVA== X-Received: by 2002:a05:600c:1e17:b0:42c:ae30:fc4d with SMTP id 5b1f17b1804b1-434d3f8e863mr2244615e9.7.1733233354881; Tue, 03 Dec 2024 05:42:34 -0800 (PST) Original-Received: from [130.190.83.232] (eduroam-083232.grenet.fr. [130.190.83.232]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-434b9a9679bsm156872035e9.13.2024.12.03.05.42.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Dec 2024 05:42:34 -0800 (PST) Content-Language: en-US In-Reply-To: <86cyiiggmp.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296365 Archived-At: 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 >> >> 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.