Re: mustek 3-pass backend now working!

Mathias Weigt (p5iba@medchem2.pharmazie.uni-halle.de)
Thu, 17 Apr 1997 22:30:50 +0059 (MDT)

Sorry for disturbing your victory party...
I haven`t much online time...
The performance problems doesn`t occur in scan frontend.
Maybe recompiling can be the clue
Scan segfaults in color mode with every resolution > 18
Here is the output of gdb:

GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i486-unknown-linux --target i486-linux),
Copyright 1996 Free Software Foundation, Inc...
(gdb) scan --mode color --resolo ution 33 00
Undefined command: "scan". Try "help".
(gdb) scan --mode color --resolution 300[1@~[1@~scan[1@r[1@u[1@n
Starting program: /usr/local/bin/scan --mode color --resolution 300
[sanei_init_debug]: Setting debug level of dll to 128.
[dll] adding backend pnm
[dll] ...already there
[dll] adding backend mustek
[dll] ...already there
[dll] adding backend qcam
[dll] ...already there
[dll] init: initializing backend `qcam'
[dll] init: initializing backend `mustek'
[sanei_init_debug]: Setting debug level of mustek to 128.
[mustek] attach: opening /dev/scanner
[mustek] attach: sending INQUIRY
[mustek] wait_ready: sending TEST_UNIT_READY
[mustek] attach: firmware revision 2.71
[mustek] attach: found Mustek scanner model MFS-06000CX (flatbed scanner), 3-pass
[dll] init: initializing backend `pnm'
[dll] init: initializing backend `net'
[dll] init: initializing backend `hp'
[dll] control_option(handle=0x805c410,option=0,action=0,value=0xbffff64c,info=(nil))
[dll] control_option(handle=0x805c410,option=0,action=0,value=0xbffff608,info=(nil))
[dll] get_option_descriptor(handle=0x805c410,option=0)
[dll] get_option_descriptor(handle=0x805c410,option=1)
[dll] get_option_descriptor(handle=0x805c410,option=2)
[dll] get_option_descriptor(handle=0x805c410,option=3)
[dll] get_option_descriptor(handle=0x805c410,option=4)
[dll] get_option_descriptor(handle=0x805c410,option=5)
[dll] get_option_descriptor(handle=0x805c410,option=6)
[dll] get_option_descriptor(handle=0x805c410,option=7)
[dll] get_option_descriptor(handle=0x805c410,option=8)
[dll] get_option_descriptor(handle=0x805c410,option=9)
[dll] get_option_descriptor(handle=0x805c410,option=10)
[dll] control_option(handle=0x805c410,option=10,action=0,value=0x805b068,info=(nil))
[dll] get_option_descriptor(handle=0x805c410,option=11)
[dll] control_option(handle=0x805c410,option=11,action=0,value=0x805b06c,info=(nil))
[dll] get_option_descriptor(handle=0x805c410,option=12)
[dll] get_option_descriptor(handle=0x805c410,option=13)
[dll] get_option_descriptor(handle=0x805c410,option=14)
[dll] get_option_descriptor(handle=0x805c410,option=15)
[dll] get_option_descriptor(handle=0x805c410,option=16)
[dll] get_option_descriptor(handle=0x805c410,option=17)
[dll] get_option_descriptor(handle=0x805c410,option=18)
[dll] get_option_descriptor(handle=0x805c410,option=19)
[dll] get_option_descriptor(handle=0x805c410,option=20)
[dll] get_option_descriptor(handle=0x805c410,option=21)
[dll] control_option(handle=0x805c410,option=8,action=0,value=0xbffff604,info=(nil))
[dll] control_option(handle=0x805c410,option=9,action=0,value=0xbffff604,info=(nil))
[dll] get_option_descriptor(handle=0x805c410,option=2)
[dll] get_option_descriptor(handle=0x805c410,option=2)
[dll] control_option(handle=0x805c410,option=2,action=1,value=0xbffff7f6,info=0xbffff5d4)
[dll] control_option(handle=0x805c410,option=0,action=0,value=0xbffff5b8,info=(nil))
[dll] get_option_descriptor(handle=0x805c410,option=0)
[dll] get_option_descriptor(handle=0x805c410,option=1)
[dll] get_option_descriptor(handle=0x805c410,option=2)
[dll] get_option_descriptor(handle=0x805c410,option=3)
[dll] get_option_descriptor(handle=0x805c410,option=4)
[dll] get_option_descriptor(handle=0x805c410,option=5)
[dll] get_option_descriptor(handle=0x805c410,option=6)
[dll] get_option_descriptor(handle=0x805c410,option=7)
[dll] get_option_descriptor(handle=0x805c410,option=8)
[dll] get_option_descriptor(handle=0x805c410,option=9)
[dll] get_option_descriptor(handle=0x805c410,option=10)
[dll] control_option(handle=0x805c410,option=10,action=0,value=0x805b068,info=(nil))
[dll] get_option_descriptor(handle=0x805c410,option=11)
[dll] control_option(handle=0x805c410,option=11,action=0,value=0x805b06c,info=(nil))
[dll] get_option_descriptor(handle=0x805c410,option=12)
[dll] get_option_descriptor(handle=0x805c410,option=13)
[dll] get_option_descriptor(handle=0x805c410,option=14)
[dll] get_option_descriptor(handle=0x805c410,option=15)
[dll] get_option_descriptor(handle=0x805c410,option=16)
[dll] get_option_descriptor(handle=0x805c410,option=17)
[dll] get_option_descriptor(handle=0x805c410,option=18)
[dll] get_option_descriptor(handle=0x805c410,option=19)
[dll] get_option_descriptor(handle=0x805c410,option=20)
[dll] get_option_descriptor(handle=0x805c410,option=21)
[dll] control_option(handle=0x805c410,option=8,action=0,value=0xbffff5b4,info=(nil))
[dll] control_option(handle=0x805c410,option=9,action=0,value=0xbffff5b4,info=(nil))
[dll] get_option_descriptor(handle=0x805c410,option=3)
[dll] get_option_descriptor(handle=0x805c410,option=3)
[dll] control_option(handle=0x805c410,option=3,action=1,value=0x805c670,info=0xbffff5d4)
[dll] control_option(handle=0x805c410,option=8,action=0,value=0xbffff648,info=(nil))
[dll] get_option_descriptor(handle=0x805c410,option=10)
[dll] control_option(handle=0x805c410,option=10,action=1,value=0xbffff644,info=0xbffff600)
[dll] control_option(handle=0x805c410,option=9,action=0,value=0xbffff648,info=(nil))
[dll] get_option_descriptor(handle=0x805c410,option=11)
[dll] control_option(handle=0x805c410,option=11,action=1,value=0xbffff644,info=0xbffff600)
[dll] start(handle=0x805c410)
[mustek] wait_ready: sending TEST_UNIT_READY
[mustek] get_image_status: bytes_per_line=2550, lines=4200
[dll] get_parameters(handle=0x805c410,params=0xbfff75f8)
[dll] read(handle=0x805c410,data=0xbfff7610,maxlen=32768,lenp=0xbfff75dc)
[mustek] lines_per_buffer=12, bytes_per_line=2550
[mustek] reader_process: read 12 lines[mustek] read 4096 bytes

Program received signal SIGSEGV, Segmentation fault.
0x804a8ae in scan_it () at scan.c:840
840 image.data[offset + 3*i] = buffer[i];
(gdb) bt
#0 0x804a8ae in scan_it () at scan.c:840
#1 0x804b2e0 in main (argc=5, argv=0xbffff67c) at scan.c:1185
#2 0x804947e in ___crt_dummy__ ()
(gdb) quit
The program is running. Quit anyway (and kill it)? (y or n) [mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mus
tek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 1
2 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_proc
ess: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek]
reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lin
es[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process:
read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reade
r_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mu
stek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read
12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_pro
cess: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek]
reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 li
nes[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process:
read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] read
er_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[m
ustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read
12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_pr
ocess: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek
] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 l
ines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process
: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] rea
der_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[
mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: rea
d 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_p
rocess: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[muste
k] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12
lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_proces
s: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] re
ader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines
[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: re
ad 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_
process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[must
ek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12
lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_proce
ss: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] r
eader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 line
s[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: r
ead 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader
_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mus
tek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 1
2 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_proc
ess: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek]
reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lin
es[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process:
read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reade
r_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mu
stek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read
12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_pro
cess: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek]
reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 li
nes[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process:
read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] reader_process: read 12 lines[mustek] read
er_process: read 12 lines[mustek] reader_process: read 12 lines

Mathias Weigt
p5iba@medchem2.pharmazie.uni-halle.de

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com