Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466316 - app-text/ghostscript-gpl 9.06 cause filter error on some PDFs (net-print/cups-1.6.2-r3)
Summary: app-text/ghostscript-gpl 9.06 cause filter error on some PDFs (net-print/cups...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-18 05:03 UTC by dyle
Modified: 2014-02-12 19:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dyle 2013-04-18 05:03:33 UTC
I have 

# eix -e ghostscript-gpl
[I] app-text/ghostscript-gpl
     Available versions:  9.04-r4 9.05-r1 (~)9.05-r2 (~)9.06 {X bindist cups dbus djvu gtk idn jpeg2k static-libs LINGUAS="de ja ko zh_CN zh_TW"}
     Installed versions:  9.06(02:51:40 PM 04/17/2013)(X cups dbus gtk -bindist -djvu -idn -jpeg2k -static-libs LINGUAS="de -ja -ko -zh_CN -zh_TW")
     Homepage:            http://ghostscript.com/
     Description:         Ghostscript is an interpreter for the PostScript language and for PDF

# eix -e cups
[I] net-print/cups
     Available versions:  **1.5.0^t 1.5.2-r4^t (~)1.5.3^t (~)1.6.2-r3^t [M]**9999^t {X acl avahi dbus debug +filters gnutls java +jpeg kerberos ldap pam perl php +png python samba selinux slp +ssl static-libs systemd +threads +tiff usb xinetd zeroconf ELIBC="FreeBSD" LINGUAS="+ca da de (+)es eu fi (+)fr hu id it (+)ja ko nl no pl pt pt_BR (+)ru sv zh zh_TW"}
     Installed versions:  1.6.2-r3^t(06:44:49 AM 04/18/2013)(X acl dbus filters pam python ssl threads usb -debug -gnutls -java -kerberos -selinux -static-libs -xinetd -zeroconf ELIBC="-FreeBSD" LINGUAS="-ca -es -fr -ja -ru")
     Homepage:            http://www.cups.org/
     Description:         The Common Unix Printing System

installed.

Now some PDFs refused to print, instead I get a "Filter error" and an empty sheet of paper.

However, some other PDFs just print fine ... I'm wondering if this is an embedded font problem of some sort.

This is the debug output of cups:

D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: +connecting-to-device
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Looking up "10.0.0.10"...
D [18/Apr/2013:06:49:06 +0200] [Job 1785] pstopdf 6 args: 1785 dyle Rechnung_906665190413.pdf 1 noCollate finishings=3 media=A4 number-up=1 outputorder=normal portrait sides=one-sided job-uuid=urn:uuid:c703f4df-fc1f-33c7-70c4-5b53bed90f21 job-originating-host-name=localhost time-at-creation=1366260537 time-at-processing=1366260537 Duplex=None PageSize=A4 /var/spool/cups/d01785-001
D [18/Apr/2013:06:49:06 +0200] [Job 1785] PPD: /etc/cups/ppd/Officejet_6500_E710n-z.ppd
D [18/Apr/2013:06:49:06 +0200] [Job 1785] hrDeviceDesc="Officejet 6500 E710n-z"
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Resolution: 
D [18/Apr/2013:06:49:06 +0200] [Job 1785] prtMarkerColorantValue.1.1 = "black ink"
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Page size: A4
D [18/Apr/2013:06:49:06 +0200] [Job 1785] ATTR: marker-colors=none,none,none,none
D [18/Apr/2013:06:49:06 +0200] [Job 1785] ATTR: marker-names='"black ink"','"yellow ink"','"cyan ink"','"magenta ink"'
D [18/Apr/2013:06:49:06 +0200] [Job 1785] ATTR: marker-types=ink,ink,ink,ink
D [18/Apr/2013:06:49:06 +0200] [Job 1785] ATTR: marker-levels=100,46,25,44
D [18/Apr/2013:06:49:06 +0200] [Job 1785] new_supply_state=0, change_state=ffff
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -developer-low-report
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -developer-empty-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -marker-supply-low-report
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -marker-supply-empty-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -opc-near-eol-report
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -opc-life-over-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -toner-low-report
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -toner-empty-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -waste-receptacle-almost-full-report
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -waste-receptacle-full-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -cleaner-life-almost-over-report
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -cleaner-life-over-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] new_state=0, change_state=ffff
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -media-empty-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -door-open-report
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -media-jam-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -input-tray-missing-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -output-tray-missing-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -marker-supply-missing-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -output-area-almost-full-report
D [18/Apr/2013:06:49:06 +0200] [Job 1785] STATE: -output-area-full-warning
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Width: 595.440002441406, height: 841.679992675781, absolute margins: 9, 9, 586.440002441406, 832.679992675781
D [18/Apr/2013:06:49:06 +0200] [Job 1785] backendWaitLoop(snmp_fd=5, addr=0x7f331bf820c8, side_cb=0x7f331bb177a0)
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Relative margins: 9, 9, 9.000000000000, 9.000000000000
D [18/Apr/2013:06:49:06 +0200] [Job 1785] PPD options: -dDEVICEWIDTHPOINTS=595.440002441406 -dDEVICEHEIGHTPOINTS=841.679992675781
D [18/Apr/2013:06:49:06 +0200] [Job 1785] PostScript to be injected: 
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Running cat | /usr/bin/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoRotatePages=/None -dAutoFilterColorImages=false                -dNOPLATFONTS -dPARANOIDSAFER -dNOINTERPOLATE -sstdout=%stderr -dColorImageFilter=/FlateEncode                 -dPDFSETTINGS=/printer                 -dColorConversionStrategy=/LeaveColorUnchanged -dDoNumCopies -dDEVICEWIDTHPOINTS=595.440002441406 -dDEVICEHEIGHTPOINTS=841.679992675781 -sOutputFile=-  -c .setpdfwrite -f -
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Error: /syntaxerror in (bin obj seq, type=128, elements=1, size=22545, non-zero unused field)
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Operand stack:
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Execution stack:
D [18/Apr/2013:06:49:06 +0200] [Job 1785] %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1882   1   3   %oparray_pop   1881   1   3   %oparray_pop   1865   1   3   %oparray_pop   1755   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Dictionary stack:
D [18/Apr/2013:06:49:06 +0200] [Job 1785] --dict:1177/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--   --dict:67/75(L)--
D [18/Apr/2013:06:49:06 +0200] [Job 1785] Current allocation mode is local
D [18/Apr/2013:06:49:06 +0200] [Job 1785] GPL Ghostscript 9.06: Unrecoverable error, exit code 1
D [18/Apr/2013:06:49:06 +0200] [Job 1785] PID 7864 (/usr/libexec/cups/filter/pstopdf) stopped with status 1.


