From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5022 invoked from network); 30 Jun 2023 19:33:34 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 30 Jun 2023 19:33:34 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFJrv-0002v7-Kr; Fri, 30 Jun 2023 15:33:23 -0400 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 1qFJrr-0002ud-69 for info-gnus-english@gnu.org; Fri, 30 Jun 2023 15:33:21 -0400 Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFJrl-0006Mg-KX for info-gnus-english@gnu.org; Fri, 30 Jun 2023 15:33:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1688153588; x=1688758388; i=stephen.berman@gmx.net; bh=928u1/WahUqmMx5xIlQ4ZkVNMW9ANkFjezQrHNaNK6s=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=GVDax5ubGh9ZiLHJNaoQL/BKg5HMzr7hmZoyr8Az8yq30b61uPk1Rta5oa2Qf/fSHvOIAYE vIq9Q1kJPjjVNy97BD0oE6QbMWVBLjnjgw9mz7hM8HqPA1GNQPy3fd1ICYasG1RKSE/YEH/Nc RJyl9hhAqM8+HfTDGRcKjgGqezlpzf1eErq3x/zYxgGaO/d0BV41NOUZXXOhEuiQS68FAUzJy Hzc+ypjuULAMs6TyNu4xbkA9v8RS+KFfAo2cGTLxnQiqjW4VnUiUFoYuay/haa8Cfns6MODM2 0qcvEJDhPfKzUmmuhhZHKC/xUFDaEUdYglJSojztlnMBh+qPizfg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from strobelfssd ([94.134.196.164]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N49lD-1q6PmX2t0L-0104ju; Fri, 30 Jun 2023 21:33:08 +0200 From: Stephen Berman To: Prashant Tak Cc: info-gnus-english@gnu.org Subject: Re: Gnus fetch freezes emacs In-Reply-To: <87sfa9nhp4.fsf@gmail.com> (Prashant Tak's message of "Fri, 30 Jun 2023 20:03:11 +0530") References: <87sfa9nhp4.fsf@gmail.com> Date: Fri, 30 Jun 2023 21:33:08 +0200 Message-ID: <87ttuoeoej.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:bmzQucSwy9FDPkwg+ZvcLvVtlFzLxQkuOi//LTF5Hpy6qOl3SSB 9OdVutiDldOVEZ/JDQMH/v+K+Sw31ol9DmVUDvBbOfmlWAoUjsfmpGs7Mm868A0io3Y0Xo2 Qs2w1G+xWRCHy+xnCPuuWt2+YmdlMAhMrlypF4kuFseVk96MP7aBCXa105Cemmc7wpL9R5a gGsDe2KhV87VjUm4D0Piw== UI-OutboundReport: notjunk:1;M01:P0:oMp+3qX5Xx4=;+E6VmUWnVs4EGyv6HJt1B7Tjp1w 5AWZ6h/IiSJXKNaytZaM3u9w+KIXK2NDnMzDP3mn0TZpv8aQd9votKNV7j8xpci1E8EAo/o05 V95nyAGYRKrx3oPp4ddCxwCvITbDKZABW48aPA+v31W7zHKRxSQ94iATywjW+1IH7l7Mn9ACV Lw50wJ99qlYrZ50c72JL1GzzBLeTpkf0TVRbV33n+fq8ndmyx8uabkroBg2rbvin5AFptqsCe nvu3BPlzXjFo2ltCTqcCbV5KhFbOyehMFo/oFnbiVdxNmQvbVTSTYwnhvECSDRuII6oGHHekm RysnQBNzb0Habp7a7JcgjU9jTRB57nA4qgnKG0XeOi+6cNZpMuzG1gs2EQc94ZdbWjl2oTXr5 ezRQV9y6ZT+UR/Fq2fCBuIERkMfm0DVL+taFg/Fnm5bElKKcOUnbeVOcT5fQg4EmhIP1VuaLu yq4dZJZ7nJtnRf64QgrQprgqVO4WoduqCcOG/SE9XLvbLp+KxGBiMi/7i5Zqrpw1gITIwI/Ke 9XsfLs5aqnYqLl9MZALP+xT8Inxjof9v25Fd3OkntLBdtgJoP7CsopupKfu2SISPXoJ68u6YY IFBXMu4GkW0aLNwv1sFoTPoOP+fPPNLwWDqPI8g+p21wFjG5vLrhc6EvNQNHPTNdX/7LrZ0ZY ppHz2ccoLH6yAlNVIDLly8BoK1aBmNfiKQRtDRs8aUpQhMut2AGhAmFs6F2JVm/0xk5jw7B6d RilaxtkkcPwxcCcfls1AVTUN4Hu8uyB/DtP5NMuchrUm/vggDoRFlsRDoCuMH5s9kq+eRx2VX r6q/BEIIYsYsk1DfkpBtqB6EyrP3mkycNcdrMmMvTXOZT0PgYEc5slx8D4qH5o3gINCvn7/CR vz246K45L35vg/PpufR5TC8qmqPHUPKAyn3gups3i7rqMQtzje+rKB439PjdPSsegHBgkoEHj Vya5VAVKinRZPo2BmaBDf1GBp3s= Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.227.15.15; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org On Fri, 30 Jun 2023 20:03:11 +0530 Prashant Tak wrote: > Gnus has been freezing sporadically when `gnus-group-get-new-news` is ru= n. > And it keeps on going for hours, I have to manually intercept and signal > `keyboard-quit` and then perform the fetch operation again. This happens > in a very unpredictable manner, so it's hard to replicate. I did manage > to get a profiler report when that happened. > > 7367 99% - command-execute > 7367 99% - call-interactively > 7070 95% - funcall-interactively > 7070 95% - gnus-group-get-new-news > 7063 95% - gnus-get-unread-articles > 7063 95% - gnus-read-active-for-groups > 7063 95% - gnus-finish-retrieve-group-infos > 7063 95% - nntp-finish-retrieve-group-infos > 7063 95% - nntp-with-open-group-function > 6851 92% - # > 6416 86% - nntp-accept-response > 6068 82% - nntp-accept-process-output > 5873 79% - nnheader-accept-process-output > 19 0% + accept-process-output > 34 0% nntp-find-connection-buffer > 7 0% gnus-parent-read-child-newsrc > 297 4% - byte-code > 297 4% + read-extended-command > 15 0% + ... > > The main culprit seems to be `nnheader-accept-process-output` but I > don't know how to proceed further. Appreciate any help/input into the ma= tter. This sounds like the issue I've been having with gnus-group-get-new-news and similar Gnus commands for more than a year and a half, see bug#52735. As reported there, I did some debugging but couldn't pinpoint the problem, nor have I tried profiling yet. But as a workaround, I've been using the following replacement for gnus-group-get-new-news: (defun srb-gnus-group-get-new-news (&optional arg one-level) (interactive "P") (with-timeout (1 (kill-buffer (nntp-find-connection-buffer nntp-server-b= uffer)) (gnus-group-get-new-news)) (gnus-group-get-new-news arg one-level))) (define-key gnus-group-mode-map "g" 'srb-gnus-group-get-new-news) This usually suffices but not always. When Gnus (and hence Emacs) hangs even when using this workaround, I've resorted to manually killing the server buffer " *server news.gmane.io nntp *nntpd**" and then typing `g' pretty reliably works again. This is a very annoying issue, and if what you're experiencing is the same, I commiserate with you, but your report also gives me hope that it's not just some quirk of my setup or network connection. Now we just need some Gnus expert to chime in and guide us to try and track down the cause of this issue and get it fixed. Steve Berman