#983380 sane-escl: cannot open device when ipp-usb is running

Package:
libsane1
Source:
sane-backends
Description:
API library for scanners
Submitter:
alain
Date:
2022-06-06 15:51:06 UTC
Severity:
normal
Tags:
#983380#5
Date:
2021-02-23 08:53:09 UTC
From:
To:
last week-end tried to scan a very important document .

no more xsane , simple-scan , hp-scan or vuescan works .

alain@sid:~$ hp-scan

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

Copyright (c) 2001-18 HP 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.
-----------------
| SELECT DEVICE |
-----------------

  Num       Scan device URI
  --------  -------------------------------------------------
  0         escl:http://127.0.0.1:60000
  1*        hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX

Enter number 0...1 for device (q=quit, <enter>=default: 1*) ?
warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX
Opening connection to device...
error: SANE: Error during device I/O (code=9)


alain@sid:~$ hp-scan

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

Copyright (c) 2001-18 HP 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.
----------------- | SELECT DEVICE | ----------------- Num Scan device URI -------- ------------------------------------------------- 0 escl:http://127.0.0.1:60000 1* hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX Enter number 0...1 for device (q=quit, <enter>=default: 1*) ?0 warning: No destinations specified. Adding 'file' destination by default. Using device escl:http://127.0.0.1:60000 Opening connection to device... error: SANE: Out of memory (code=10) alain@sid:~$ systemctl list-units "ipp-usb*" | grep service ipp-usb.service loaded active running Daemon for IPP over USB printer support alain@sid:~$ scanimage -L device `escl:http://127.0.0.1:60000' is a HP ENVY 5530 series [FE04D6] (USB) flatbed scanner device `hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX' is a Hewlett-Packard ENVY_5530_series all-in-one your command : simple-scan escl:http://127.0.0.1:60000 was nearly ok . simple-scan started to connect and , quickly , closed itself : "cannot connect" alain@sid:~$ lsusb -v | grep -A 3 bInterfaceClass.*7 Couldn't open device, some information will be missing Couldn't open device, some information will be missing Couldn't open device, some information will be missing bInterfaceClass 7 Printer bInterfaceSubClass 1 Printer bInterfaceProtocol 4 iInterface 0 -- bInterfaceClass 7 Printer bInterfaceSubClass 1 Printer bInterfaceProtocol 2 Bidirectional iInterface 0 -- bInterfaceClass 7 Printer bInterfaceSubClass 1 Printer bInterfaceProtocol 4 iInterface 0 can't get debug descriptor: Resource temporarily unavailable Couldn't open device, some information will be missing -- bInterfaceClass 7 Printer bInterfaceSubClass 1 Printer bInterfaceProtocol 4 iInterface 0 Couldn't open device, some information will be missing Couldn't open device, some information will be missing Couldn't open device, some information will be missing Couldn't open device, some information will be missing Couldn't open device, some information will be missing Couldn't open device, some information will be missing That is a possible upstream bug in SANE for this device. alain@sid:~$ sudo apt install --reinstall sane-airscan [sudo] Mot de passe de alain : Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait 0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 9 non mis à jour. Il est nécessaire de prendre 117 ko dans les archives. Après cette opération, 0 o d'espace disque supplémentaires seront utilisés. Réception de :1 http://deb.debian.org/debian testing/main amd64 sane-airscan amd64 0.99.24-1 [117 kB] 117 ko réceptionnés en 0s (1 268 ko/s) (Lecture de la base de données... 283524 fichiers et répertoires déjà installés.) Préparation du dépaquetage de .../sane-airscan_0.99.24-1_amd64.deb ... Dépaquetage de sane-airscan (0.99.24-1) sur (0.99.24-1) ... Paramétrage de sane-airscan (0.99.24-1) ... Traitement des actions différées (« triggers ») pour man-db (2.9.4-2) ... alain@sid:~$ scanimage -L device `escl:http://127.0.0.1:60000' is a HP ENVY 5530 series [FE04D6] (USB) flatbed scanner device `airscan:e0:HP ENVY 5530 series [FE04D6] (USB)' is a eSCL HP ENVY 5530 series [FE04D6] (USB) ip=127.0.0.1 device `hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX' is a Hewlett-Packard ENVY_5530_series all-in-one still understood nothing . is that what you wanted ? do i have to open a "sane" bug ? thanks to Brian Potkin .
#983380#10
Date:
2021-02-23 10:50:49 UTC
From:
To:
reassign 983380 hplip 3.21.2+dfsg1-1
severity 983380 normal
thanks

