← Back to team overview

desktop-packages team mailing list archive

[Bug 844582] Re: "Invalid argument" when trying to scan

 

As you have noted, the 001:005 refers to the usb device. However this
can change between boots. Did you reboot between the gscan2pdf/scanimage
and epson sessions?

As you can reproduce this from the commandline with scanimage, I am
transferring this bug to sane-backends, as the bug must be in the
epson/epkowa backend in SANE.

"Invalid argument", is simply the error code that libsane returns.
Unfortunately, it does not provide any more information that that by
default.

However, you can run scanimage with debugging turned on. I would ask on
the SANE mailing list for more help.

** Also affects: sane-backends (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to sane-backends in Ubuntu.
https://bugs.launchpad.net/bugs/844582

Title:
  "Invalid argument" when trying to scan

Status in gscan2pdf package in Ubuntu:
  Incomplete
Status in sane-backends package in Ubuntu:
  New

Bug description:
  I'm using a Fujitsu M3091DCd scanner with SANE. From the command line
  it works more or less well with Ubuntu.

  I can't use it with gscan2pdf v0.9.31, but gscan2pdf works with
  another scanner.

  All I get is a meaningless "Invalid argument" when I hit the scan
  button.

  When I start gscan2pdf from the command line I see these lines
  appearing when I hit the scan button:

  Error running process: Died at (eval 39) line 7.

    $device->start;
    $shash{$sane_thread}{status} = $Sane::STATUS+0;
    if ($Sane::STATUS != SANE_STATUS_GOOD) {
     print "$prog_name: sane_start: $Sane::STATUS\n" if $debug;
     $shash{$sane_thread}{go} = 0;
     die; # quickest way out of the eval block
    }

    my $path = $shash{$sane_thread}{data};
    if (not open($fh, ">", $path)) {
     $device->cancel;
     $shash{$sane_thread}{status} = SANE_STATUS_ACCESS_DENIED;
     $shash{$sane_thread}{go} = 0;
     die; # quickest way out of the eval block
    }
    scan_page($device, $fh);
    $shash{$sane_thread}{status} = $Sane::STATUS+0;
    close $fh;
    printf "Scanned page %s.", $path if $debug;
    printf " (scanner status = %d)\n", $Sane::STATUS if $debug;
    $shash{$sane_thread}{status} = $Sane::STATUS+0;
    $shash{$sane_thread}{go} = 0;

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: gscan2pdf 0.9.31-2
  ProcVersionSignature: Ubuntu 2.6.38-11.48-generic 2.6.38.8
  Uname: Linux 2.6.38-11-generic x86_64
  NonfreeKernelModules: fglrx
  Architecture: amd64
  Date: Thu Sep  8 09:44:25 2011
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=
   PATH=(custom, no username)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: gscan2pdf
  UpgradeStatus: Upgraded to natty on 2011-06-01 (98 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gscan2pdf/+bug/844582/+subscriptions