Gnus development mailing list
 help / color / mirror / Atom feed
* Re: XEmacs/GNUs eats all memory and dies
       [not found] <86ek15xk4l.fsf@dellbeast.localnet>
@ 2006-03-14 13:43 ` Reiner Steib
  2006-03-14 13:53   ` Simon Josefsson
  2006-03-15 10:45   ` Julian Stecklina
  0 siblings, 2 replies; 3+ messages in thread
From: Reiner Steib @ 2006-03-14 13:43 UTC (permalink / raw)
  Cc: bugs

On Tue, Mar 14 2006, Julian Stecklina wrote:

> Gnus v5.10.7
> XEmacs 21.5  (beta24) "dandelion" [Lucid] (i386--freebsd, Mule) of Sat Jan  7 2006 on dellbeast.localnet
> 200 news.gmane.org InterNetNews NNRP server INN 2.4.1 ready (posting ok).
>
> Hello,
>
> when I try to open the INBOX of my web.de IMAP account in the group
> buffer, XEmacs eats all available memory and dies, because it tries to
> build a ridiculously large list in gnus-uncompress-range. Is there any
> workaround for this?

Maybe the change below which has been installed in the development
version might help.

Simon, maybe we should also install it in v5-10 now, but choose the
method depending on some variable which should default to "old method"
in the v5-10 branch and "new method" in the trunk.  If we have enough
testing, we can default to "new method" in all versions and remove the
"old method" code.  WDYT?

,----[ lisp/ChangeLog ]
| 2006-03-03  Daniel Pittman <daniel@rimspace.net>
| 
| 	* nnimap.el (nnimap-request-update-info-internal): Optimize.
`----

