Package: gscan2pdf
Version: 0.9.32-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When using gscan2pdf with the libsane-perl frontend the scan is executed
normally but aborts after acquiring the image completely with "End of
file reached" and neither unpaper nor gocr are run.

As far as I can see the error message comes from libsane
(SANE_STATUS_EOF), but scanimage, xsane and all other tools using sane
work - also all the other frontends in gscan2pdf - so I'm not sure
whether this is an issue of libsane, libsane-perl or gscan2pdf.

I have attached the log file of a scan, the temporary directory shows up
as follows after the error message:

$ ls -l /tmp/tylrmZQQtO 
total 1428
- -rw-rw-r-- 1 yath yath 723611 Apr 15 07:43 g4YtWl7eyV.pnm
- -rw-rw-r-- 1 yath yath     39 Apr 15 07:42 session
- -rw------- 1 yath yath 723614 Apr 15 07:43 zYR6G5SRxK.pnm

$ cat /tmp/tylrmZQQtO/session 
pst01234selection

Sebastian

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-2-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gscan2pdf depends on:
ii  imagemagick                  8:6.6.0.4-3 image manipulation programs
ii  libconfig-general-perl       2.50-1      Generic Configuration Module
ii  libgoo-canvas-perl           0.06-1      Perl interface to the GooCanvas
ii  libgtk2-ex-simple-list-perl  0.50-2      simple interface to Gtk2's complex
ii  libgtk2-imageview-perl       0.05-1      Perl bindings for the GtkImageView
ii  libhtml-parser-perl          3.68-1      collection of modules that parse H
ii  liblocale-gettext-perl       1.05-6      Using libc functions for internati
ii  liblog-log4perl-perl         1.29-1      A Perl port of the widely popular 
ii  libpdf-api2-perl             2.019-1     module for creating or modifying P
ii  libproc-processtable-perl    0.45-2      Perl library for accessing process
ii  libreadonly-perl             1.03-2      Facility for creating read-only sc
ii  librsvg2-common              2.32.1-1    SAX-based renderer library for SVG
ii  libsane-perl                 0.03-1      Perl bindings for the SANE (Scanne
ii  libset-intspan-perl          1.16-1      module to manage sets of integers
ii  libtiff-tools                3.9.4-9     TIFF manipulation and conversion t
ii  perlmagick                   8:6.6.0.4-3 Perl interface to the ImageMagick 
ii  sane-utils                   1.0.22-2    API library for scanners -- utilit

Versions of packages gscan2pdf recommends:
ii  cuneiform                   1.0.0+dfsg-2 multi-language OCR system
ii  djvulibre-bin               3.5.24-1     Utilities for the DjVu image forma
ii  gocr                        0.48-1       A command line OCR
ii  libgtk2-ex-podviewer-perl   0.18-1       Perl Gtk2 widget for displaying Pl
ii  sane                        1.0.14-9     scanner graphical frontends
ii  tesseract-ocr               2.04-2.1     Command line OCR tool
ii  unpaper                     0.3-1        post-processing tool for scanned p
ii  xdg-utils                   1.1.0~rc1-2  desktop integration utilities from

gscan2pdf suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFNp9zQvBVic1oTsEgRAq5QAJsHnGHHukw2Av1QqsUcLDzYINxStQCeJLDA
v5PVwxjY/B3RL3Oj5l1pDZU=
=buoL
-----END PGP SIGNATURE-----
INFO - Starting gscan2pdf 0.9.32
INFO - Log level DEBUG
INFO - Using de_DE.UTF-8 locale
INFO - Startup LC_NUMERIC C
INFO - Reading config from /home/yath/.gscan2pdf
INFO - Gtk2-Perl version 1.223
INFO - Built for GTK 2.24.3
INFO - Running with GTK 2.24.4
INFO - Using GtkImageView version 1.6.4
INFO - Using Gtk2::ImageView version 0.05
INFO - Using PDF::API2 version 
DEBUG - $VAR1 = {
          'frontend' => 'libsane-perl',
          'Paper' => {
                       'US Legal' => {
                                     'y' => '356',
                                     'l' => '0',
                                     'x' => '216',
                                     't' => '0'
                                   },
                       'US Letter' => {
                                      'y' => '279',
                                      'l' => '0',
                                      'x' => '216',
                                      't' => '0'
                                    },
                       'A4' => {
                               'y' => '297',
                               'l' => '0',
                               'x' => '210',
                               't' => '0'
                             }
                     },
          'unsharp radius' => '0',
          'window_maximize' => '',
          'ocr engine' => 'gocr',
          'layout' => 'single',
          'pid' => '2108',
          'cwd' => '/home/yath',
          'unsharp amount' => '1',
          'OCR output' => 'replace',
          'OCR on scan' => '1',
          'Page range' => 'all',
          'default' => {
                       'plustek:libusb:002:003' => [
                                                   {
                                                     'br-x' => '210'
                                                   },
                                                   {
                                                     'br-y' => '297'
                                                   }
                                                 ]
                     },
          'window_height' => '730',
          'user_defined_tools' => 'gimp %i',
          'rotate reverse' => '0',
          'startup warning' => '1',
          'default filename' => '%a %y-%m-%d',
          'Dark threshold' => '0.12',
          'pages to scan' => '1',
          'resolution' => '50',
          'Blank threshold' => '0.005',
          'unpaper on scan' => '1',
          'rotate facing' => '0',
          'libsane-perl version' => '0.03',
          'cache options' => '1',
          'downsample dpi' => '150',
          'window_width' => '1022',
          'window_x' => '0',
          'threshold tool' => '80',
          'window_y' => '0',
          'quality' => '75',
          'unsharp sigma' => '1',
          'date offset' => '0',
          'thumb panel' => '100',
          'version' => '0.9.32',
          'device' => undef,
          'unsharp threshold' => '0.05',
          'scan prefix' => '',
          'SANE version' => '1.0.22',
          'downsample' => '',
          'restore window' => '1',
          'pdf compression' => 'auto'
        };

INFO - Found Image::Magick
INFO - Found ImageMagick
INFO - Found scanadf
INFO - Found xdg-email
INFO - Found gocr
INFO - Found tesseract
INFO - Found cuneiform
INFO - Found cjb2 (djvu)
INFO - Found unpaper
INFO - Found libtiff
INFO - Using /tmp/tylrmZQQtO for temporary files
INFO - Using tessdata at /usr/share/tesseract-ocr/tessdata
INFO - Found tesseract language deu
INFO - Found tesseract language eng
INFO - cuneiform -l
INFO - Cuneiform for Linux 1.0.0
Supported languages: eng ger fra rus swe spa ita ruseng ukr srp hrv pol dan por 
dut cze rum hun bul slv lav lit est tur.

INFO - Sane->get_devices returned: $VAR1 = [
          {
            'name' => 'plustek:libusb:002:003',
            'model' => 'CanoScan LiDE25',
            'type' => 'flatbed scanner',
            'vendor' => 'Canon'
          }
        ];

DEBUG - Sane->get_option_descriptor returned: $VAR1 = [
          undef,
          {
            'cap' => '0',
            'unit' => '0',
            'max_values' => '1',
            'desc' => '',
            'title' => 'Scan Mode',
            'type' => '5',
            'constraint_type' => '0'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'mode',
            'val' => 'Color',
            'unit' => '0',
            'desc' => 'Selects the scan mode (e.g., lineart, monochrome, or 
color).',
            'constraint' => [
                              'Lineart',
                              'Gray',
                              'Color'
                            ],
            'title' => 'Scan mode',
            'type' => '3',
            'constraint_type' => '3'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'depth',
            'val' => '8',
            'unit' => '2',
            'desc' => 'Number of bits per sample, typical values are 1 for 
"line-art" and 8 for multibit scans.',
            'constraint' => [
                              '8',
                              '16'
                            ],
            'title' => 'Bit depth',
            'type' => '1',
            'constraint_type' => '2'
          },
          {
            'cap' => '37',
            'max_values' => '1',
            'name' => 'source',
            'unit' => '0',
            'desc' => 'Selects the scan source (such as a document-feeder).',
            'title' => 'Scan source',
            'type' => '3',
            'constraint' => [
                              'Normal',
                              'Transparency',
                              'Negative'
                            ],
            'constraint_type' => '3'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'resolution',
            'val' => '50',
            'unit' => '4',
            'desc' => 'Sets the resolution of the scanned image.',
            'constraint' => {
                              'min' => '50',
                              'max' => '2400',
                              'quant' => '0'
                            },
            'title' => 'Scan resolution',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'preview',
            'val' => '0',
            'unit' => '0',
            'desc' => 'Request a preview-quality scan.',
            'title' => 'Preview',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '64',
            'unit' => '0',
            'max_values' => '1',
            'desc' => '',
            'title' => 'Geometry',
            'type' => '5',
            'constraint_type' => '0'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'tl-x',
            'val' => '0',
            'unit' => '3',
            'desc' => 'Top-left x position of scan area.',
            'constraint' => {
                              'min' => '0',
                              'max' => '215',
                              'quant' => '0'
                            },
            'title' => 'Top-left x',
            'type' => '2',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'tl-y',
            'val' => '0',
            'unit' => '3',
            'desc' => 'Top-left y position of scan area.',
            'constraint' => {
                              'min' => '0',
                              'max' => '297',
                              'quant' => '0'
                            },
            'title' => 'Top-left y',
            'type' => '2',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'br-x',
            'val' => '103',
            'unit' => '3',
            'desc' => 'Bottom-right x position of scan area.',
            'constraint' => {
                              'min' => '0',
                              'max' => '215',
                              'quant' => '0'
                            },
            'title' => 'Bottom-right x',
            'type' => '2',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'br-y',
            'val' => '76.2099914550781',
            'unit' => '3',
            'desc' => 'Bottom-right y position of scan area.',
            'constraint' => {
                              'min' => '0',
                              'max' => '297',
                              'quant' => '0'
                            },
            'title' => 'Bottom-right y',
            'type' => '2',
            'constraint_type' => '1'
          },
          {
            'cap' => '0',
            'unit' => '0',
            'max_values' => '1',
            'desc' => '',
            'title' => 'Enhancement',
            'type' => '5',
            'constraint_type' => '0'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'brightness',
            'val' => '0',
            'unit' => '5',
            'desc' => 'Controls the brightness of the acquired image.',
            'constraint' => {
                              'min' => '-100',
                              'max' => '100',
                              'quant' => '1'
                            },
            'title' => 'Brightness',
            'type' => '2',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'contrast',
            'val' => '0',
            'unit' => '5',
            'desc' => 'Controls the contrast of the acquired image.',
            'constraint' => {
                              'min' => '-100',
                              'max' => '100',
                              'quant' => '1'
                            },
            'title' => 'Contrast',
            'type' => '2',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'custom-gamma',
            'val' => '0',
            'unit' => '0',
            'desc' => 'Determines whether a builtin or a custom gamma-table 
should be used.',
            'title' => 'Use custom gamma table',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '37',
            'max_values' => '4096',
            'name' => 'gamma-table',
            'unit' => '0',
            'desc' => 'Gamma-correction table.  In color mode this option 
equally affects the red, green, and blue channels simultaneously (i.e., it is 
an intensity gamma table).',
            'title' => 'Image intensity',
            'type' => '1',
            'constraint' => {
                              'min' => '0',
                              'max' => '255',
                              'quant' => '0'
                            },
            'constraint_type' => '1'
          },
          {
            'cap' => '37',
            'max_values' => '4096',
            'name' => 'red-gamma-table',
            'unit' => '0',
            'desc' => 'Gamma-correction table for the red band.',
            'title' => 'Red intensity',
            'type' => '1',
            'constraint' => {
                              'min' => '0',
                              'max' => '255',
                              'quant' => '0'
                            },
            'constraint_type' => '1'
          },
          {
            'cap' => '37',
            'max_values' => '4096',
            'name' => 'green-gamma-table',
            'unit' => '0',
            'desc' => 'Gamma-correction table for the green band.',
            'title' => 'Green intensity',
            'type' => '1',
            'constraint' => {
                              'min' => '0',
                              'max' => '255',
                              'quant' => '0'
                            },
            'constraint_type' => '1'
          },
          {
            'cap' => '37',
            'max_values' => '4096',
            'name' => 'blue-gamma-table',
            'unit' => '0',
            'desc' => 'Gamma-correction table for the blue band.',
            'title' => 'Blue intensity',
            'type' => '1',
            'constraint' => {
                              'min' => '0',
                              'max' => '255',
                              'quant' => '0'
                            },
            'constraint_type' => '1'
          },
          {
            'cap' => '0',
            'unit' => '0',
            'max_values' => '1',
            'desc' => '',
            'title' => 'Device-Settings',
            'type' => '5',
            'constraint_type' => '0'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'lamp-switch',
            'val' => '0',
            'unit' => '0',
            'desc' => 'Manually switching the lamp(s).',
            'title' => 'Lampswitch',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'lampoff-time',
            'val' => '300',
            'unit' => '0',
            'desc' => 'Lampoff-time in seconds.',
            'constraint' => {
                              'min' => '0',
                              'max' => '999',
                              'quant' => '1'
                            },
            'title' => 'Lampoff-time',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'lamp-off-at-exit',
            'val' => '1',
            'unit' => '0',
            'desc' => 'Turn off lamp when program exits',
            'title' => 'Lamp off at exit',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '37',
            'max_values' => '1',
            'name' => 'warmup-time',
            'unit' => '0',
            'desc' => 'Warmup-time in seconds.',
            'title' => 'Warmup-time',
            'type' => '1',
            'constraint' => {
                              'min' => '-1',
                              'max' => '999',
                              'quant' => '1'
                            },
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'lamp-off-during-dcal',
            'val' => '0',
            'unit' => '0',
            'desc' => 'Always switches lamp off when doing dark calibration.',
            'title' => 'Lamp off during dark calibration',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'calibration-cache',
            'val' => '0',
            'unit' => '0',
            'desc' => 'Enables or disables calibration data cache.',
            'title' => 'Calibration data cache',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '37',
            'unit' => '0',
            'max_values' => '1',
            'desc' => 'Enables or disables speeding up sensor movement.',
            'name' => 'speedup-switch',
            'title' => 'Speedup sensor',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '53',
            'unit' => '0',
            'max_values' => '1',
            'desc' => 'Performs calibration',
            'name' => 'calibrate',
            'title' => 'Calibrate',
            'type' => '4',
            'constraint_type' => '0'
          },
          {
            'cap' => '64',
            'unit' => '0',
            'max_values' => '1',
            'desc' => '',
            'title' => 'Analog frontend',
            'type' => '5',
            'constraint_type' => '0'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'red-gain',
            'val' => '-1',
            'unit' => '0',
            'desc' => 'Red gain value of the AFE',
            'constraint' => {
                              'min' => '-1',
                              'max' => '63',
                              'quant' => '1'
                            },
            'title' => 'Red gain',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'green-gain',
            'val' => '-1',
            'unit' => '0',
            'desc' => 'Green gain value of the AFE',
            'constraint' => {
                              'min' => '-1',
                              'max' => '63',
                              'quant' => '1'
                            },
            'title' => 'Green gain',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'blue-gain',
            'val' => '-1',
            'unit' => '0',
            'desc' => 'Blue gain value of the AFE',
            'constraint' => {
                              'min' => '-1',
                              'max' => '63',
                              'quant' => '1'
                            },
            'title' => 'Blue gain',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'red-offset',
            'val' => '-1',
            'unit' => '0',
            'desc' => 'Red offset value of the AFE',
            'constraint' => {
                              'min' => '-1',
                              'max' => '63',
                              'quant' => '1'
                            },
            'title' => 'Red offset',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'green-offset',
            'val' => '-1',
            'unit' => '0',
            'desc' => 'Green offset value of the AFE',
            'constraint' => {
                              'min' => '-1',
                              'max' => '63',
                              'quant' => '1'
                            },
            'title' => 'Green offset',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'blue-offset',
            'val' => '-1',
            'unit' => '0',
            'desc' => 'Blue offset value of the AFE',
            'constraint' => {
                              'min' => '-1',
                              'max' => '63',
                              'quant' => '1'
                            },
            'title' => 'Blue offset',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'redlamp-off',
            'val' => '-1',
            'unit' => '0',
            'desc' => 'Defines red lamp off parameter',
            'constraint' => {
                              'min' => '-1',
                              'max' => '16363',
                              'quant' => '1'
                            },
            'title' => 'Red lamp off',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'greenlamp-off',
            'val' => '-1',
            'unit' => '0',
            'desc' => 'Defines green lamp off parameter',
            'constraint' => {
                              'min' => '-1',
                              'max' => '16363',
                              'quant' => '1'
                            },
            'title' => 'Green lamp off',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '5',
            'max_values' => '1',
            'name' => 'bluelamp-off',
            'val' => '-1',
            'unit' => '0',
            'desc' => 'Defines blue lamp off parameter',
            'constraint' => {
                              'min' => '-1',
                              'max' => '16363',
                              'quant' => '1'
                            },
            'title' => 'Blue lamp off',
            'type' => '1',
            'constraint_type' => '1'
          },
          {
            'cap' => '64',
            'unit' => '0',
            'max_values' => '1',
            'desc' => '',
            'title' => 'Buttons',
            'type' => '5',
            'constraint_type' => '0'
          },
          {
            'cap' => '70',
            'max_values' => '1',
            'name' => 'button 0',
            'val' => '0',
            'unit' => '0',
            'desc' => 'This option reflects the status of the scanner buttons.',
            'title' => 'Scanner button 0',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '70',
            'max_values' => '1',
            'name' => 'button 1',
            'val' => '0',
            'unit' => '0',
            'desc' => 'This option reflects the status of the scanner buttons.',
            'title' => 'Scanner button 1',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '70',
            'max_values' => '1',
            'name' => 'button 2',
            'val' => '0',
            'unit' => '0',
            'desc' => 'This option reflects the status of the scanner buttons.',
            'title' => 'Scanner button 2',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '102',
            'unit' => '0',
            'max_values' => '1',
            'desc' => 'This option reflects the status of the scanner buttons.',
            'name' => 'button 3',
            'title' => 'Scanner button 3',
            'type' => '0',
            'constraint_type' => '0'
          },
          {
            'cap' => '102',
            'unit' => '0',
            'max_values' => '1',
            'desc' => 'This option reflects the status of the scanner buttons.',
            'name' => 'button 4',
            'title' => 'Scanner button 4',
            'type' => '0',
            'constraint_type' => '0'
          }
        ];

