Bug 700725 - Only color scanning possible since update of sane-backend to 1.0.22
Summary: Only color scanning possible since update of sane-backend to 1.0.22
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: sane-backends
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-29 08:33 UTC by Christian Nolte
Modified: 2012-08-16 22:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 22:37:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Verbos output of avision backend using Avision AV 220 scanner (26.26 KB, text/plain)
2011-11-17 18:28 UTC, hans
no flags Details

Description Christian Nolte 2011-04-29 08:33:00 UTC
Since the update on Apr 13 only color mode scanning is available using tools based on sane-backends (e.g. xsane). Before the update and since Fedora 10 it was possible to scan in greyscale/lineart/color/etc.:

---
[root@velian01 ~]# grep sane /var/log/yum.log 
Apr 04 10:27:24 Installed: xsane-0.998-1.fc14.i686
Apr 13 10:06:47 Updated: xsane-common-0.998-3.fc14.i686
Apr 13 10:07:34 Updated: sane-backends-libs-gphoto2-1.0.22-1.fc14.i686
Apr 13 10:07:37 Updated: sane-backends-libs-1.0.22-1.fc14.i686
Apr 13 10:07:39 Updated: sane-backends-1.0.22-1.fc14.i686
Apr 13 10:07:39 Updated: xsane-gimp-0.998-3.fc14.i686
Apr 13 10:07:41 Updated: xsane-0.998-3.fc14.i686

[root@velian01 ~]# scanimage -L
device `avision:libusb:002:013' is a Avision AV220C2 sheetfed scanner
---

I did:

Apr 29 10:22:29 Erased: libsane-hpaio
Apr 29 10:22:31 Erased: xsane-gimp
Apr 29 10:22:32 Erased: xsane
Apr 29 10:22:47 Erased: sane-backends-libs-gphoto2
Apr 29 10:22:56 Erased: xsane-common
Apr 29 10:22:57 Erased: sane-backends
Apr 29 10:22:58 Erased: sane-backends-libs

and then a forced downgrade:

rpm -ihv ftp://fedora.tu-chemnitz.de/pub/linux/fedora/linux/releases/14/Everything/i386/os/Packages/sane-backends-1.0.21-3.fc14.i686.rpm ftp://fedora.tu-chemnitz.de/pub/linux/fedora/linux/releases/14/Everything/i386/os/Packages/sane-backends-libs-1.0.21-3.fc14.i686.rpm ftp://fedora.tu-chemnitz.de/pub/linux/fedora/linux/releases/14/Everything/i386/os/Packages/xsane-0.997-10.fc14.i686.rpm ftp://fedora.tu-chemnitz.de/pub/linux/fedora/linux/releases/14/Everything/i386/os/Packages/xsane-common-0.997-10.fc14.i686

which gives the missing color mode options back.

Comment 1 Nils Philippsen 2011-04-29 15:03:07 UTC
I suspect that you see the issue with sane-backends-1.0.22 regardless of the version of xsane, is this correct?

To get an idea of what goes wrong here, please update the packages so you see the issue, then run xsane this way to get debugging output:

env SANE_DEBUG_AVISION=3 xsane >/tmp/xsane-avision.out 2>&1

You needn't scan something for now, getting to the point where you would choose lineart/gray/color should suffice, then quit xsane. Please attach the resulting file /tmp/xsane-avision.out. Thanks.

Comment 2 Nils Philippsen 2011-06-24 10:16:09 UTC
Would you please provide the information requested above? Otherwise I'll have to close this bug. Thanks!

Comment 3 hans 2011-11-17 18:28:08 UTC
Created attachment 534287 [details]
Verbos output of avision backend using Avision AV 220 scanner

Output as request in comment 1.

Output was created on a ubuntu 11.04 but with sane backend version 1.0.22, the same version the one redhat uses, and this error was reported for. I can also confirm, that downgrading to 1.0.20 "fixes" this bug (ubuntu 10.10). So I am really convinced that this error is teh same for both distros (redhat and ubuntu).

Comment 4 hans 2011-11-18 10:07:08 UTC
After bisecting sane-backends I found out, that the regression is introduced with the second chunk in commit 634bb89a710f2f6d498966633473adc483c765ea in git://git.debian.org/sane/sane-backends.git. I will notify the maintainers.

Comment 5 Nils Philippsen 2011-11-18 11:12:37 UTC
It seem that the chunk you mention is a valid fix for missing parentheses:

-  if (!dev->hw->feature_type & AV_GRAY_MODES)
+  if (! (dev->hw->feature_type & AV_GRAY_MODES))

The buggy version of this line apparently masked that the AV_GRAY_MODES feature bit isn't set for your particular type of scanner. Assuming that this is the real error, I'll fix this upstream and build new patched packages.

Comment 6 Fedora Update System 2011-11-18 12:00:04 UTC
sane-backends-1.0.22-6.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/sane-backends-1.0.22-6.fc14

Comment 7 Fedora Update System 2011-11-18 12:00:22 UTC
sane-backends-1.0.22-6.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/sane-backends-1.0.22-6.fc15

Comment 8 Fedora Update System 2011-11-18 12:00:45 UTC
sane-backends-1.0.22-6.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/sane-backends-1.0.22-6.fc16

Comment 9 hans 2011-11-18 12:55:09 UTC
Hi Nils. I have successfully tested your fix (Commit c648a44 in sane-backends). My scanner is working again as expected. 

I tested it on my Avision AV220, by building sane-backend on an ubuntu 11.04. So I did not tested using your RPMs, though.

Comment 10 Fedora Update System 2011-11-19 05:56:20 UTC
Package sane-backends-1.0.22-6.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sane-backends-1.0.22-6.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16073/sane-backends-1.0.22-6.fc14
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2011-12-16 19:51:27 UTC
sane-backends-1.0.22-6.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2011-12-23 03:27:39 UTC
sane-backends-1.0.22-6.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora End Of Life 2012-08-16 22:37:27 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.