From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74541: 28.2; Emacs hangs every few seconds Date: Tue, 26 Nov 2024 17:27:10 +0200 Message-ID: <86cyiiggmp.fsf@gnu.org> References: <9ec0c6a0-8c9b-4d1a-87c5-ac8426e1326b@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19533"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74541@debbugs.gnu.org To: Tobias Bora Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 26 16:28:42 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 1tFxUV-0004p3-W4 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Nov 2024 16:28:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFxTz-0005To-40; Tue, 26 Nov 2024 10:28:07 -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 1tFxTv-0005Sf-KM for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2024 10:28:03 -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 1tFxTu-0007Ag-Qa for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2024 10:28:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=Ez5a1fmiab23TXw5RdWgZsSQMrTfG4yeRZzDbpmPlY8=; b=rCQP9L04/WOZk5UZaWPV5dfD7Nc9nPYrTosN5eKkoIaIG5xbhLg5RqfNLugYI9xNgwoxSZ5j/KM4Ne+MIAZXWctNcW89TaRGsV7kvxsgiHwWBJMJeza8+mdgkzR5rdd8uVo7bEUnPObAb8DaEG5sTp33n7rUyq+KwgMNxM9gFzTNnpYMSZkFOlP1zwDmF93HhTB9BK5d3IqCRYTvYf2lPX7ZEbiO0npj1ULsorVuKAIt6ngwQ6V+IcwlhsJRsVsCyKQjFTwKoZvMQ+oiw1Ec7Tye5f9tEnB7FXcYSqxIDYtHR/b8nKEoOG47E32N5bbQm8koY3FYNN/fUYwKNl3k/g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFxTu-00088o-LZ for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2024 10:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2024 15:28: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.173263484231244 (code B ref 74541); Tue, 26 Nov 2024 15:28:02 +0000 Original-Received: (at 74541) by debbugs.gnu.org; 26 Nov 2024 15:27:22 +0000 Original-Received: from localhost ([127.0.0.1]:49989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFxTF-00087s-Kn for submit@debbugs.gnu.org; Tue, 26 Nov 2024 10:27:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFxTD-00087a-6h for 74541@debbugs.gnu.org; Tue, 26 Nov 2024 10:27:19 -0500 Original-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 ) id 1tFxT7-00070c-Uq; Tue, 26 Nov 2024 10:27:13 -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=Ez5a1fmiab23TXw5RdWgZsSQMrTfG4yeRZzDbpmPlY8=; b=cI4ohnfwqr5v ChEMj1h88dCk6GUetXhPtIRkksazyujd2umQ3xesgrB4d6gtWHJFZOEXtnP5sylh0AD2MQ+9mKnSa kg2xYmmciqz66aE9HTHDUl7LCgnOQsqg2JhDpep6silxGCSIeSW8pgHJa6hdRk7ZkNqqzpDcX4M8n HAao5ZNsJtpOFSaD+Rd2B/AA8cw60byv0aaJ4fPNBB4LQyl4zNVSPkXfrPZHkXPno15LEffPofEoy tKP3ZPUrZoNCDntVjUP7qFHW7i2GabfS1d+zoeCSzbSoi+/xRxskBuamjUrZxGNsJFzoLwZLs43Bp lSVPwQ/GXO9Xd3knCuhlVQ==; In-Reply-To: <9ec0c6a0-8c9b-4d1a-87c5-ac8426e1326b@gmail.com> (message from Tobias Bora on Tue, 26 Nov 2024 09:36:14 +0100) 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:295992 Archived-At: > 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.