pdftopdf consumes too much RAM

Bug #508731 reported by Davide Castellone on 2010-01-17
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Undecided
Unassigned
Karmic
Undecided
Unassigned

Bug Description

Binary package hint: cups

pdftopdf reaches 2GB (!) memory consumption when I try to print pdf documents with option 'multiple pages per sheet' enabled. It eventually succeeds, but swapping takes minutes, slowing any application down, and will fail on computers with less RAM.

Further notes:
- My printer is a HP DSC750
- Printing was started from evince
- Page ranges were also specified
- Ubuntu Karmic, generic kernel
- cups package up-to-date

Related branches

Till Kamppeter (till-kamppeter) wrote :

Reported upstream to the author of pdftopdf.

Changed in cups (Ubuntu):
status: New → Confirmed
status: Confirmed → Invalid
status: Invalid → Incomplete
Till Kamppeter (till-kamppeter) wrote :

Can you post sample files with which the problem occurs?

Davide Castellone (kastel88) wrote :
Till Kamppeter (till-kamppeter) wrote :

I got a fix from upstream now and applied it to the Ubuntu package of CUPS (in Lucid). It will get uploaded soon.

Changed in cups (Ubuntu):
status: Incomplete → Fix Committed
Till Kamppeter (till-kamppeter) wrote :

SRU for cups in Karmic, fixing bug 407344, bug 487902, and bug 508731 uploaded, waiting for approval. debdiff attached.

Changed in cups (Ubuntu Karmic):
status: New → Fix Committed
Till Kamppeter (till-kamppeter) wrote :

Uploaded new version of the SRU to -proposed which also covers bug 447961. debdiff attached.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.4.2-7

---------------
cups (1.4.2-7) unstable; urgency=low

  [ Till Kamppeter ]
  * debian/local/filters/pdf-filters/filter/texttopdf.c: Workaround for
    bug in ttf-freefont which messed up the output of the texttopdf filter.
    Thanks to Hin-Tak Leung and Steve White to find this solution (LP: #447961).
  * debian/local/filters/pdf-filters/pdftopdf/P2PDoc.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2PGfx.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2PGfx.h,
    debian/local/filters/pdf-filters/pdftopdf/P2PObject.h,
    debian/local/filters/pdf-filters/pdftopdf/P2POutput.cxx: Upstream
    fix from Koji Otani for the following: (1) Fixed some memory leak;
    (2) pdftopdf now delays fetching a referenced object until when it is
    written to the output. This fixes memory hogging with N-up output
    (N pages per sheet). The fix is mainly done by (2). This fixes
    LP: #508731.

  [ Martin Pitt ]
  * manpage-translations.dpatch: Update to German manpage translations, thanks
    Helge Kreutzmann! (Closes: #502908)
  * debian/cups.postinst: Do not symlink snakeoil SSL certificate if
    server.{crt,key} already exist as broken symlinks. Thanks Andreas
    Büsching! (Closes: #554579)
 -- Martin Pitt <email address hidden> Wed, 27 Jan 2010 09:19:32 +0100

Changed in cups (Ubuntu):
status: Fix Committed → Fix Released

Accepted cups into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.4.1-5ubuntu2.2

---------------
cups (1.4.1-5ubuntu2.2) karmic-proposed; urgency=low

  * debian/local/filters/pdf-filters/filter/texttopdf.c: Workaround for
    bug in ttf-freefont which messed up the output of the texttopdf filter.
    Thanks to Hin-Tak Leung and Steve White to find this solution (LP: #447961).
  * debian/local/filters/pdf-filters/pdftopdf/P2PDoc.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2PGfx.cxx,
    debian/local/filters/pdf-filters/pdftopdf/P2PGfx.h,
    debian/local/filters/pdf-filters/pdftopdf/P2PObject.h,
    debian/local/filters/pdf-filters/pdftopdf/P2POutput.cxx: Upstream
    fix from Koji Otani for the following: (1) Fixed some memory leak;
    (2) pdftopdf now delays fetching a referenced object until when it is
    written to the output. This fixes memory hogging with N-up output
    (N pages per sheet). The fix is mainly done by (2). This fixes
    LP: #508731.
  * debian/local/filters/pdf-filters/pdftopdf/P2PGfx.cxx: Fixed segfault of
    the pdftopdf filter when the input PDF file has ICC-profile-based color
    space inline images. Thanks to Koji Otani for the fix. Fixes LP: #407344.
  * debian/local/filters/cpdftocps: Fixed turning off duplex via command line
    (http://bugs.linux-foundation.org/show_bug.cgi?id=397, LP: #487902).
 -- Till Kamppeter <email address hidden> Tue, 26 Jan 2010 12:10:20 +0100

Changed in cups (Ubuntu Karmic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.