From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#6230: 23.2; Pixmaps kept in X11 after (svg?) images no longer are used Date: Fri, 21 May 2010 13:35:42 -0400 Message-ID: <87pr0pf98x.fsf@stupidchicken.com> References: <4BF557EE.4050400@0x63.nu> <87r5l6v6hg.fsf@stupidchicken.com> <4BF59689.7020003@0x63.nu> <87k4qyuxf1.fsf@stupidchicken.com> <4BF62A46.10200@0x63.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274464756 19052 80.91.229.12 (21 May 2010 17:59:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 May 2010 17:59:16 +0000 (UTC) Cc: 6230@debbugs.gnu.org To: Anders Waldenborg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 21 19:59:14 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OFWV6-0008Bc-N8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 May 2010 19:59:13 +0200 Original-Received: from localhost ([127.0.0.1]:42722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFWV6-00046A-6H for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 May 2010 13:59:12 -0400 Original-Received: from [140.186.70.92] (port=36635 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFWT6-0002av-TE for bug-gnu-emacs@gnu.org; Fri, 21 May 2010 13:57:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFWT5-0001Al-1E for bug-gnu-emacs@gnu.org; Fri, 21 May 2010 13:57:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51293) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFWT4-0001Ae-SF for bug-gnu-emacs@gnu.org; Fri, 21 May 2010 13:57:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OFW8g-0003Hr-03; Fri, 21 May 2010 13:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 May 2010 17:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6230-submit@debbugs.gnu.org id=B6230.127446335512629 (code B ref 6230); Fri, 21 May 2010 17:36:01 +0000 Original-Received: (at 6230) by debbugs.gnu.org; 21 May 2010 17:35:55 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFW8X-0003He-DB for submit@debbugs.gnu.org; Fri, 21 May 2010 13:35:55 -0400 Original-Received: from pantheon-po44.its.yale.edu ([130.132.50.78]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFW8U-0003HX-CR for 6230@debbugs.gnu.org; Fri, 21 May 2010 13:35:52 -0400 Original-Received: from furry (dhcp128036014213.central.yale.edu [128.36.14.213]) (authenticated bits=0) by pantheon-po44.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o4LHZijd012558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 21 May 2010 13:35:44 -0400 Original-Received: by furry (Postfix, from userid 1000) id 2659116D427; Fri, 21 May 2010 13:35:43 -0400 (EDT) In-Reply-To: <4BF62A46.10200@0x63.nu> (Anders Waldenborg's message of "Fri, 21 May 2010 08:37:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 21 May 2010 13:36:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37151 Archived-At: Anders Waldenborg writes: > Well, I'm toying with a little vector graphics API built on top of > emacs' svg support. And my first real example is a clock. By leaving > it running for a few minutes easily makes my X server go out of > memory. You can find the library (vrend.el) and the example > implementing a clock (vrend-example-clock.el) attached. > > Not sure this clock is a real use-case. But I have a few other ideas > in mind on how to use it, which all have substantially lower > requirements on refresh rate, but probably large enough to create lots > of pixmaps in 30 minutes (which seems to be default value for > image-cache-eviction-delay) I've committed a change to the trunk that dynamically reduces the eviction delay, once the number of cached images surpasses 40. This should reduce the problem of exploding pixmap consumption. If you need better behavior, you probably have to handle it manually. One way is to call `image-refresh' on any image spec that you want to discard. This is unintuitive, but `image-refresh' actually uncaches the target image. So, if the image is no longer displayed anywhere, it will be removed from memory. (We should probably rename `image-refresh' to `image-uncache' or something like that.)