[sane-devel] Fwd: Re: 1.0.25 won't find epson 10000xl.

Olaf Meeuwissen paddy-hack at member.fsf.org
Fri Nov 20 09:09:42 UTC 2015


Forwarding to the list.

# Should set a Reply-To on my list mails ...

Tom Myers writes:

> Thank you so much.  Your play by play was very helpful in my understanding.  The issue is really the exclusive access. 
>
> 37180 ??         0:03.35 /Library/Image Capture/Devices/EPSON Scanner.app/Contents/MacOS/EPSON Scanner
> kill 37180
>
>
> So by force quitting the Epson Scanner process which had it open exclusively open, all works well!
>
> I redid the same test with the epson2.conf to being the default but with the net commented out (previously I had left the net in and added checking for the 10000xl and 11000xl into the file.)
>
> Below is the relevant code that is the issue. 
>
>
> SANE_DEBUG_SANEI_USB=127 SANE_DEBUG_EPSON2=10 scanimage -d epson2 --format=tiff > /tmp/ix.tiff
>
> [sanei_usb] sanei_usb_find_devices: vendor=0x04b8, product=0x0129
> [epson2] attach_one_usb: dev = libusb:003:006-04b8-0129-ff-ff
> [epson2] attach: devname = libusb:003:006-04b8-0129-ff-ff, type = 3
> [epson2] e2_dev_init
> [epson2] open_scanner: libusb:003:006-04b8-0129-ff-ff
> [sanei_usb] sanei_usb_open: trying to open device `libusb:003:006-04b8-0129-ff-ff'
> usb_os_open: 04b8:0129
> usb_claim_interface: called for interface 0
> Interface 0 of device is 0x0000106b
> claim_interface: Interface 0 of device from QueryInterface is 0x7fd23a900600
> USB error: claim_interface(USBInterfaceOpen): another process has device opened for exclusive access
> USB error: usb_claim_interface: couldn't claim interface
> [sanei_usb] sanei_usb_open: libusb complained: usb_claim_interface: couldn't claim interface
> usb_os_close: 04b8:0129
> [epson2] libusb:003:006-04b8-0129-ff-ff open failed: Invalid argument
> …..
> [epson2] no device detected
> scanimage: open of device epson2 failed: Invalid argument
> [epson2] sane_epson2_exit
> [epson2] free_devices
>
>
>
>
>
>> 
>>>> On Nov 13, 2015, at 4:19 AM, Olaf Meeuwissen <paddy-hack at member.fsf.org> wrote:
>>>> [...]
>>>> 
>>>> Can you retry with SANE_DEBUG_SANEI_USB=127 and SANE_DEBUG_EPSON2=10?
>> 
>> I'll be snipping the "uninteresting" bits and comment on the log as I
>> walk through it.
>> 
>>> LadyLex-i7:sane-backends-1.0.25 tmyers$ 
>>>  [Restored Nov 13, 2015, 11:42:50 AM]
>>> SANE_DEBUG_SANEI_USB=127 SANE_DEBUG_EPSON2=10 scanimage -d epson2 --format=tiff > /tmp/ix.tiff
>>> [...]
>>> usb_set_debug: Setting debugging level to 255 (on)
>> 
>> That's libusb-0.1.
>> 
>>> [sanei_usb] sanei_usb_scan_devices: marking existing devices
>>> [sanei_usb] libusb_scan_devices: Looking for libusb devices
>> 
>> And that too.
>> 
>>> [... looping over busses and devices ...]
>>> libusb/darwin.c usb_os_find_devices: Found 022-04b8-0129-ff-ff on 003 at location 0x336592896x
>> 
>> That's an Epson Expression 10000XL.
>> 
>>> usb_os_open: 04b8:0129
>>> libusb/darwin.c usb_control_msg (device: 022-04b8-0129-ff-ff): 128 6 512 0 0x7fff502ce7d0 8 1000
>>> libusb/darwin.c usb_control_msg (device: 022-04b8-0129-ff-ff): 128 6 512 0 0x7fea02d01040 32 1000
>>> usb_os_close: 04b8:0129
>>> [...]
>>> [sanei_usb] libusb_scan_devices: found libusb device (0x04b8/0x0129) interface 0  at libusb:003:022-04b8-0129-ff-ff
>>> [sanei_usb] store_device: add dn 2 with libusb:003:022-04b8-0129-ff-ff
>>> [sanei_usb] sanei_usb_scan_devices: device 00 is libusb:001:006-0b95-1790-ff-ff
>>> [sanei_usb] sanei_usb_scan_devices: device 01 is libusb:002:006-05ac-8286-ff-01
>>> [sanei_usb] sanei_usb_scan_devices: device 02 is libusb:003:022-04b8-0129-ff-ff
>>> [sanei_usb] sanei_usb_scan_devices: found 3 devices
>> 
>> Of which one is your Epson Expression 10000XL.
>> 
>>> [epson2] sane_epson2_open: name =
>> 
>> The epson2 backend starts looking for the first supported scanner.
>> 
>>> [...]
>>> [sanei_usb] sanei_usb_find_devices: vendor=0x04b8, product=0x0129
>>> [epson2] attach_one_usb: dev = libusb:003:022-04b8-0129-ff-ff
>>> [epson2] attach: devname = libusb:003:022-04b8-0129-ff-ff, type = 3
>>> [epson2] e2_dev_init
>>> [epson2] open_scanner: libusb:003:022-04b8-0129-ff-ff
>>> [sanei_usb] sanei_usb_open: trying to open device `libusb:003:022-04b8-0129-ff-ff'
>>> usb_os_open: 04b8:0129
>>> usb_claim_interface: called for interface 0
>>> Interface 0 of device is 0x000010bb
>>> claim_interface: Interface 0 of device from QueryInterface is 0x7fea05201900
>>> USB error: claim_interface(USBInterfaceOpen): another process has device opened for exclusive access
>>> USB error: usb_claim_interface: couldn't claim interface
>>> [sanei_usb] sanei_usb_open: libusb complained: usb_claim_interface: couldn't claim interface
>>> usb_os_close: 04b8:0129
>>> [epson2] libusb:003:022-04b8-0129-ff-ff open failed: Invalid argument
>> 
>> It found the Epson Expression 10000XL but something else has already
>> claimed exclusive access.
>> 
>>> [...]
>>> [epson2] attach_one_config: len = 17, line = usb 0x04b8 0x0129
>>> [sanei_usb] sanei_usb_find_devices: vendor=0x04b8, product=0x0129
>> 
>> Yes, we found one ...
>> 
>>> [epson2] attach_one_usb: dev = libusb:003:022-04b8-0129-ff-ff
>>> [epson2] attach: devname = libusb:003:022-04b8-0129-ff-ff, type = 3
>>> [epson2] e2_dev_init
>>> [epson2] open_scanner: libusb:003:022-04b8-0129-ff-ff
>>> [sanei_usb] sanei_usb_open: trying to open device `libusb:003:022-04b8-0129-ff-ff'
>>> usb_os_open: 04b8:0129
>>> usb_claim_interface: called for interface 0
>>> Interface 0 of device is 0x000011ab
>>> claim_interface: Interface 0 of device from QueryInterface is 0x7fea05201850
>>> USB error: claim_interface(USBInterfaceOpen): another process has device opened for exclusive access
>>> USB error: usb_claim_interface: couldn't claim interface
>>> [sanei_usb] sanei_usb_open: libusb complained: usb_claim_interface: couldn't claim interface
>>> usb_os_close: 04b8:0129
>>> [epson2] libusb:003:022-04b8-0129-ff-ff open failed: Invalid argument
>> 
>> ... but, like before, it's been claimed exclusively by something else.
>> 
>>> [epson2] attach_one_config: len = 17, line = usb 0x04b8 0x014b
>>> [sanei_usb] sanei_usb_find_devices: vendor=0x04b8, product=0x014b
>> 
>> Huh?  Where's this coming from?  Your epson2.conf?
>> This is an Epson Expression 11000XL, by the way.
>> 
>>> [epson2] attach_one_config: len = 17, line = net autodiscovery
>> 
>> Oh, great :-|  Let's look for network attached devices.
>> 
>>> [epson2] e2_network_discovery, sent discovery packet
>>> [epson2]  response from 192.168.44.90
>>> [...]
>>> [epson2]  model name      : PID 08B9
>> 
>> Okay so you have a WorkForce 76x0 on your network somewhere.
>> 
>>> [...]
>>> [epson2] open_scanner: net:192.168.44.90
>> 
>> Let's use this then.
>> 
>>> [...]
>>> [epson2] e2_send: FS G
>>> [...]
>>> [epson2] e2_scan_finish
>>> [epson2] * sane_epson2_cancel
>>> [epson2] * sane_epson2_close
>>> [epson2] close_scanner: fd = 3
>>> [epson2] sanei_epson_net_unlock
>>> [epson2] sane_epson2_exit
>> 
>> So, what went wrong?
>> 
>> From the subject, I assume you expected this to scan from your 10000XL.
>> Instead, it scanned from a WorkForce 76x0.  I have no idea where that
>> 11000XL is coming from.
>> 
>> You can disable the networked device in epson2.conf easily enough but
>> that still does not allow you to scan with the 10000XL.  The log quite
>> clearly indicates that some other application already grabbed exclusive
>> access.  Any idea which application that might be?
>> 
>> Would you happen to have saned running (or started by xinetd on demand)?
>> Maybe some monitoring application for TWAIN getting in the way.  I have
>> zero experience with running SANE-TWAIN on a Mac so I'm just shooting in
>> the dark.  Maybe you can provide a list of *all* processes that are
>> running when you run this scanimage command?  That might shed some light
>> on this.  Have a look at the ps manual page.
>> 
>> Hope this helps,

-- 
Sent with my mu4e
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ElCapitanDebug.txt
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20151120/6ad50503/attachment-0001.txt>


More information about the sane-devel mailing list