[sane-devel] Network backend and lineart mode

Aleksandr Dezhin me at dezhin.net
Fri Jul 27 21:25:45 UTC 2012


Dear developers,

I am trying to develop another web-based interface for sane. Faced with 
a problem, and do not know how to avoid it or solve it.

I have Canon LiDE 210 scanner, it works fine with genesys backend. 
Locally scanimage works in all modes: color, gray, lineart. However, if 
I scan through the network using net backend, it stops work in lineart mode.

Scanimage freezes, until I kill the process. I attached stderr of 
scanimage --mode Lineart with SANE_DEBUG_NET=9. Process freezes after 
"[net] sane_read: reading packet length", "scanimage: received signal 
15" appears after killall scanimage.

Unfortunately I can not check whose problem it is: genesys or net 
backends. Test backend does not support lineart mode.

Has anyone encountered a similar problem? How can I try solve it?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120728/07af457c/attachment-0001.html>
-------------- next part --------------
[sanei_debug] Setting debug level of net to 9.
[net] sane_init: authorize != null, version_code != null
[net] sane_init: SANE net backend version 1.0.14 (AF-indep+IPv6) from sane-backends 1.0.22
[net] sane_init: Client has little endian byte order
[net] sane_init: searching for config file
[net] sane_init: trying to add localhost
[net] add_device: adding backend localhost
[net] net_avahi_browse_callback: NEW: service 'saned' of type '_sane-port._tcp' in domain 'local'
[net] net_avahi_browse_callback: NEW: service 'saned' of type '_sane-port._tcp' in domain 'local'
[net] add_device: backend localhost added
[net] sane_init: trying to add 192.168.0.176
[net] add_device: adding backend 192.168.0.176
[net] net_avahi_browse_callback: NEW: service 'saned' of type '_sane-port._tcp' in domain 'local'
[net] net_avahi_browse_callback: NEW: service 'saned' of type '_sane-port._tcp' in domain 'local'
[net] add_device: backend 192.168.0.176 added
[net] sane_init: trying to add 192.168.0.187
[net] add_device: adding backend 192.168.0.187
[net] net_avahi_browse_callback: CACHE_EXHAUSTED
[net] net_avahi_browse_callback: ALL_FOR_NOW
[net] add_device: backend 192.168.0.187 added
[net] sane_init: done reading config
[net] sane_init: evaluating environment variable SANE_NET_HOSTS
[net] sane_init: evaluating environment variable SANE_NET_TIMEOUT
[net] sane_init: done
[net] sane_open("192.168.0.176:genesys:libusb:002:003")
[net] sane_open: host = 192.168.0.176, device = genesys:libusb:002:003
[net] sane_open: device found in list
[net] sane_open: device not connected yet...
[net] connect_dev: trying to connect to 192.168.0.176
[net] connect_dev: [0] connection succeeded (IPv4)
[net] connect_dev: sanei_w_init
[net] connect_dev: net_init (user=jean, local version=1.0.3)
[net] connect_dev: freeing init reply (status=Success, remote version=1.0.3)
[net] connect_dev: done
[net] sane_open: net_open
[net] net_avahi_resolve_callback: service 'saned' of type '_sane-port._tcp' in domain 'local':
[net] 	thinkpad.local:6566 (fe80::120b:a9ff:fe52:fea0)
	TXT="protovers=1000003"
	cookie is 0
	is_local: 1
	our_own: 0
	wide_area: 0
	multicast: 1
	cached: 1
[net] add_device: adding backend thinkpad.local
[net] add_device: backend thinkpad.local added
[net] net_avahi_resolve_callback: service 'saned' of type '_sane-port._tcp' in domain 'local':
[net] 	thinkpad.local:6566 (fe80::f2de:f1ff:febb:9f21)
	TXT="protovers=1000003"
	cookie is 0
	is_local: 1
	our_own: 0
	wide_area: 0
	multicast: 1
	cached: 1
