HPLib: Designjet T125 doesn't print: "Unable to add document to print job"

Asked by Bert Bril

I have two printers: an HP Envy (works fine) and a new Designjet T125 which fails to deliver anything.

When I try to print from any program, everything seems to work fine - I can even hear the device preparing to print on the roll. But then the status turns into "Unable to add document to print job" and nothing more happens.

I've made a (small) video of the situation, grabbed from the screen, in .ogv format:

https://drive.google.com/file/d/1lkULoLOXMp_1-om8ZruX8wkXzOsJ10Bt/view?usp=sharing

Any ideas welcome!

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bert Bril (bert-bril) said :
#1

hp-check -t
Saving output in log file: /root/hp-check.log

HP Linux Imaging and Printing System (ver. 3.20.3)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

warning: ubuntu-20.04 version is not supported. Using ubuntu-19.10 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 5.4.0-37-generic #41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 GNU/Linux
 Host: bert-desktop
 Proc: 5.4.0-37-generic #41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 GNU/Linux
 Distribution: ubuntu 20.04
 Bitness: 64 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.20.3
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for ubuntu distro 20.04 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.20.3

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.3
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
warning: Could not access file: No such file or directory
 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

-------------------------
| External Dependencies |
-------------------------

 error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.50 OK -
 error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.29 OK -
 dbus DBus - Message bus system REQUIRED - 1.12.16 OK -
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 network network -wget OPTIONAL - 1.20.3 OK -
 error: avahi-utils avahi-utils OPTIONAL - - MISSING 'avahi-utils needs to be installed'

------------------------
| General Dependencies |
------------------------

 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 error: cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - MISSING 'cups-devel needs to be installed'
 error: cups-image CUPS image - CUPS image development files REQUIRED - - MISSING 'cups-image needs to be installed'
 libpthread libpthread - POSIX threads library REQUIRED - b'2.31' OK -
 error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed'
 sane SANE - Scanning library REQUIRED - - OK -
 error: sane-devel SANE - Scanning library development files REQUIRED - - MISSING 'sane-devel needs to be installed'
 error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 - MISSING 'libnetsnmp-devel needs to be installed'
 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
 python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.8.2 OK -
 error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - MISSING 'python3-notify2 needs to be installed'
 error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
 error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
 python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.16 OK -
 python3-xml Python XML libraries REQUIRED - 2.2.9 OK -
 python3-devel Python devel - Python development files REQUIRED 2.2 3.8.2 OK -
 python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 7.0.0 OK -
 python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.5.34 OK -

--------------
| COMPILEDEP |
--------------

 error: libtool libtool - Library building support services REQUIRED - - MISSING 'libtool needs to be installed'
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 9.3.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.2.1 OK -

---------------------
| Python Extentions |
---------------------

 cupsext CUPS-Extension REQUIRED - 3.20.3 OK -
 hpmudext IO-Extension REQUIRED - 3.20.3 OK -

----------------------
| Scan Configuration |
----------------------

'/etc/sane.d/dll.d/hpaio' not found.
 hpaio HPLIP-SANE-Backend REQUIRED - 3.20.3 OK 'hpaio found in /etc/sane.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.20.3 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
device `escl:http://192.168.178.21:8080' is a ESCL HP ENVY Photo 6200 series [824673] flatbed scanner
device `escl:https://192.168.178.21:443' is a ESCL HP ENVY Photo 6200 series [824673] SSL flatbed scanner

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP_DesignJet_T125_24_in_Printer_F712D9_
---------------------------------------
Type: Unknown
Device URI: implicitclass://HP_DesignJet_T125_24_in_Printer_F712D9_/
PPD: /etc/cups/ppd/HP_DesignJet_T125_24_in_Printer_F712D9_.ppd
PPD Description: HP DesignJet T125 24-in Printer, driverless, cups-filters 1.27.4
Printer status: printer HP_DesignJet_T125_24_in_Printer_F712D9_ is idle. enabled since Waiting for job to complete.
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

HP_HP_ENVY_Photo_6200_series
----------------------------
Type: Unknown
Device URI: dnssd://HP%20ENVY%20Photo%206200%20series%20%5B824673%5D._ipp._tcp.local/?uuid=221dde28-384f-5eb0-bc3a-28e2744edc30
PPD: /etc/cups/ppd/HP_HP_ENVY_Photo_6200_series.ppd
PPD Description: HP Envy Photo 6200 Series, hpcups 3.20.3
Printer status: printer HP_HP_ENVY_Photo_6200_series is idle. enabled since wo 17 jun 2020 13:43:41 CEST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

