regression: cannot open network scanner with error "unable to read device-id ret=-1"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Fix Released
|
Undecided
|
Unassigned | ||
hplip (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
under Ubuntu 12.04 i could scan perfectly via the network from my HP Photosmart Premium MFP (HP C309A), using gscan2pdf as frontend.
during Quantal beta and now on Quantal release, i cannot access the network-connected scanner anymore: when opening the scan dialog in gscan2pdf, the error message displayed is "Error opening device: End of file reached".
on closer inspection, and having tried all the different backends available in gscan2pdf, this seems related to the package libsane-hpaio: if i downgrade this single package to libsane-
in syslog, these are the lines that appear when using the newer libsane-hpaio from Quantal when a frontend application tries to access the scanner:
perl: io/hpmud/pp.c 627: unable to read device-id ret=-1
perl: io/hpmud/hpmud.c 611: invalid channel_open state
perl: failed to open scan channel: scan/sane/hpaio.c 659
perl: sane_hpaio_cancel: already cancelled!
perl: io/hpmud/hpmud.c 611: invalid channel_open state
perl: failed to open scan channel: scan/sane/hpaio.c 659
perl: sane_hpaio_cancel: already cancelled!
perl: io/hpmud/pp.c 627: unable to read device-id ret=-1
hp-check completes without errors nor warnings and correctly finds the network-connected scanner:
-------
| DISCOVERED SCANNER DEVICES |
-------
device `hpaio:
hp-scan displays a similar error message to gscan2pdf:
$ hp-scan -d hpaio:/
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:/
Opening connection to device...
error: SANE: End of file reached (code=5)
$
and the corresponding error messages in syslog are:
python: io/hpmud/pp.c 627: unable to read device-id ret=-1
hp-scan: hp-scan[10183]: error: SANE: End of file reached (code=5)
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: libsane-hpaio 3.12.6-3ubuntu4
Uname: Linux 3.6.2-030602-
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
Date: Mon Oct 22 16:51:47 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
Lpstat:
device for hp-cute: hp:/net/
device for hp-cute-fax: hpfax:/
MachineType: System manufacturer System Product Name
Papersize: a4
PpdFiles:
hp-cute: HP Photosmart c309a Series, hpcups 3.12.6
hp-cute-fax: HP Fax hpcups
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: hplip
UpgradeStatus: Upgraded to quantal on 2012-09-09 (42 days ago)
dmi.bios.date: 07/25/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1001
dmi.board.
dmi.board.name: P5B-VM
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
description: | updated |
i should add that after several attempts to isolate the issue, what led me to try to downgrade packages related to the scan system one at a time to isolate a possible regression was this post (user is on Fedora): forums. fedoraforum. org/showthread. php?t=282178
http://