all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Jhair Tocancipa Triana <jhair.tocancipa@gmail.com>
Cc: 41802@debbugs.gnu.org
Subject: bug#41802: 28.0.50; eww triggers 100% CPU consumption when opening page with animated gif
Date: Thu, 11 Jun 2020 22:54:57 +0200 (CEST)	[thread overview]
Message-ID: <20200611205454.GA55219@breton.holly.idiocy.org> (raw)
In-Reply-To: <87ftb11zpr.fsf@gmail.com>

On Thu, Jun 11, 2020 at 03:47:28PM +0200, Jhair Tocancipa Triana wrote:
> I can reproduce the issue with the following steps:
> 
> 1) emacs -Q
> 2) M-x eww RET
> 3) https://github.com/drewbarbs/erc-status-sidebar RET
> 
> After that CPU consumption rises to 100% until I close the eww buffer

Almost certainly this is down to how we handle images.

The gif file is decoded one frame at a time, which is quite
inefficient as to decode frame x, all frames from 0-x must be decoded.

This is normally only a problem for the first run through as we cache
the images, however, if the gif is long enough, by the time we reach
the the last frame the first frames may have already been flushed from
the cache resulting in them having to be decoded again.

There was some discussion of this a little while back and I don't
think we had any workable solution beyond a rewrite of the image code.
-- 
Alan Third





  reply	other threads:[~2020-06-11 20:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-11 13:47 bug#41802: 28.0.50; eww triggers 100% CPU consumption when opening page with animated gif Jhair Tocancipa Triana
2020-06-11 20:54 ` Alan Third [this message]
2020-07-17  1:21 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200611205454.GA55219@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=41802@debbugs.gnu.org \
    --cc=jhair.tocancipa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.