--------------
| PERMISSION |
--------------

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libusb-0.1-4' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'snmp-mibs-downloader' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'libtool-bin' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'xsane' package is missing/incompatible
error: 'avahi-utils' package is missing/incompatible
error: 'python3-notify2' package is missing/incompatible
error: 'python3-dbus.mainloop.qt' package is missing/incompatible

Total Errors: 12
Total Warnings: 3

Done.

Revision history for this message
Bert Bril (bert-bril) said :
#2

About the packages that show as missing: most are there. For example, libcups2 is there, with version 2.3.1-9ubuntu1.1 .

Maybe this is all too 'new'? I'm running the relatively new, but LTS kUbuntu 20.04 ...

Does the DesignJet need special drivers? The HP Envy worked without any configuration.

Revision history for this message
brian_p (claremont102) said :
#3

The T125 is not supported by HPLIP, so there is little help to be gained
by running any if the debugging methods it supplies. However, it is an
IPP printer and recognised and set up as such by the printing system.

Please see

  https://answers.launchpad.net/hplip/+question/691034

The output of

  avahi-browse -rt _ipp._tcp

would be appreciated.

Cheers,

Brian.

Revision history for this message
Bert Bril (bert-bril) said :
#4

Thx for answering!

Just saying, having to use Windows to use it almost feels like a personal defeat. I try to do literally everything on Linux, some things may cost a bit of extra time and effort, but that, IMO, is the price of eventual freedom.

Anyway, the requested info:

