HP_LaserJet_M1522nf_MFP scanimage: sane_read: Operation was cancelled

Bug #408366 reported by Buklov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Unassigned
sane-backends (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

[test@gromada ~]$ hp-scan
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.9.6b)
Scan Utility ver. 2.1

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:/usb/HP_LaserJet_M1522nf_MFP?serial=00VNGT964GVH

warning: No destinations specified. Adding 'file' destination by default.
warning: File destination enabled with no output file specified.
Setting output format to JPEG for color/lineart mode.
warning: Defaulting to '/home/test/hpscan001.jpg'.
Using device hpaio:/usb/HP_LaserJet_M1522nf_MFP?serial=00VNGT964GVH
Opening connection to device...

Resolution: 300dpi
Mode: color
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: /home/test/hpscan001.jpg

Warming up...

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

Outputting to destination 'file':
Saving to file /home/test/hpscan001.jpg

Done.

hp-scan work ok

bat scanimage don't worked

[test@gromada ~]$ scanimage
P6
# SANE data follows
637 876
255
scanimage: sane_read: Operation was cancelled

in messages
Aug 4 01:06:42 gromada scanimage: sane_hpaio_read(maxLength=32768): User cancelled!
Aug 4 01:06:42 gromada scanimage: sane_hpaio_cancel: already cancelled!

os:centos 5.3
hplip-3.9.6b_rhel-5.0.i386.rpm

Revision history for this message
Данило Шеган (danilo) wrote :

This is a problem in Ubuntu. Note that it was marked as 'Invalid' only in Launchpad: it's still open in Ubuntu. You might also want to check http://ubuntuforums.org or https://answers.launchpad.net/ubuntu if you are looking for help.

Changed in rosetta:
status: New → Invalid
Revision history for this message
Fang Zhang (salviati) wrote :

I encountered similar problem with the same printer type (M1522nf). hp-scan and scanimage succeed sometimes but also possibly fail halfway during the scan and scanimage gives the same output. hp-check -t find no warnings or errors.
stuckey reported a similar problem at https://answers.launchpad.net/hplip/+question/74176

I checked my /var/log/syslog and find that when scanimage fails some dumping information in http.c is logged:

Sep 17 18:58:03 SGTLSRV scanimage: sane_hpaio_read(maxLength=32768): User cancelled!
Sep 17 18:58:03 SGTLSRV scanimage: sane_hpaio_cancel: already cancelled!
Sep 17 18:58:03 SGTLSRV scanimage: http.c 344: invalid http_status=0
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=8
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=2048
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=7
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=2048
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=7
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=708
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=7
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=142
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=5
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=445
Sep 17 18:58:03 SGTLSRV scanimage: http.c 348: dumping len=7
Sep 17 18:58:03 SGTLSRV scanimage: http.c 188: timeout reading data sec_timeout=1

I guess it was because of scanimage's trying to scan via network, but M1522nf does NOT support network scanning, so the request will soon be timed out and scan process stops halfway.
I forced scanimage to connect via USB by using -d parameter, and till now the scanner is working well. However I need further tests to ensure the problem is completely solved.

affects: ubuntu → sane-backends (Ubuntu)
Revision history for this message
Michael Nagel (nailor) wrote :

There is bug 575191 claiming this has been fixed? is this the case?

Changed in sane-backends (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for sane-backends (Ubuntu) because there has been no activity for 60 days.]

Changed in sane-backends (Ubuntu):
status: Incomplete → Expired
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.