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=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6883 invoked from network); 5 May 2022 01:54:18 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 5 May 2022 01:54:18 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nmQh7-002vDu-4n for ml@inbox.vuxu.org; Wed, 04 May 2022 20:54:17 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1nmQh6-008GCr-HU for ml@inbox.vuxu.org; Wed, 04 May 2022 20:54:16 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nmQh4-008GCi-7P for ding@lists.math.uh.edu; Wed, 04 May 2022 20:54:14 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nmQh2-005KLO-8W for ding@lists.math.uh.edu; Wed, 04 May 2022 20:54:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tb464PK7LqoMr2Lr+iHaMu5FoOVlOy7dWPoJho6MRYw=; b=TkWCPiytiZ2bXEGGNiTol8uCXy g31HBjj/vrtvLVnL9nI+bpR/lYeE197T2R2ecfT3BQsc5Sv2YwAIFuVlO7DsQApDlKWTnYmSjc7eu 3hhmz1tjij/mooAO6E6ZtUUti6AyUowsx4Lg0AV6Lf1yU1/x2f4nVN0ij3ZsFSGSj/FI=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmQgt-0002SW-Jj for ding@gnus.org; Thu, 05 May 2022 03:54:07 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nmQgp-0007Fz-Um for ding@gnus.org; Thu, 05 May 2022 03:53:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: nnvirtual counts messages but gives an error Date: Wed, 04 May 2022 18:53:50 -0700 Message-ID: <87v8ukoic1.fsf@ericabrahamsen.net> References: <87ilql31h8.fsf@ecocode.net> <87fslpql4d.fsf@ericabrahamsen.net> <87v8ulyng6.fsf@ecocode.net> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:y+1OV7zT3agGX6eXz8dW8Ou+c7o= List-ID: Precedence: bulk Erik Colson writes: > Eric Abrahamsen writes: > >> Can you set `toggle-debug-on-error' to t, trigger the error again, >> and post the backtrace here? > > Here it is: > > Debugger entered--Lisp error: (wrong-type-argument hash-table-p nil) > gnus-cache-update-active("FASTMAIL/Inbox" 2664 t) > gnus-cache-articles-in-group("FASTMAIL/Inbox") > gnus-cache-retrieve-headers((4 5 9 10 11 14 22 23 24 25 26 27 30 32 34 35 38 40 41 43 48 49 51 52 53 54 55 58 60 62 68 69 70 71 73 74 75 76 77 78 79 81 82 83 84 85 86 89 90 92 ...) "FASTMAIL/Inbox" nil) Let's see... The `gnus-cache-open' function is called at startup, so long as `gnus-use-cache is non-nil. When `gnus-cache-open' is called, it will call `gnus-cache-read-active', which will always create the hash table in question, one way or the other. The only way it will not call `gnus-cache-read-active' is if this test fails to pass: (or (file-exists-p gnus-cache-directory) (and gnus-use-cache (not (eq gnus-use-cache 'passive)))) I'm guessing your `gnus-cache-directory' points to a non-existent directory? I'm also assuming your `gnus-use-cache' is 'passive. It's a bit weird, though -- if the directory doesn't exist but `gnus-use-cache' is non-nil, it seems like Gnus should either create the directory, or just not attempt to use the cache. As it is, `gnus-cache-read-active' creates the cache directory, but only if... it already exists.