cancel
Showing results for 
Search instead for 
Did you mean: 

cups and hplip printing error with Stm32mp157 usb.

zxiao.4
Associate III

Hello:

​I installed 'cups' and 'hplip', and successfully installed HP_ LaserJet_ 1010 driver through 'hp-setup', but when I print files through 'lp', the printer doesn't respond, and a 'filter failed' error occurs. I want to install hplip-3.19.12-plugin_run, but failed. This is the error log:

D [07/Jul/2022:10:02:12 +0000] [Job 6] Started filter /usr/libexec/cups/filter/texttopdf (PID 903)

D [07/Jul/2022:10:02:12 +0000] [Job 6] Started filter /usr/libexec/cups/filter/pdftopdf (PID 904)

D [07/Jul/2022:10:02:12 +0000] [Job 6] Started filter /usr/libexec/cups/filter/gstoraster (PID 905)

D [07/Jul/2022:10:02:12 +0000] [Job 6] Started filter /usr/libexec/cups/filter/hpcups (PID 906)

D [07/Jul/2022:10:02:12 +0000] [Job 6] Started backend /usr/libexec/cups/backend/hp (PID 907)

D [07/Jul/2022:10:02:12 +0000] [Job 6] Restarted by "root".

D [07/Jul/2022:10:02:12 +0000] [Job 6] Page = 612x792; 12,12 to 600,780

D [07/Jul/2022:10:02:12 +0000] [Job 6] OUTFORMAT=\"(null)\", so output format will be CUPS/PWG Raster

D [07/Jul/2022:10:02:12 +0000] [Job 6] pdftopdf: Last filter determined by the PPD: hpcups; FINAL_CONTENT_TYPE: application/vnd.cups-raster => pdftopdf will not log pages in page_log.

D [07/Jul/2022:10:02:12 +0000] [Job 6] No viable font found

D [07/Jul/2022:10:02:12 +0000] [Job 6] Set job-printer-state-message to "Ignored bad font \"monospace\"", current level=WARN

D [07/Jul/2022:10:02:12 +0000] [Job 6] No viable font found

D [07/Jul/2022:10:02:12 +0000] [Job 6] PID 903 (/usr/libexec/cups/filter/texttopdf) exited with no errors.

D [07/Jul/2022:10:02:12 +0000] [Job 6] PDF interactive form and annotation flattening done via QPDF

D [07/Jul/2022:10:02:12 +0000] [Job 6] PID 904 (/usr/libexec/cups/filter/pdftopdf) exited with no errors.

D [07/Jul/2022:10:02:12 +0000] [Job 6] Color Manager: Calibration Mode/Off

D [07/Jul/2022:10:02:12 +0000] [Job 6] WARN: not compiled with DBus support

D [07/Jul/2022:10:02:12 +0000] [Job 6] WARN: not compiled with DBus support

D [07/Jul/2022:10:02:12 +0000] [Job 6] Color Manager: no profiles specified in PPD

D [07/Jul/2022:10:02:12 +0000] [Job 6] Color Manager: ICC Profile: None

D [07/Jul/2022:10:02:12 +0000] [Job 6] Ghostscript using Any-Part-of-Pixel method to fill paths.

