On Friday 04 January 2008 6:39:41 pm Jeffrey Ratcliffe wrote: > On 05/01/2008, John Goerzen <[EMAIL PROTECTED]> wrote: > > Here's the debug. > > Thanks. Unfortunately, there are no clues to what might be going > wrong. Here is a patch which should produce more debug info. Would you > mind applying it and provoking the bug again, please?
This didn't apply on my tree from you, but it looks like it's already in your branch at de7a7d80b228. Here's an attachment, where it was set to scan in duplex mode but only gave me page 2.
gscan2pdf 0.9.20 Using en_US locale Gtk2-Perl version 1.161 Built for 2.12.0 Running with 2.12.3 $VAR1 = { 'ocr panel' => '886', 'frontend' => 'scanimage', 'mode' => 'Lineart', 'Paper' => { 'US Legal' => { 'l' => '0', 'y' => '356', 'x' => '216', 't' => '0' }, 'Receipts' => { 'l' => '57', 'y' => '279', 'x' => '101', 't' => '0' }, 'US Letter' => { 'l' => '0', 'y' => '279', 'x' => '216', 't' => '0' }, 'Misc' => { 'l' => '0', 'y' => '600', 'x' => '216', 't' => '0' }, 'A4' => { 'l' => '0', 'y' => '297', 'x' => '210', 't' => '0' } }, 'window_maximize' => '', 'ocr engine' => 'gocr', 'keywords' => '', 'y' => '279', 'layout' => 'single', 'cwd' => '/home/jgoerzen/archive/records/2008/csb', 'day' => '31', 't' => '0', 'image type' => 'png', 'OCR on scan' => '', 'Paper size' => 'US Legal', 'Page range' => 'selected', 'subject' => '', 'window_height' => '1050', 'startup warning' => '1', 'brightness' => '0', 'pages to scan' => 'all', 'resolution' => '300', 'title' => '', 'unpaper on scan' => '', 'wait-for-button' => 'no', 'source' => 'ADF Front', 'threshold' => '153', 'month' => '1', 'author' => '', 'x' => '215.9', 'compression' => 'None', 'downsample dpi' => '150', 'window_width' => '1067', 'speed' => 'no', 'threshold tool' => '50', 'window_x' => '375', 'quality' => '90', 'window_y' => '111', 'tiff compression' => 'lzw', 'date offset' => '0', 'thumb panel' => '180', 'enable options' => '1', 'version' => '0.9.19', 'contrast' => '0', 'device' => 'fujitsu:libusb:007:004', 'l' => '0', 'downsample' => '', 'restore window' => '1', 'year' => '2007', 'pdf compression' => 'png' }; Found PDF::API2 Found Image::Magick Found ImageMagick Found scanadf Found xdg-email Found gocr Found tesseract Found cjb2 (djvu) Found unpaper Found libtiff scanimage --formatted-device-list="'%i','%d','%v %m' " 2>/dev/null Forked PID 5897 Waiting to reap process at /usr/bin/gscan2pdf line 3437. Reaped PID -1 scanimage --help --device-name='fujitsu:libusb:007:004' --mode='Lineart' '0','fujitsu:libusb:007:004','FUJITSU ScanSnap S510' Forked PID 5907 Waiting to reap process at /usr/bin/gscan2pdf line 4351. Reaped PID -1 Usage: scanimage [OPTION]... Start image acquisition on a scanner device and write PNM image data to standard output. Parameters are separated by a blank from single-character options (e.g. -d epson) and by a "=" from multi-character options (e.g. --device-name=epson). -d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner) --format=pnm|tiff file format of output file -i, --icc-profile=PROFILE include this ICC profile into TIFF file -L, --list-devices show available scanner devices -f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output can be specified: %d (device name), %v (vendor), %m (model), %t (type), and %i (index number) -b, --batch[=FORMAT] working in batch mode, FORMAT is `out%d.pnm' or `out%d.tif' by default depending on --format --batch-start=# page number to start naming files with --batch-count=# how many pages to scan in batch mode --batch-increment=# increase number in filename by an amount of # --batch-double increment page number by two for 2sided originals being scanned in a single sided scanner --batch-prompt ask for pressing a key before scanning a page --accept-md5-only only accept authorization requests using md5 -p, --progress print progress messages -n, --dont-scan only set options, don't actually scan -T, --test test backend thoroughly -h, --help display this help message and exit -v, --verbose give even more status messages -B, --buffer-size change default input buffersize -V, --version print version information Options specific to device `fujitsu:libusb:007:004': Scan Mode: --source ADF Front|ADF Back|ADF Duplex [ADF Front] Selects the scan source (such as a document-feeder). --mode Lineart|Halftone|Gray|Color [Lineart] Selects the scan mode (e.g., lineart, monochrome, or color). --resolution 50..600dpi (in steps of 1) [600] Sets the horizontal resolution of the scanned image. --y-resolution 50..600dpi (in steps of 1) [600] Sets the vertical resolution of the scanned image. Geometry: -l 0..215.872mm (in steps of 0.0211639) [0] Top-left x position of scan area. -t 0..279.364mm (in steps of 0.0211639) [0] Top-left y position of scan area. -x 0..215.872mm (in steps of 0.0211639) [215.872] Width of scan-area. -y 0..279.364mm (in steps of 0.0211639) [279.364] Height of scan-area. --pagewidth 0..221.121mm (in steps of 0.0211639) [215.872] Must be set properly to align scanning window --pageheight 0..863.489mm (in steps of 0.0211639) [279.364] Must be set properly to eject pages Enhancement: --brightness -127..127 (in steps of 1) [0] Controls the brightness of the acquired image. --contrast -127..127 (in steps of 1) [0] Controls the contrast of the acquired image. --threshold 0..255 (in steps of 1) [0] Select minimum-brightness to get a white point --rif[=(yes|no)] [no] Reverse image format Advanced: --compression None|JPEG [None] Enable compressed data. May crash your front-end program --compression-arg 0..7 (in steps of 1) [0] Level of JPEG compression. 1 is small file, 7 is large file. 0 (default) is same as 4 --dfdetect Default|None|Thickness|Length|Both [Default] Enable double feed sensors --dfdiff Default|10mm|15mm|20mm [Default] Difference in page length to trigger double feed sensor --dropoutcolor Default|Red|Green|Blue [Default] One-pass scanners use only one color during gray or binary scanning, useful for colored paper or ink --overscan Default|Off|On [Default] Collect a few mm of background on top side of scan, before paper enters ADF, and increase maximum scan area beyond paper size, to allow collection on remaining sides. May conflict with bgcolor option --sleeptimer 0..60 (in steps of 1) [0] Time in minutes until the internal power supply switches to sleep mode Sensors and Buttons: Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE. List of available devices: fujitsu:libusb:007:004 $VAR1 = { 'source' => { 'tip' => 'Selects the scan source (such as a document-feeder).', 'default' => 'ADF Front', 'values' => 'ADF Front|ADF Back|ADF Duplex' }, 'rif' => { 'tip' => 'Reverse image format', 'default' => 'no', 'values' => 'yes|no' }, 'sleeptimer' => { 'tip' => 'Time in minutes until the internal power supply switches to sleep mode', 'default' => '0', 'values' => '0..60 (in steps of 1)' }, 'overscan' => { 'tip' => 'Collect a few mm of background on top side of scan, before paper enters ADF, and increase maximum scan area beyond paper size, to allow collection on remaining sides. May conflict with bgcolor option', 'default' => 'Default', 'values' => 'Default|Off|On' }, 'threshold' => { 'tip' => 'Select minimum-brightness to get a white point', 'default' => '0', 'values' => '0..255 (in steps of 1)' }, 'mode' => { 'tip' => 'Selects the scan mode (e.g., lineart, monochrome, or color).', 'default' => 'Lineart', 'values' => 'Lineart|Halftone|Gray|Color' }, 'dfdiff' => { 'tip' => 'Difference in page length to trigger double feed sensor', 'default' => 'Default', 'values' => 'Default|10mm|15mm|20mm' }, 'contrast' => { 'tip' => 'Controls the contrast of the acquired image.', 'default' => '0', 'values' => '-127..127 (in steps of 1)' }, 'pageheight' => { 'tip' => 'Must be set properly to eject pages', 'default' => '279.364', 'values' => '0..863.489mm (in steps of 0.0211639)' }, 'compression' => { 'tip' => 'Enable compressed data. May crash your front-end program', 'default' => 'None', 'values' => 'None|JPEG' }, 'pagewidth' => { 'tip' => 'Must be set properly to align scanning window', 'default' => '215.872', 'values' => '0..221.121mm (in steps of 0.0211639)' }, 'dfdetect' => { 'tip' => 'Enable double feed sensors', 'default' => 'Default', 'values' => 'Default|None|Thickness|Length|Both' }, 'compression-arg' => { 'tip' => 'Level of JPEG compression. 1 is small file, 7 is large file. 0 (default) is same as 4', 'default' => '0', 'values' => '0..7 (in steps of 1)' }, 'brightness' => { 'tip' => 'Controls the brightness of the acquired image.', 'default' => '0', 'values' => '-127..127 (in steps of 1)' }, 'y-resolution' => { 'tip' => 'Sets the vertical resolution of the scanned image.', 'default' => '600', 'values' => '50..600dpi (in steps of 1)' }, 'dropoutcolor' => { 'tip' => 'One-pass scanners use onl$VAR1 = []; scanimage --device-name='fujitsu:libusb:007:004' --mode='Lineart' --source='ADF Duplex' --threshold='153' --contrast='0' -x 216 --pageheight='356' -y 356 -l 0 --pagewidth='216' --compression='None' --brightness='0' --resolution='300' -t 0 --batch --progress y one color during gray or binary scanning, useful for colored paper or ink', 'default' => 'Default', 'values' => 'Default|Red|Green|Blue' }, 'resolution' => { 'tip' => 'Sets the horizontal resolution of the scanned image.', 'default' => '600', 'values' => '50..600dpi (in steps of 1)' } }; $VAR1 = { 'source' => 'ADF Duplex', 'threshold' => '153', 'mode' => 'Lineart', 'contrast' => '0', 'x' => '216', 'pageheight' => '356', 'l' => '0', 'y' => '356', 'compression' => 'None', 'pagewidth' => '216', 'brightness' => '0', 'resolution' => '300', 't' => '0' }; Forked PID 5924 scanimage: rounded value of threshold from 153 to 153 scanimage: rounded value of threshold from 153 to 153 scanimage: rounded value of contrast from 0 to 0 scanimage: rounded value of contrast from 0 to 0 scanimage: rounded value of pageheight from 356 to 355.999 scanimage: rounded value of pageheight from 356 to 355.999 scanimage: rounded value of tl-x from 0 to 0 scanimage: rounded value of tl-x from 0 to 0 scanimage: rounded value of pagewidth from 216 to 215.999 scanimage: rounded value of pagewidth from 216 to 215.999 scanimage: rounded value of brightness from 0 to 0 scanimage: rounded value of resolution from 300 to 300 scanimage: rounded value of tl-y from 0 to 0 scanimage: rounded value of brightness from 0 to 0 scanimage: rounded value of resolution from 300 to 300 scanimage: rounded value of tl-y from 0 to 0 scanimage: rounded value of br-x from 216 to 215.999 scanimage: rounded value of br-y from 356 to 355.999 Scanning -1 pages, incrementing by 1, numbering from 1 Scanning page 1 scanimage: rounded value of br-x from 216 to 215.999 scanimage: rounded value of br-y from 356 to 355.999 Importing out2.pnm, format Portable anymap Added /tmp/kvxaKStRFh/NXLfzEVOcc.pnm at page 2 with resolution 300 scanimage: sane_start: Document feeder out of documents Waiting to reap process at /usr/bin/gscan2pdf line 3776. Reaped PID 5924