xsane: Failed to start scanner: Invalid argument, attributes not found, unable to load library libm.so
This bug report was converted into a question: question #695006: xsane: Failed to start scanner: Invalid argument, attributes not found, unable to load library libm.so.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Invalid
|
Undecided
|
Unassigned |
Bug Description
OS: Ubuntu 20.04
HPLIP: release 3.20.9, with plugin installed
Printer: Color LaserJet Pro MFP M283fdw
I am trying to enable scanning via xsane and I have tried to apply several tweaks and hint from this launchpad to get it running. In parts successful, but the workaround look strange and incorrect. For printing I'm using the IPP Everywhere CUPS driver
After launch, xsane detects a preselected device
hpaio:
along with two ESCL URIs of the same printer. Using the hpaio URI any attempt to scan fails with "Failed to start scanner: Invalid argument" and syslog
xsane: protocol/
xsane: protocol/
xsane: io/hpmud/model.c 534: no colorlaserjet_
xsane: io/hpmud/model.c 545: no colorlaserjet_
xsane: common/utils.c 212: unable to load library libm.so: /usr/lib/
xsane: scan/sane/soapht.c 949: invalid extents: tlx=22212 brx=22212 tly=88849 bry=19435744 minwidth=3196059 minheight3196059 maxwidth=14149222 maxheight=19459342
I can scan using
$ scanimage -d hpaio:/
though. According to https:/
[hp_colorlase
align-type=0
clean-type=0
...
as
[colorlaserje
align-type=0
clean-type=0
...
Using this modification I'm getting a slightly modified URI
hpaio:
and can actually use that for scanning with xsane! The syslog reports
xsane: protocol/
xsane: protocol/
xsane: common/utils.c 212: unable to load library libm.so: /usr/lib/
so the infamous "unable to load library libm.so: /usr/lib/
$ lpadmin -p M283fdw_PPD -v "hp:/net/
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
With that queue I get both URI offered:
hpaio:
hpaio:
The first fails as before, now reporting
xsane: protocol/
xsane: protocol/
xsane: common/utils.c 212: unable to load library libm.so: /usr/lib/
xsane: scan/sane/soapht.c 949: invalid extents: tlx=22212 brx=22212 tly=88849 bry=19435744 minwidth=3196059 minheight3196059 maxwidth=14149222 maxheight=19459342
So the attributes are found, but libm,so isn't, and that seems to matter with extents calculation. The second URI succeeds. Still unable to load library libm.so, but scans, as above.
What is the proper way of setting up the printer for scanning? What would I need the M283fdw_PPD queue for? What does the load failure of libm.so indicate?
Submission as bug was unintentional.