HP Photosmart 5510 scanning after printing fails with timeout

Bug #884763 reported by Mark Huijgen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Amarnath Chitumalla

Bug Description

If I print something (e.g. cups test page) and then afterwards try to use the scan function via hp-scan or any other sane compatible program, it times out and no scan is obtained. If I unplug the device (USB connector) and plug it back in, scanning works perfectly till the next print job then it fails again.

I'm not using the wireless function of this printer.

hp-scan output:
Using device: hpaio:/usb/Photosmart_5510_series?serial=CN17B0438L05NR

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/Photosmart_5510_series?serial=CN17B0438L05NR
Opening connection to device...
warning: Invalid resolution. Using closest valid resolution of 300 dpi
warning: Valid resolutions are dpi.
Traceback (most recent call last):
  File "/usr/bin/hp-scan", line 636, in <module>
    res = valid_res[0]
IndexError: list index out of range

hp-check output attached.

I can provide more output on request.

Revision history for this message
Mark Huijgen (mark-sf-net) wrote :
Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

Just tried hooking up an HP Desktjet F2180 to this same system and on this AIO printer scanning works fine after printing.

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi Mark,

To analyze further, can you please provide some more information.

1) in one terminal run following command.
$ tailf /var/log/syslog >/tmp/syslog.txt &

2) run hp-scan in debug mode
$ hp-scan -g 2>1 |tee /tmp/hp-scan_out.txt

3) once scanning completes or error occurs. Please attach both hp-scan_out.txt and syslog.txt files.

Thanks & Regards,
Amarnath

Changed in hplip:
assignee: nobody → Amarnath Chitumalla (amarnath-chitumalla)
Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

To get a clean start I disconnected and reconnected the printer (start of syslog.txt).

Then ran hp-scan -g 2>&1 (hp-scan-working-beforeprinting).

Then printed a cups test page via the cups webinteface.

Then ran hp-scan -g 2>&1 again (hp-scan-notworking-afterprinting).

During the second scan attempt syslog.txt shows a 45 second io timeout in io/hpmud/musb.c 1460.

Printing still works fine at this point, but scanning wont work till I reconnect the printer. I've also attached printers.conf from cups which shows how the printer is configured in cups.

Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

hp-scan debug output scanning working before printing

Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

hp-scan debug output after printing when scanning fails

Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

Copy of printers.conf from cups

Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

Anything I can help with to futher debug this issue? I have some programming skills, so if you can give me some pointers where to start looking in the code to debug this problem, maybe I can dig up some more information to help fix this issue.

Could it be possible the printing backend leaves the printer in some unclean state making it unresponsive to scan requests until the usb connection is reinitialized?

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi Mark,
Sorry for late reply.

From logs, we are getting timeout error from device.
Here we are not able to reproduce. we will try again.

Meanwhile you can follow below steps:-
1) delete all print queues
$ system-config-printer

2) exit HP service from systray

3) re-configure printer
$hp-setup

Thanks & Regards,
Amarnath

Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

Tried the above steps, however no joy. Removed printer via system-config-printer, confirmed it was gone in cups. Reinstalled vai hp-setup. First did hp-scan, works, then printed a page in firefox, then tried hp-scan again and got exact same problem.

Did you guys test it on Ubuntu 11.04 with the hp packages from (the not yet released) Ubuntu precise?
hpijs_3.11.10-0ubuntu1_i386
hplib_3.11.10-0ubuntu1_i386
hplip-cups_3.11.10-0ubuntu1_i386
hplip-data_3.11.10-0ubuntu1_all
libhpmud0_3.11.10-0ubuntu1_i386
libsane-hpaio_3.11.10-0ubuntu1_i386

And I had to install a newer libjpeg: libjpeg8_8c-2ubuntu3_i386.

If you think its worth it I could compile hplip from source from http://hplipopensource.com to see if that makes any difference?

I also have a gentoo system here, Ill try and install hplip as well on this system to see if that makes any difference.

Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

Just tested this on a Gentoo system with hplip 3.11.10 and it has exactly the same issue.

hp-setup, hp-scan, print FF page, hp-scan and then it gets an timeout.

This however is a 64 bit build on the latest kernel:
Linux-3.1.0-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_E5800_@_3.20GHz-with-gentoo-2.0.3, cups version 1.4.8.

Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

Did another test with the latest hplip driver 3.11.12, still same issue.

Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

Also managed to find an SD card, USB mass storage function of the printer keeps functioning. It seems just the scanner endpoint is failing somehow after printing.

Printer status page print shows about printer firmware:
Firmware: EPL2CN1122AR
FW Patch: 0

Revision history for this message
Mark Huijgen (mark-sf-net) wrote :

Tested the same printer on a windows 7 32bit pc, no issues with scanning via the hpscan tool included in the windows driver, while 2 very different linux pc's have.

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.