<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Memory leak (reloading the same file increases memory consumption)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=84737">84737</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Memory leak (reloading the same file increases memory consumption)
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>glib frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>phillip.berndt@googlemail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=107455" name="attach_107455" title="Test program">attachment 107455</a> <a href="attachment.cgi?id=107455&action=edit" title="Test program">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>