HPLIP libsane-hpaio drivers fail to access scanner properly

Bug #1027021 reported by D. Charles Pyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned
Fedora
New
Undecided
Unassigned

Bug Description

With these either the distro packaged or run file version of hplip 3.12.6 installed, my ability to use the scanner on the HP Officejet Pro L7680 is prevented. Scanning fails with repeated "End of file" (code 5) errors even though the scanner is detected and both printing and fax work as expected. Downgrading all related and dependent packages to 3.12.4, including the libsane-hpaio package, makes it all work again.

The problem seems to be with the libsane-hpaio package. The scanner can be seen by scanimage, hp-check and other packages, and hp-check -t throws no errors or warnings after running, but scanning always fails with the "End of file" (code 5) error, with no output. It seems like a library is missing from the libsane-hpaio package, perhaps a static library(?) somewhere.

In any case, no amount of configuration and reconfiguration helps. If 3.12.6 is installed, the scanner can be seen, zero errors and zero warnings are given by hp-check -t, but there is no way that scanning can proceed unless the HPLIP and libsane-hpaio packages are downgraded to 3.12.4.

I will reinstall the 3.12.6 packages again tomorrow to get the output as I no longer have the hp-check output for the newer version. It was replaced with the output for the 3.12.4 packages.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Here is the output from hp-check -t, attached to this post. You will note that there are no errors at the end of the test log. Yet, I now no longer can scan again. I noticed that there now is some error in a python file.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Added to this post is the screenshot of the fact that the scanner is seen by xsane.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Added to this post is the version of the error that is seen in the dialog thrown by xsane.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Terminal output using scanimage -L.

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Can you give more information about the parameters you are using while scanning (e.g. scan-source, resolution, etc.). ?

Is it related to this https://bugs.launchpad.net/hplip/+bug/1015319 ? If so, please make the changes given in comment#5 for that link.

Changed in hplip:
status: New → In Progress
Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

I do not know if it is related as to the precise cause. It seems to be related in that a scanner that was fully functional ceased to be so after updating to 3.12.6.

The command that is used in the HPLIP software is: /usr/bin/xsane -V %SANE_URI%

All software used see the scanner and can make use of it but if I attempt a scan I get a nearly immediate error messages relative to the End of file (the command line versions of programs give the error as "end of file (code 5)" as part of the error message) error. I have tried to use multiple applications such as scanimage, simplescan, Acquire Image, etc. All generate the same error when libsane-hpaio is called. See my screenshots attachments above for some of the errors generated using various software.

I had to downgrade back to 3.13.4 to scan some documents and other items. I will upgrade to 3.12.6 again tomorrow and try the modification and report back tomorrow.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Sorry about the typo above in comment #6. 3.13.4 should read 3.12.4.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

I forgot to mention that all resolutions tried failed with the same result while running 3.12.6. 75, 150, 300, 600 dpi were the resolutions I tried. Sorry but I am preoccupied with something at the moment. As I said, I will upgrade back to 3.12.6 tomorrow.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

OK, I purged all of the HPLIP packages off of the system and used the run file to install the software version 3.12.6. The installation completed, I followed all directions to the letter, and hp-setup cannot even detect the printer even though the associated mDNS and other ports are open on the firewall. Disabling the firewall makes zero difference. The software cannot detect the printer unless I manually enter an IP address. This does not happen and did not happen on version 3.12.4 or earlier versions that I have used. It is the problem of 3.12.6 alone.

Here is output from the terminal from hp-setup:

$ hp-setup -i

HP Linux Imaging and Printing System (ver. 3.12.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 Hewlett-Packard 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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num Connection Description
            Type
  -------- ---------- ----------------------------------------------------------
  0* usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ? 1

Using connection type: net

error: No device selected/specified or that supports this functionality.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :
Download full text (12.6 KiB)

Installed the printer manually as follows:

$ hp-setup

HP Linux Imaging and Printing System (ver. 3.12.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 Hewlett-Packard 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.

(python:3260): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(python:3260): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(python:3260): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(python:3260): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=mdns)
error: No devices found on bus: net
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=mdns)
error: No devices found on bus: net

(python:3260): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(python:3260): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=2, method=mdns)
error: No devices found on bus: net

(python:3260): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(python:3260): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed
Found device: hp:/net/Officejet_Pro_L7600?zc=HP2C5A39
/
(python:3260): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(python:3260): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

HP Linux Imaging and Printing System (ver. 3.12.6)
System Tray Status Service ver. 2.0

Copyright (c) 2001-14 Hewlett-Packard 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.

/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:122: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)

Done.

========================================

I had to manually use the hostname of the printer in the gui version of the above setup I ran in terminal. I still get the end of file error as before with no use of the scanner whatsoever. Scanimage -L gives me the following:

