SANE: Error during device I/O (code=9) when scanning from HP 6500A source document feeder (adf)

Bug #819709 reported by Wim Cools
68
This bug affects 11 people
Affects Status Importance Assigned to Milestone
HPLIP
Fix Released
High
Sarbeswar Meher

Bug Description

I'm using a network printer HP Officejet 6500a E710a-f.
I got error SANE: Error during device I/O (code=9) when I scan using the ADF with the command hp-scan --adf.
I can scan using the flatbed without problems (using hp-scan).
I'm using hp-lip ver. 3.11.7 on Ubuntu 10.10 64 bit.

Revision history for this message
Wim Cools (wim-cools) wrote :
Revision history for this message
Wim Cools (wim-cools) wrote :

hp-check log

Revision history for this message
Wim Cools (wim-cools) wrote :

syslog when scanning failed.

Revision history for this message
fde (fde) wrote :

Same with e710n-z

Revision history for this message
Hendrik Donner (hendrik-donner) wrote :

I experience the same bug (SANE: Error during device I/O (code=9)) with ADF when i try o scan from the hp-toolbox.
However hp-scan --adf complains about:
[henny@elite ~]$ hp-scan --adf

HP Linux Imaging and Printing System (ver. 3.11.7)
Scan Utility ver. 2.2

Copyright (c) 2001-9 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.

Using device: hpaio:/net/Officejet_6500_E710a-f?zc=HP867CC7

warning: No destinations specified. Adding 'file' destination by default.
error: Unable to locate device hpaio:/net/Officejet_6500_E710a-f?zc=HP867CC7 using SANE backend hpaio:. Please check HPLIP installation.

I can scan from flatbed from the hp-toolbox without problem.

Revision history for this message
Hendrik Donner (hendrik-donner) wrote :

Forget about the hpaio problem, after uncommenting hpaio in /etc/sane.d/dll.conf scanning with hp-scan --adf gives:

[henny@elite ~]$ hp-scan --adf

HP Linux Imaging and Printing System (ver. 3.11.7)
Scan Utility ver. 2.2

Copyright (c) 2001-9 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.

Using device: hpaio:/net/Officejet_6500_E710a-f?zc=HP867CC7

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/net/Officejet_6500_E710a-f?zc=HP867CC7
Opening connection to device...

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.900009mm, 297.010681mm)
  Width: 215.900009mm
  Height: 297.010681mm
Destination(s): file
Output file:
warning: File destination enabled with no output file specified.
Setting output format to PDF for ADF mode.
warning: Defaulting to '/home/henny/hpscan001.pdf'.

Warming up...

Page 1: Scanning...
error: SANE: Error during device I/O (code=9)
Closing device.

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

Hi,

  We are able to reproduce this issue. This happens after upgrading the firmware. The fix will be available in the next release.

Thanks,
Sarbeswar Meher

Changed in hplip:
status: New → In Progress
assignee: nobody → Sarbeswar Meher (sarbeswar-meher)
importance: Undecided → High
Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Find the patch for the issue. Please update it in your code.

Go to the directory where you have the source code of hplip. Go to /scan/sane folder. Edit bb_ledm.c and ledm.c files with the patches given.

Run in commandline:

$ make
$ sudo make install

Exit systray or hp toolbox if running. Try scanning from ADF.

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

Added one more patch for bb_ledm.c file.

Revision history for this message
Wim Cools (wim-cools) wrote :

I tried this path, but I got an error for ledm.c.patch.
See below :

wim@dikkepels:/tmp/hplip/hplip-3.11.7$ patch --dry-run -b /tmp/hplip/hplip-3.11.7/scan/sane/ledm.c /tmp/hplip/ledm.c.patch
(Stripping trailing CRs from patch.)
patching file /tmp/hplip/hplip-3.11.7/scan/sane/ledm.c
patch unexpectedly ends in middle of line
Hunk #3 succeeded at 982 with fuzz 1.
wim@dikkepels:/tmp/hplip/hplip-3.11.7$ patch --dry-run -b /tmp/hplip/hplip-3.11.7/scan/sane/bb_ledm.c /tmp/hplip/bb_ledm.c.patch
(Stripping trailing CRs from patch.)
patching file /tmp/hplip/hplip-3.11.7/scan/sane/bb_ledm.c

Revision history for this message
Hendrik Donner (hendrik-donner) wrote :

I applied the patches (ledm.c.patch fails so i copied the code manually), but i run into https://bugs.launchpad.net/hplip/+bug/779048

I changed "print get_python_inc();" to "print( get_python_inc());", which gives me:

checking for a Python interpreter with version >= 2.2... python
checking for python... /usr/bin/python
checking for python version... 3.2
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python3.2/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.2/site-packages
checking for path to Python.h... "using /usr/include/python3.2mu"
checking python3.2/Python.h usability... no
checking python3.2/Python.h presence... no
checking for python3.2/Python.h... no
configure: error: cannot find python-devel support

This is on Arch Linux 64bit. Should i open a new bug report for this?

Revision history for this message
Ronald Koster (rk-launchpad) wrote :

I applied the patches (ledm.c.patch fails so i copied the code manually), ran make and sudu make install.
I tried scanning two pages from adf using hp-scan --adf.
The pages were correctly scanned into a pdf file, no device I/O errors any more.