D [07/Jul/2022:10:02:12 +0000] [Job 6] Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=Plain -sOutputType=0 -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 -dcupsRowCount=1 -dcupsRowStep=2 -scupsPageSizeName=Letter -I/usr/share/cups/fonts -c \'<</.HWMargins[12.000000 12.000000 12.000000 12.000000] /Margins[0 0]>>setpagedevice\' -f -_

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[0]=\"CUPS_CACHEDIR=/var/cache/cups\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[1]=\"CUPS_DATADIR=/usr/share/cups\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[2]=\"CUPS_DOCROOT=/usr/share/doc/cups\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[3]=\"CUPS_FONTPATH=/usr/share/cups/fonts\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[4]=\"CUPS_REQUESTROOT=/var/spool/cups\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[5]=\"CUPS_SERVERBIN=/usr/libexec/cups\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[6]=\"CUPS_SERVERROOT=/etc/cups\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[7]=\"CUPS_STATEDIR=/var/run/cups\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[8]=\"HOME=/var/spool/cups/tmp\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[9]=\"PATH=/usr/libexec/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[10]=\"SERVER_ADMIN=root@ATK-MP157\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[11]=\"SOFTWARE=CUPS/2.3.1\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[12]=\"TMPDIR=/var/spool/cups/tmp\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[13]=\"USER=root\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[14]=\"CUPS_MAX_MESSAGE=2047\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[15]=\"CUPS_SERVER=/var/run/cups/cups.sock\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[16]=\"CUPS_ENCRYPTION=IfRequested\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[17]=\"IPP_PORT=631\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[18]=\"CHARSET=utf-8\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[19]=\"LANG=en_US.UTF-8\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[20]=\"PPD=/etc/cups/ppd/hp_LaserJet_1010.ppd\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[21]=\"RIP_MAX_CACHE=128m\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[22]=\"CONTENT_TYPE=text/plain\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[23]=\"DEVICE_URI=hp:/usb/hp_LaserJet_1010?serial=00CNFG454736\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[24]=\"PRINTER_INFO=hp LaserJet 1010 Device (Automatically setup by HPLIP)\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[25]=\"PRINTER_LOCATION=\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[26]=\"PRINTER=hp_LaserJet_1010\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[27]=\"PRINTER_STATE_REASONS=none\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[28]=\"CUPS_FILETYPE=document\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[29]=\"FINAL_CONTENT_TYPE=application/vnd.cups-raster\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] envp[30]=\"AUTH_INFO_REQUIRED=none\"

D [07/Jul/2022:10:02:12 +0000] [Job 6] Start rendering...

D [07/Jul/2022:10:02:12 +0000] [Job 6] Processing page 1...

D [07/Jul/2022:10:02:12 +0000] [Job 6] prnt/backend/hp.c 919: ERROR: null print job total=0

D [07/Jul/2022:10:02:12 +0000] [Job 6] PID 907 (/usr/libexec/cups/backend/hp) exited with no errors.

D [07/Jul/2022:10:02:12 +0000] [Job 6] PID 906 (/usr/libexec/cups/filter/hpcups) crashed on signal 11.

D [07/Jul/2022:10:02:12 +0000] [Job 6] Hint: Try setting the LogLevel to "debug" to find out more.

D [07/Jul/2022:10:02:12 +0000] [Job 6] Processing page 2...

D [07/Jul/2022:10:02:12 +0000] [Job 6] Rendering completed

D [07/Jul/2022:10:02:12 +0000] [Job 6] PID 905 (/usr/libexec/cups/filter/gstoraster) exited with no errors.

D [07/Jul/2022:10:02:12 +0000] [Job 6] End of messages

D [07/Jul/2022:10:02:12 +0000] [Job 6] printer-state=3(idle)

D [07/Jul/2022:10:02:12 +0000] [Job 6] printer-state-message="Rendering completed"

D [07/Jul/2022:10:02:12 +0000] [Job 6] printer-state-reasons=none

Please help me. Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @zxiao.4​ 

The hplip-3.19.12-plugin.run is a HP proprietary package and is not available in the stm32mpu ecosystem. You have to install it by yourself or request help from HP support.

This link may help you:

https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html

Best regards,

--JM

View solution in original post

5 REPLIES 5
Olivier GALLIEN
ST Employee

Hi @zxiao.4​,

At first sight, this issue looks to me unrelated to STM32MP157 Soc or USB integration.

I suggest you rather try to find help in CUPS community.

As a simple clue, I would start to check what means "No viable font found" and if it can explain the failure.

eg that post which looks to treat about a similar problem

print text file fails with "no usable font available" · Issue #5165 · apple/cups (github.com)

Hope it help

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Ok ,thanks.

when I 'apt-get install hplip-* ' ,

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Unable to locate package hplip-3.19.12-plugin.run

E: Couldn't find any package by glob 'hplip-3.19.12-plugin.run'

E: Couldn't find any package by regex 'hplip-3.19.12-plugin.run'

E: Unable to locate package hplip-3.19.12-plugin.run.asc

E: Couldn't find any package by glob 'hplip-3.19.12-plugin.run.asc'

E: Couldn't find any package by regex 'hplip-3.19.12-plugin.run.asc'

How can I install hplip-3.19.12-plugin.run? My printer needs this driver.

Hi @zxiao.4​ 

The hplip-3.19.12-plugin.run is a HP proprietary package and is not available in the stm32mpu ecosystem. You have to install it by yourself or request help from HP support.

This link may help you:

https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html

Best regards,

--JM

Ok,thanks.