$ scanimage -L
device `hpaio:/net/Officejet_Pro_L7600?zc=HP2C5A39' is a Hewlett-Packard Officejet_Pro_L7600 all-in-one
device `v4l:/dev/video1' is a Noname Hauppauge HVR-1600 virtual device
device `v4l:/dev/video0' is a Noname UVC Camera (046d:0821) virtual device

So, the software 'sees' the scanner, there are all sorts of python errors during setup, and I am unable to scan with a supported scanner device with software version 3.12.6. Any suggestions as to what to try next? I have to admit that I am stumped at the present time.

Here is hp-check -t output I just ran:

$ hp-check -t

HP Linux Imaging and Printing ...

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :
Download full text (9.3 KiB)

Here is output from hp-check -r

$ hp-check -r

HP Linux Imaging and Printing System (ver. 3.12.6)
Dependency/Version Check Utility ver. 15

Copyright (c) 2001-14 Hewlett-Packard 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

Saving output in log file: /home/dcpyle/hp-check.log

Initializing. Please wait...

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

 Kernel: 3.4.6-2.fc17.x86_64 #1 SMP Thu Jul 19 22:54:16 UTC 2012 GNU/Linux
 Host: Illuminatus-1
 Proc: 3.4.6-2.fc17.x86_64 #1 SMP Thu Jul 19 22:54:16 UTC 2012 GNU/Linux
 Distribution: fedora 17

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

HPLIP-Version: HPLIP 3.12.6
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for fedora distro 17 version

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

[hplip]
version=3.12.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-3.12.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# 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=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.12.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
udev_sysfs_rules=no
hpcups-only...

Read more...

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

OK. I followed the instructions given on the page referenced above. It generated several errors. I cleaned up what looked like a coding error.

I then also had to run ./configure first before make, contrary to the instructions before a makefile was even provided. I then ran make and got the following again:

$ make
/bin/sh ./libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"HP\ Linux\ Imaging\ and\ Printing\" -DPACKAGE_TARNAME=\"hplip\" -DPACKAGE_VERSION=\"3.12.6\" -DPACKAGE_STRING=\"HP\ Linux\ Imaging\ and\ Printing\ 3.12.6\" -DPACKAGE_BUGREPORT=\"3.12.6\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hplip\" -DVERSION=\"3.12.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBDL=1 -DHAVE_PTHREAD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_NET_SNMP_NET_SNMP_CONFIG_H=1 -DHAVE_CUPS_CUPS_H=1 -DHAVE_LIBUSB_1_0_LIBUSB_H=1 -DHAVE_PYTHON2_7_PYTHON_H=1 -DHAVE_DBUS=1 -I. -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -g -O2 -MT libsane_hpaio_la-bb_ledm.lo -MD -MP -MF .deps/libsane_hpaio_la-bb_ledm.Tpo -c -o libsane_hpaio_la-bb_ledm.lo `test -f 'scan/sane/bb_ledm.c' || echo './'`scan/sane/bb_ledm.c
libtool: compile: gcc "-DPACKAGE_NAME=\"HP Linux Imaging and Printing\"" -DPACKAGE_TARNAME=\"hplip\" -DPACKAGE_VERSION=\"3.12.6\" "-DPACKAGE_STRING=\"HP Linux Imaging and Printing 3.12.6\"" -DPACKAGE_BUGREPORT=\"3.12.6\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hplip\" -DVERSION=\"3.12.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBDL=1 -DHAVE_PTHREAD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_NET_SNMP_NET_SNMP_CONFIG_H=1 -DHAVE_CUPS_CUPS_H=1 -DHAVE_LIBUSB_1_0_LIBUSB_H=1 -DHAVE_PYTHON2_7_PYTHON_H=1 -DHAVE_DBUS=1 -I. -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -g -O2 -MT libsane_hpaio_la-bb_ledm.lo -MD -MP -MF .deps/libsane_hpaio_la-bb_ledm.Tpo -c scan/sane/bb_ledm.c -fPIC -DPIC -o .libs/libsane_hpaio_la-bb_ledm.o
In file included from scan/sane/bb_ledm.c:23:0:
scan/sane/common.h:187:1: warning: 'visibility' attribute ignored on non-class types [-Wattributes]
scan/sane/bb_ledm.c: In function 'bb_is_paper_in_adf':
scan/sane/bb_ledm.c:1081:1: error: expected declaration or statement at end of input
make: *** [libsane_hpaio_la-bb_ledm.lo] Error 1

I then corrected another coding error by adding another left-facing bracket where one should have been but wasn't. Ran make again. This time there were not errors generated. I am about to run make install. Stand by.

Just did it. No errors can be seen so far. I will test the scanner in a moment and give results in separate post.

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

Rebooted machine.

Ran hp-setup -r

Ran hp-setup again and this time the printer did not get detected even with the host name of the printer provided in the advanced setup. hp-setup -i also failed.

$ hp-setup

HP Linux Imaging and Printing System (ver. 3.12.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 Hewlett-Packard 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.

(python:2930): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(python:2930): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(python:2930): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(python:2930): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=mdns)
error: No devices found on bus: net
Searching... (bus=net, timeout=5, ttl=4, search=HP2C5A39 desc=2, method=mdns)
error: No devices found on bus: net

Done.

Tried again using manual detection of IP address. It was detected with manual install. Installed the printers. Scanning failed with exact same error as before and I cannot scan at all with this version of the driver.

So, in answer to the question posed about a reference to another web page, the answer is: "No. it has not a whit to do with the suggestion on post #5 of that other web page. This is something far more serious. What that is, I do not know."

Revision history for this message
D. Charles Pyle (dcharlespyle) wrote :

On reading more carefully and doing so when not being tired, I realized that these bugs are closely related, minus the duplexing issue. Combining these bugs would seem to be appropriate.

However, the fix offered in the other thread did nothing. I still get the same errors. I rechecked my work and the results are the same so it is not an error on my part, so far as I can see. I will have to downgrade to 3.12.4 in the meantime as I need my scanner to work until this bug is fixed.

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.