I tried switching to some other cups & cups-filters to no avail. Should I check on my fonts or other ghostscript-gpl installmenst?


Reproducible: Sometimes

Actual Results:  
An empty sheet for troublesome PDfs

Expected Results:  
Should print PDF as any other PDF
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2013-06-28 00:22:08 UTC
This looks from the log more like a ghostscript bug.
Comment 2 Timo Gurr (RETIRED) gentoo-dev 2014-02-12 12:11:22 UTC
Could you please re-test with the recent (and soon to be stabilized) versions of the involved packages? To date that would be:

cups-1.7.1
cups-filters-1.0.43-r1
ghostscript-gpl-9.10-r2
poppler-0.24.3

If the problem still occurs, please attach a failing PDF to allow us to reproduce the issue.
Comment 3 dyle 2014-02-12 19:27:24 UTC
#!/bin/hi --again *

got myself:

$ for p in cups cups-filters ghostscript-gpl poppler; do eix -e ${p}; done
[I] net-print/cups
     Available versions:  1.6.4^t (~)1.7.1^t [M]**9999^t {X acl dbus debug +filters gnutls java kerberos lprng-compat pam python selinux +ssl static-libs +threads usb xinetd zeroconf ELIBC="FreeBSD" LINGUAS="+ca +es +fr +it +ja +ru" PYTHON_SINGLE_TARGET="python2_6 python2_7" PYTHON_TARGETS="python2_6 python2_7"}
     Installed versions:  1.7.1^t(08:05:22 AM 01/13/2014)(X acl dbus pam python ssl threads usb -debug -gnutls -java -kerberos -lprng-compat -selinux -static-libs -xinetd -zeroconf ELIBC="-FreeBSD" LINGUAS="-ca -es -fr -it -ja -ru" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6")
     Homepage:            http://www.cups.org/
     Description:         The Common Unix Printing System

[I] net-print/cups-filters
     Available versions:  1.0.36-r1 (~)1.0.43-r1 **9999 {dbus +foomatic jpeg perl png static-libs tiff zeroconf}
     Installed versions:  1.0.43-r1(07:19:56 AM 01/24/2014)(dbus foomatic jpeg perl png tiff -static-libs -zeroconf)
     Homepage:            http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdfasstandardprintjobformat
     Description:         Cups PDF filters

[I] app-text/ghostscript-gpl
     Available versions:  9.04-r4 9.05-r1 (~)9.05-r2 (~)9.06 (~)9.07 (~)9.10 (~)9.10-r2 {X bindist cups dbus djvu gtk idn jpeg2k static-libs LINGUAS="de ja ko zh_CN zh_TW"}
     Installed versions:  9.10-r2(08:56:24 AM 02/12/2014)(X cups dbus gtk -bindist -djvu -idn -static-libs LINGUAS="de -ja -ko -zh_CN -zh_TW")
     Homepage:            http://ghostscript.com/
     Description:         Ghostscript is an interpreter for the PostScript language and for PDF

[I] app-text/poppler
     Available versions:  0.24.5(0/44)^t {cairo cjk curl cxx debug doc +introspection +jpeg jpeg2k +lcms png qt4 tiff +utils}
     Installed versions:  0.24.5^t(07:18:50 AM 01/24/2014)(cairo curl cxx introspection jpeg lcms png qt4 tiff utils -cjk -debug -doc -jpeg2k)
     Homepage:            http://poppler.freedesktop.org/
     Description:         PDF rendering library based on the xpdf-3.0 code base


in the meantime, and printed three different PDFs without complain.

Hm, either I'm now unable to reproduce or the bug has been fixed.

Seems gone.

Thank you.

...
Comment 4 Timo Gurr (RETIRED) gentoo-dev 2014-02-12 19:38:25 UTC
Thanks for reporting back! Since it works for you now I'm going to close the bug, feel free to re-open it though if you hit it again.