From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#38187: 27.0.50; No mouse-wheel scaling on images Date: Fri, 22 Nov 2019 00:57:24 +0200 Organization: LINKOV.NET Message-ID: <87a78og7mz.fsf@mail.linkov.net> References: <87tv79ksuz.fsf@mail.linkov.net> <83zhgy62u8.fsf@gnu.org> <87y2we7r90.fsf@gnus.org> <83lfse5w04.fsf@gnu.org> <87a78u7ags.fsf@gnus.org> <878soemc79.fsf@marxist.se> <87mucut8ch.fsf@mail.linkov.net> <87ftilsg6q.fsf@gnus.org> <87r224sw6s.fsf@mail.linkov.net> <83ftik35kw.fsf@gnu.org> <87pnhmm9ui.fsf@mail.linkov.net> <87blt4x6nt.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="61972"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: stefan@marxist.se, 38187@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 22 00:06:34 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iXvWw-000Fsy-V9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Nov 2019 00:06:31 +0100 Original-Received: from localhost ([::1]:46464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXvWv-0005HB-R5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Nov 2019 18:06:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60840) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXvVk-00047q-AG for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 18:05:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXvVi-0003qm-59 for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 18:05:16 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44693) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXvVd-0003kH-As for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 18:05:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iXvVd-0005pb-4g for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 18:05:09 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Nov 2019 23:05:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38187 X-GNU-PR-Package: emacs Original-Received: via spool by 38187-submit@debbugs.gnu.org id=B38187.157437750522393 (code B ref 38187); Thu, 21 Nov 2019 23:05:09 +0000 Original-Received: (at 38187) by debbugs.gnu.org; 21 Nov 2019 23:05:05 +0000 Original-Received: from localhost ([127.0.0.1]:53510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXvVX-0005oy-CF for submit@debbugs.gnu.org; Thu, 21 Nov 2019 18:05:05 -0500 Original-Received: from black.elm.relay.mailchannels.net ([23.83.212.19]:61548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXvV1-0005nJ-2B for 38187@debbugs.gnu.org; Thu, 21 Nov 2019 18:04:31 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2B574341E58; Thu, 21 Nov 2019 23:04:30 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a7.g.dreamhost.com (100-96-15-77.trex.outbound.svc.cluster.local [100.96.15.77]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id B1E31341DBF; Thu, 21 Nov 2019 23:04:29 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a7.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Thu, 21 Nov 2019 23:04:30 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Robust-Eight: 5faf002f5f98a177_1574377469968_457833585 X-MC-Loop-Signature: 1574377469968:703054992 X-MC-Ingress-Time: 1574377469968 Original-Received: from pdx1-sub0-mail-a7.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a7.g.dreamhost.com (Postfix) with ESMTP id D494382ACF; Thu, 21 Nov 2019 15:04:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=OFMZvvQAijLNJ0K6HzdKDWB53+8=; b= WaZXClhGtMLHNPkwgxxK0juCWYTqDIodeJ/ziM2oNTCxHr3monsrdEqluPEsh9wQ 14t+NkKnFc0l1g4GNgJAikuQXbH9LYz2U2h+49IDRhcXlRT1DBhNBWWZY0FhAJg9 gh7xWt1M83sTlnEtm8VqXepu8a2uPwCRWytaHLgX9Os= Original-Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a7.g.dreamhost.com (Postfix) with ESMTPSA id 755CE82B08; Thu, 21 Nov 2019 15:04:22 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a7 In-Reply-To: <87blt4x6nt.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 21 Nov 2019 22:26:30 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172179 Archived-At: >> BTW, while testing it for image scaling on a quite small image file, >> Emacs consumed several GB of all available memory and almost all swap, >> before I noticed and evaluated M-: (clear-image-cache) that freed memory. >> >> Memory leak? > > No, it's just that Emacs' image cache is very primitive. You can easily > get Emacs to go out-of-memory by just doing a > > (dolist (file (directory-files dir-with-lots-of-images)) > (erase-buffer) > (insert-image (create-image file))) > > You get the same effect by altering the scaling factor, I think? Each > scaled image is cached? So by rolling the wheel ten clicks you get ten > cached copies of the image. > > A better eviction algorithm would be nice. Currently the default value of image-cache-eviction-delay is 300 seconds. But the documentation also says: "If the cache contains a large number of images, the actual eviction time may be shorter." And code has this comment: /* If the number of cached images has grown unusually large, decrease the cache eviction delay (Bug#6230). */ Does this mean the number of cached images was not large enough?