#143 regression from 1.0.5 , unpaper halts and freezes

closed-invalid
nobody
None
5
2012-08-22
2012-07-21
Anonymous
No

ver 1.0.6 regression from 1.0.5 , unpaper halts and freezes .
renumber not working in ver 1.0.5 is cured in 1.0.6 but there is regression in unpaper .

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-07-21

    it's under precise pangolin ubuntu.

     
  • Jeffrey Ratcliffe

    Does unpaper freeze as part of the scan process, or started from the Tools menu? Or both?

    Please start gscan2pdf with

    gscan2pdf --log=log

    reproduce the problem, quit, and post the log file

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-07-21

    i tried both and happens in both, here is the output of terminal,

    'type' => '3',
    'constraint' => [
    'JPEG'
    ],
    'title' => 'Compression',
    'constraint_type' => '3'
    },
    'jpeg-quality' => {
    'cap' => '101',
    'max_values' => '1',
    'name' => 'jpeg-quality',
    'index' => 8,
    'unit' => '0',
    'desc' => 'Sets the scanner JPEG compression factor. Larger numbers mean better compression, and smaller numbers mean better image quality.',
    'title' => 'JPEG compression factor',
    'type' => '1',
    'constraint' => {
    'min' => '0',
    'max' => '100',
    'quant' => '0'
    },
    'constraint_type' => '1'
    },
    'br-x' => {
    'cap' => '5',
    'max_values' => '1',
    'name' => 'br-x',
    'val' => '215.900009155273',
    'index' => 12,
    'unit' => '3',
    'desc' => 'Bottom-right x position of scan area.',
    'type' => '2',
    'constraint' => {
    'min' => '0',
    'max' => '215.900009155273',
    'quant' => '0'
    },
    'title' => 'Bottom-right x',
    'constraint_type' => '1'
    },
    'resolution' => {
    'cap' => '5',
    'max_values' => '1',
    'name' => 'resolution',
    'val' => '75',
    'index' => 3,
    'unit' => '4',
    'desc' => 'Sets the resolution of the scanned image.',
    'type' => '1',
    'constraint' => [
    '75',
    '100',
    '200',
    '300',
    '600',
    '1200'
    ],
    'title' => 'Scan resolution',
    'constraint_type' => '2'
    },
    'geometry-group' => {
    'cap' => '64',
    'max_values' => '0',
    'name' => 'geometry-group',
    'unit' => '0',
    'index' => 9,
    'title' => 'Geometry',
    'type' => '5',
    'constraint_type' => '0'
    }
    },
    'array' => [
    {
    'index' => 0
    },
    $VAR1->{'hash'}{'mode-group'},
    $VAR1->{'hash'}{'mode'},
    $VAR1->{'hash'}{'resolution'},
    $VAR1->{'hash'}{'source'},
    $VAR1->{'hash'}{'advanced-group'},
    $VAR1->{'hash'}{'contrast'},
    $VAR1->{'hash'}{'compression'},
    $VAR1->{'hash'}{'jpeg-quality'},
    $VAR1->{'hash'}{'geometry-group'},
    $VAR1->{'hash'}{'tl-x'},
    $VAR1->{'hash'}{'tl-y'},
    $VAR1->{'hash'}{'br-x'},
    $VAR1->{'hash'}{'br-y'}
    ],
    'geometry' => {
    'y' => '297.010681152344',
    'l' => '0',
    'x' => '215.900009155273',
    't' => '0'
    }
    }, 'Gscan2pdf::Scanner::Options' );

    INFO - sane_set_option 12 to 210 returned status Success with info 4
    INFO - sane_set_option 13 to 297 returned status Success with info 4
    INFO - sane_set_option 2 to Lineart returned status Success with info 6
    DEBUG - Sane->get_option_descriptor returned: $VAR1 = [
    undef,
    {
    'cap' => '0',
    'unit' => '0',
    'max_values' => '0',
    'name' => 'mode-group',
    'title' => 'Scan mode',
    'type' => '5',
    'constraint_type' => '0'
    },
    {
    'cap' => '5',
    'max_values' => '1',
    'name' => 'mode',
    'val' => 'Lineart',
    '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' => 'resolution',
    'val' => '75',
    'unit' => '4',
    'desc' => 'Sets the resolution of the scanned image.',
    'constraint' => [
    '75',
    '100',
    '200',
    '300',
    '600',
    '1200'
    ],
    'title' => 'Scan resolution',
    'type' => '1',
    'constraint_type' => '2'
    },
    {
    'cap' => '5',
    'max_values' => '1',
    'name' => 'source',
    'val' => 'Flatbed',
    'unit' => '0',
    'desc' => 'Selects the scan source (such as a document-feeder).',
    'constraint' => [
    'Flatbed'
    ],
    'title' => 'Scan source',
    'type' => '3',
    'constraint_type' => '3'
    },
    {
    'cap' => '64',
    'unit' => '0',
    'max_values' => '0',
    'name' => 'advanced-group',
    'title' => 'Advanced',
    'type' => '5',
    'constraint_type' => '0'
    },
    {
    'cap' => '69',
    'max_values' => '1',
    'name' => 'contrast',
    'val' => '0',
    'unit' => '0',
    'desc' => 'Controls the contrast of the acquired image.',
    'constraint' => {
    'min' => '-127',
    'max' => '127',
    'quant' => '0'
    },
    'title' => 'Contrast',
    'type' => '1',
    'constraint_type' => '1'
    },
    {
    'cap' => '69',
    'max_values' => '1',
    'name' => 'compression',
    'val' => 'JPEG',
    'unit' => '0',
    'desc' => 'Selects the scanner compression method for faster scans, possibly at the expense of image quality.',
    'constraint' => [
    'JPEG'
    ],
    'title' => 'Compression',
    'type' => '3',
    'constraint_type' => '3'
    },
    {
    'cap' => '101',
    'max_values' => '1',
    'name' => 'jpeg-quality',
    'val' => '10',
    'unit' => '0',
    'desc' => 'Sets the scanner JPEG compression factor. Larger numbers mean better compression, and smaller numbers mean better image quality.',
    'constraint' => {
    'min' => '0',
    'max' => '100',
    'quant' => '0'
    },
    'title' => 'JPEG compression factor',
    'type' => '1',
    'constraint_type' => '1'
    },
    {
    'cap' => '64',
    'unit' => '0',
    'max_values' => '0',
    'name' => 'geometry-group',
    '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.900009155273',
    '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.010681152344',
    'quant' => '0'
    },
    'title' => 'Top-left y',
    'type' => '2',
    'constraint_type' => '1'
    },
    {
    'cap' => '5',
    'max_values' => '1',
    'name' => 'br-x',
    'val' => '210',
    'unit' => '3',
    'desc' => 'Bottom-right x position of scan area.',
    'constraint' => {
    'min' => '0',
    'max' => '215.900009155273',
    'quant' => '0'
    },
    'title' => 'Bottom-right x',
    'type' => '2',
    'constraint_type' => '1'
    },
    {
    'cap' => '5',
    'max_values' => '1',
    'name' => 'br-y',
    'val' => '297',
    'unit' => '3',
    'desc' => 'Bottom-right y position of scan area.',
    'constraint' => {
    'min' => '0',
    'max' => '297.010681152344',
    'quant' => '0'
    },
    'title' => 'Bottom-right y',
    'type' => '2',
    'constraint_type' => '1'
    }
    ];

    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
    INFO - gscan2pdf: scanning image of size 620x876 pixels at 1 bits/pixel
    INFO - gscan2pdf: acquiring gray frame
    INFO - gscan2pdf: read 68328 bytes in total
    INFO - Scanned page /tmp/gscan2pdf-CmPv/out1.pnm. (scanner status = 5)
    INFO - Importing scan with resolution=75
    INFO - Format is P4
    INFO - Header is 31
    INFO - Header suggests 67921
    INFO - Expecting 67921, found 68359
    INFO - New page filename /tmp/gscan2pdf-CmPv/out1.pnm, format Portable anymap
    INFO - Added /tmp/gscan2pdf-CmPv/_6wbNYgcfv.pnm at page 1 with resolution 75
    DEBUG - $VAR1 = [
    [
    1,
    bless( {}, 'Gtk2::Gdk::Pixbuf' ),
    bless( {
    'w' => 620,
    'h' => 876,
    'filename' => bless( \*{'File::Temp::$fh'}, 'File::Temp' ),
    'format' => 'Portable anymap',
    'resolution' => '75',
    'delete' => 1,
    'dir' => bless( {
    'LAUNCHPID' => 2372,
    'DIRNAME' => '/tmp/gscan2pdf-CmPv',
    'CLEANUP' => 1
    }, 'File::Temp::Dir' )
    }, 'Gscan2pdf::Page' )
    ]
    ];

    unpaper --no-blackfilter --output-pages 2 --no-blurfilter --no-noisefilter --white-threshold 0.9 --layout double --no-mask-scan --no-grayfilter --black-threshold 0.33 --deskew-scan-direction left,right --border-margin 0,0 --overwrite /tmp/gscan2pdf-CmPv/_6wbNYgcfv.pnm /tmp/gscan2pdf-CmPv/6Pq6VwTajT.pnm /tmp/gscan2pdf-CmPv/E7vfWXEcR7.pnm;
    INFO - unpaper --no-blackfilter --output-pages 2 --no-blurfilter --no-noisefilter --white-threshold 0.9 --layout double --no-mask-scan --no-grayfilter --black-threshold 0.33 --deskew-scan-direction left,right --border-margin 0,0 --overwrite /tmp/gscan2pdf-CmPv/_6wbNYgcfv.pnm /tmp/gscan2pdf-CmPv/6Pq6VwTajT.pnm /tmp/gscan2pdf-CmPv/E7vfWXEcR7.pnm;
    Processing sheet: /tmp/gscan2pdf-CmPv/_6wbNYgcfv.pnm -> /tmp/gscan2pdf-CmPv/6Pq6VwTajT.pnm, /tmp/gscan2pdf-CmPv/6Pq6VwTajT.pnm
    INFO - New page filename /tmp/gscan2pdf-CmPv/6Pq6VwTajT.pnm, format Portable anymap
    INFO - New page filename /tmp/gscan2pdf-CmPv/E7vfWXEcR7.pnm, format Portable anymap
    WARN - Exception 425: improper image header `/tmp/gscan2pdf-CmPv/E7vfWXEcR7.pnm' @ error/pnm.c/ReadPNMImage/289
    Use of uninitialized value $format in string ne at /usr/share/perl5/Gscan2pdf/Document.pm line 276.
    Use of uninitialized value $width in division (/) at /usr/share/perl5/Gscan2pdf/Document.pm line 287.
    Use of uninitialized value $height in division (/) at /usr/share/perl5/Gscan2pdf/Document.pm line 287.
    Thread 1 terminated abnormally: Illegal division by zero at /usr/share/perl5/Gscan2pdf/Document.pm line 287.
    DEBUG - $VAR1 = [
    [
    1,
    bless( {}, 'Gtk2::Gdk::Pixbuf' ),
    bless( {
    'w' => 620,
    'h' => 876,
    'filename' => bless( \*{'File::Temp::$fh'}, 'File::Temp' ),
    'format' => 'Portable anymap',
    'resolution' => '75',
    'delete' => 1,
    'dir' => bless( {
    'LAUNCHPID' => 2372,
    'DIRNAME' => '/tmp/gscan2pdf-CmPv',
    'CLEANUP' => 1
    }, 'File::Temp::Dir' )
    }, 'Gscan2pdf::Page' )
    ]
    ];

    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
    INFO - gscan2pdf: scanning image of size 620x876 pixels at 1 bits/pixel
    INFO - gscan2pdf: acquiring gray frame
    INFO - gscan2pdf: read 68328 bytes in total
    INFO - Scanned page /tmp/gscan2pdf-CmPv/out2.pnm. (scanner status = 5)
    INFO - Importing scan with resolution=75
    INFO - Format is P4
    INFO - Header is 31
    INFO - Header suggests 67921
    INFO - Expecting 67921, found 68359
    INFO - New page filename /tmp/gscan2pdf-CmPv/out2.pnm, format Portable anymap
    INFO - Added /tmp/gscan2pdf-CmPv/LHTQc6iBXB.pnm at page 2 with resolution 75
    DEBUG - $VAR1 = [
    [
    1,
    bless( {}, 'Gtk2::Gdk::Pixbuf' ),
    bless( {
    'w' => 620,
    'h' => 876,
    'filename' => bless( \*{'File::Temp::$fh'}, 'File::Temp' ),
    'format' => 'Portable anymap',
    'resolution' => '75',
    'delete' => 1,
    'dir' => bless( {
    'LAUNCHPID' => 2372,
    'DIRNAME' => '/tmp/gscan2pdf-CmPv',
    'CLEANUP' => 1
    }, 'File::Temp::Dir' )
    }, 'Gscan2pdf::Page' )
    ],
    [
    2,
    bless( {}, 'Gtk2::Gdk::Pixbuf' ),
    bless( {
    'w' => 620,
    'h' => 876,
    'filename' => bless( \*{'File::Temp::$fh'}, 'File::Temp' ),
    'format' => 'Portable anymap',
    'resolution' => '75',
    'delete' => 1,
    'dir' => $VAR1->[0][2]{'dir'}
    }, 'Gscan2pdf::Page' )
    ]
    ];

    INFO - Emptying process queue
    INFO - Killing pid 2372

    DEBUG - $VAR1 = [
    [
    1,
    bless( {}, 'Gtk2::Gdk::Pixbuf' ),
    bless( {
    'w' => 620,
    'h' => 876,
    'filename' => bless( \*{'File::Temp::$fh'}, 'File::Temp' ),
    'format' => 'Portable anymap',
    'resolution' => '75',
    'delete' => 1,
    'dir' => bless( {
    'LAUNCHPID' => 2372,
    'DIRNAME' => '/tmp/gscan2pdf-CmPv',
    'CLEANUP' => 1
    }, 'File::Temp::Dir' )
    }, 'Gscan2pdf::Page' )
    ],
    [
    2,
    bless( {}, 'Gtk2::Gdk::Pixbuf' ),
    bless( {
    'w' => 620,
    'h' => 876,
    'filename' => bless( \*{'File::Temp::$fh'}, 'File::Temp' ),
    'format' => 'Portable anymap',
    'resolution' => '75',
    'delete' => 1,
    'dir' => $VAR1->[0][2]{'dir'}
    }, 'Gscan2pdf::Page' )
    ]
    ];

    DEBUG - $VAR1 = [
    [
    1,
    bless( {}, 'Gtk2::Gdk::Pixbuf' ),
    bless( {
    'w' => 620,
    'h' => 876,
    'filename' => bless( \*{'File::Temp::$fh'}, 'File::Temp' ),
    'format' => 'Portable anymap',
    'resolution' => '75',
    'delete' => 1,
    'dir' => bless( {
    'LAUNCHPID' => 2372,
    'DIRNAME' => '/tmp/gscan2pdf-CmPv',
    'CLEANUP' => 1
    }, 'File::Temp::Dir' )
    }, 'Gscan2pdf::Page' )
    ],
    [
    2,
    bless( {}, 'Gtk2::Gdk::Pixbuf' ),
    bless( {
    'w' => 620,
    'h' => 876,
    'filename' => bless( \*{'File::Temp::$fh'}, 'File::Temp' ),
    'format' => 'Portable anymap',
    'resolution' => '75',
    'delete' => 1,
    'dir' => $VAR1->[0][2]{'dir'}
    }, 'Gscan2pdf::Page' )
    ]
    ];

    INFO - Wrote config to /home/vishal/.gscan2pdf
    DEBUG - Quitting

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-07-21

    log for unpaper regression

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-07-21

    sorry for posting terminal output here , now i attached the log file as you told.

     
  • Jeffrey Ratcliffe

    This is the unpaper call constructed by gscan2pdf:

    unpaper --no-blackfilter --output-pages 2 --no-blurfilter
    --no-noisefilter --white-threshold 0.9 --layout double --no-mask-scan
    --no-grayfilter --black-threshold 0.33 --deskew-scan-direction left,right
    --border-margin 0,0 --overwrite /tmp/gscan2pdf-CmPv/_6wbNYgcfv.pnm
    /tmp/gscan2pdf-CmPv/6Pq6VwTajT.pnm /tmp/gscan2pdf-CmPv/E7vfWXEcR7.pnm;

    Where is asks the following input:

    /tmp/gscan2pdf-CmPv/_6wbNYgcfv.pnm

    and the following output:

    /tmp/gscan2pdf-CmPv/6Pq6VwTajT.pnm
    /tmp/gscan2pdf-CmPv/E7vfWXEcR7.pnm

    But the output from unpaper:

    Processing sheet: /tmp/gscan2pdf-CmPv/_6wbNYgcfv.pnm ->
    /tmp/gscan2pdf-CmPv/6Pq6VwTajT.pnm, /tmp/gscan2pdf-CmPv/6Pq6VwTajT.pnm

    ignores the second pape (it write to the first page twice).

    Precise has unpaper 0.3, and you seem to have a newer version. But here, with 0.4.2, rather than "Processing sheet", unpaper reports "Processing sheet #1".

    What version of unpaper are you using? Can you try 0.4.2?

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-08-21

    problem solved with unpaper 0.4.2

    sorry to post late, thank you

     
  • Jeffrey Ratcliffe

    • status: open --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks