Bug 32064 - Image conversion eats up all memory, and then some
Summary: Image conversion eats up all memory, and then some
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 14:21 UTC by Alexander Johannesen
Modified: 2010-12-04 03:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Alexander Johannesen 2010-12-02 14:21:28 UTC
When converting PDFs to HTML (using -c for complex), some of my documents
swallow up *all* memory (over 3Gb for a 1 Mb PDF with not that much images in it), grinding the computer to pulp gasping for cache, and every other document it can reach before this is about 4-5 times slower than normal. Killing the process is the only escape.

Started with version 0.12.4 (Ubuntu apt-get package), and downloaded and compiled latest version 0.14.5 with the same results for both versions.
Comment 1 Alexander Johannesen 2010-12-02 14:36:56 UTC
PDF too big to be attached. Uploaded to my website, and file is at http://shelter.nu/bitbin/seeingstandards.pdf
Comment 2 Albert Astals Cid 2010-12-02 14:52:11 UTC
Please test with 0.15.3
Comment 3 Alexander Johannesen 2010-12-02 15:05:50 UTC
Just tried to compile 0.15.3, and although I get no errors, I get ;

"pdftohtml: error while loading shared libraries: libpoppler.so.11: cannot open shared object file: No such file or directory"

I'll tinker, but are there any new dependencies or versions of old libs that I've missed?
Comment 4 Albert Astals Cid 2010-12-02 15:14:15 UTC
You probably installed things to /usr/local/lib that is not in your ld library path. Either configure poppler to install itself to /usr/lib or use the LD_LIBRARY_PATH environment variable to point to /usr/local/lib
Comment 5 Alexander Johannesen 2010-12-02 15:22:20 UTC
Yeah, you're right. Well, I did the normal configure, make, make install cycle, but yes, exporting the new path worked. And I tried it with the document and it worked really well, memory staying swaying in the 58Mb to max 160Mb (which I can live with), and it produced a damn fine result, too. 

How stable does 0.15.3 seem?
Comment 6 Albert Astals Cid 2010-12-04 03:23:27 UTC
0.15.3 is a release candidate for 0.16


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.