Did this produce images? if not, you might try using scanimage -b instead. allan
On Tue, Nov 1, 2011 at 6:45 AM, Dave Webb <dave.webb8211 at googlemail.com> wrote: > I tried to compile the Debian packages from Wheezy (on my freshly > installed Squeeze distribution, with your patch) which seems to solve > this issue. > I'm now able to scan simplex (source ADF Front). Thank you very much! > > But ... now scanadf crashes when scanning duplex: > > user at alpha:~$ SANE_DEBUG_FUJITSU=128 scanadf -d fujitsu --source 'ADF > Duplex' --mode Gray --resolution 300 -x 210 -y 297 -o scan-%04d.pnm 2> > dbg > *** glibc detected *** scanadf: munmap_chunk(): invalid pointer: > 0x0000000000fd49a0 *** > ======= Backtrace: ========= > /lib/libc.so.6(+0x71ad6)[0x7f53cb031ad6] > /usr/lib/x86_64-linux-gnu/sane/libsane-fujitsu.so.1(sane_fujitsu_read+0x6d4)[0x7f53caba83c4] > scanadf[0x402708] > scanadf[0x4042f3] > /lib/libc.so.6(__libc_start_main+0xfd)[0x7f53cafdec4d] > scanadf[0x401469] > > # What's installed: > root at alpha:/home/user# dpkg -l | grep sane > ii ?libsane ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.0.22-6 > ? ?API library for scanners > ii ?libsane-common ? ? ? ? ? ? ? ? ? ? ? 1.0.22-6 > ? ?API library for scanners -- documentation and support files > ii ?libsane-dev ? ? ? ? ? ? ? ? ? ? ? ? ?1.0.22-6 > ? ?API development library for scanners [development files] > ii ?libsane-extras ? ? ? ? ? ? ? ? ? ? ? 1.0.22.2 > ? ?API library for scanners -- extra backends > ii ?libsane-extras-common ? ? ? ? ? ? ? ?1.0.22.2 > ? ?API library for scanners -- documentation and support files > rc ?libsane-hpaio ? ? ? ? ? ? ? ? ? ? ? ?3.10.6-2 > ? ?HP SANE backend for multi-function peripherals > ii ?sane ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1.0.14-9 > ? ?scanner graphical frontends > ii ?sane-utils ? ? ? ? ? ? ? ? ? ? ? ? ? 1.0.22-6 > ? ?API library for scanners -- utilities > rc ?xsane ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0.997-2+b1 > ? ?featureful graphical frontend for SANE (Scanner Access Now Easy) > > root at alpha:/home/user# dpkg -l | grep libc6 > ii ?libc6 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?2.11.2-10 > ? ?Embedded GNU C Library: Shared libraries > ii ?libc6-dev ? ? ? ? ? ? ? ? ? ? ? ? ? ?2.11.2-10 > ? ?Embedded GNU C Library: Development Libraries and Header Files > ii ?libc6-i386 ? ? ? ? ? ? ? ? ? ? ? ? ? 2.11.2-10 > ? ?Embedded GNU C Library: 32-bit shared libraries for AMD64 > > > I attached the full backtrace and a description what I did in an > attachment because the files are so huge. > > If you need more debugging information I'm willing to help. > > Kind regards > > Dave Webb > > > > On 10/31/11, m. allan noah <kitno455 at gmail.com> wrote: >> yes- that was fixed in sane-backends 1.0.22, we must not call >> mode-select unless the scanner supports the page code in question. >> Easiest would be an upgrade, though you will still need to repeat the >> prior fix. >> >> allan >> >> On Mon, Oct 31, 2011 at 5:37 PM, Dave Webb <dave.webb8211 at googlemail.com> >> wrote: >>> Allen, >>> >>> I applied your lines and installed the backends again. >>> >>> The lines are called but the scanner still does not work. >>> The error message changed slightly. >>> >>> [fujitsu] sane_start: start >>> [fujitsu] started=0, side=0, source=1 >>> [fujitsu] update_params: start >>> [fujitsu] update_params: x: max=10200, page=10200, gpw=10200, res=300 >>> [fujitsu] update_params: y: max=33632, page=13200, gph=13200, res=300 >>> [fujitsu] update_params: area: tlx=0, brx=10200, tly=0, bry=13200 >>> [fujitsu] update_params: params: ppl=2544, Bpl=318, lines=3300 >>> [fujitsu] update_params: params: format=0, depth=1, last=1 >>> [fujitsu] update_params: finish >>> [fujitsu] scanner_control: start >>> [fujitsu] scanner_control: adf function not required >>> [fujitsu] mode_select_auto: start >>> [fujitsu] do_scsi_cmd: start >>> [fujitsu] cmd: writing 6 bytes >>> [fujitsu] cmd: >> >>> [fujitsu] 000: 15 10 00 00 0c 00 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ...... >>> [fujitsu] out: writing 12 bytes >>> [fujitsu] out: >> >>> [fujitsu] 000: 00 00 00 00 3c 06 00 00 00 00 00 00 >>> ....<....... >>> [fujitsu] sense_handler: start >>> [fujitsu] Sense=0x5, ASC=0x20, ASCQ=00, EOM=1, ILI=0, info=00000000 >>> [fujitsu] Illegal request: invalid command >>> [fujitsu] do_scsi_cmd: return 'Invalid argument' >>> [fujitsu] mode_select_auto: finish >>> [fujitsu] sane_start: ERROR: cannot mode_select_auto >>> scanadf: sane_start: Invalid argument >>> Invalid argument >>> Scanned 0 pages >>> [fujitsu] sane_cancel: start >>> [fujitsu] sane_cancel: finish >>> [fujitsu] sane_close: start >>> [fujitsu] mode_select_buff: start >>> [fujitsu] mode_select_buff: unsupported >>> [fujitsu] disconnect_fd: start >>> [fujitsu] disconnecting scsi device >>> [fujitsu] disconnect_fd: finish >>> [fujitsu] sane_close: finish >>> [fujitsu] sane_exit: start >>> [fujitsu] disconnect_fd: start >>> [fujitsu] disconnect_fd: finish >>> [fujitsu] sane_exit: finish >>> >>> What's going on here? >>> >>> Best regards >>> >>> Dave Webb >>> >> >> >> >> -- >> "The truth is an offense, but not a sin" >> > -- "The truth is an offense, but not a sin"
