[sane-devel] Problems with mustek_pp and releasing the parallel port

Jim George jim.george@blueyonder.co.uk
Thu, 8 Jan 2004 23:27:57 -0000 (GMT)


Eddy,

Without inetd...
scanimage hung and when I ctrl-c'd out of scanimage I get the following

"scanimage: received signal 2
 scanimage: trying to stop scanner "

saned did not quit.  When I killed it, the saned window showed these last
few lines

"[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
[mustek_pp] sane_close: maybe waiting for lamp...
[mustek_pp] cis_close: resetting device.[mustek_pp] cis_reset_device:
resetting
device
[mustek_pp] cis_set_dpi_value: dpi: 300 -> value 0x20
[mustek_pp] cis_config_ccd: Skip count: 67 (x32)
[mustek_pp] cis_config_ccd: skipcount: 12 imagebytes: 0
[mustek_pp] cis_config_ccd: adjust skip: 0 bytecount: 3
[mustek_pp] cis_return_home: returning home; nowait: 1
[mustek_pp] cis_set_dpi_value: dpi: 300 -> value 0x20
[mustek_pp] cis_config_ccd: Skip count: 67 (x32)
[mustek_pp] cis_config_ccd: skipcount: 12 imagebytes: 0
[mustek_pp] cis_config_ccd: adjust skip: 0 bytecount: 3
Terminated"

and scanimage window showed

"scanimage: received signal 13
scanimage: aborting"

without inetd running but with gdb.........


scanimage hung and when I crtl-c'd out I get the following
"scanimage: received signal 2
scanimage: trying to stop scanner"

saned didn't quit.  When I pressed ctrl-c in gdb I got
"[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
[mustek_pp] sane_close: maybe waiting for lamp...
[mustek_pp] cis_close: resetting device.[mustek_pp] cis_reset_device:
resetting
device
[mustek_pp] cis_set_dpi_value: dpi: 300 -> value 0x20
[mustek_pp] cis_config_ccd: Skip count: 67 (x32)
[mustek_pp] cis_config_ccd: skipcount: 12 imagebytes: 0
[mustek_pp] cis_config_ccd: adjust skip: 0 bytecount: 3
[mustek_pp] cis_return_home: returning home; nowait: 1
[mustek_pp] cis_set_dpi_value: dpi: 300 -> value 0x20
[mustek_pp] cis_config_ccd: Skip count: 67 (x32)
[mustek_pp] cis_config_ccd: skipcount: 12 imagebytes: 0
[mustek_pp] cis_config_ccd: adjust skip: 0 bytecount: 3

Program received signal SIGINT, Interrupt.
0x4027786d in sanei_debug_sanei_pa4s2_call ()
   from /usr/lib/sane/libsane-mustek_pp.so.1 "

I then did 'bt' and got
"#0  0x4027786d in sanei_debug_sanei_pa4s2_call ()
   from /usr/lib/sane/libsane-mustek_pp.so.1
#1  0x40279090 in sanei_pa4s2_readbyte ()
   from /usr/lib/sane/libsane-mustek_pp.so.1
#2  0x4026ff0e in Mustek_PP_1015_wait_bit ()
   from /usr/lib/sane/libsane-mustek_pp.so.1
#3  0x4027219c in cis_motor_control ()
   from /usr/lib/sane/libsane-mustek_pp.so.1
#4  0x402721fb in cis_return_home () from
/usr/lib/sane/libsane-mustek_pp.so.1
#5  0x40272d0c in cis_drv_close () from /usr/lib/sane/libsane-mustek_pp.so.1
#6  0x4026ef62 in sane_mustek_pp_close ()
   from /usr/lib/sane/libsane-mustek_pp.so.1
#7  0x4003bd31 in sane_dll_close () from /usr/lib/libsane.so.1
#8  0x08049d1d in close_handle ()
#9  0x0804b6d0 in process_request ()
#10 0x0804bc92 in main ()
#11 0x401594c2 in __libc_start_main () from /lib/i686/libc.so.6"

I hope this helps.

Jim