Bug 490375 - Sane crash using Hewlett-Packard ScanJet 5300c/5370c
Summary: Sane crash using Hewlett-Packard ScanJet 5300c/5370c
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sane-backends
Version: 10
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-15 20:33 UTC by gb
Modified: 2009-07-25 23:55 UTC (History)
5 users (show)

Fixed In Version: 1.0.20-4.fc10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-22 21:43:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Bug Buddy report of Crash (15.32 KB, text/plain)
2009-03-15 20:33 UTC, gb
no flags Details
sane gdb trace (16.81 KB, text/plain)
2009-03-15 20:36 UTC, gb
no flags Details
A corrupted image as a result of scanning. (331.96 KB, application/x-bzip2)
2009-06-23 12:56 UTC, zby
no flags Details

Description gb 2009-03-15 20:33:31 UTC
Created attachment 335273 [details]
Bug Buddy report of Crash

Description of problem:
Sane crash using Hewlett-Packard ScanJet 5300c/5370c

Version-Release number of selected component (if applicable):
OS: Fedora 10 x86_64
Program: package xsane-0.996
         compiled with GTK-2.14.5

Device: Hewlett-Packard ScanJet 5300c/5370c 

How reproducible:
try to perform scan

Steps to Reproduce:
1.Open scanner tool or program that uses sane to acquire image from scanner
2. initiate scan function
3. 
  
Actual results:
Sane attempts to access scanner, then program crash

Expected results:
successful scan

Additional info:
[george@dragon-lx]$ gdb xsane
GNU gdb Fedora (6.8-29.fc10)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...
(gdb) run
Starting program: /usr/bin/xsane 
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff7fc7780 (LWP 23952)]

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xsane:23952): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
Detaching after fork from child process 23973.

Program received signal SIGSEGV, Segmentation fault.
IA__gdk_window_invalidate_maybe_recurse (window=0x918180, region=0xbc2120, 
    child_func=0x319042c3d0 <invalidate_predicate>, user_data=0x92c840) at gdkwindow.c:2871
2871	      if (!child->input_only)
(gdb) bt
#0  IA__gdk_window_invalidate_maybe_recurse (window=0x918180, region=0xbc2120, 
    child_func=0x319042c3d0 <invalidate_predicate>, user_data=0x92c840) at gdkwindow.c:2871
#1  0x000000319042d565 in gtk_widget_invalidate_widget_windows (widget=0x92c840, region=0xbc2120)
    at gtkwidget.c:3760
#2  0x000000319042e6c2 in gtk_widget_queue_shallow_draw (widget=0x92c840) at gtkwidget.c:3797
#3  0x00000031904334b8 in IA__gtk_widget_queue_resize (widget=0x92c840) at gtkwidget.c:3609
#4  0x0000003190314e87 in gtk_label_recalculate (label=0x92c840) at gtklabel.c:1590
#5  0x00000031903172ed in IA__gtk_label_set_text (label=0x92c840, str=0x484cab "Scanning")
    at gtklabel.c:1615
#6  0x0000000000412a45 in xsane_progress_new (bar_text=0x7fffffffb9e0 "Receiving RGB data", 
    info=0x484cab "Scanning", callback=0x4656f0 <xsane_cancel>, cancel_data_pointer=0x0)
    at xsane-front-gtk.c:799
#7  0x00000000004651b1 in xsane_start_scan () at xsane-scan.c:1841
#8  0x0000000000465b4b in xsane_scan_dialog (data=<value optimized out>) at xsane-scan.c:2161
#9  0x000000318ae0b7dd in IA__g_closure_invoke (closure=0xafdfe0, return_value=0x0, 
    n_param_values=1, param_values=0xb3c3a0, invocation_hint=0x7fffffffbef0) at gclosure.c:767
#10 0x000000318ae214bd in signal_emit_unlocked_R (node=0x8f75d0, detail=0, instance=0xaef390, 
    emission_return=0x0, instance_and_params=0xb3c3a0) at gsignal.c:3244
#11 0x000000318ae22b68 in IA__g_signal_emit_valist (instance=0xaef390, 
    signal_id=<value optimized out>, detail=0, var_args=0x7fffffffc0d0) at gsignal.c:2977
#12 0x000000318ae23093 in IA__g_signal_emit (instance=0x2, signal_id=48, detail=12355328)
    at gsignal.c:3034
#13 0x00000031902850fd in gtk_real_button_released (button=0x2) at gtkbutton.c:1491
#14 0x000000318ae0b7dd in IA__g_closure_invoke (closure=0x8f4ff0, return_value=0x0, 
    n_param_values=1, param_values=0xbaff00, invocation_hint=0x7fffffffc300) at gclosure.c:767
