hp laserjet 1015 foomatic-rip chokes on pdf

Bug #180351 reported by Bram Kuijper
6
Affects Status Importance Assigned to Milestone
foomatic-filters (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: foomatic-filters

1. Update to Gutsy from Feisty
2. Install hp laserjet 1015 through USB
3. Download the following PDF file: http://www.dartmouth.edu/~calsbeeklab/REPRINTS/Annual_rev.pdf (this is no spam, just a scientific publication)
4. Try to get a print preview from the PDF file. Only the first page is printed, but as soon as the figures are starting, the print preview does not display any text and only partial figures.
5. Then, try to print the pdf on the laserjet
6. Printing continues until page 4, then stops
7. Printing dialog displays the following error: /usr/lib/cups/filter/foomatic-rip failed
8. The error log /var/log/cups/error_log gives the following:

E [04/Jan/2008:14:25:24 +0100] PID 25132 (/usr/lib/cups/filter/foomatic-rip) stopped with status 3!
E [04/Jan/2008:14:25:24 +0100] [Job 292] Job stopped due to filter errors.

Manually running foomatic-rip (that is:
foomatic-rip -v -P hp_LaserJet_1015 ~/PDF\ Archive/Sinervo\ Calsbeek\ 2006\ Ann\ Rev\ Ecol\ Syst.pdf
displays no errors, but a whole lot of binary output. So I guess that the file is passing through more or less correctly through the filter. However foomatic-rip runs without stopping (I ran it for more than 10 minutes...), is this normal behaviour?

The output from PrintingBugInfoScript and the output from manually running foomatic-rip is attached.

Revision history for this message
Bram Kuijper (terabyte) wrote :

output foomatic-rip when manually called

Revision history for this message
Bram Kuijper (terabyte) wrote :
Download full text (3.4 KiB)

and the output of PrintingBugInfoScript:

ProblemType: printingbuginfo v2.0: printingbug+localusb (https://wiki.ubuntu.com/PrintingBugInfoScript)
CupsConfiguredDevices:
 device for hp_LaserJet_1015: usb://HP/LaserJet%201015
 device for postscript-color: cups-pdf:/
CupsConfiguredPPDs:
 hp_LaserJet_1015: HP LaserJet 1015 Foomatic/hpijs (recommended)
 postscript-color: Generic postscript color printer rev4
Date: Fri Jan 4 14:21:46 2008
DesktopEnvironment: GNOME
DistroRelease: Ubuntu 7.10
EtcPapersize: letter
InstalledPrintingPackages:
 ii cupsys 1.3.2-1ubuntu7.1 Common UNIX Printing System(tm) - server
 ii cupsys-driver-gutenprint 5.0.1-0ubuntu8 printer drivers for CUPS
 ii foo2zjs 20070625-0ubuntu1.1 Support for printing to ZjStream-based printers
 ii foomatic-db 20070919-0ubuntu3 OpenPrinting printer support - database
 ii foomatic-db-engine 3.0.2-20070719-0ubuntu4 OpenPrinting printer support - programs
 ii foomatic-db-hpijs 20070813-0ubuntu1 OpenPrinting printer support - database for HPIJS driver
 ii foomatic-filters 3.0.2-20070719-0ubuntu1 OpenPrinting printer support - filters
 ii ghostscript 8.61.dfsg.1~svn8187-0ubu The GPL Ghostscript PostScript/PDF interpreter
 ii gs-common 8.61.dfsg.1~svn8187-0ubu Transitional package
 ii gs-esp 8.61.dfsg.1~svn8187-0ubu Transitional package
 ii gs-esp-x 8.61.dfsg.1~svn8187-0ubu Transitional package
 ii hpijs 2.7.7+2.7.7.dfsg.1-0ubun HP Linux Printing and Imaging - gs IJS driver (hpijs)
 ii hplip 2.7.7.dfsg.1-0ubuntu5 HP Linux Printing and Imaging System (HPLIP)
 ii kdeprint 4:3.5.8-0ubuntu2 print system for KDE
 ii libgnomeprint2.2-0 2.18.2-0ubuntu1 The GNOME 2.2 print architecture - runtime files
 ii linuxprinting.org-ppds 20070919-0ubuntu3 OpenPrinting printer support - PostScript PPD files
 ii min12xxw 0.0.9-1build1 Printer driver for KonicaMinolta PagePro 1[234]xxW
 ii openprinting-ppds 20070919-0ubuntu3 OpenPrinting printer support - PostScript PPD files
 ii pnm2ppa 1.12-16 PPM to PPA converter
 ii pxljr 1.1-0ubuntu1 Driver for HP's Color LaserJet 35xx/36xx color laser printers
 ii splix 1.0.1.1-0ubuntu2 Driver for Samsung's SPL2 (bw) and SPLc (color) laser printers
 ii system-config-printer 0.7.75+svn1653-0ubuntu2 Printer configuration GUI
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8, LC_PAPER=en_US.UTF-8
Uname: Linux theobio36 2.6.22-14-generic #1 SMP Tue Dec 18 08:02:57 UTC 2007 i686 GNU/Linux
UsbPrinterDevices: lrwxrwxrwx 1 root root 7 Jan 4 09:50 /dev/usblp0 -> usb/lp0
UsbPrinterIEEE1284Id:
 /dev/usblp0: GET_DEVICE_ID string:
 MFG:Hewlett-Packard;CMD:PJL,MLC,BIDI-ECP,PCL,DW-PCL;MDL:hp LaserJet 1015;CLS:PRINTER;DES:Hewlett-Packard LaserJet 1015;MEM:13MB;COMMENT:RES=600x2;
UsbPrinterKernelModules:
 usblp 15104 0
 usbcore 138632 4 usblp,ehci_hcd,u...

Read more...

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) wrote :
Download full text (19.7 KiB)

I have confirmed this happens on a 1022 as well. (no 1015 available.) Prints 2 pages of 30 and then quits. The printing does exactly the same thing on Photosmart 3300 series printer, so I don't think this is a printer specific problem.

07/Jan/2008:21:43:08 +0000] cupsdAuthorize: No authentication data provided.
D [07/Jan/2008:21:43:08 +0000] CUPS-Get-Printers
D [07/Jan/2008:21:43:08 +0000] cupsdProcessIPPRequest: 12 status_code=0 (successful-ok)
D [07/Jan/2008:21:43:08 +0000] cupsdCloseClient: 12
D [07/Jan/2008:21:43:08 +0000] cupsdAcceptClient: 12 from localhost:631 (IPv4)
D [07/Jan/2008:21:43:08 +0000] cupsdReadClient: 12 GET /printers/HP_LaserJet_1022.ppd HTTP/1.1
D [07/Jan/2008:21:43:08 +0000] cupsdAuthorize: No authentication data provided.
D [07/Jan/2008:21:43:08 +0000] cupsdCloseClient: 12
D [07/Jan/2008:21:43:09 +0000] cupsdAcceptClient: 12 from localhost (Domain)
D [07/Jan/2008:21:43:09 +0000] cupsdReadClient: 12 POST /printers/HP_LaserJet_1022 HTTP/1.1
D [07/Jan/2008:21:43:09 +0000] cupsdAuthorize: No authentication data provided.
D [07/Jan/2008:21:43:09 +0000] Print-Job ipp://localhost:631/printers/HP_LaserJet_1022
D [07/Jan/2008:21:43:09 +0000] print_job: auto-typing file...
D [07/Jan/2008:21:43:09 +0000] add_job: requesting-user-name="aalbright"
I [07/Jan/2008:21:43:09 +0000] [Job 165] Adding start banner page "none".
D [07/Jan/2008:21:43:09 +0000] Discarding unused job-created event...
I [07/Jan/2008:21:43:09 +0000] [Job 165] Adding job file of type application/postscript.
I [07/Jan/2008:21:43:09 +0000] [Job 165] Adding end banner page "none".
I [07/Jan/2008:21:43:09 +0000] [Job 165] Queued on "HP_LaserJet_1022" by "aalbright".
D [07/Jan/2008:21:43:09 +0000] [Job 165] hold_until = 0
D [07/Jan/2008:21:43:09 +0000] Discarding unused printer-state-changed event...
D [07/Jan/2008:21:43:09 +0000] [Job 165] job-sheets=none,none
D [07/Jan/2008:21:43:09 +0000] [Job 165] banner_page = 0
D [07/Jan/2008:21:43:09 +0000] [Job 165] argv[0]="HP_LaserJet_1022"
D [07/Jan/2008:21:43:09 +0000] [Job 165] argv[1]="165"
D [07/Jan/2008:21:43:09 +0000] [Job 165] argv[2]="aalbright"
D [07/Jan/2008:21:43:09 +0000] [Job 165] argv[3]="evince-print"
D [07/Jan/2008:21:43:09 +0000] [Job 165] argv[4]="1"
D [07/Jan/2008:21:43:09 +0000] [Job 165] argv[5]="PrintoutMode=Normal PageSize=Letter Quality=FromPrintoutMode MediaType=Plain InputSlot=Default number-up=1 job-uuid=urn:uuid:c5417490-a994-3605-4a29-5132b515b07a"
D [07/Jan/2008:21:43:09 +0000] [Job 165] argv[6]="/var/spool/cups/d00165-001"
D [07/Jan/2008:21:43:09 +0000] [Job 165] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [07/Jan/2008:21:43:09 +0000] [Job 165] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [07/Jan/2008:21:43:09 +0000] [Job 165] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [07/Jan/2008:21:43:09 +0000] [Job 165] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [07/Jan/2008:21:43:09 +0000] [Job 165] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [07/Jan/2008:21:43:09 +0000] [Job 165] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [07/Jan/2008:21:43:09 +0000] [Job 165] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [07/Jan/2008:21:43:09 +0000] [Job 165] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [07/Jan/2008:21:43:0...

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) wrote :

Adding my final comments to make sure they aren't missed.

I then converted the pdf to pcl using:

gs -sDEVICE=ijs -sIjsServer=hpijs -dIjsUseOutputFD -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="Deskjet 6500" -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2 -r600 -dNOPAUSE -dSAFER -sOutputFile="`basename $1 '.ps'`.pcl" $1 -c quit

and using

lpr -o raw -PPhotosmart_3300 Annual_rev.pdf.pcl

I was able to print the document, so perhaps something is wrong with the foomatic to pdf? I'm guessing. I don't believe this is a problem with hplip--although I could be wrong. But hopefully this helps someone!

I've also attached the pcl version of the pdf file. (above)

Aaron

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

For me it looks like that the pdftops filter has perhaps problems. The manual call of foomatic-rip lets Ghostscript render the PDF directly and so the pdftops filter does not get used.

Revision history for this message
Martin Pitt (pitti) wrote :

Till, any further idea how to debug this? Can the full pipeline, as used by cups, be run directly on a command line?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

For running full pipelines on the command line CUPS (at least 1.3.x) has the "cupsfilter" command. I hope this helps.

In Intrepid the bug should not occur, as the incoming PDF file is not converted to PostScript but carried through to Ghostscript as a PDF file.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in foomatic-filters:
status: New → Incomplete
Revision history for this message
Bram Kuijper (terabyte) wrote :

I cannot reproduce this bug anymore in 8.10; seems to work fine now.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

As it should not occur in Intrepid I am closing this bug as fixed.

Changed in foomatic-filters:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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