Bug 16878 (evince_leak) - When opening certain PDFs in evince, 500 + megabytes of memory are used
Summary: When opening certain PDFs in evince, 500 + megabytes of memory are used
Status: RESOLVED WORKSFORME
Alias: evince_leak
Product: poppler
Classification: Unclassified
Component: cairo backend (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: poppler-bugs
QA Contact:
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-28 13:55 UTC by David
Modified: 2010-09-12 02:50 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Image-heavy Microsoft pdf (testcase) (848.65 KB, application/pdf)
2008-08-17 10:58 UTC, Vinicius
Details
Another test case (123.94 KB, application/pdf)
2008-08-20 09:36 UTC, David
Details
Two minimal similar PDF files, one triggers the bug and the other does not (4.00 KB, application/zip)
2010-03-20 04:02 UTC, Ric Flomag
Details

Description David 2008-07-28 13:55:01 UTC
Steps to reproduce:
1. Download this PDF http://www.csb.gc.ca/s40rates/2007_11_CS47.pdf
2. Open it in evince ( or using evince-thumbnail )
3. watch your memory usage carefully.

According to the responder on Gnome, the bug is in poppler. There is a file that shows memory usage of the application during the problematic time.

http://bugzilla.gnome.org/show_bug.cgi?id=545201
Comment 1 David 2008-07-28 13:55:58 UTC
I am not sure how you guys decide priority, so I put it at high. It prevents me from using the software, so according to me it should be blocker.
Comment 2 Albert Astals Cid 2008-07-28 14:35:12 UTC
Does not happen with the splash backend, reassigning to to cairo backend
Comment 3 Carlos Garcia Campos 2008-07-29 00:42:15 UTC
what poppler version are you using? 
Comment 4 Martin Wolf 2008-07-29 02:40:25 UTC
Version 0.6.4 and
Version 0.8.4 and
Latest from git, about 15 hours ago.
Comment 5 Vinicius 2008-08-17 10:58:42 UTC
Created attachment 18330 [details]
Image-heavy Microsoft pdf (testcase)

I think the attached pdf file is a good testcase for this bug: in my box, evince takes up to ~840MB of ram memory to open it.
Comment 6 David 2008-08-20 09:36:03 UTC
Created attachment 18413 [details]
Another test case

I recommend testing the bug with 512 mb of memory or less.
Comment 7 Atanas Atanasov 2010-01-03 04:49:40 UTC
I can confirm the bug. I placed a similar report in https://bugs.launchpad.net/bugs/491531.
Comment 8 Ric Flomag 2010-03-20 04:02:40 UTC
Created attachment 34251 [details]
Two minimal similar PDF files, one triggers the bug and the other does not

Here is a test case (see attached file isolated-test-case.zip) that properly isolates the bug. The following 2 files were made using Inkscape (ubuntu 9.10). The only difference between them is that the image that they contain was:
 * pasted from another inkscape document (file bug.pdf, 4kb)
 * dropped from nautilus (nobug.pdf, 2.4kb).

Note the different file sizes.
I hope that these files will allow to easily track down what triggers this bug.

This bug might cause a loss of data, because a low resource 5-years-old machine (512Mb RAM) becomes totally unresponsive and the only way to stop evince or evince-thumbnailer is to hard reset the computer.

Regards,
Ric.
Comment 9 Ric Flomag 2010-09-12 02:49:36 UTC
Fixed here with poppler 0.14.2 (ubuntu 10.10 beta)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.