As far as I'm concerned, this issue is solved with these two patches.

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

The issue will be solved in hplip-3.11.10 which will be release in october 1st week.

Changed in hplip:
status: In Progress → Fix Committed
Revision history for this message
João Sousa (jotapesse) wrote :

Will this fix solve the same bug on an Officejet 7500A?

https://bugs.launchpad.net/hplip/+bug/861332

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

Please download hplip-3.11.10 from http://hplipopensource.com/hplip-web/index.html and install it using "sh hplip-3.11.10.run" in commandline. Remove all existing queues and systray. Connect the printer and run "hp-setup". Once setup is done, run Xsane. You can scan from flatbed and ADF.

Let us know if you have any issue in scanning.

Changed in hplip:
status: Fix Committed → Fix Released
Revision history for this message
Joan Tur (joantur) wrote :

3.11.10 solved the problem for me (710n-z printer). Thanks! ;)

Revision history for this message
moftasa (mostafa-gmail) wrote :

I am getting this problem but randomly (almost 1/3 of the time). I am using Ubunut 11.10 with hplip-3.12.2 (I upgraded from the version that comes with Ubuntu, which is 3.11.10 I think.) My printer is the HP m1217nfw

This happens while using it on a network, wifi or ethernet. USB connection doesn't improve the situation with the hplip-3.11.10 (didn't test with 3.12.2).

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Install hplip 3.12.2 from "hplip-3.12.2.run" file , download it from http://hplipopensource.com/hplip-web/gethplip.html. Install it by running command "sh hplip-3.12.2.run" in terminal.

Delete the print queues for this printer in "system-config printer" and run "hp-setup" command to setup your printer and test if you are able to reproduce this issue on the latest.

Revision history for this message
moftasa (mostafa-gmail) wrote :

Thanks for the reply.

I am still having the problem. I reinstalled hplip 3.12.2 again and did delete the print queues as you said but the problem persists. I reproduced the same problem on another computer (ubuntu 11.04). The problem doesn't happen on windows.

Here is as much detail as possible:

Printer:
HP m1217nfw MFP* connected over ethernet.
It's using the latest firmware from HP website.

Driver:
hplip 3.12.2

OS:
Ubuntu 11.10 (kernel 3.0.0-17-generic)

Command:
hp-scan -g --adf --mode=lineart --size=a4

Error message:
error: SANE: Error during device I/O (code=9)

/var/syslog output:

Apr 11 00:35:28 mostafa-desktop hp-scan: hp-scan[4790]: warning: No destinations specified. Adding 'file' destination by default.
Apr 11 00:35:31 mostafa-desktop hp-scan: hp-scan[4790]: warning: File destination enabled with no output file specified.
Apr 11 00:35:32 mostafa-desktop hp-scan: hp-scan[4790]: warning: Defaulting to '/home/mostafa/scan/test/hpscan003.pdf'.
Apr 11 00:36:11 mostafa-desktop hp-scan: bb_marvell.c 380: invalid message status: msg=-101253637 status=-33555464 hp:/net/HP_LaserJet_Professional_M1217nfw_MFP?ip=192.168.2.7
Apr 11 00:36:11 mostafa-desktop hp-scan: hp-scan[4790]: error: SANE: Error during device I/O (code=9)
Apr 11 00:36:11 mostafa-desktop hp-scan: bb_marvell.c 380: invalid message status: msg=-84017412 status=-16845318 hp:/net/HP_LaserJet_Professional_M1217nfw_MFP?ip=192.168.2.7
Apr 11 00:36:11 mostafa-desktop hp-scan: io/hpmud/hpmud.c 342: device_cleanup: device uri=hp:/net/HP_LaserJet_Professional_M1217nfw_MFP?ip=192.168.2.7
Apr 11 00:36:11 mostafa-desktop hp-scan: io/hpmud/hpmud.c 348: device_cleanup: close channel 21...
Apr 11 00:36:12 mostafa-desktop hp-scan: io/hpmud/hpmud.c 350: device_cleanup: done closing channel 21
Apr 11 00:36:12 mostafa-desktop hp-scan: io/hpmud/hpmud.c 354: device_cleanup: close device dd=1...
Apr 11 00:36:12 mostafa-desktop hp-scan: io/hpmud/hpmud.c 356: device_cleanup: done closing device dd=1
Apr 11 00:39:02 mostafa-desktop CRON[4878]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)
Apr 11 00:39:21 mostafa-desktop kernel: [106356.583647] handle_rx_packet: invalid, small RX packet : 1

Occasionally the scan is successful and I get a nice pdf in the end, but this isn't very often at this state the scanner with adf is not reliable enough to be usable. Also over the past week I tried a combination of options for hp-scan and different applications like simple-scan and xsane but nothing worked reliably.

I attached here hp-check.log and scan.log

* Note: This is different from the printer model for this original bug report, but because I don't know if this problem, which appears to be very similar, should be assigned a different bug report or not. I thought perhaps I'd post this here and you may be able to decide.

Revision history for this message
moftasa (mostafa-gmail) wrote :
Revision history for this message
goutam kodu (goutam-hplip) wrote :

We shall take a look into the issue and get back to you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.