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 9286 invoked from network); 2 Jul 2023 15:36:46 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 2 Jul 2023 15:36:46 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFz7t-0001Zi-2k; Sun, 02 Jul 2023 11:36:37 -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 1qFync-0005U6-K3 for info-gnus-english@gnu.org; Sun, 02 Jul 2023 11:15:40 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFyna-00020d-RJ for info-gnus-english@gnu.org; Sun, 02 Jul 2023 11:15:40 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1b7f92b764dso18056975ad.2 for ; Sun, 02 Jul 2023 08:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688310934; x=1690902934; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=RH+VF7OdHdajjSI11neX02Q0oilcV1deuukuIAD0iac=; b=c9DVZrJO98Vd8QXRIhwFyES69b+2ub6LM8GQ6MxWZhy+Zcz0mLmF0ZalGrbz7dSa1F DGE++El5T0txCAxQsqyytAcN8MPi8ILufts1EIN2feCcIM0Scz2baB/kNRubSNcIh8gV /KQWCsMyfSggfbjL2bqpWr83EVDWzmgE/2Bx7KdcxpEBQeTuOWYDLFOLOc1h9FQhX5Ke c7YboWLTaxWkOn6c8eqGZJ1pRH480CNZTv/VSWmQMO63gXUoPW08CC4LyKFFjQN7BEb9 sADI4C71zYwPZCI41rak6RAOkAJSoefV82oq+VRrX8aBwismkWMo1bXQZ/ceC1ua9gIl u1zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688310934; x=1690902934; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RH+VF7OdHdajjSI11neX02Q0oilcV1deuukuIAD0iac=; b=RPEj1moT3nOTgvHolfVIPBc2FhPkp2aMISA4U7nzkGWSVv4EfquAkGSQT39z9S5TiB TOxU7NKX2r36gj3lOcKgJgI94cduChJFUtk4EEGXRcsFdRUGfQ3ajE9/yTTe9aTDId4H 9BU3ijYsMPQGi560KXHsGP+h93d0xFyiaLcM9bUbyAw1Efk7WPNVeln2e/+K80YadmO3 2lHNzWTuugEKyywv/pLdBruW6XBc/LHzFBXgi68OMZNdNPb6kYpbY786n+VJB3w3UtYQ QYsPHuxD68Vi22g+iKQPyh+CnpsilzANrFC/NWDN1H8s6T6r9ZA7+vSqJIGjLLj35Cfp bhsg== X-Gm-Message-State: ABy/qLa2gMNWgWl4ajLe33JiSiGmvySc5YoFpY24d25mfqSStm1uhQHJ p2Dfz8Exf7zHJiuXu9AXPFqVoRIwYT/3HQ== X-Google-Smtp-Source: APBJJlHbUzMKQJBUvrQ/GldKBe4UhABx9hwOHe8Gry5rj65rDyVcZ4YfjgBJ87Fw0oSm0O0XfcUQug== X-Received: by 2002:a17:902:f681:b0:1b3:dbaa:f3fb with SMTP id l1-20020a170902f68100b001b3dbaaf3fbmr7593866plg.22.1688310934257; Sun, 02 Jul 2023 08:15:34 -0700 (PDT) Received: from tool-endeavour ([2409:40d4:b:9baa:dda4:bb04:aed8:1659]) by smtp.gmail.com with ESMTPSA id l2-20020a170903244200b001b53d3d911dsm9427025pls.69.2023.07.02.08.15.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 08:15:33 -0700 (PDT) From: Prashant Tak To: info-gnus-english@gnu.org Subject: Re: Gnus fetch freezes emacs References: <87sfa9nhp4.fsf@gmail.com> <87ttuoeoej.fsf@gmx.net> Date: Sun, 02 Jul 2023 20:45:29 +0530 In-Reply-To: <87ttuoeoej.fsf@gmx.net> (Stephen Berman's message of "Fri, 30 Jun 2023 21:33:08 +0200") Message-ID: <87mt0e1h0u.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=prashantrameshtak@gmail.com; helo=mail-pl1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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-Mailman-Approved-At: Sun, 02 Jul 2023 11:36:36 -0400 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 Stephen Berman writes: > On Fri, 30 Jun 2023 20:03:11 +0530 Prashant Tak > wrote: > >> Gnus has been freezing sporadically when `gnus-group-get-new-news` is run. >> 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. >> >> 6416 86% - nntp-accept-response >> 6068 82% - nntp-accept-process-output >> 5873 79% - nnheader-accept-process-output >> 19 0% + accept-process-output >> >> 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 matter. > > 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-buffer)) > (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. I took a look at your bug report and indeed, the behaviour described is identical to what I've been experiencing, hopefully someone does chime in with an idea on how to improve the situation. Thanks for sharing your solution for the meantime though. -- Prashant Tak