here is my output from debug, hangs at the same point: $ gscan2pdf --debug gscan2pdf 0.9.29 Using en_US.UTF-8 locale Running init Running sane_init Gtk2-Perl version 1.221 Built for 2.18.2 Running with 2.18.3 Using GtkImageView version 1.6.1 Using Gtk2::ImageView version 0.05 Using PDF::API2 version 0.73 $VAR1 = { 'ocr panel' => '527', 'frontend' => 'libsane-perl', 'Paper' => { 'US Legal' => { 'l' => '0', 'y' => '356', 'x' => '216', 't' => '0' }, 'US Letter' => { 'l' => '0', 'y' => '279', 'x' => '216', 't' => '0' }, 'A4' => { 'l' => '0', 'y' => '297', 'x' => '210', 't' => '0' } }, 'unsharp radius' => '0', 'ocr engine' => 'gocr', 'window_maximize' => '1', 'keywords' => '', 'layout' => 'single', 'cwd' => '/home/frenzy', 'unsharp amount' => '1', 'OCR output' => 'replace', 'image type' => 'pdf', 'OCR on scan' => '1', 'Page range' => 'all', 'subject' => '', 'default' => { 'hpaio:/usb/PSC_2350_series?serial=MY55IF53N8KJ' => { 'br-x' => '210' } }, 'window_height' => '690', 'startup warning' => '1', 'rotate reverse' => '0', 'Dark threshold' => '0.12', 'pages to scan' => '1', 'Blank threshold' => '0.005', 'title' => 'test', 'unpaper on scan' => '1', 'rotate facing' => '0', 'cache options' => '1', 'libsane-perl version' => '0.03', 'author' => '', 'downsample dpi' => '150', 'window_width' => '1014', 'window_x' => '0', 'threshold tool' => '80', 'window_y' => '25', 'quality' => '75', 'date offset' => '0', 'unsharp sigma' => '1', 'thumb panel' => '100', 'version' => '0.9.29', 'device' => '', 'scan prefix' => '', 'unsharp threshold' => '0.05', 'SANE version' => '1.0.20', 'downsample' => '', 'restore window' => '1', 'pdf compression' => 'auto' }; Found Image::Magick Found ImageMagick Found scanadf Found xdg-email Found gocr Found tesseract Found cjb2 (djvu) Found unpaper Found libtiff Using /tmp/unehGbe6W1 for temporary files Running sane_get_devices $VAR1 = []; *** unhandled exception in callback: *** Can't call method "get_active" on an undefined value at /usr/bin/gscan2pdf line 4548. *** ignoring at /usr/bin/gscan2pdf line 10341. Sane->get_devices returned: $VAR1 = [ { 'name' => 'hpaio:/usb/PSC_2350_series?serial=MY55IF53N8KJ', 'model' => 'PSC_2350_series', 'type' => 'all-in-one', 'vendor' => 'Hewlett-Packard' } ]; sane_open returned SANE_Handle 162268928 Getting option 0 from SANE_Handle 162268928 Getting option description 1 from SANE_Handle 162268928 Getting option description 2 from SANE_Handle 162268928 Getting option 2 from SANE_Handle 162268928 Getting option description 3 from SANE_Handle 162268928 Getting option 3 from SANE_Handle 162268928 Getting option description 4 from SANE_Handle 162268928 Getting option description 5 from SANE_Handle 162268928 Getting option 5 from SANE_Handle 162268928 Getting option description 6 from SANE_Handle 162268928 Getting option 6 from SANE_Handle 162268928 Getting option description 7 from SANE_Handle 162268928 Getting option 7 from SANE_Handle 162268928 Getting option description 8 from SANE_Handle 162268928 Getting option 8 from SANE_Handle 162268928 Getting option description 9 from SANE_Handle 162268928 Getting option 9 from SANE_Handle 162268928 Getting option description 10 from SANE_Handle 162268928 Getting option description 11 from SANE_Handle 162268928 Getting option 11 from SANE_Handle 162268928 Getting option description 12 from SANE_Handle 162268928 Getting option 12 from SANE_Handle 162268928 Getting option description 13 from SANE_Handle 162268928 Getting option 13 from SANE_Handle 162268928 Getting option description 14 from SANE_Handle 162268928 Getting option 14 from SANE_Handle 162268928 Getting option description 15 from SANE_Handle 162268928 Getting option 15 from SANE_Handle 162268928 Sane->get_option_descriptor returned: $VAR1 = [ undef, { 'cap' => 0, 'unit' => 0, 'max_values' => 0, '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' ], 'type' => 3, 'title' => 'Scan mode', 'constraint_type' => 3 }, { 'cap' => 5, 'max_values' => 1, 'name' => 'resolution', 'val' => 75, 'unit' => 4, 'desc' => 'Sets the resolution of the scanned image.', 'constraint' => { 'min' => 75, 'max' => 1200, 'quant' => 0 }, 'type' => 1, 'title' => 'Scan resolution', 'constraint_type' => 1 }, { 'cap' => 64, 'unit' => 0, 'max_values' => 0, 'title' => 'Advanced', 'type' => 5, 'constraint_type' => 0 }, { 'cap' => 101, 'max_values' => 1, 'name' => 'contrast', 'val' => 50, 'unit' => 0, 'desc' => 'Controls the contrast of the acquired image.', 'constraint' => { 'min' => 0, 'max' => 100, 'quant' => 0 }, 'type' => 1, 'title' => 'Contrast', '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' => [ 'None', 'JPEG' ], 'type' => 3, 'title' => 'Compression', 'constraint_type' => 3 }, { 'cap' => 69, '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 }, 'type' => 1, 'title' => 'JPEG compression factor', 'constraint_type' => 1 }, { 'cap' => 69, 'max_values' => 1, 'name' => 'batch-scan', 'val' => 0, 'unit' => 0, 'desc' => 'Enables continuous scanning with automatic document feeder (ADF).', 'type' => 0, 'title' => 'Batch scan', 'constraint_type' => 0 }, { 'cap' => 69, 'max_values' => 1, 'name' => 'source', 'val' => 'Flatbed', 'unit' => 0, 'desc' => 'Selects the scan source (such as a document-feeder).', 'constraint' => [ 'Flatbed' ], 'type' => 3, 'title' => 'Scan source', 'constraint_type' => 3 }, { 'cap' => 64, 'unit' => 0, 'max_values' => 0, 'title' => 'Geometry', 'type' => 5, 'constraint_type' => 0 }, { 'cap' => 69, 'max_values' => 1, 'name' => 'length-measurement', 'val' => 'Padded', 'unit' => 0, 'desc' => 'Selects how the scanned image length is measured and reported, which is impossible to know in advance for scrollfed scans.', 'constraint' => [ 'Unknown', 'Approximate', 'Padded' ], 'type' => 3, 'title' => 'Length measurement', 'constraint_type' => 3 }, { '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.899993896484', 'quant' => 0 }, 'type' => 2, 'title' => 'Top-left x', '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' => '296.925994873047', 'quant' => 0 }, 'type' => 2, 'title' => 'Top-left y', 'constraint_type' => 1 }, { 'cap' => 5, 'max_values' => 1, 'name' => 'br-x', 'val' => '215.899993896484', 'unit' => 3, 'desc' => 'Bottom-right x position of scan area.', 'constraint' => { 'min' => 0, 'max' => '215.899993896484', 'quant' => 0 }, 'type' => 2, 'title' => 'Bottom-right x', 'constraint_type' => 1 }, { 'cap' => 5, 'max_values' => 1, 'name' => 'br-y', 'val' => '296.925994873047', 'unit' => 3, 'desc' => 'Bottom-right y position of scan area.', 'constraint' => { 'min' => 0, 'max' => '296.925994873047', 'quant' => 0 }, 'type' => 2, 'title' => 'Bottom-right y', 'constraint_type' => 1 } ]; Setting option 14 on SANE_Handle 162268928 $VAR1 = []; rotate facing 0 rotate reverse 0 non-duplex mode rotate_facing 0 rotate_reverse 0 unpaper 1 OCR 1 Running sane_start for SANE_Handle 162268928 Getting parameters for SANE_Handle 162268928 gscan2pdf: scanning image of size 620x877 pixels at 24 bits/pixel gscan2pdf: acquiring RGB frame gscan2pdf: min/max graylevel value = 0/255 gscan2pdf: read 1631220 bytes in total Scanned page /tmp/unehGbe6W1/out1.pnm. (scanner status = 5) Importing /tmp/unehGbe6W1/out1.pnm, format Portable anymap Added /tmp/unehGbe6W1/LKbNcTDVa0.pnm at page 1 with resolution 75 OCRflagging page: 0 unpaper --layout single --overwrite --input-file-sequence /tmp/unehGbe6W1/LKbNcTDVa0.pnm --output-file-sequence /tmp/unehGbe6W1/i0lbMgHh4R.pnm ; Forked PID 6125 Processing sheet: /tmp/unehGbe6W1/LKbNcTDVa0.pnm -> /tmp/unehGbe6W1/i0lbMgHh4R.pnm Waiting to reap process at /usr/bin/gscan2pdf line 8825. Reaped PID 0 gocr /tmp/unehGbe6W1/i0lbMgHh4R.pnm > /tmp/unehGbe6W1/spdFNM6cLj.txt; Forked PID 6127 Waiting to reap process at /usr/bin/gscan2pdf line 9325. Reaped PID 0 Forked PID 6138 <- HANGS HERE! Use of uninitialized value $line in pattern match (m//) at /usr/share/perl5/Config/General.pm line 1224. Use of uninitialized value $line in pattern match (m//) at /usr/share/perl5/Config/General.pm line 1224. Use of uninitialized value $line in substitution (s///) at /usr/share/perl5/Config/General.pm line 1246. Use of uninitialized value $line in concatenation (.) or string at /usr/share/perl5/Config/General.pm line 1247. Closing SANE_Handle 162268928 Exiting via sane_exit False alarm on 0. Exiting via sane_exit