[Fwd: Re: [sane-devel] saned doesn't release the parallel port when finished]

Jim George jim.george@blueyonder.co.uk
Fri, 26 Dec 2003 10:13:38 -0000 (GMT)


------=_20031226101338_12762
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Can anyone help me with the following?


Jim

-------- Original Message --------
Subject: Re: [sane-devel] saned doesn't release the parallel port when
finished
From: "Jim George" <jim.george@blueyonder.co.uk>
Date: Mon, December 22, 2003 8:38 am
To: <jochen@penguin-breeder.org>

Jochen and Henning,

appologies if you have already seen this email but I've been having
troubles with my mail so decided to re-post.

I've been through several tests now and here are the results:
1) scanimage -L - works fine
2) scanimage -T - works fine
3) scanimage > /dev/null - starts fine then hangs
4) scanimage -T - works fine subsequent to a hang (I kill the process to
get out of it).
5) saned -d128 and scanimage -d net:localhost:mustek_pp:Mustek-1200CP -
starts fine but then hangs (see attached).
6) scanimage -T - works fine subsequent to the previous hang (simply
need to CTRL-C out of the above).

Can anyone advise what I should try next?


> Hi,
>
> does this also happen when you scan from command line, i.e. using
> scanimage?
>
> regards
> -- jochen



------=_20031226101338_12762
Content-Type: text/plain; name="jim.txt"
Content-Disposition: attachment; filename="jim.txt"

[saned] main: starting debug mode (level 128)
[saned] main: trying to get port for service `sane' (getaddrinfo)
[saned] main: "sane" service unknown on your host; you should add
[saned] main:      sane 6566/tcp saned # SANE network scanner daemon
[saned] main: to your /etc/services file (or equivalent). Proceeding anyway.
[saned] main: [0] socket () using IPv6
[saned] main: [0] setsockopt ()
[saned] main: [0] bind () to port 6566
[saned] main: [0] listen ()
[saned] main: [1] socket () using IPv4
[saned] main: [1] setsockopt ()
[saned] main: [1] bind () to port 6566
[saned] main: [1] bind failed: Address already in use
[saned] main: waiting for control connection
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.13 ready
[saned] check_host: access by remote host: ::1
[saned] check_host: remote host is IN6_LOOPBACK: access granted
[saned] init: access granted
[saned] init: access granted to root@::1
[saned] process_request: waiting for request
[saned] process_request: got request 2
[saned] process_request: access to resource `mustek_pp' granted
[sanei_debug] Setting debug level of mustek_pp to 2.
[saned] process_request: waiting for request
[saned] process_request: got request 4
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 7
[saned] start_scan: using port 2115 for data
[saned] process_request: waiting for data connection
[saned] process_request: access to data port from ::1
[saned] do_scan: start
[saned] do_scan: processing RPC request on fd 4
[saned] process_request: waiting for request
[saned] process_request: got request 6
[mustek_pp] sane_get_parameters: can't set parameters while scanning
[saned] do_scan: trying to read 8188 bytes from scanner
[saned] do_scan: read 4096 bytes from scanner
[saned] do_scan: trying to write 4100 bytes to client
[saned] do_scan: wrote 4100 bytes to client
[saned] do_scan: trying to read 4088 bytes from scanner
[saned] do_scan: read 4088 bytes from scanner
[saned] do_scan: trying to write 4092 bytes to client
[saned] do_scan: wrote 4092 bytes to client
[saned] do_scan: trying to read 8188 bytes from scanner
...SNIP.....
[saned] do_scan: trying to write 3040 bytes to client
[saned] do_scan: wrote 3040 bytes to client
[saned] do_scan: trying to read 8188 bytes from scanner
[saned] do_scan: read 1060 bytes from scanner
[saned] do_scan: trying to write 1064 bytes to client
[saned] do_scan: wrote 1064 bytes to client
[saned] do_scan: trying to read 7124 bytes from scanner
[saned] do_scan: read 4096 bytes from scanner
[saned] do_scan: trying to write 4100 bytes to client
[saned] do_scan: wrote 4100 bytes to client
[saned] do_scan: trying to read 3024 bytes from scanner
[saned] do_scan: read 3024 bytes from scanner
[saned] do_scan: trying to write 3028 bytes to client
[saned] do_scan: wrote 3028 bytes to client
[saned] do_scan: trying to read 8188 bytes from scanner
[saned] do_scan: read 1072 bytes from scanner
[saned] do_scan: trying to write 1076 bytes to client
[saned] do_scan: wrote 1076 bytes to client
[saned] do_scan: trying to read 7112 bytes from scanner
[saned] do_scan: read 4096 bytes from scanner
[saned] do_scan: trying to write 4100 bytes to client
[saned] do_scan: wrote 4100 bytes to client
[saned] do_scan: trying to read 3012 bytes from scanner
[saned] do_scan: read 3012 bytes from scanner
[saned] do_scan: trying to write 3016 bytes to client
[saned] do_scan: wrote 3016 bytes to client
[saned] do_scan: trying to read 8188 bytes from scanner
[saned] do_scan: read 686 bytes from scanner
[saned] do_scan: trying to write 690 bytes to client
[saned] do_scan: wrote 690 bytes to client
[saned] do_scan: trying to read 7498 bytes from scanner
[saned] do_scan: read 0 bytes from scanner
[saned] do_scan: status = `End of file reached'
[saned] do_scan: statuscode `End of file reached' was added to buffer
[saned] do_scan: select_fd was closed --> EOF
[saned] do_scan: trying to write 9 bytes to client
[saned] do_scan: wrote 9 bytes to client
[saned] do_scan: done, status=End of file reached
[saned] process_request: waiting for request
[saned] process_request: got request 8
[saned] process_request: waiting for request
[saned] process_request: got request 3

------=_20031226101338_12762--