Bug 16340

Summary: scanimage only works once with Canon 9000F Mark II and many other scanners
Product: Mageia Reporter: Herbert Poetzl <herbert>
Component: RPM PackagesAssignee: José Jorge <lists.jjorge>
Status: RESOLVED OLD QA Contact:
Severity: critical    
Priority: Normal CC: anaselli, anssi.hannula, cjw, fundawang, herbert, jonsjenny41, juergen.harms, mageia, marja11, pterjan, remco
Version: 5Keywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: sane-1.0.24-10.mga5.src.rpm CVE:
Status comment:

Description Herbert Poetzl 2015-07-10 10:49:11 CEST
Description of problem:
When acquiring an image via scanimage, the scan works perfectly fine the first time, but the second scan just hangs until it times out.

Version-Release number of selected component (if applicable):
sane-backends-1.0.24-10.mga5
sane-frontends-1.0.14-19.mga5

How reproducible:
Always

Steps to Reproduce:
1. scanimage -vp -l 100 -t 150 -x 100 -y 2 --format png >out.png
2. scanimage -vp -l 100 -t 150 -x 100 -y 2 --format png >out.png
3.


[bertl@newhost SANE]$ scanimage -vp -l 100 -t 150 -x 100 -y 2 --format png >out.png
scanimage: scanning image of size 296x8 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
scanimage: min/max graylevel value = 188/246
scanimage: read 7104 bytes in total

[bertl@newhost SANE]$ scanimage -vp -l 100 -t 150 -x 100 -y 2 --format png >out.png
scanimage: scanning image of size 296x8 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
scanimage: min/max graylevel value = 255/0
scanimage: sane_read: Operation was cancelled


Reproducible: 

Steps to Reproduce:
Comment 1 Marja Van Waes 2015-07-10 11:51:30 CEST
Can you please try whether today's upstream snapshot - or another one from after 1.0.24 release - fixes it?
www.sane-project.org/snapshots/sane-backends-git20150710.tar.gz

(This bug has hit many users across many distro's, and I've read someone reporting that the 2 november 2014 snapshot already fixed it)


As there is no maintainer for this package I added the committers in CC.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => NEEDINFO
CC: (none) => anaselli, anssi.hannula, cjw, fundawang, juergen.harms, mageia, marja11, pterjan, remco

Marja Van Waes 2015-07-10 11:52:02 CEST

Summary: scanimage only works once with Canon 9000F Mark II => scanimage only works once with Canon 9000F Mark II and many other scanners

Comment 2 Herbert Poetzl 2015-07-10 11:58:36 CEST
I tried the git snapshot from today, but that has a different problem, namely that the first scan successfully retrieves the image data, then outputs a <SOH> to the terminal and simply hangs.

[bertl@newhost SANE]$ ~/SANE/bin/scanimage -vp -l 100 -t 150 -x 100 -y 2 --format png >out.png
scanimage: scanning image of size 296x16 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
scanimage: min/max graylevel value = 187/254
scanimage: read 14208 bytes in total
<SOH>

Note that it requests 16 lines instead of the 8 from 1.0.24 despite the same input.

Best,
Herbert

CC: (none) => herbert

Comment 3 Herbert Poetzl 2015-07-15 02:43:08 CEST
The following RPMs (quick and dirty hack) fix the issue with scanimage.

http://vserver.13thfloor.at/Stuff/MAGEIA/SRPMS/sane-1.0.25git-10.mga5.src.rpm
http://vserver.13thfloor.at/Stuff/MAGEIA/SRPMS/sane-frontends-1.0.15git-19.mga5.src.rpm

Best,
Herbert
Comment 4 Remco Rijnders 2015-07-15 05:22:43 CEST
Hi Herbert,

Really happy to here that this solves the issue for you! Can you briefly highlight what patches you've made/applied in these rpm's?
Comment 5 Remco Rijnders 2015-07-15 07:12:52 CEST
s/here/hear/
Comment 6 Herbert Poetzl 2015-07-15 08:46:49 CEST
It is basically the mandriva patches (i.e. those who still apply) ontop of the git snapshot from today.

The "Q&D" part is that I didn't bother to adjust things accordingly instead I created a symlink and added the git version as diff.

Only one problem so far, the gimp xscanimage plugin is recognized but the options are grayed out (maybe gimp is too old, maybe that was always so, haven't tested yet)

HTH,
Herbert
Comment 7 Samuel Verschelde 2015-09-11 09:49:50 CEST
Assigning to new sane maintainer.

Assignee: bugsquad => lists.jjorge

Comment 8 José Jorge 2015-10-25 11:46:17 CET
Saned 1.0.25 has landed in cauldron. Does this version fix this bug?
Comment 9 José Jorge 2017-06-18 14:22:18 CEST
No answer for months, closing.

Status: NEW => RESOLVED
Resolution: (none) => OLD

Comment 10 jemmy jons 2023-06-10 07:20:42 CEST Comment hidden (spam)

CC: (none) => jonsjenny41