[/root] avahi-browse -rt _ipp._tcp
+ enp24s0 IPv6 HP DesignJet T125 24-in Printer [F712D9] Internet Printer local
+ enp24s0 IPv6 HP ENVY Photo 6200 series [824673] Internet Printer local
+ enp24s0 IPv4 HP DesignJet T125 24-in Printer [F712D9] Internet Printer local
+ enp24s0 IPv4 HP ENVY Photo 6200 series [824673] Internet Printer local
= enp24s0 IPv4 HP DesignJet T125 24-in Printer [F712D9] Internet Printer local
   hostname = [HP02BAD0B366CD.local]
   address = [192.168.178.66]
   port = [631]
   txt = ["Scan=F" "Duplex=F" "Color=T" "hplfpmobileprinter=T" "UUID=abcd8d00-272d-f6ef-1ce3-a1b8421bd755" "Fax=F" "note=" "adminurl=http://HP02BAD0B366CD.local." "mac=00:68:eb:f7:12:d9" "priority=20" "usb_MDL=HP DesignJet T125 24-in Printer" "usb_MFG=HP" "product=(HP HP DesignJet T125 24-in Printer)" "ty=HP DesignJet T125 24-in Printer" "kind=document,photo,roll" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm" "qtotal=1" "txtvers=1"]
= enp24s0 IPv6 HP DesignJet T125 24-in Printer [F712D9] Internet Printer local
   hostname = [HP02BAD0B366CD.local]
   address = [192.168.178.66]
   port = [631]
   txt = ["Scan=F" "Duplex=F" "Color=T" "hplfpmobileprinter=T" "UUID=abcd8d00-272d-f6ef-1ce3-a1b8421bd755" "Fax=F" "note=" "adminurl=http://HP02BAD0B366CD.local." "mac=00:68:eb:f7:12:d9" "priority=20" "usb_MDL=HP DesignJet T125 24-in Printer" "usb_MFG=HP" "product=(HP HP DesignJet T125 24-in Printer)" "ty=HP DesignJet T125 24-in Printer" "kind=document,photo,roll" "rp=ipp/print" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm" "qtotal=1" "txtvers=1"]
= enp24s0 IPv4 HP ENVY Photo 6200 series [824673] Internet Printer local
   hostname = [HPACE2D3824673.local]
   address = [192.168.178.21]
   port = [631]
   txt = ["Fax=F" "Scan=T" "kind=document,envelope,photo,postcard" "URF=CP1,MT1-2-8-9-10-11,PQ3-4-5,RS300-600,SRGB24,OB9,OFU0,W8-16,DEVW8-16,DEVRGB24-48,ADOBERGB24-48,DM3,FN3,IS1-7,V1.4" "PaperMax=legal-A4" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf,image/pwg-raster" "Duplex=T" "Color=T" "ty=HP ENVY Photo 6200 series" "product=(HP ENVY Photo 6200 series)" "mopria-certified=1.3" "UUID=221dde28-384f-5eb0-bc3a-28e2744edc30" "rp=ipp/print" "TLS=1.2" "qtotal=1" "priority=20" "note=" "adminurl=http://HPACE2D3824673.local./#hId-pgAirPrint" "txtvers=1"]
= enp24s0 IPv6 HP ENVY Photo 6200 series [824673] Internet Printer local
   hostname = [HPACE2D3824673.local]
   address = [192.168.178.21]
   port = [631]
   txt = ["Fax=F" "Scan=T" "kind=document,envelope,photo,postcard" "URF=CP1,MT1-2-8-9-10-11,PQ3-4-5,RS300-600,SRGB24,OB9,OFU0,W8-16,DEVW8-16,DEVRGB24-48,ADOBERGB24-48,DM3,FN3,IS1-7,V1.4" "PaperMax=legal-A4" "pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm,image/urf,image/pwg-raster" "Duplex=T" "Color=T" "ty=HP ENVY Photo 6200 series" "product=(HP ENVY Photo 6200 series)" "mopria-certified=1.3" "UUID=221dde28-384f-5eb0-bc3a-28e2744edc30" "rp=ipp/print" "TLS=1.2" "qtotal=1" "priority=20" "note=" "adminurl=http://HPACE2D3824673.local./#hId-pgAirPrint" "txtvers=1"]
[/root]

Revision history for this message
brian_p (claremont102) said :
#5

Hello Bert,

You said

> I try to do literally everything on Linux, some things may cost a bit
> of extra time and effort, but that, IMO, is the price of eventual freedom.

The printing system has actually set the printer up for you automatically
using cups-browsed. It should produce PCLm to send to the printer. The
printer supports PCLm.

> pdl=application/vnd.hp-PCL,image/jpeg,application/PCLm

I have been unable to watch your Video; apparently I need permission to
access it. Anyway, it clear that you are unable to print. I'm inclined to think
in terms of bugs in the PCLm filter or the printer's implementation of PCLm.
Please try what is suggested in the link I gave you.

The URI for the printer is

  ipp://HP02BAD0B366CD.local/ipp/print

Substitute in

  lpadmin -p T125 -v URI -E -m driverless:URI

and try printing a simple text file with

  lp -d T125 /etc/nsswitch.conf

The previous user got "filter failed" for the attempted print job. How about you?

Revision history for this message
Bert Bril (bert-bril) said :
#6

Again, thx for replying.

I thought I had opened viewing permissions, but apparently didn't. The URL should now work:
https://drive.google.com/file/d/1lkULoLOXMp_1-om8ZruX8wkXzOsJ10Bt/view?usp=sharing

Then:

[/root] export PR_URI=ipp://HP02BAD0B366CD.local/ipp/print
[/root] lpadmin -p T125 -v $PR_URI -E -m driverless:$PR_URI
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
[/root] lp -d T125 /etc/nsswitch.conf
request id is T125-172 (1 file(s))

And indeed, the printer status display shows: 'Idle - "Filter failed"'
No output coming from printer.

Revision history for this message
brian_p (claremont102) said :
#7

I managed to open the video. Thanks.

We need to know which filter failed. Run

  sudo cupsfilter -p /etc/cups/ppd/T125PPD -m printer/foo -e /etc/nsswitch.conf > out.pclm 2> log

T125PPD is whatever the actual PPD name is.

View log with 'less log'. Do all filters complete successfully? Please post log.

out.pclm should be viewable with any PDF viewer.

Revision history for this message
Bert Bril (bert-bril) said :
#8

Sadly, it crashes:

[/root] cupsfilter -p /etc/cups/ppd/T125PPD -m printer/foo -e /etc/nsswitch.conf > out.pclm 2> log
Segmentation fault (core dumped)
[/root] cat log
cupsfilter: Unable to open PPD file: Unable to open PPD file on line 0.
[/root] file out.pclm
out.pclm: empty
[/root]

Can't find any core file ...

Revision history for this message
brian_p (claremont102) said :
#9

T125PPD is a placeholder for the actual PPD. You have to substitute for it.
Do 'ls -l /etc/cups/ppd' to get its name.

Revision history for this message
Bert Bril (bert-bril) said :
#10

Ah! OK.

[/root] cupsfilter -p /etc/cups/ppd/T125.ppd -m printer/foo -e /etc/nsswitch.conf > out.pclm 2> log
[/root] file out.pclm
out.pclm: empty
[/root] cat log
cupsfilter: File "/usr/lib/cups/filter/rastertopclx" permissions OK (040755/uid=0/gid=0).
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="root"
DEBUG: argv[3]="nsswitch.conf"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="/etc/nsswitch.conf"
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=text/plain"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=en_US.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/etc/cups/ppd/T125.ppd"
DEBUG: envp[9]="PRINTER_INFO=cupsfilter"
DEBUG: envp[10]="PRINTER_LOCATION=Unknown"
DEBUG: envp[11]="PRINTER=cupsfilter"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=root"
DEBUG: envp[14]="CHARSET=utf-8"
DEBUG: envp[15]="FINAL_CONTENT_TYPE=application/pclm"
INFO: texttopdf (PID 5631) started.
INFO: pdftopdf (PID 5632) started.
INFO: gstoraster (PID 5633) started.
INFO: rastertopclm (PID 5634) started.
DEBUG: rastertopclm argv[5] = 1 root nsswitch.conf 1
DEBUG: PPD: /etc/cups/ppd/T125.ppd
DEBUG: Page = 595x842; 14,14 to 581,828
DEBUG: OUTFORMAT="(null)", so output format will be CUPS/PWG Raster
DEBUG: pdftopdf: Last filter determined by the PPD: -; FINAL_CONTENT_TYPE: application/pclm => pdftopdf will not log pages in page_log.
DEBUG: OUTFORMAT="PCLM", output format will be PCLM
DEBUG: Color Manager: Calibration Mode/Off
Unsupported OTF font / glyf table
cupsfilter: fontembed/sfnt.c:651: otf_get_width: Assertion `0' failed.
DEBUG: Input is empty, outputting empty file.
ERROR: texttopdf (PID 5631) crashed on signal 6
DEBUG: Input is empty, outputting empty file.
INFO: pdftopdf (PID 5632) exited with no errors.
DEBUG: PPD PCLm attribute "cupsPclmStripHeightPreferred" with value "32"
DEBUG: PPD PCLm attribute "cupsPclmStripHeightSupported" with value "32"
DEBUG: PPD PCLm attribute "cupsPclmRasterBackSide" with value "rotated"
DEBUG: PPD PCLm attribute "cupsPclmSourceResolutionDefault" with value "600dpi"
DEBUG: PPD PCLm attribute "cupsPclmSourceResolutionSupported" with value "300dpi,600dpi"
DEBUG: PPD PCLm attribute "cupsPclmCompressionMethodPreferred" with value "rle"
DEBUG: Input is empty, outputting empty file.
INFO: gstoraster (PID 5633) exited with no errors.
INFO: rastertopclm (PID 5634) exited with no errors.
[/root]

Revision history for this message
brian_p (claremont102) said :
#11

> INFO: texttopdf (PID 5631) started.
> INFO: pdftopdf (PID 5632) started.
> INFO: gstoraster (PID 5633) started.
> INFO: rastertopclm (PID 5634) started.

These are the filters to be used. Nothing wrong there. PCLm will be produced.

> Unsupported OTF font / glyf table
> cupsfilter: fontembed/sfnt.c:651: otf_get_width: Assertion `0' failed.
> DEBUG: Input is empty, outputting empty file.
> ERROR: texttopdf (PID 5631) crashed on signal 6
> DEBUG: Input is empty, outputting empty file.

This is completely unexpected. It means that a text file cannot be used to
test the filter chain and printing. It is probably a bug in cupsfilters on Ubuntu
20.04. See

  https://github.com/apple/cups/issues/5787

Do you have a small PDF, test.pdf, to use? Send it to the printer with

  lp -d T125 test.pdf

Does it print? You can also give it to cupsfilters to process as above and test
the filter chain.

Also, get a JPEG file, test.jpg, and try printing:

  lp -d T125 test.jpg

Revision history for this message
Bert Bril (bert-bril) said :
#12

OK, I got something now, only for jpg:

[/root] lp -d T125 /test.pdf
request id is T125-175 (1 file(s))

This prepares the printer for a couple of seconds, but in the end prints nothing. No activity at all in the Printer Queue window.

[/tmp] lp -d T125 test.jpg
request id is T125-176 (1 file(s))

This prints the image, I got a huge poster from the .jpg file. It uses the roll width for the vertical dimension (printing landscape in the roll direction). The width of the .jpg is enlarged to a very large size, which cuts off parts of top and bottom of the picture. As it is the picture of a cute duckling, this test result was in high demand but maybe not very professionally usable.

Weirdly, there was no activity at all in the Print Queue window either ...

As for the cupsfilter, I did this:
[/root] cupsfilter -p /etc/cups/ppd/T125.ppd -m printer/foo -e test.pdf > tst2.pdf
cupsfilter: File "/usr/lib/cups/filter/rastertopclx" permissions OK (040755/uid=0/gid=0).
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="root"
DEBUG: argv[3]="test.pdf"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="test.pdf"
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=application/pdf"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=en_US.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/etc/cups/ppd/T125.ppd"
DEBUG: envp[9]="PRINTER_INFO=cupsfilter"
DEBUG: envp[10]="PRINTER_LOCATION=Unknown"
DEBUG: envp[11]="PRINTER=cupsfilter"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=root"
DEBUG: envp[14]="CHARSET=utf-8"
DEBUG: envp[15]="FINAL_CONTENT_TYPE=application/pclm"
INFO: pdftopdf (PID 52203) started.
INFO: gstoraster (PID 52204) started.
INFO: rastertopclm (PID 52205) started.
DEBUG: rastertopclm argv[5] = 1 root test.pdf 1
DEBUG: PPD: /etc/cups/ppd/T125.ppd
DEBUG: pdftopdf: Last filter determined by the PPD: -; FINAL_CONTENT_TYPE: application/pclm => pdftopdf will not log pages in page_log.
DEBUG: OUTFORMAT="(null)", so output format will be CUPS/PWG Raster
DEBUG: OUTFORMAT="PCLM", output format will be PCLM
DEBUG: Color Manager: Calibration Mode/Off
DEBUG: PDF interactive form and annotation flattening done via QPDF
INFO: pdftopdf (PID 52203) exited with no errors.
DEBUG: Color Manager: Calibration Mode/Off
DEBUG: Calling FindDeviceById(cups-cupsfilter)
DEBUG: Failed to send: org.freedesktop.ColorManager.NotFound:device id 'cups-cupsfilter' does not exist
DEBUG: Failed to get find device cups-cupsfilter
DEBUG: Calling FindDeviceById(cups-cupsfilter)
DEBUG: Failed to send: org.freedesktop.ColorManager.NotFound:device id 'cups-cupsfilter' does not exist
DEBUG: Failed to get device cups-cupsfilter
INFO: Color Manager: no profiles specified in PPD
DEBUG: Color Manager: ICC Profile: None
DEBUG: Ghostscript using Any-Part-of-Pixel method to fill paths.
DEBUG: Ghostscript command line: gs -dQUIET -dSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=Stationery -r600x600 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=19 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c '<</.HWMargins[14.173228 14.173228 14.173218 14.173218] /Margins[0 0]>>setpagedevice' -f -_
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=application/pdf"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=en_US.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/etc/cups/ppd/T125.ppd"
DEBUG: envp[9]="PRINTER_INFO=cupsfilter"
DEBUG: envp[10]="PRINTER_LOCATION=Unknown"
DEBUG: envp[11]="PRINTER=cupsfilter"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=root"
DEBUG: envp[14]="CHARSET=utf-8"
DEBUG: envp[15]="FINAL_CONTENT_TYPE=application/pclm"
INFO: Start rendering...
INFO: Processing page 1...
DEBUG: PPD PCLm attribute "cupsPclmStripHeightPreferred" with value "32"
DEBUG: PPD PCLm attribute "cupsPclmStripHeightSupported" with value "32"
DEBUG: PPD PCLm attribute "cupsPclmRasterBackSide" with value "rotated"
DEBUG: PPD PCLm attribute "cupsPclmSourceResolutionDefault" with value "600dpi"
DEBUG: PPD PCLm attribute "cupsPclmSourceResolutionSupported" with value "300dpi,600dpi"
DEBUG: PPD PCLm attribute "cupsPclmCompressionMethodPreferred" with value "rle"
INFO: Starting page 1.
INFO: Processing page 2...
INFO: Rendering completed
INFO: gstoraster (PID 52204) exited with no errors.
INFO: rastertopclm (PID 52205) exited with no errors.
[/root]

tst2.pdf now contains a PDF similar to the input, displays well in okular.

Revision history for this message
brian_p (claremont102) said :
#13

> INFO: pdftopdf (PID 52203) started.
> INFO: gstoraster (PID 52204) started.
> INFO: rastertopclm (PID 52205) started.

These three filters run and exit without any. errors. Also, tst2.pdf (actually
a PCLm file to be sent to the printer) is viewable. The indications are that
the filtering system has done its job correctly. That leaves the printer
behaviour when it receives tst2.pdf to be examined.

My skills are not up to interpreting any extra information that may be
gathered. I suggest submitting an issue at

  https://github.com/OpenPrinting/cups-filters/issues

giving a link to the posts here.

Best of luck,

Brian.

Revision history for this message
Launchpad Janitor (janitor) said :
#14

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.