unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to find memory leakage in x image code?
@ 2009-11-05 14:43 joakim
  2009-11-05 15:49 ` Stefan Monnier
  2009-11-05 17:33 ` Markus Triska
  0 siblings, 2 replies; 3+ messages in thread
From: joakim @ 2009-11-05 14:43 UTC (permalink / raw)
  To: Emacs development discussions

I'm using my Imagemagick patch I posted a while ago a lot to work with
scanned documents.  They are mostly 300dpi A4 BW djvu images.

After viewing something like 100 images or so, the entire X session
frequently crashes.

I cant figure out where the leakage is. Killing the image buffers doesnt
help. The image cache is supposed to be flushed frequently enough for X
not to crash right?

The basic allocation/deallocation is the same as for most other
image type supports in emacs. Does someone else experience the same
problem with viewing a large number of SVG images for instance?

-- 
Joakim Verona




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to find memory leakage in x image code?
  2009-11-05 14:43 How to find memory leakage in x image code? joakim
@ 2009-11-05 15:49 ` Stefan Monnier
  2009-11-05 17:33 ` Markus Triska
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2009-11-05 15:49 UTC (permalink / raw)
  To: joakim; +Cc: Emacs development discussions

> The basic allocation/deallocation is the same as for most other
> image type supports in emacs. Does someone else experience the same
> problem with viewing a large number of SVG images for instance?

Don't know about SVG, but at least I often view many PNG images (via
docview-mode displaying a PDF document) and haven't noticed any
related problem.  This is no guarantee, of course.


        Stefan





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to find memory leakage in x image code?
  2009-11-05 14:43 How to find memory leakage in x image code? joakim
  2009-11-05 15:49 ` Stefan Monnier
@ 2009-11-05 17:33 ` Markus Triska
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Triska @ 2009-11-05 17:33 UTC (permalink / raw)
  To: emacs-devel

joakim@verona.se writes:

> The basic allocation/deallocation is the same as for most other
> image type supports in emacs. Does someone else experience the same
> problem with viewing a large number of SVG images for instance?

There once was a leak (that's now fixed) in SVG viewing, please see:

   http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=576

for a test case that I hope you find useful for your case as well.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-05 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-05 14:43 How to find memory leakage in x image code? joakim
2009-11-05 15:49 ` Stefan Monnier
2009-11-05 17:33 ` Markus Triska

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).