Bug 490375
| Summary: | Sane crash using Hewlett-Packard ScanJet 5300c/5370c | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | gb <shadowbu> | ||||||||
| Component: | sane-backends | Assignee: | Nils Philippsen <nphilipp> | ||||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | low | ||||||||||
| Version: | 10 | CC: | james, marcus.andreotti, nphilipp, roland, zby | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | 1.0.20-4.fc10 | Doc Type: | Bug Fix | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2009-07-22 21:43:08 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
gb
2009-03-15 20:33:31 UTC
Created attachment 335274 [details]
sane gdb trace
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 +++
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. 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. "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 ... [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. 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. 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.
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 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. 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 [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]$ 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 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. 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 |