#15 0x000000318ae20dd8 in signal_emit_unlocked_R (node=0x8f88e0, detail=0, instance=0xaef390, 
    emission_return=0x0, instance_and_params=0xbaff00) at gsignal.c:3174
#16 0x000000318ae22b68 in IA__g_signal_emit_valist (instance=0xaef390, 
    signal_id=<value optimized out>, detail=0, var_args=0x7fffffffc4e0) at gsignal.c:2977
#17 0x000000318ae23093 in IA__g_signal_emit (instance=0x2, signal_id=48, detail=12355328)
    at gsignal.c:3034
#18 0x000000319028434d in gtk_button_button_release (widget=0x2, event=0x30) at gtkbutton.c:1383
#19 0x0000003190329a08 in _gtk_marshal_BOOLEAN__BOXED (closure=0x8e78e0, 
    return_value=0x7fffffffc780, n_param_values=<value optimized out>, param_values=0xb2ac70, 
---Type <return> to continue, or q <return> to quit---
    invocation_hint=<value optimized out>, marshal_data=0x3190284330) at gtkmarshalers.c:84
#20 0x000000318ae0b7dd in IA__g_closure_invoke (closure=0x8e78e0, return_value=0x7fffffffc780, 
    n_param_values=2, param_values=0xb2ac70, invocation_hint=0x7fffffffc740) at gclosure.c:767
#21 0x000000318ae2119b in signal_emit_unlocked_R (node=0x8e7950, detail=0, instance=0xaef390, 
    emission_return=0x7fffffffc8c0, instance_and_params=0xb2ac70) at gsignal.c:3282
#22 0x000000318ae229ea in IA__g_signal_emit_valist (instance=0xaef390, 
    signal_id=<value optimized out>, detail=0, var_args=0x7fffffffc920) at gsignal.c:2987
#23 0x000000318ae23093 in IA__g_signal_emit (instance=0x2, signal_id=48, detail=12355328)
    at gsignal.c:3034
#24 0x000000319042c7de in gtk_widget_event_internal (widget=0xaef390, event=0x7fffe82a3ab0)
    at gtkwidget.c:4745
#25 0x0000003190322373 in IA__gtk_propagate_event (widget=0xaef390, event=0x7fffe82a3ab0)
    at gtkmain.c:2391
#26 0x0000003190323493 in IA__gtk_main_do_event (event=0x7fffe82a3ab0) at gtkmain.c:1596
#27 0x0000003191c4deac in gdk_event_dispatch (source=<value optimized out>, 
    callback=<value optimized out>, user_data=<value optimized out>) at gdkevents-x11.c:2365
#28 0x000000318aa3779b in g_main_dispatch () at gmain.c:2144
#29 IA__g_main_context_dispatch (context=0x8a0800) at gmain.c:2697
#30 0x000000318aa3af6d in g_main_context_iterate (context=0x8a0800, block=1, dispatch=1, 
    self=<value optimized out>) at gmain.c:2778
#31 0x000000318aa3b49d in IA__g_main_loop_run (loop=0xb30bb0) at gmain.c:2986
#32 0x00000031903238a7 in IA__gtk_main () at gtkmain.c:1200
#33 0x00000000004746e2 in xsane_interface (argc=1, argv=<value optimized out>) at xsane.c:6062
#34 0x000000000047562b in main (argc=1, argv=0x7fffffffe418) at xsane.c:6259
(gdb) 
(gdb) 
(gdb) C
Continuing.

Program received signal SIGSEGV, Segmentation fault.
_int_malloc (av=0x3793b6da00, bytes=16) at malloc.c:4202
4202	        bck->fd = bin;
(gdb) next

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) quit

[george@dragon-lx]$ xsane -v
xsane-0.996 (c) 1998-2007 Oliver Rauch
  E-mail: Oliver.Rauch
  package xsane-0.996
  compiled with GTK-2.14.5
  with color management function
  without GIMP support
  XSane output formats: jpeg, pdf(compr.), png, pnm, ps(compr.), tiff, txt

Comment 1 gb 2009-03-15 20:36:04 UTC
Created attachment 335274 [details]
sane gdb trace

