Gnus development mailing list
 help / color / mirror / Atom feed
* Memory exhausted when viewing HTML messages
@ 2014-09-03  7:27 Christoph Groth
  2014-09-03 16:09 ` Adam Sjøgren
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Groth @ 2014-09-03  7:27 UTC (permalink / raw)
  To: ding

Hey,

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?

As a workaround, I set mm-text-html-renderer to gnus-w3m.

Christoph




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

* Re: Memory exhausted when viewing HTML messages
  2014-09-03  7:27 Memory exhausted when viewing HTML messages Christoph Groth
@ 2014-09-03 16:09 ` Adam Sjøgren
  2014-09-03 20:50   ` Christoph Groth
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Sjøgren @ 2014-09-03 16:09 UTC (permalink / raw)
  To: ding

Christoph Groth <christoph@grothesque.org> 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?

For getting a clue about what happens, maybe M-x toggle-debug-on-quit
and then hitting C-g while Emacs is working on exhausting memory might
give an interesting trace?


  Best regards,

    Adam

-- 
 "Plasmids are circular bits of DNA that bacteria             Adam Sjøgren
  treat like Pokemon - trading with their friends        asjo@koldfront.dk
  collecting all the cool ones."




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

* Re: Memory exhausted when viewing HTML messages
  2014-09-03 16:09 ` Adam Sjøgren
@ 2014-09-03 20:50   ` Christoph Groth
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph Groth @ 2014-09-03 20:50 UTC (permalink / raw)
  To: ding

Adam Sjøgren wrote:

> Christoph Groth <christoph@grothesque.org> 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




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

end of thread, other threads:[~2014-09-03 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-03  7:27 Memory exhausted when viewing HTML messages Christoph Groth
2014-09-03 16:09 ` Adam Sjøgren
2014-09-03 20:50   ` Christoph Groth

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).