[net] add_device: adding backend thinkpad.local
[net] add_device: already in list
[net] net_avahi_resolve_callback: service 'saned' of type '_sane-port._tcp' in domain 'local':
[net] 	thinkpad.local:6566 (10.212.1.53)
	TXT="protovers=1000003"
	cookie is 0
	is_local: 1
	our_own: 0
	wide_area: 0
	multicast: 1
	cached: 1
[net] add_device: adding backend thinkpad.local
[net] add_device: already in list
[net] net_avahi_resolve_callback: service 'saned' of type '_sane-port._tcp' in domain 'local':
[net] 	thinkpad.local:6566 (10.212.1.37)
	TXT="protovers=1000003"
	cookie is 0
	is_local: 1
	our_own: 0
	wide_area: 0
	multicast: 1
	cached: 1
[net] add_device: adding backend thinkpad.local
[net] add_device: already in list
[net] sane_open: getting option descriptors
[net] fetch_options: 0x140f960
[net] fetch_options: get_option_descriptors
[net] fetch_options: creating 41 local option descriptors
[net] fetch_options: copying 41 option descriptors
[net] fetch_options: 41 options fetched
[net] sane_open: success
[net] sane_get_option_descriptor: option 0
[net] sane_control_option: option 0, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 0
[net] sane_control_option: option 0, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 1
[net] sane_get_option_descriptor: option 2
[net] sane_get_option_descriptor: option 3
[net] sane_get_option_descriptor: option 4
[net] sane_get_option_descriptor: option 5
[net] sane_get_option_descriptor: option 6
[net] sane_get_option_descriptor: option 7
[net] sane_get_option_descriptor: option 8
[net] sane_get_option_descriptor: option 9
[net] sane_get_option_descriptor: option 10
[net] sane_get_option_descriptor: option 11
[net] sane_get_option_descriptor: option 12
[net] sane_get_option_descriptor: option 13
[net] sane_get_option_descriptor: option 14
[net] sane_get_option_descriptor: option 15
[net] sane_get_option_descriptor: option 16
[net] sane_get_option_descriptor: option 17
[net] sane_get_option_descriptor: option 18
[net] sane_get_option_descriptor: option 19
[net] sane_get_option_descriptor: option 20
[net] sane_get_option_descriptor: option 21
[net] sane_get_option_descriptor: option 22
[net] sane_get_option_descriptor: option 23
[net] sane_get_option_descriptor: option 24
[net] sane_get_option_descriptor: option 25
[net] sane_get_option_descriptor: option 26
[net] sane_get_option_descriptor: option 27
[net] sane_get_option_descriptor: option 28
[net] sane_get_option_descriptor: option 29
[net] sane_get_option_descriptor: option 30
[net] sane_get_option_descriptor: option 31
[net] sane_get_option_descriptor: option 32
[net] sane_get_option_descriptor: option 33
[net] sane_get_option_descriptor: option 34
[net] sane_get_option_descriptor: option 35
[net] sane_get_option_descriptor: option 36
[net] sane_get_option_descriptor: option 37
[net] sane_get_option_descriptor: option 38
[net] sane_get_option_descriptor: option 39
[net] sane_get_option_descriptor: option 40
[net] sane_control_option: option 10, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_control_option: option 8, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_control_option: option 11, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_control_option: option 9, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 2
[net] sane_get_option_descriptor: option 2
[net] sane_control_option: option 2, action 1
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 6)
[net] sane_control_option: done (Success, info 6)
[net] sane_get_option_descriptor: option 0
[net] sane_get_option_descriptor: getting option descriptors
[net] fetch_options: 0x140f960
[net] fetch_options: 41 option descriptors cached... freeing
[net] fetch_options: get_option_descriptors
[net] fetch_options: copying 41 option descriptors
[net] fetch_options: 41 options fetched
[net] sane_control_option: option 0, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 1
[net] sane_get_option_descriptor: option 2
[net] sane_get_option_descriptor: option 3
[net] sane_get_option_descriptor: option 4
[net] sane_get_option_descriptor: option 5
[net] sane_get_option_descriptor: option 6
[net] sane_get_option_descriptor: option 7
[net] sane_get_option_descriptor: option 8
[net] sane_get_option_descriptor: option 9
[net] sane_get_option_descriptor: option 10
[net] sane_get_option_descriptor: option 11
[net] sane_get_option_descriptor: option 12
[net] sane_get_option_descriptor: option 13
[net] sane_get_option_descriptor: option 14
[net] sane_get_option_descriptor: option 15
[net] sane_get_option_descriptor: option 16
[net] sane_get_option_descriptor: option 17
[net] sane_get_option_descriptor: option 18
[net] sane_get_option_descriptor: option 19
[net] sane_get_option_descriptor: option 20
[net] sane_get_option_descriptor: option 21
[net] sane_get_option_descriptor: option 22
[net] sane_get_option_descriptor: option 23
[net] sane_get_option_descriptor: option 24
[net] sane_get_option_descriptor: option 25
[net] sane_get_option_descriptor: option 26
[net] sane_get_option_descriptor: option 27
[net] sane_get_option_descriptor: option 28
[net] sane_get_option_descriptor: option 29
[net] sane_get_option_descriptor: option 30
[net] sane_get_option_descriptor: option 31
[net] sane_get_option_descriptor: option 32
[net] sane_get_option_descriptor: option 33
[net] sane_get_option_descriptor: option 34
[net] sane_get_option_descriptor: option 35
[net] sane_get_option_descriptor: option 36
[net] sane_get_option_descriptor: option 37
[net] sane_get_option_descriptor: option 38
[net] sane_get_option_descriptor: option 39
[net] sane_get_option_descriptor: option 40
[net] sane_control_option: option 10, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_control_option: option 8, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_control_option: option 11, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_control_option: option 9, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_control_option: option 8, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 10
[net] sane_control_option: option 10, action 1
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 4)
[net] sane_control_option: done (Success, info 4)
[net] sane_control_option: option 9, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 11
[net] sane_control_option: option 11, action 1
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 4)
[net] sane_control_option: done (Success, info 4)
[net] sane_get_option_descriptor: option 6
[net] sane_control_option: option 6, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_start
[net] sane_start: remote start
[net] sane_start: server has little endian byte order
[net] sane_start: remote start finished, data at port 36115
[net] sane_start: done (Success)
[net] sane_get_parameters
[net] sane_get_parameters: remote get parameters
[net] sane_get_parameters: returned status Success
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=945 bytes
[net] sane_read: 945 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=630 bytes
[net] sane_read: 630 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=630 bytes
[net] sane_read: 630 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=630 bytes
[net] sane_read: 630 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=630 bytes
[net] sane_read: 630 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
[net] sane_read: read 4 bytes, 0 from 4 total
[net] sane_read: next record length=315 bytes
[net] sane_read: 315 bytes read, 0 remaining
[net] sane_read: handle=0x140f960, data=0x141a950, max_length=32768, length=0x7fffc382645c
[net] sane_read: reading packet length
scanimage: received signal 15
scanimage: trying to stop scanner
[net] sane_cancel: sending net_cancel
[net] do_cancel: 0x140f960
[net] do_cancel: closing data pipe
[net] sane_cancel: done
[net] sane_read: read failed (Bad file descriptor)
[net] sane_read: cancelling read
[net] do_cancel: 0x140f960
scanimage: sane_read: Error during device I/O
[net] sane_cancel: sending net_cancel
[net] do_cancel: 0x140f960
[net] sane_cancel: done
[net] sane_close: handle 0x140f960
[net] sane_close: removing cached option descriptors
[net] sane_close: removing local option descriptors
[net] sane_close: net_close
[net] sane_close: done
[net] sane_exit: exiting
[net] net_avahi_cleanup: stopping thread
[net] net_avahi_cleanup: done
[net] sane_exit: closing dev 0x7f2b00000d60, ctl=-1
[net] sane_exit: closing dev 0x1412e00, ctl=-1
[net] sane_exit: closing dev 0x1412080, ctl=6
[net] sane_exit: closing dev 0x1413090, ctl=-1
[net] sane_exit: finished.


More information about the sane-devel mailing list