Subject: bug#56546: 29.0.50; unbounded RAM comsumption when displaying images

From: Eli Zaretskii <[email-masked]>
Date: Thu, 14 Jul 2022 20:26:09 +0300

> Cc: [email-masked]
> From: Lars Ingebrigtsen <[email-masked]>
> Date: Thu, 14 Jul 2022 18:59:20 +0200
> 
> "Jose A. Ortega Ruiz" <[email-masked]> writes:
> 
> >   - emacs -Q
> >   - M-x eww RET https://xenodium.com/emacs-zones-to-lift-you-up/
> >   - RAM consumption grows to ~600Mb
> >   - R (redisplay page): RAM grows to ~1100Mb
> >   - R (redisplay page): RAM grows to ~1752Mb
> >   - R (redisplay page): RAM grows to ~2222Mb
> >   - rinse and repeat: RAM never goes down
> >   - (image-cache-size) reports a modest 82Mb
> >   - Kill buffer:  high RAM consumption is still at its maximum, even
> >     after (image-cache-size) goes to 0
> 
> I think this should all be fixed on the current trunk now -- can you
> check?

FWIW, on my system the pattern of the memory footprint didn't change
after this.  I still see the footprint going up after each "M-x eww",
and killing the buffer and invoking clear-image-cache causes Emacs to
go back to somewhat higher than its original size.