[sane-devel] ScanSnap S1100 fails with out of memory
Per Dalgas Jakobsen
pdj at knaldgas.dk
Sat Jun 9 19:38:23 UTC 2012
The ScanSnap seems to use the epjitsu backend instead of the scansnap:
> # SANE_DEBUG_SANEI_USB=255 scanimage 2>debug.log >test.pnm
> ---
> ...
> [sanei_usb] sanei_usb_open: trying to open device `libusb:001:003'
> [sanei_usb] sanei_usb_open: configuration nr: 0
> [sanei_usb] sanei_usb_open: interface nr: 0
> [sanei_usb] sanei_usb_open: alt_setting nr: 0
> [sanei_usb] sanei_usb_open: endpoint nr: 0
> [sanei_usb] sanei_usb_open: direction: 128
> [sanei_usb] sanei_usb_open: address: 1 transfertype: 2
> [sanei_usb] sanei_usb_open: found bulk-in endpoint (address 0x01)
> [sanei_usb] sanei_usb_open: we already have a bulk-in endpoint
> (address: 0x81), ignoring the new one
> [sanei_usb] sanei_usb_open: endpoint nr: 1
> [sanei_usb] sanei_usb_open: direction: 0
> [sanei_usb] sanei_usb_open: address: 2 transfertype: 2
> [sanei_usb] sanei_usb_open: found bulk-out endpoint (address 0x02)
> [sanei_usb] sanei_usb_open: we already have a bulk-out endpoint
> (address: 0x02), ignoring the new one
> [sanei_usb] sanei_usb_open: opened usb device `libusb:001:003' (*dn=0)
> scanimage: sane_start: Out of memory
> [sanei_usb] sanei_usb_write_bulk: trying to write 2 bytes
> [sanei_usb] 000 1B D0 ..
> [sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 2 bytes
> [sanei_usb] sanei_usb_read_bulk: trying to read 1 bytes
> [sanei_usb] 000 06 .
> [sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
> [sanei_usb] sanei_usb_write_bulk: trying to write 1 bytes
> [sanei_usb] 000 00 .
> [sanei_usb] sanei_usb_write_bulk: wanted 1 bytes, wrote 1 bytes
> [sanei_usb] sanei_usb_read_bulk: trying to read 1 bytes
> [sanei_usb] 000 06 .
> [sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
> [sanei_usb] sanei_usb_close: closing device 0
> ---
>
# SANE_DEBUG_EPJITSU=255 scanimage 2>debug.log >test.pnm
---
[epjitsu] sane_start: start
[epjitsu] sane_start: first page
[epjitsu] teardown_buffers: start
[epjitsu] teardown_buffers: finish
[epjitsu] change_params: start
[epjitsu] sane_start: ERROR: failed to change_params
[epjitsu] sane_cancel: start
[epjitsu] sane_cancel: finish
scanimage: sane_start: Out of memory
[epjitsu] sane_cancel: start
[epjitsu] sane_cancel: finish
[epjitsu] sane_close: start
[epjitsu] sane_cancel: start
[epjitsu] sane_cancel: finish
[epjitsu] lamp: start (0)
[epjitsu] do_cmd: start
[epjitsu] cmd: writing 2 bytes, timeout 10000
[epjitsu] cmd: >>
[epjitsu] 000: 1b d0
[epjitsu] cmd: wrote 2 bytes, retVal 0
[epjitsu] in: memset 1 bytes
[epjitsu] in: reading 1 bytes, timeout 10000
[epjitsu] in: retVal 0
[epjitsu] in: read 1 bytes
[epjitsu] in: <<
[epjitsu] 000: 06
[epjitsu] do_cmd: finish
[epjitsu] do_cmd: start
[epjitsu] cmd: writing 1 bytes, timeout 10000
[epjitsu] cmd: >>
[epjitsu] 000: 00
[epjitsu] cmd: wrote 1 bytes, retVal 0
[epjitsu] in: memset 1 bytes
[epjitsu] in: reading 1 bytes, timeout 10000
[epjitsu] in: retVal 0
[epjitsu] in: read 1 bytes
[epjitsu] in: <<
[epjitsu] 000: 06
[epjitsu] do_cmd: finish
[epjitsu] lamp: finish
[epjitsu] disconnect_fd: start
[epjitsu] disconnecting usb device
[epjitsu] disconnect_fd: finish
[epjitsu] sane_close: finish
[epjitsu] sane_exit: start
[epjitsu] destroy: start
[epjitsu] teardown_buffers: start
[epjitsu] teardown_buffers: finish
[epjitsu] destroy: finish
[epjitsu] sane_exit: finish
---
Anyone able to help me fix this, or at least to help me hunt it down?
~Per
More information about the sane-devel
mailing list