Hello,
I have the same problem:
   gscan2pdf: sane_start: Invalid argument

I run from the command line with the "--log=log" option and create the log.xz 
file that I attach.
My system is:
   * Kubuntu 20.10 (Ubuntu + KDE)
   * Scanner: Brother DCP-J562DW
I've been able to use this scanner in al ubuntu versions (I'm long linux user 
and gscan2pdf too), but I'm not sure if I've used with the previous 20.04 
version (I think that yes).

I have another PC with Windows 10 and the scanner works. So is something
with my system not with the device.


** Attachment added: "Log for gscan2pdf"
   
https://bugs.launchpad.net/ubuntu/+source/gscan2pdf/+bug/844582/+attachment/5458553/+files/log.xz

-- 
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:
  Invalid
Status in sane-backends package in Ubuntu:
  Opinion

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to