GNU bug report logs - #576
23.0.60; displaying SVG leaks memory

Previous Next

Package: emacs;

Reported by: Markus Triska <markus.triska <at> gmx.at>

Date: Sat, 19 Jul 2008 09:40:05 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 576 in the body.
You can then email your comments to 576 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#576; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Markus Triska <markus.triska <at> gmx.at>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Markus Triska <markus.triska <at> gmx.at>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; displaying SVG leaks memory
Date: Sat, 19 Jul 2008 11:34:12 +0200 (CEST)
The following form makes Emacs use increasingly more memory:

   (progn
     (find-file "~/emacs/etc/images/splash.svg")
     (while t
       (image-toggle-display)
       (redisplay)))

Memory use remains bounded if I instead use e.g. ".../splash8.xpm".

In GNU Emacs 23.0.60.2 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
 of 2008-07-17 on mt-computer.local
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#576; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> MIT.EDU>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 576 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> MIT.EDU>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 576 <at> debbugs.gnu.org
Subject: Re: 23.0.60; displaying SVG leaks memory
Date: Fri, 25 Jul 2008 01:25:42 -0400
> The following form makes Emacs use increasingly more memory:
>
>   (progn
>     (find-file "~/emacs/etc/images/splash.svg")
>     (while t
>       (image-toggle-display)
>       (redisplay)))

Does the following patch fix the memory leak for you?

*** trunk/src/image.c.~1.106.~	2008-07-22 00:51:50.000000000 -0400
--- trunk/src/image.c	2008-07-25 01:23:04.000000000 -0400
***************
*** 9025,9030 ****
--- 9025,9031 ----
       went ok.  */
    pixbuf = fn_rsvg_handle_get_pixbuf (rsvg_handle);
    eassert (pixbuf);
+   fn_rsvg_handle_free (rsvg_handle);

    /* Extract some meta data from the svg handle.  */
    width     = fn_gdk_pixbuf_get_width (pixbuf);




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#576; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Markus Triska <markus.triska <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #15 received at 576 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Markus Triska <markus.triska <at> gmx.at>
To: Chong Yidong <cyd <at> MIT.EDU>
Cc: 576 <at> debbugs.gnu.org
Subject: Re: 23.0.60; displaying SVG leaks memory
Date: Fri, 25 Jul 2008 10:21:01 +0200
Chong Yidong <cyd <at> MIT.EDU> writes:

> Does the following patch fix the memory leak for you?

Yes, thank you!





bug closed, send any further explanations to Markus Triska <markus.triska <at> gmx.at> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Fri, 25 Jul 2008 14:10:06 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Fri, 22 Aug 2008 14:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 305 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.