Scanning with version 3.12.6 results in End Of File error messages

Bug #1015319 reported by The Schroedinger Hepcat
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
HPLIP
Fix Released
Undecided
Sarbeswar Meher
hplip (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After updating to version 3.12.6 from 3.12.4, trying to scan (with hp-scan, scan-image, or xsane) results in an End of File error with the network printer HP Officejet Pro 8500 Premier. I attempted a full uninstall and reinstall from scratch in case the upgrade was in error, but that failed as well. Reverting to 3.12.4 resolves the issue (though the annoying bug that it will not scan the back of the last page in duplex mode still exists, which I was hoping would be resolved in 3.12.6).

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

Hi,

Please can you provide us the terminal output of "hp-scan -g" command. Also provide us the output of "hp-check -t" command.
We will look into the issue and get to you back.

Regards,
Goutam Kodu

Revision history for this message
Rob Valkass (rvalkass) wrote :

I can confirm I have the same problem with a Photosmart C309a, which worked flawlessly under 3.12.4, but now fails with 3.12.6 giving the following error:

Failed to open device `hpaio:/usb/Photosmart_C309a_series?serial=<redacted>': End of file reached.

As requested, the outputs of those two commands are attached (hp-check -t as file hp-check.log and hp-scan -g below).

[rob@hydrogen ~]$ hp-scan -g

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

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.

hp-scan[2622]: debug: getDeviceUri(None, None, ['hpaio'], {'scan-type': (<built-in function gt>, 0)}, , True)
hp-scan[2622]: debug: Mode=0
hp-scan[2622]: debug: hp:/usb/Photosmart_C309a_series?serial=<redacted>: back_end:hp is_hp:True bus:usb model:Photosmart_C309a_series serial:<redacted> dev_file: host: zc: port:1
hp-scan[2622]: debug: Cache miss: photosmart_c309a_series
hp-scan[2622]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-scan[2622]: debug: Searching for section [photosmart_c309a_series] in file /usr/share/hplip/data/models/models.dat
hp-scan[2622]: debug: Found section [photosmart_c309a_series] in file /usr/share/hplip/data/models/models.dat
hp-scan[2622]: debug: hpfax:/usb/Photosmart_C309a_series?serial=<redacted>: back_end:hpfax is_hp:True bus:usb model:Photosmart_C309a_series serial:<redacted> dev_file: host: zc: port:1
hp-scan[2622]: debug: {'hpaio:/usb/Photosmart_C309a_series?serial=<redacted>': ['Photosmart_C309a']}
Using device: hpaio:/usb/Photosmart_C309a_series?serial=<redacted>

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/Photosmart_C309a_series?serial=<redacted>
Opening connection to device...
error: SANE: End of file reached (code=5)

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

Thank you for providing us the log file. We are looking into the issue. We will get to you back soon on this.

Sorry for the inconvenience.

Regards,
Goutam

Revision history for this message
Rob Valkass (rvalkass) wrote : Re: [Bug 1015319] Re: Scanning with version 3.12.6 results in End Of File error messages

I can also add that downgrading to version 3.12.4 solves the problem.
On Jul 15, 2012 7:55 PM, "goutam kodu" <email address hidden> wrote:

> Thank you for providing us the log file. We are looking into the issue.
> We will get to you back soon on this.
>
> Sorry for the inconvenience.
>
>
> Regards,
> Goutam
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1015319
>
> Title:
> Scanning with version 3.12.6 results in End Of File error messages
>
> Status in HP Linux Imaging and Printing:
> New
>
> Bug description:
> After updating to version 3.12.6 from 3.12.4, trying to scan (with hp-
> scan, scan-image, or xsane) results in an End of File error with the
> network printer HP Officejet Pro 8500 Premier. I attempted a full
> uninstall and reinstall from scratch in case the upgrade was in error,
> but that failed as well. Reverting to 3.12.4 resolves the issue
> (though the annoying bug that it will not scan the back of the last
> page in duplex mode still exists, which I was hoping would be resolved
> in 3.12.6).
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/hplip/+bug/1015319/+subscriptions
>

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

Can you please clearly specify what is your problem? Is the problem happening only in duplex mode? If so, please do the following changes..

- Goto the folder where you have extracted hplip-3.12.6. Go inside /scan/sane and open bb_ledm.c file
- Goto line#805, and replace the line

if(strstr(buf, ADF_EMPTY)) return 0;

with the following..

  if(strstr(buf, ADF_EMPTY))
  {

     if (ps->currentInputSource ==IS_ADF_DUPLEX && ps->page_id % 2 == 1)
        return 1;
     else
        return 0;
  }

- Now goto /hplip-3.12.6 folder and do 'make' and 'sudo make install'. Hope this would solve your problem.

Changed in hplip:
status: New → In Progress
Revision history for this message
Jürg Billeter (j-bitron) wrote :

This also affects simplex/flatbed scanning, at least on my system. I have a Photosmart C310 that works fine with 3.12.4 but refuses to scan with 3.12.6. The device is connected via USB.

Revision history for this message
Rob Valkass (rvalkass) wrote :

I have not attempted scanning using the ADF, but have been using the flatbed part of the device. In 3.12.4 the device automatically detected which scanning method was being used and therefore used the appropriate source (ie. if the ADF reported it was empty, use the flatbed).

In 3.12.6 the "End of File" error occurs before the scanner makes any attempt at scanning (at least as far as I can tell from watching the device). The ADF makes no noise, and the flatbed scanner makes no attempt to move. Later this evening I'll try recompiling 3.12.6 with your changes, and try scanning both with the ADF and with the flatbed.

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

The same thing is happening to me with the HP Officejet Pro L7680, as to getting an end of file error, as mentioned in post #7 and #1. With the 3.12.6 driver I do not even get far enough to scan any document much less using duplex.

I did as instructed above in post #5 and there is no difference in response. I still get the end of file code 5 error and the scanner does nothing. The error is thrown immediately and nothing in the scanner even moves. I detail my results here:

https://bugs.launchpad.net/bugs/1027021

I suppose that this end of file error is along the lines of the bug I reported in the above link in this post, although the duplexing part mentioned above does not apply. The change in code outlined in #5 above made no change in the outcome. I need my scanner and will have to downgrade to 3.12.4 until this issue is fixed.

If you wish to combine bugs in my link above with this one, it should be alright as they do appear to be related.

Revision history for this message
resplin (resplin) wrote :

I had the same problem with my HP OfficeJet Pro L7590. Downgrading to 3.12.4 worked. I documented my steps for building the 3.12.4 debs here:

http://askubuntu.com/questions/153746/xsane-failed-to-open-device-hpaio-net-photosmart-c5100-serieszc-hp5180-err/178838#178838

Revision history for this message
Soren Roug (y-soren-s) wrote :

I had the same problem with my HP Photosmart C310. Downgrading worked.

$ hp-scan

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

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.

Using device: hpaio:/net/Photosmart_Prem_C310_series?ip=192.168.0.4

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/net/Photosmart_Prem_C310_series?ip=192.168.0.4
Opening connection to device...
error: SANE: Error during device I/O (code=9)

# yum downgrade hplip-3.12.4 hplip-common-3.12.4 hplip-libs-3.12.4 hplip-gui-3.12.4 libsane-hpaio-3.12.4 hpijs-3.12.4

$ hp-scan

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

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.

Using device: hpaio:/net/Photosmart_Prem_C310_series?ip=192.168.0.4

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/net/Photosmart_Prem_C310_series?ip=192.168.0.4
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.899994mm, 296.925995mm)
  Width: 215.899994mm
  Height: 296.925995mm
Destination(s): file
Output file:
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/roug/hpscan001.png'.

Warming up...

Scanning...
Expecting to read 8.5 MB from scanner.
Reading data: [******************************************************************************************************************] 100% 8.5 MB
Read 8.5 MB from scanner.
Closing device.

Outputting to destination 'file':
Saving to file /home/roug/hpscan001.png

Done.

Ani Balakrishnan (anib)
Changed in hplip:
status: In Progress → Fix Committed
assignee: nobody → Sarbeswar Meher (sarbeswar-meher)
Revision history for this message
Bill Royal (bill-royal) wrote :

I am also continuing to have this problem with my L7590. Any chance the fix is going to make it into 12.10 RC?

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

This will be fixed in 3.12.10 verion, the release is happening soon.

Changed in hplip:
status: Fix Committed → Fix Released
Revision history for this message
Henrik Sölver (henrik-solver) wrote :

I built hplip 3.12.11 and still have the same problem.

hp-scan -g gives.

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

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.

hp-scan[2710]: debug: getDeviceUri(None, None, ['hpaio'], {'scan-type': (<built-in function gt>, 0)}, , True)
hp-scan[2710]: debug: Mode=0
hp-scan[2710]: debug: Device URI ipp://192.168.0.6:631/printers/DCP-8020 is invalid/unknown
hp-scan[2710]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[2710]: debug: hp:/net/Photosmart_C309a_series?zc=hpskrivare: back_end:hp is_hp:True bus:net model:Photosmart_C309a_series serial: dev_file: host:hpskrivare zc:hpskrivare port:1
hp-scan[2710]: debug: Cache miss: photosmart_c309a_series
hp-scan[2710]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-scan[2710]: debug: Searching for section [photosmart_c309a_series] in file /usr/share/hplip/data/models/models.dat
hp-scan[2710]: debug: Found section [photosmart_c309a_series] in file /usr/share/hplip/data/models/models.dat
hp-scan[2710]: debug: {'hpaio:/net/Photosmart_C309a_series?zc=hpskrivare': ['Photosmart_C309a']}
Using device: hpaio:/net/Photosmart_C309a_series?zc=hpskrivare

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/net/Photosmart_C309a_series?zc=hpskrivare
Opening connection to device...
error: SANE: End of file reached (code=5)

Revision history for this message
Alexander List (alexlist) wrote :

I can confirm #13 above - I'm running Ubuntu 12.10 x86_64, device is a HP Photosmart Premium c309a. I also get the EOF (code=5) error.

Revision history for this message
Alexander List (alexlist) wrote :

That is, the problem still exists on 3.12.11 ...

Revision history for this message
Peter Wollny (pwollny) wrote :
Download full text (3.2 KiB)

3.12.11-1 (debian experimental) fixes the problem for me

$ hp-scan -g

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

---snip---

hp-scan[7586]: debug: hp:/net/Officejet_Pro_L7500?zc=Printer: back_end:hp is_hp:True bus:net model:Officejet_Pro_L7500 serial: dev_file: host:Printer zc:Printer port:1
hp-scan[7586]: debug: Cache miss: officejet_pro_l7500
hp-scan[7586]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-scan[7586]: debug: Searching for section [officejet_pro_l7500] in file /usr/share/hplip/data/models/models.dat
hp-scan[7586]: debug: Found section [officejet_pro_l7500] in file /usr/share/hplip/data/models/models.dat
hp-scan[7586]: debug: hpfax:/net/Officejet_Pro_L7500?zc=Printer: back_end:hpfax is_hp:True bus:net model:Officejet_Pro_L7500 serial: dev_file: host:Printer zc:Printer port:1
hp-scan[7586]: debug: hp:/net/Officejet_Pro_L7500?zc=Printer: back_end:hp is_hp:True bus:net model:Officejet_Pro_L7500 serial: dev_file: host:Printer zc:Printer port:1
hp-scan[7586]: debug: hp:/net/Officejet_Pro_L7500?zc=Printer: back_end:hp is_hp:True bus:net model:Officejet_Pro_L7500 serial: dev_file: host:Printer zc:Printer port:1
hp-scan[7586]: debug: hp:/net/Officejet_Pro_L7500?zc=Printer: back_end:hp is_hp:True bus:net model:Officejet_Pro_L7500 serial: dev_file: host:Printer zc:Printer port:1
hp-scan[7586]: debug: Device URI socket://192.168.1.5:9100 is invalid/unknown
hp-scan[7586]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[7586]: debug: Device URI socket://192.168.1.5:9101 is invalid/unknown
hp-scan[7586]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[7586]: debug: Device URI dnssd://NM1662E6._ipp._tcp.local/ is invalid/unknown
hp-scan[7586]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[7586]: debug: Device URI cups-pdf:/ is invalid/unknown
hp-scan[7586]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[7586]: debug: {'hpaio:/net/Officejet_Pro_L7500?zc=Printer': ['Officejet_Pro_L7500', 'Officejet_Pro_L7500_old_driver', 'Officejet_Pro_L7500_pour_scan', 'OJ_Pro_L7500_2pagesA4'], 'hpaio:/net/Officejet_Pro_8600?zc=HP8F7B78': ['Officejet_Pro_8600']}

-----------------
| SELECT DEVICE |
-----------------

  Num Scan device URI
  -------- -----------------------------------------
  0 hpaio:/net/Officejet_Pro_L7500?zc=Printer
  1 hpaio:/net/Officejet_Pro_8600?zc=HP8F7B78

Enter number 0...1 for device (q=quit) ?0
warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/net/Officejet_Pro_L7500?zc=Printer
Opening connection to device...
hp-scan[7586]: debug: Device supported resolutions [75, 100, 150, 200, 300, 600, 1200, 2400]

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.899994mm, 381.000000mm)
  Width: 215.899994mm
  Height: 381.000000mm
Destination(s): file
Output file:
hp-scan[7586]: debug: Supported source Options: ['Auto', 'Flatbed', 'ADF'] size=3
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
w...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hplip (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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