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

edg1@tiscali.be edg1@tiscali.be
Fri, 9 Jan 2004 15:57:53 +0100


Jim George wrote:
> 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
>
> [...]
> 
> 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  0x4079090 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.

Hi Jim,

now we are getting somewhere. 
It looks like the driver is waiting for the scanner motor to stabilize,
but it waits forever, either because it doesn't stabilize, or because
the communication with the scanner is somehow messed up. 

Do you have libieee1284 installed? If so, what version is it?

It would be useful to also see the debug output of sanei_pa4s2.
I know you are short of disk space, so I won't ask you to collect 
all output. Just let it scroll off the screen. I'm only interested 
in the last few tens of lines or so (as long as the last few lines
of mustek_pp output are included):

 - stop inetd
 - as root: 
     SANE_DEBUG_MUSTEK_PP=128 SANE_DEBUG_SANEI_PA4S2=255 saned -d128
 - in another window: 
     scanimage -d net:localhost:mustek_pp:Mustek-1200CP > /dev/null
 
Best regards,

Eddy 


---------------------------------------------------------------
Tiscali ADSL: 12 maanden aan  29,50 /maand! Snel Internet, en voor iedereen.
http://reg.tiscali.be/default.asp?lg=nl