[Poppler-bugs] [Bug 84737] New: Memory leak (reloading the same file increases memory consumption)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Oct 7 01:04:45 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=84737
Bug ID: 84737
Summary: Memory leak (reloading the same file increases memory
consumption)
Product: poppler
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: glib frontend
Assignee: poppler-bugs at lists.freedesktop.org
Reporter: phillip.berndt at googlemail.com
Created attachment 107455
--> https://bugs.freedesktop.org/attachment.cgi?id=107455&action=edit
Test program
The attached test program loads a PDF file, draws it, unloads the file, and
then starts over again. To compile it, use
cc test.c -o test $(pkg-config --libs --cflags gtk+-3.0 glib-2.0 cairo gio-2.0
poppler-glib)
and then start it with a PDF file as its first argument, preferably a large
one, like a paper or a book.
I'd expect _some_, _limited_ growth in memory consumption, due to things like
caching, but instead memory usage appears to grow linearly. With a 147kB PDF,
I'm at 1.5GB memory consumption after some minutes. I tested this with Poppler
0.24.5 and 0.26.5, but not with the latest git version, on a machine running
Ubuntu Trusty.
If I run the same program with a gdk-pixbuf and images instead of poppler,
memory consumption does not increase, so I am quite positive that this is
indeed a poppler bug and not one in gtk/glib. I did not make any attempts to
find the source within poppler though, so I can't tell if this really is a
problem in the glib frontend or if the problem lies in the backend.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20141007/8682cfa0/attachment.html>
More information about the Poppler-bugs
mailing list