Hello alain,

thank you for spending your time helping to make Debian better with
this bug report.

In the past, the error message "error: SANE: Error during device I/O
(code=9)" always meant an error in the hplip package. In addition, the
version hplip 3.21.2+dfsg1-1 is also heavily buggy.

I therefore assign the error to the hplip package.

CU
Jörg


Am Dienstag, dem 23.02.2021 um 09:53 +0100 schrieb alain:

#983380#23
Date:
2021-02-23 17:39:34 UTC
From:
To:
What did you change before the scanner stopped working?  I see that
you are running hplip 3.21.2 which is not yet in testing.  Does a
downgrade to 3.20.11+dfsg0-2 fix the issue?  This would be very
important to know.

Some HP devices may need a proprietary firmware plugin that Debian
cannot ship.  What have you installed for firmware?

It would also help if you could provide the following:

* output of "scanimage -d hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX -vvvv --dont-scan > /tmp/si.ds"
  (scanimage is from package sane-utils)

* output of "scanimage -d hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX -vvvv --test > /tmp/si.test"

* the relevant dmesg output

* a tshark (package tshark) trace of the USB traffic when trying to
  scan (tracing USB traffic is a bit of an advanced topic; searching
  for "wireshark" "usbmon" on the web will give you some tutorials,
  but [1] and [2] should already be good starting points).

If you can make the scanner work with a downgrade, try to do the same
with the working configuration and see what is different in the
failing one.  Use diff for that if possible.

What concerns me is that lsusb throws errors which indicates that this
might be a problem with the device itself.

Good luck!

1: https://wiki.wireshark.org/CaptureSetup/USB
2: https://superuser.com/questions/873896/wireshark-usb-traces-explanations

#983380#30
Date:
2021-02-23 20:56:13 UTC
From:
To:
On Tue 23 Feb 2021 at 11:49:46 +0100, Jörg Frings-Fürst wrote:

reassign 983380 libsane1
thanks

Hello Jörg,

There isn't any bug in hplip. Please see #983349:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983349

I would have closed the report but it has information relating to a
failure of libsane-escl. Therefore, I reassigned the bug to libsane1
for the attention of its maintainer.

Regards,

Brian.

#983380#41
Date:
2021-08-28 12:29:44 UTC
From:
To:
tags 983380 + moreinfo
--


Hello,

please can you check if the bug in

 - sane-backends 1.0.32-4 (currently in testing)

still exists?

Thanks in advance

CU
Jörg

#983380#46
Date:
2021-08-29 08:24:21 UTC
From:
To:
$ scanimage -L
device `escl:http://127.0.0.1:60001' is a HP ENVY 5530 series [FE04D6]
(USB) platen scanner
device `airscan:e0:HP ENVY 5530 series [FE04D6] (USB)' is a eSCL HP ENVY
5530 series [FE04D6] (USB) ip=127.0.0.1
device `hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX' is a
Hewlett-Packard ENVY_5530_series all-in-one


$ hp-scan

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

Copyright (c) 2001-18 HP 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.
----------------- | SELECT DEVICE | -----------------   Num       Scan device URI   --------  -------------------------------------------------   0         escl:http://127.0.0.1:60001   1*        airscan:e0:HP ENVY 5530 series [FE04D6] (USB)   2         hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX Enter number 0...2 for device (q=quit, <enter>=default: 1*) ?q only the second line  works (airscan) no more line 0 and 2 works . sane-backends :  the sources are available in sid but the package is not compiled or installed. alain@sid:~$ lsb_release -a No LSB modules are available. Distributor ID:    Debian Description:    Debian GNU/Linux bookworm/sid Release:    unstable Codename:    sid alain@sid:~$ uname -a Linux sid 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux
#983380#53
Date:
2022-06-06 15:49:15 UTC
From:
To:
Hello,


no answer since more then three months.

So I close this bug.


CU
Jörg