From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84852 Path: news.gmane.org!not-for-mail From: Christoph Groth Newsgroups: gmane.emacs.gnus.general Subject: Re: Memory exhausted when viewing HTML messages Date: Wed, 03 Sep 2014 22:50:13 +0200 Message-ID: <87r3zsfmyi.fsf@grothesque.org> References: <87d2bd88pa.fsf@grothesque.org> <87lhq0lm8k.fsf@topper.koldfront.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1409777478 31524 80.91.229.3 (3 Sep 2014 20:51:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2014 20:51:18 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33095@lists.math.uh.edu Wed Sep 03 22:51:11 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XPHWI-0006ES-Jm for ding-account@gmane.org; Wed, 03 Sep 2014 22:51:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1XPHVi-0003UI-Ad; Wed, 03 Sep 2014 15:50:34 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XPHVg-0003U6-Jq for ding@lists.math.uh.edu; Wed, 03 Sep 2014 15:50:32 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XPHVe-0003W7-Tl for ding@lists.math.uh.edu; Wed, 03 Sep 2014 15:50:32 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XPHVc-0004nE-Kb for ding@gnus.org; Wed, 03 Sep 2014 22:50:28 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XPHVb-0005j4-Fg for ding@gnus.org; Wed, 03 Sep 2014 22:50:27 +0200 Original-Received: from dra38-5-82-246-248-175.fbx.proxad.net ([82.246.248.175]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2014 22:50:27 +0200 Original-Received: from christoph by dra38-5-82-246-248-175.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2014 22:50:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dra38-5-82-246-248-175.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:1xdb0D8xOcwMOIQR0CoOVyHP3i0= X-Spam-Score: -4.6 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84852 Archived-At: Adam Sjøgren wrote: > Christoph Groth writes: > >> I'm using Gnus 5.13 with Emacs 24.4.50. When >> mm-text-html-renderer is >> set to its default value shr, I often get the messasge “Memory >> exhausted--use C-x s then exit and restart Emacs” when opening >> some >> HTML messages. Is this issue known? If not, any suggestions how >> to >> debug it? > > I haven't heard it mentioned before. > > I guess an example of an email where this happens would help > debugging > it - if you have one without any sensitive information that you > can > share? I tried and couldn’t reproduce the problem using “emacs -q”, so lacking other tools I turned to bisecting my ~/.emacs. It turned out that the problem is triggered by me setting fill-column to most-positive-fixnum in gnus-article-mode-hook. “shr” seems to allocate buffers that are proportional to fill-column. I set fill-column to infinity in a function that also enables visual-line-mode, adaptive-wrap-prefix-mode and variable-pitch-mode. This allows to use “W w” (gnus-article-fill-cited-article) to wash away hard line breaks from an article so that the text reflows nicely. (I happen to like this – consider how œ and æ look with a fixed-width font.) Christoph