--8<---------------cut here---------------start------------->8---
--- nnimap.el	21 Feb 2006 07:14:23 -0000	7.30
+++ nnimap.el	3 Mar 2006 09:33:38 -0000	7.31
@@ -1183,18 +1183,12 @@
 	  (let (seen unseen)
 	    ;; read info could contain articles marked unread by other
 	    ;; imap clients!  we correct this
-	    (setq seen (gnus-uncompress-range (gnus-info-read info))
-		  unseen (imap-search "UNSEEN UNDELETED")
-		  seen (gnus-set-difference seen unseen)
-		  ;; seen might lack articles marked as read by other
-		  ;; imap clients! we correct this
-		  seen (append seen (imap-search "SEEN"))
-		  ;; remove dupes
-		  seen (sort seen '<)
-		  seen (gnus-compress-sequence seen t)
-		  ;; we can't return '(1) since this isn't a "list of ranges",
-		  ;; and we can't return '((1)) since g-list-of-unread-articles
-		  ;; is buggy so we return '((1 . 1)).
+	    (setq unseen (gnus-compress-sequence 
+			  (imap-search "UNSEEN UNDELETED"))
+		  seen (gnus-range-difference (gnus-info-read info) unseen)
+		  seen (gnus-range-add seen 
+				       (gnus-compress-sequence 
+					(imap-search "SEEN")))
 		  seen (if (and (integerp (car seen))
 				(null (cdr seen)))
 			   (list (cons (car seen) (car seen)))
--8<---------------cut here---------------end--------------->8---

[...]
> Debugger entered--Lisp error: (quit)
>   gnus-uncompress-range(((1 . 937046050)))
>   nnimap-request-update-info-internal("INBOX" ("nnimap+web:INBOX" 3
>   ((1 . 937046050)) ((seen ...) (recent ...)) "nnimap:web"
>   ((uidvalidity . "1") (spam-contents
>   gnus-group-spam-classification-ham) (spam-process ...)
>   (spam-process-destination "mail.spam") (ham-process-destination
>   "mail.inbox"))) "web")
>   nnimap-request-group("INBOX" "web" t)
>   gnus-request-group("nnimap+web:INBOX" t)
>   gnus-select-newsgroup("nnimap+web:INBOX" nil nil)
>   gnus-summary-read-group-1("nnimap+web:INBOX" nil t nil nil nil)
>   gnus-summary-read-group("nnimap+web:INBOX" nil t nil nil nil nil)
>   gnus-group-read-group(nil t)
>   gnus-group-select-group(nil)
>   call-interactively(gnus-group-select-group)
>
> ------------------ Environment follows ------------------
[...]
> (setq gnus-secondary-select-methods '((nntp "news.gmane.org")
> 				      (nnimap "web"
> 				       (nnimap-authinfo-file "/home/blitz/.xemacs/web.auth")
> 				       (nnimap-address "imap.web.de")
> 				       (nnimap-stream ssl))
[...]

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XEmacs/GNUs eats all memory and dies
  2006-03-14 13:43 ` XEmacs/GNUs eats all memory and dies Reiner Steib
@ 2006-03-14 13:53   ` Simon Josefsson
  2006-03-15 10:45   ` Julian Stecklina
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Josefsson @ 2006-03-14 13:53 UTC (permalink / raw)
  Cc: ding

Reiner Steib <reinersteib+from-uce@imap.cc> writes:

> On Tue, Mar 14 2006, Julian Stecklina wrote:
>
>> Gnus v5.10.7
>> XEmacs 21.5  (beta24) "dandelion" [Lucid] (i386--freebsd, Mule) of Sat Jan  7 2006 on dellbeast.localnet
>> 200 news.gmane.org InterNetNews NNRP server INN 2.4.1 ready (posting ok).
>>
>> Hello,
>>
>> when I try to open the INBOX of my web.de IMAP account in the group
>> buffer, XEmacs eats all available memory and dies, because it tries to
>> build a ridiculously large list in gnus-uncompress-range. Is there any
>> workaround for this?
>
> Maybe the change below which has been installed in the development
> version might help.
>
> Simon, maybe we should also install it in v5-10 now, but choose the
> method depending on some variable which should default to "old method"
> in the v5-10 branch and "new method" in the trunk.  If we have enough
> testing, we can default to "new method" in all versions and remove the
> "old method" code.  WDYT?

If it positively solve this report, I think we should install it on
v5-10 too.

> ,----[ lisp/ChangeLog ]
> | 2006-03-03  Daniel Pittman <daniel@rimspace.net>
> | 
> | 	* nnimap.el (nnimap-request-update-info-internal): Optimize.
> `----
>
> --- nnimap.el	21 Feb 2006 07:14:23 -0000	7.30
> +++ nnimap.el	3 Mar 2006 09:33:38 -0000	7.31
> @@ -1183,18 +1183,12 @@
>  	  (let (seen unseen)
>  	    ;; read info could contain articles marked unread by other
>  	    ;; imap clients!  we correct this
> -	    (setq seen (gnus-uncompress-range (gnus-info-read info))
> -		  unseen (imap-search "UNSEEN UNDELETED")
> -		  seen (gnus-set-difference seen unseen)
> -		  ;; seen might lack articles marked as read by other
> -		  ;; imap clients! we correct this
> -		  seen (append seen (imap-search "SEEN"))
> -		  ;; remove dupes
> -		  seen (sort seen '<)
> -		  seen (gnus-compress-sequence seen t)
> -		  ;; we can't return '(1) since this isn't a "list of ranges",
> -		  ;; and we can't return '((1)) since g-list-of-unread-articles
> -		  ;; is buggy so we return '((1 . 1)).
> +	    (setq unseen (gnus-compress-sequence 
> +			  (imap-search "UNSEEN UNDELETED"))
> +		  seen (gnus-range-difference (gnus-info-read info) unseen)
> +		  seen (gnus-range-add seen 
> +				       (gnus-compress-sequence 
> +					(imap-search "SEEN")))
>  		  seen (if (and (integerp (car seen))
>  				(null (cdr seen)))
>  			   (list (cons (car seen) (car seen)))
>
> [...]
>> Debugger entered--Lisp error: (quit)
>>   gnus-uncompress-range(((1 . 937046050)))
>>   nnimap-request-update-info-internal("INBOX" ("nnimap+web:INBOX" 3
>>   ((1 . 937046050)) ((seen ...) (recent ...)) "nnimap:web"
>>   ((uidvalidity . "1") (spam-contents
>>   gnus-group-spam-classification-ham) (spam-process ...)
>>   (spam-process-destination "mail.spam") (ham-process-destination
>>   "mail.inbox"))) "web")
>>   nnimap-request-group("INBOX" "web" t)
>>   gnus-request-group("nnimap+web:INBOX" t)
>>   gnus-select-newsgroup("nnimap+web:INBOX" nil nil)
>>   gnus-summary-read-group-1("nnimap+web:INBOX" nil t nil nil nil)
>>   gnus-summary-read-group("nnimap+web:INBOX" nil t nil nil nil nil)
>>   gnus-group-read-group(nil t)
>>   gnus-group-select-group(nil)
>>   call-interactively(gnus-group-select-group)
>>
>> ------------------ Environment follows ------------------
> [...]
>> (setq gnus-secondary-select-methods '((nntp "news.gmane.org")
>> 				      (nnimap "web"
>> 				       (nnimap-authinfo-file "/home/blitz/.xemacs/web.auth")
>> 				       (nnimap-address "imap.web.de")
>> 				       (nnimap-stream ssl))
> [...]
>
> Bye, Reiner.
> -- 
>        ,,,
>       (o o)
> ---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XEmacs/GNUs eats all memory and dies
  2006-03-14 13:43 ` XEmacs/GNUs eats all memory and dies Reiner Steib
  2006-03-14 13:53   ` Simon Josefsson
@ 2006-03-15 10:45   ` Julian Stecklina
  1 sibling, 0 replies; 3+ messages in thread
From: Julian Stecklina @ 2006-03-15 10:45 UTC (permalink / raw)
  Cc: ding

Reiner Steib <reinersteib+from-uce@imap.cc> writes:

> On Tue, Mar 14 2006, Julian Stecklina wrote:
>
>> Gnus v5.10.7
>> XEmacs 21.5  (beta24) "dandelion" [Lucid] (i386--freebsd, Mule) of Sat Jan  7 2006 on dellbeast.localnet
>> 200 news.gmane.org InterNetNews NNRP server INN 2.4.1 ready (posting ok).
>>
>> Hello,
>>
>> when I try to open the INBOX of my web.de IMAP account in the group
>> buffer, XEmacs eats all available memory and dies, because it tries to
>> build a ridiculously large list in gnus-uncompress-range. Is there any
>> workaround for this?
>
> Maybe the change below which has been installed in the development
> version might help.

It seems to as I am able to read (and answer) your mail with Gnus from
CVS. Thanks.

Regards,
-- 
Julian Stecklina

"I object to doing things that computers can do." - Olin Shivers




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-15 10:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <86ek15xk4l.fsf@dellbeast.localnet>
2006-03-14 13:43 ` XEmacs/GNUs eats all memory and dies Reiner Steib
2006-03-14 13:53   ` Simon Josefsson
2006-03-15 10:45   ` Julian Stecklina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).