Comment 2 Marcus 2009-03-22 07:53:11 UTC
Fedora 10 x386
Same problem here with a HP5300C. strace brings:
...
gettimeofday({1237708304, 160557}, NULL) = 0
ioctl(24, USBDEVFS_REAPURBNDELAY, 0xbf8af248) = 0
pipe([26, 27])                          = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7f8d758) = 6502
close(27)                               = 0
munmap(0xb78ef000, 659456)              = 0
munmap(0xb7990000, 1314816)             = 0
mmap2(NULL, 5931008, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb59e1000
mmap2(NULL, 2965504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb570d000
fcntl64(26, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fstat64(26, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
fcntl64(26, F_GETFL)                    = 0x800 (flags O_RDONLY|O_NONBLOCK)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Comment 3 Roland Elferink 2009-03-26 15:08:13 UTC
I have what seems like the same behaviour happening on Ubuntu 8.10 x64 if that helps at all.  I am also using a HP Scanjet 5370c.

Comment 4 Nils Philippsen 2009-06-17 10:00:59 UTC
I've packaged the new upstream version sane-backends-1.0.20 and submitted it for updates-testing. Please test and report back whether this improves your issue, thanks.

Comment 5 zby 2009-06-22 12:16:03 UTC
"Lightly" tested the SW as indicated by Nils Philippsen.
Packages updated. No special setup. No adjustments. Testing the device "out of the box".

[zby@cz2cpdxc ~]$ rpm -qa|grep -i sane
xsane-gimp-0.996-3.fc10.i386
sane-backends-libs-gphoto2-1.0.20-3.fc10.i386
sane-backends-libs-1.0.20-3.fc10.i386
xsane-0.996-3.fc10.i386
sane-backends-1.0.20-3.fc10.i386
libsane-hpaio-2.8.12-6.fc10.i386
[zby@cz2cpdxc ~]$ uname -a
Linux cz2cpdxc 2.6.27.24-170.2.68.fc10.i686 #1 SMP Wed May 20 23:10:16 EDT 2009 i686 i686 i386 GNU/Linux
[zby@cz2cpdxc ~]$ cat /etc/redhat-release 
Fedora release 10 (Cambridge)
[zby@cz2cpdxc ~]$ 
[zby@cz2cpdxc ~]$ sane-find-scanner
....
found USB scanner (vendor=0x03f0 [Hewlett Packard], product=0x0701 [Hewlett Packard ScanJet 5300C/5370C ]) at libusb:001:007 
[zby@cz2cpdxc ~]$ 
[zby@cz2cpdxc ~]$ scanimage -L
device `avision:libusb:001:007' is a Hewlett-Packard ScanJet 5300C flatbed scanner
[zby@cz2cpdxc ~]$
[zby@cz2cpdxc ~]$ scanimage >out.pnm
scanimage: sane_read: Error during device I/O
[zby@cz2cpdxc ~]$ su
[root@cz2cpdxc zby]# tail /var/log/messages
Jun 22 13:12:35 localhost kernel: usb 1-6.2: new full speed USB device using ehci_hcd and address 7
Jun 22 13:12:35 localhost kernel: usb 1-6.2: configuration #1 chosen from 1 choice
Jun 22 13:12:35 localhost kernel: usb 1-6.2: New USB device found, idVendor=03f0, idProduct=0701
Jun 22 13:12:35 localhost kernel: usb 1-6.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 22 13:12:35 localhost kernel: usb 1-6.2: Product: Hewlett Packard ScanJet 5300C/5370C 
Jun 22 13:12:35 localhost kernel: usb 1-6.2: Manufacturer: Hewlett Packard
Jun 22 13:12:35 localhost kernel: usb 1-6.2: SerialNumber: CN11920567VE
[root@cz2cpdxc zby]# exit
#### scanner carriage is stuck flashing (3 at a time)
#### scanner carriage won't return to its start position
#### picture not OK, not complete (corrupted)
#### need to turn scanner off & on to reset
....

[zby@cz2cpdxc ~]$ scanimage --resolution=200 >out.pnm
[zby@cz2cpdxc ~]$ 
#### the scanner worked OK, picture OK ...
[zby@cz2cpdxc ~]$ scanimage --resolution=75 >out.pnm
scanimage: rounded value of resolution from 75 to 100
[zby@cz2cpdxc ~]$ 
#### the scanner worked OK, picture OK ...

Comment 6 gb 2009-06-22 23:46:27 UTC
[george@dragon-lx ~]$ rpm -qa|grep -i sane
sane-backends-libs-1.0.20-3.fc10.x86_64
sane-backends-libs-1.0.20-3.fc10.i386
sane-backends-debuginfo-1.0.19-12.fc10.x86_64
xsane-0.996-3.fc10.x86_64
sane-backends-1.0.20-3.fc10.x86_64
xsane-debuginfo-0.996-3.fc10.x86_64
sane-backends-libs-gphoto2-1.0.20-3.fc10.x86_64
xsane-gimp-0.996-3.fc10.x86_64
[george@dragon-lx ~]$ sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x03f0 [Hewlett Packard], product=0x0701 [Hewlett Packard ScanJet 5300C]) at libusb:006:003
  
[george@dragon-lx ~]$ scanimage -L
device `avision:libusb:006:003' is a Hewlett-Packard ScanJet 5300C flatbed scanner


Perform scan from terminal result OK, scan from GIMP xsane plugin result ok, scan from digikam result ok. It appears your fix is accessing the scanner properly and aquiring the image as expected. Thank you very much, it was a bit anoying starting up an old windows machine just to use the scanner.

Comment 7 Nils Philippsen 2009-06-23 11:53:45 UTC
If made a new sane-backends-1.0.20-4 release for this update, please check this out.

(In reply to comment #5)
[...]
> [zby@cz2cpdxc ~]$ scanimage -L
> device `avision:libusb:001:007' is a Hewlett-Packard ScanJet 5300C flatbed
scanner
> [zby@cz2cpdxc ~]$
> [zby@cz2cpdxc ~]$ scanimage >out.pnm
> scanimage: sane_read: Error during device I/O

Please check if the device file (which should be /dev/bus/usb/001/007) has the correct permissions, i.e. your user can read and write it. If this is the case and you can reproduce the error, I'd suspect a kernel problem (due to the I/O error). Then please file a separate bug against the kernel component and add me to the CC list.

Comment 8 zby 2009-06-23 12:56:31 UTC
Created attachment 349090 [details]
A corrupted image as a result of scanning.

The attached file demostrates the form the data comes from the scanner while scanning with no additional options.

Comment 9 zby 2009-06-23 13:00:28 UTC
An additional info to the comment #7:
[zby@cz2cpdxc ~]$ scanimage -L
device `avision:libusb:001:004' is a Hewlett-Packard ScanJet 5300C flatbed scanner
[zby@cz2cpdxc ~]$ 
[zby@cz2cpdxc ~]$ ls -l /dev/bus/usb/001/004 
crw-rw-r--+ 1 root root 189, 3 23. čen 14.31 /dev/bus/usb/001/004
[zby@cz2cpdxc ~]$ 
[zby@cz2cpdxc ~]$ scanimage > out.pnm
scanimage: sane_read: Error during device I/O
[zby@cz2cpdxc ~]$ 
[zby@cz2cpdxc ~]$ ls -l out.pnm
-rw-rw-r-- 1 zby zby 854821 23. čen 14.41 out.pnm
[zby@cz2cpdxc ~]$ evince out.pnm
### turned the scanner off and back on and then:
[zby@cz2cpdxc ~]$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[zby@cz2cpdxc ~]$ 
## Looks like the scanner cannot even be found after failing to scan the image

Comment 10 zby 2009-06-23 15:32:46 UTC
To all involved & recepients, please accept my appology for testing the stuff with version sane-backends-1.0.20-3 instead of sane-backends-1.0.20-4 .
My comments are not related to the new update, however some of you may find my attached PNM file helpful/interesting.
Thank you. Zbynek.

Comment 11 Fedora Update System 2009-06-27 02:51:43 UTC
sane-backends-1.0.20-4.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update sane-backends'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-6741

Comment 12 zby 2009-06-29 12:18:30 UTC
[root@cz2cpdxc ARC]# yum update xsane*
Loaded plugins: refresh-packagekit
updates-testing                                                                                                                                     | 3.4 kB     00:00     
Excluding Packages in global exclude list
Finished
Setting up Update Process
No Packages marked for Update
[root@cz2cpdxc ARC]# yum update libsane*
Loaded plugins: refresh-packagekit
Excluding Packages in global exclude list
Finished
Setting up Update Process
No Packages marked for Update
[root@cz2cpdxc ARC]# exit
exit
[zby@cz2cpdxc ARC]$ rpm -qa|grep -i sane
xsane-gimp-0.996-3.fc10.i386
xsane-0.996-3.fc10.i386
sane-backends-libs-1.0.20-4.fc10.i386
libsane-hpaio-2.8.12-6.fc10.i386
sane-backends-1.0.20-4.fc10.i386
sane-backends-libs-gphoto2-1.0.20-4.fc10.i386
[zby@cz2cpdxc ARC]$ uname -a
Linux cz2cpdxc 2.6.27.24-170.2.68.fc10.i686 #1 SMP Wed May 20 23:10:16 EDT 2009 i686 i686 i386 GNU/Linux
[zby@cz2cpdxc ARC]$ rpm -qa|grep -i kernel
kerneloops-0.12-2.fc10.i386
kernel-devel-2.6.27.21-170.2.56.fc10.i686
kernel-2.6.27.25-170.2.72.fc10.i686
kernel-2.6.27.24-170.2.68.fc10.i686
kernel-headers-2.6.27.25-170.2.72.fc10.i386
kernel-devel-2.6.27.25-170.2.72.fc10.i686
kernel-firmware-2.6.27.25-170.2.72.fc10.noarch
kernel-2.6.27.21-170.2.56.fc10.i686
kernel-devel-2.6.27.24-170.2.68.fc10.i686
[zby@cz2cpdxc ARC]$ scanimage -L
device `avision:libusb:001:006' is a Hewlett-Packard ScanJet 5300C flatbed scanner
[zby@cz2cpdxc ARC]$           
[zby@cz2cpdxc ARC]$ ls -l /dev/bus/usb/001/006 
crw-rw-r--+ 1 root root 189, 5 29. čen 13.43 /dev/bus/usb/001/006
[zby@cz2cpdxc ARC]$ scanimage --resolution=200 > ~/out.pnm
[zby@cz2cpdxc ARC]$ file ~/out.pnm
/home/zby/out.pnm: Netpbm PPM "rawbits" image data
[zby@cz2cpdxc ARC]$ eog ~/out.pnm
[zby@cz2cpdxc ARC]$ scanimage --resolution=100 > ~/out.pnm
[zby@cz2cpdxc ARC]$ file ~/out.pnm
/home/zby/out.pnm: Netpbm PPM "rawbits" image data
[zby@cz2cpdxc ARC]$ eog ~/out.pnm
[zby@cz2cpdxc ARC]$ scanimage --resolution=100 --format=tiff > ~/out
[zby@cz2cpdxc ARC]$ file ~/out
/home/zby/out: TIFF image data, big-endian
[zby@cz2cpdxc ARC]$ tiffinfo ~/out
TIFF Directory at offset 0x8 (8)
  Subfile Type: (0 = 0x0)
  Image Width: 848 Image Length: 1165
  Resolution: 100, 100 pixels/inch
  Bits/Sample: 8
  Compression Scheme: None
  Photometric Interpretation: RGB color
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 3
  Rows/Strip: 1165
  Min Sample Value: 0
  Max Sample Value: 255
  Planar Configuration: single image plane
[zby@cz2cpdxc ARC]$ eog ~/out
[zby@cz2cpdxc ARC]$ scanimage --resolution=140 --format tiff > ~/out
scanimage: sane_read: Error during device I/O
[zby@cz2cpdxc ARC]$ file ~/out
/home/zby/out: TIFF image data, big-endian
[zby@cz2cpdxc ARC]$ eog ~/out
## The image is corrupted - just like the one I've attached to the Comment #8
## The scanner carriage returned back to its startoff position at least
## I'm leaving the scanner in its current state:
[zby@cz2cpdxc ARC]$ scanimage --resolution=100 --format tiff > ~/out
scanimage: no SANE devices found
[zby@cz2cpdxc ARC]$ 
## I'm disconnecting the USB scanner cable and plugging back in after a few secs:
[zby@cz2cpdxc ARC]$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[zby@cz2cpdxc ARC]$ 
## Now, the power cord is disconnected and plugged back in after a while:
[zby@cz2cpdxc ARC]$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[zby@cz2cpdxc ARC]$ 
## I'm disconnecting the USB scanner cable and plugging back in after a few secs again:
[zby@cz2cpdxc ARC]$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[zby@cz2cpdxc ARC]$ 
## Scanning an image at the resolution of 100 od 200dpi is OK, but it doesn't work for DPIs in between.
[zby@cz2cpdxc ARC]$

Comment 13 Fedora Update System 2009-07-02 05:55:37 UTC
sane-backends-1.0.20-4.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update sane-backends'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-6741

Comment 14 Fedora Update System 2009-07-22 21:42:43 UTC
sane-backends-1.0.20-4.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 gb 2009-07-25 23:55:20 UTC
I have upgraded to FC11 which and it appears both FC10 and FC11 files are present..I guess I need to do some system clean up...however I am still able to scan and import images from the scanner.  Not sure how the others are making out but I am pleased with the new backend version.

rpm -qa|grep -i sane
sane-backends-libs-1.0.20-4.fc10.x86_64
xsane-gimp-0.996-7.fc11.x86_64
sane-backends-debuginfo-1.0.20-4.fc11.x86_64
xsane-0.996-7.fc11.x86_64
sane-backends-1.0.20-4.fc10.x86_64
sane-backends-libs-gphoto2-1.0.20-4.fc10.x86_64
xsane-debuginfo-0.996-3.fc10.x86_64
sane-backends-libs-1.0.20-4.fc10.i386


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