Comment 84 for bug 424249

Revision history for this message
Cristiano Canguçu (cristiano-figueira) wrote :

I don't know if it is the SAME bug, but gscan2pdf always freezes when saving PDFs. Using Kubuntu 14.04, gscan2pdf 1.2.3-1 and perlmagick 8:6.7.7.10-6ubuntu2. I've attached an scan2pfd --debug text output.

The message bellow caught my attention:
"Use of uninitialized value in division (/) at /usr/share/perl5/Gscan2pdf/Document.pm line 1767.
Thread 1 terminated abnormally: Illegal division by zero at /usr/share/perl5/Gscan2pdf/Document.pm line 1767."

Line 1767 is the first non-comment line in this block:
# Get the size and resolution. Resolution is dots per inch, width
# and height are in inches.
my $w = $image->Get('width') / $pagedata->{resolution};
my $h = $image->Get('height') / $pagedata->{resolution};
$pagedata->{w} = $w;
$pagedata->{h} = $h;