INFO - sane_set_option returned status Success with info 4
INFO - sane_set_option returned status Success with info 4
DEBUG - $VAR1 = [];

INFO - rotate facing 0
INFO - rotate reverse 0
INFO - non-duplex mode
INFO - rotate_facing 0
INFO - rotate_reverse 0
INFO - unpaper 1
INFO - OCR 1
INFO - gscan2pdf: scanning image of size 413x584 pixels at 24 bits/pixel
INFO - gscan2pdf: acquiring RGB frame
INFO - gscan2pdf: min/max graylevel value = 6/255
INFO - gscan2pdf: read 723576 bytes in total
INFO - Scanned page /tmp/tylrmZQQtO/out1.pnm. (scanner status = 5)
INFO - Importing scan with resolution=50
INFO - Format is P6
INFO - Header is 35
INFO - Header suggests 723611
INFO - Expecting 723611, found 723611
INFO - Importing /tmp/tylrmZQQtO/out1.pnm, format Portable anymap
INFO - Added /tmp/tylrmZQQtO/g4YtWl7eyV.pnm at page 1 with resolution 50
INFO - OCRflagging page: 0
INFO - unpaper --layout single --overwrite --input-file-sequence 
/tmp/tylrmZQQtO/g4YtWl7eyV.pnm --output-file-sequence 
/tmp/tylrmZQQtO/zYR6G5SRxK.pnm ;
INFO - Forked PID 2196
DEBUG - Processing sheet: /tmp/tylrmZQQtO/g4YtWl7eyV.pnm -> 
/tmp/tylrmZQQtO/zYR6G5SRxK.pnm

INFO - Waiting to reap process
INFO - Reaped PID -1
INFO - gocr /tmp/tylrmZQQtO/zYR6G5SRxK.pnm > /tmp/tylrmZQQtO/ARM90pPZ6x.txt;
INFO - Forked PID 2198
INFO - Waiting to reap process
INFO - Reaped PID -1

Reply via email to