[Bug 735424] New: Error communicating with scanner.
https://bugzilla.novell.com/show_bug.cgi?id=735424 https://bugzilla.novell.com/show_bug.cgi?id=735424#c0 Summary: Error communicating with scanner. Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: engineering@pt-global.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 12.1, sane-backends 1.0.22-15.1.2, throws an error when communicating with my USB scanner that is working fine under 11.0, Xsane 0.995, sane-backends 1.0.19-48.1. Scanner is Canon N1220U. Problem with Skanlite and xsane First attempt after rebooting finds scanner after a very long time and has I/O error communicating on any attempt to scan. Close scan package. Subsequent attempts have "No devices available" In YaST I see scanners Not Configured: (USB scanner (vendor=0x04a9, product=0x2207, chip=LM983x?) at libusb:002:012 Plusteck - no scanner recognised by this driver. If I try to edit 'not configured', I see my scanner model but no change to the state. Reproducible: Always Steps to Reproduce: 1.Connect scanner 2.Try to connect or configure in YaST 3. Actual Results: Doesn't work Expected Results: Scanner works -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735424 https://bugzilla.novell.com/show_bug.cgi?id=735424#c1 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jsmeix@suse.com InfoProvider| |engineering@pt-global.com Summary|Error communicating with |"I/O error" communicating |scanner. |with USB scanner Canon | |N1220U (using plustek | |driver) --- Comment #1 from Johannes Meixner <jsmeix@suse.com> 2011-12-09 15:28:37 UTC --- For USB scanners "I/O errors" are usually caused by whatever issue in the lower-level USB communication (e.g. libusb or the USB subsystem in the kernel). See http://en.opensuse.org/SDB:Configuring_Scanners in particular "Trouble-Shooting (Debugging)" but also "USB Cable Connection and Additional USB Hubs" and "USB Hardware + USB Kernel Modules + udev". Usually in case of "I/O error" trouble-shooting in the actual scanning software results nothing more than the already known "I/O error" so that you would have to do low-level USB trouble-shooting. Perhaps "dmesg" or /var/log/messages shows something of interest while the "I/O error" happpens for your USB scanner. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735424 https://bugzilla.novell.com/show_bug.cgi?id=735424#c2 --- Comment #2 from steve edmonds <engineering@pt-global.com> 2011-12-09 20:36:01 UTC --- Hi. No cable/hubs problem as runs fine on 11.0 box. lsusb Bus 002 Device 012: ID 04a9:2207 Canon, Inc. CanoScan 1220U dmesg | grep -i usb [ 2.842367] usb 2-1.6: new full speed USB device number 5 using ehci_hcd [ 2.941927] usb 2-1.6: New USB device found, idVendor=04a9, idProduct=2207 [ 2.941932] usb 2-1.6: New USB device strings: Mfr=64, Product=77, SerialNumber=0 [ 2.941942] usb 2-1.6: Product: CanoScan [ 2.941943] usb 2-1.6: Manufacturer: Canon ..... [ 1542.797074] usb 2-1.6: USB disconnect, device number 5 [ 1552.941535] usb 2-1.2: new full speed USB device number 8 using ehci_hcd [ 1553.040962] usb 2-1.2: New USB device found, idVendor=04a9, idProduct=2207 [ 1553.040967] usb 2-1.2: New USB device strings: Mfr=64, Product=77, SerialNumber=0 [ 1553.040970] usb 2-1.2: Product: CanoScan [ 1553.040972] usb 2-1.2: Manufacturer: Canon [ 1996.205329] usb 2-1.2: USB disconnect, device number 8 .... [ 3646.185141] usb 2-1.2: new full speed USB device number 12 using ehci_hcd [ 3646.284598] usb 2-1.2: New USB device found, idVendor=04a9, idProduct=2207 [ 3646.284603] usb 2-1.2: New USB device strings: Mfr=64, Product=77, SerialNumber=0 [ 3646.284606] usb 2-1.2: Product: CanoScan [ 3646.284608] usb 2-1.2: Manufacturer: Canon .... Disconnect and re-connect [184214.967121] usb 2-1.2: USB disconnect, device number 12 [184220.766506] usb 2-1.1: new full speed USB device number 20 using ehci_hcd [184220.865991] usb 2-1.1: New USB device found, idVendor=04a9, idProduct=2207 [184220.865995] usb 2-1.1: New USB device strings: Mfr=64, Product=77, SerialNumber=0 [184220.865998] usb 2-1.1: Product: CanoScan [184220.866001] usb 2-1.1: Manufacturer: Canon /var/log/messages Dec 10 09:28:14 wainui2 kernel: [184220.766506] usb 2-1.1: new full speed USB device number 20 using ehci_hcd Dec 10 09:28:14 wainui2 kernel: [184220.865991] usb 2-1.1: New USB device found, idVendor=04a9, idProduct=2207 Dec 10 09:28:14 wainui2 kernel: [184220.865995] usb 2-1.1: New USB device strings: Mfr=64, Product=77, SerialNumber=0 Dec 10 09:28:14 wainui2 kernel: [184220.865998] usb 2-1.1: Product: CanoScan Dec 10 09:28:14 wainui2 kernel: [184220.866001] usb 2-1.1: Manufacturer: Canon Dec 10 09:28:14 wainui2 mtp-probe: checking bus 2, device 20: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1" Dec 10 09:28:14 wainui2 mtp-probe: bus: 2, device: 20 was not an MTP device What next to try? I am using a KVM with USB mouse and keyboad as I migrate my 11.0 box to my 12.1 box. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735424 https://bugzilla.novell.com/show_bug.cgi?id=735424#c3 steve edmonds <engineering@pt-global.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|engineering@pt-global.com | --- Comment #3 from steve edmonds <engineering@pt-global.com> 2011-12-11 07:30:54 UTC --- Removed KVM, makes no difference. Reconnected scanner and ran scanimage -L device `hpaio:/net/Photosmart_Prem_C410_series?ip=10.2.1.4' is a Hewlett-Packard Photosmart_Prem_C410_series all-in-one device `plustek:libusb:002:025' is a Canon CanoScan N1220U flatbed scanner Tried to scan scanimage -d plustek:libusb:002:025 >image.pnm scanimage: open of device plustek:libusb:002:025 failed: Error during device I/O -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
scanimage -d plustek:libusb:002:032 -T [sanei_debug] Setting debug level of sanei_usb to 128. [sanei_usb] sanei_usb_init: marking existing devices [sanei_usb] sanei_usb_init: Looking for kernel scanner devices [sanei_usb] sanei_usb_init: Looking for libusb devices [sanei_usb] sanei_usb_init: device 0x1d6b/0x0002, interface 0 doesn't look like a scanner (9/9) .... [sanei_usb] sanei_usb_init: found libusb device (0x04a9/0x2207) interface 0 at
scanimage -d plustek:libusb:002:032 -T [sanei_debug] Setting debug level of dll to 4. [dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.22 [dll] sane_init/read_dlld: attempting to open directory `./dll.d' [dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d' [dll] sane_init/read_dlld: opendir failed: No such file or directory [dll] add_backend: adding backend `plustek' [dll] add_backend: adding backend `hpaio' [dll] sane_open: trying to open `plustek:libusb:002:032' [dll] load: searching backend `plustek' in `/usr/lib64/mpi/gcc/openmpi/lib64:/usr/lib64/sane' [dll] load: trying to load `/usr/lib64/mpi/gcc/openmpi/lib64/libsane-plustek.so.1' [dll] load: couldn't open `/usr/lib64/mpi/gcc/openmpi/lib64/libsane-plustek.so.1' (No such file or
https://bugzilla.novell.com/show_bug.cgi?id=735424 https://bugzilla.novell.com/show_bug.cgi?id=735424#c4 --- Comment #4 from steve edmonds <engineering@pt-global.com> 2011-12-12 19:31:01 UTC --- May be a libusb issue? With debugging SANE_DEBUG_SANEI_USB=128 libusb:002:032 [sanei_usb] store_device: add dn 0 with libusb:002:032 ...... [sanei_usb] sanei_usb_init: found 1 devices [sanei_usb] sanei_usb_init: device 00 is libusb:002:032 .... [sanei_usb] sanei_usb_open: trying to open device `libusb:002:032' libusb:error [op_set_configuration] failed, error -1 errno 32 [sanei_usb] sanei_usb_open: libusb complained: Numerical result out of range scanimage: open of device plustek:libusb:002:032 failed: Error during device I/O SANE_DEBUG_backend=128 scanimage: open of device plustek:libusb:002:032 failed: Error during device I/O SANE_DEBUG_DLL=4 directory) [dll] load: trying to load `/usr/lib64/sane/libsane-plustek.so.1' [dll] load: dlopen()ing `/usr/lib64/sane/libsane-plustek.so.1' [dll] init: initializing backend `plustek' [dll] init: backend `plustek' is version 1.0.0 scanimage: open of device plustek:libusb:002:032 failed: Error during device I/O [dll] sane_exit: exiting [dll] sane_exit: calling backend `plustek's exit function [dll] sane_exit: finished -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
I narrowed it down to being in a libusb_set_configuration, and specifically in libusb/os/linux_usbfs.c:op_set_configuration an error from the ioctl(), but couldn't find any reason that it might come back with EPIPE (errno 32), that's never mentioned in the manpages. .. [sanei_usb] sanei_usb_find_devices: vendor=0x04b0, product=0x4000 [coolscan3] cs3_open, device = libusb:002:009, interface = 2 [coolscan3] cs3_open, trying to open libusb:002:009, assuming USB interface [sanei_usb] sanei_usb_open: trying to open device `libusb:002:009' libusb:error [op_set_configuration] failed, error -1 errno 32 [sanei_usb] sanei_usb_open: libusb complained: Numerical result out of range [coolscan3] ...failed: Invalid argument. .. I have faced the same kind of issues. Depending on kernel/hardware combination, I sometime meet the same libusb error. Compiling with libusb-1.0 solves it for me. Maybe in your case you could try the "old" libusb, without
https://bugzilla.novell.com/show_bug.cgi?id=735424 https://bugzilla.novell.com/show_bug.cgi?id=735424#c5 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|"I/O error" communicating |libusb error (Numerical |with USB scanner Canon |result out of range) with |N1220U (using plustek |USB scanner Canon N1220U |driver) |(using plustek driver) --- Comment #5 from Johannes Meixner <jsmeix@suse.com> 2012-01-10 11:09:50 UTC --- The "sanei_usb_open: libusb complained: Numerical result out of range" issue is also discussed on the SANE upstream mailing list for a nikon coolscan IV scanner using the coolscan3 driver, see http://lists.alioth.debian.org/pipermail/sane-devel/2011-December/029353.htm... ------------------------------------------------------------------------------- [sane-devel] sane fails to recognize my nikon coolscan IV .. the compatibility layer ? What kernel version are you running ? ------------------------------------------------------------------------------- Therefore it really seems to be an issue in the newer libusb. See also bug #559697 and bug #596411 which are also related to the libusb compatibility library, see in particular https://bugzilla.novell.com/show_bug.cgi?id=559697#c7 regarding the principially different libusb versions. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=735424 https://bugzilla.novell.com/show_bug.cgi?id=735424#c6 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |engineering@pt-global.com --- Comment #6 from Johannes Meixner <jsmeix@suse.com> 2012-01-11 10:37:07 UTC --- Only for testing I compiled sane-backends with configure option --enable-libusb_1_0 in my openSUSE build service home project "home:jsmeix" so that it uses libusb1 dirtectly and avoids the libusb0 compatibility library which seems to cause such issues. You can download sane-backends from the openSUSE build service at http://download.opensuse.org/repositories/home:/jsmeix/openSUSE_12.1/x86_64/ The packages in my "home:jsmeix" project are only for testing, without any guarantee or warranty, and without any support. As an extreme example, this means if your complete computer center crashes because of those packages, it is only your problem. On the other hand this does not mean that those packages are known to be terrible broken but they are not thoroughly tested so that any unexpected issue can happen. The package works for my Canon CanoScan N1240U/LiDE30 scanner but it also had worked all the time for me even with the libusb0 compatibility library (i.e. I cannot reproduce your libusb issue so that I cannot reproduce whether or not the new package avoids this particular libusb issue). If you like, please test it and provide feedback if it works for you or provide debug messages as above if it does not work for you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com