Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 635348

Summary: media-gfx/sane-backends-1.0.27 - genesys driver produces flawed scan result
Product: Gentoo Linux Reporter: Sven Müller <musv>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: finnpanther
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: scan result - 1.0.25-r1
scan result - 1.0.27
1.0.25-r1 (ok) vs. 1.0.27 (broken)

Description Sven Müller 2017-10-24 18:44:25 UTC
Scanner: Canon Lide 200
Sane-driver: genesys

With sane-backends-1.0.25-r1 everything looks fine. Updating sane-backends to 1.0.27 produces a green vertical bar on the scan result.
Comment 1 Sven Müller 2017-10-24 18:48:52 UTC
Created attachment 499986 [details]
scan result - 1.0.25-r1

perfect scan result
Comment 2 Sven Müller 2017-10-24 18:50:10 UTC
Created attachment 499988 [details]
scan result - 1.0.27

green vertical bar on the scan result
Comment 3 Sven Müller 2017-10-29 08:10:08 UTC
Posted the problem to the sane-devel mailing list: 
https://lists.alioth.debian.org/pipermail/sane-devel/2017-October/035705.html
Comment 4 Olli Helin 2018-01-14 11:58:43 UTC
Created attachment 514774 [details]
1.0.25-r1 (ok) vs. 1.0.27 (broken)

Another example of the bug.
Comment 5 Olli Helin 2018-01-14 12:05:41 UTC
I tried to find the breaking commit by bisecting the code from the git repo.

Things turned really mysterious quickly. If I had one successful scan, all the following scans would be OK no matter the version. If I had one broken scan, all the following scans would be broken no matter the version. I realized I had to restart my computer every time I compiled a new version to get a real result.

This seemed to work for a while, until I realized it wasn't enough - I started to get mixed results after searching for a while. Then I started re-plugging the scanner after every reboot. And suddenly, the problem went away. I just did a fresh reboot, plugged in the scanner, and, using the sane-backends-1.0.27, I did a successful scan.

This is all very strange as the problem seemed to be 100% reproducible yesterday. I also have had it always since upgrading to 1.0.27. I will try a few more times if I find something, but at the moment, I'm baffled.
Comment 7 Pacho Ramos gentoo-dev 2018-04-02 12:23:53 UTC
[master aa225b06c94] media-gfx/sane-backends: Multiple bug fixes
 Date: Mon Apr 2 14:21:34 2018 +0200
 3 files changed, 399 insertions(+)
 create mode 100644 media-gfx/sane-backends/files/sane-backends-1.0.27-canon-lide-100.patch
 create mode 100644 media-gfx/sane-backends/files/sane-backends-1.0.27-network.patch
 create mode 100644 media-gfx/sane-backends/sane-backends-1.0.27-r1.ebuild
Comment 8 Olli Helin 2018-04-18 20:01:50 UTC
(In reply to Pacho Ramos from comment #6)
> can you try this patch?
> https://src.fedoraproject.org/rpms/sane-backends/raw/master/f/sane-backends-
> canon-lide-100.patch

Ah sorry I had missed the email notification completely about the issue and was away from my desktop for a while. In the meantime you had even patched the ebuild. Just tested it, works like a champ. Thank you very much!