From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs 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) Message-ID: <20200611205454.GA55219@breton.holly.idiocy.org> References: <87ftb11zpr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="92482"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41802@debbugs.gnu.org To: Jhair Tocancipa Triana Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 11 23:19:41 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjUbt-000Ntj-Mf for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 23:19:41 +0200 Original-Received: from localhost ([::1]:59920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjUbs-00034F-M1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 17:19:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjUF0-0007a9-9O for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2020 16:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjUEz-0007jA-Px for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2020 16:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjUEz-0007qD-O6 for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2020 16:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jun 2020 20:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41802 X-GNU-PR-Package: emacs Original-Received: via spool by 41802-submit@debbugs.gnu.org id=B41802.159190890830075 (code B ref 41802); Thu, 11 Jun 2020 20:56:01 +0000 Original-Received: (at 41802) by debbugs.gnu.org; 11 Jun 2020 20:55:08 +0000 Original-Received: from localhost ([127.0.0.1]:38215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjUE8-0007p1-II for submit@debbugs.gnu.org; Thu, 11 Jun 2020 16:55:08 -0400 Original-Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:42100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjUE6-0007oN-M7 for 41802@debbugs.gnu.org; Thu, 11 Jun 2020 16:55:07 -0400 Original-Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 12F6276D; Thu, 11 Jun 2020 22:55:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1591908900; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To; l=920; bh=UJS1ib+Mr6WvZ9S/FaE+4QRuiVVfjm+dYp4cnM4/9wg=; b=JSJ+x0jEA8IYf1RWBD5FsNbkxHmS1nL963jFCxEdZaYJZB7gzR3TQL/daWMY1H0C KxmX/kbcOhQIzT+6OdCAKS1RgAe58cre7DgA25cFQqxlWbr4Mgt6pCu0+ucrJ82LLXi gbdAxXjgFTrU372f/7rXZbX59iFq6mDQKAp5/DYD8GknIgD6fxruafzMKyBc13DvSiX QeZCUpUeQ4VGYI2k0v5RJLqbpFIRdH+a2C+2ug3v/EYXIqVMtINK9jalH9SjXM9r1G8 ycJdgtszgNn3NMRDJYmbrHSQCi/oMit3GnsEkYnwv4MO01MSc5m+SKNOfXrwC2kNyHt ktTb/iJDtg== Original-Received: by smtp.mailfence.com with ESMTPA ; Thu, 11 Jun 2020 22:54:55 +0200 (CEST) Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id D7BBB202365996; Thu, 11 Jun 2020 21:54:54 +0100 (BST) Mail-Followup-To: Alan Third , Jhair Tocancipa Triana , 41802@debbugs.gnu.org Content-Disposition: inline In-Reply-To: <87ftb11zpr.fsf@gmail.com> X-ContactOffice-Account: com:241649512 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181873 Archived-At: 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