[sane-devel] Segfault with Lide210
Uli Fouquet
uli at gnufix.de
Thu Sep 22 09:58:21 UTC 2011
Hi there,
After purchasing a Canon Lide 210 scanner one week ago everything went
well. I compiled and installed Sane 1.0.22 from sources, fiddled a bit
around with the permission settings and scanning worked fine on my
(otherwise outdated, I know) Ubuntu 8.04.
Unfortunately, starting today, I get segfaults when trying to scan. The
scanner is recognized correctly:
root at pu:~# scanimage -L
device `genesys:libusb:002:006' is a Canon LiDE 210 flatbed scanner
Strange enough: a scan is performed, but the process finishes with a
segfault:
root at pu:~# /usr/bin/scanimage -v --resolution=150 -l 10 -t 10 -x 100 \
-y 100 --format=tiff > image.tiff
scanimage: scanning image of size 588x590 pixels at 8 bits/pixel
scanimage: acquiring gray frame
scanimage: min/max graylevel value = 20/226
scanimage: read 346920 bytes in total
Segmentation fault
root at pu:~#
Afterwards I can get the image.tiff (which looks okay, at least it is a
scan of the given document), but the segfault is still a problem as for
instance xsane crashes.
The test option gives:
root at pu:~# scanimage -vv -T
scanimage: scanning image of size 628x885 pixels at 8 bits/pixel
scanimage: acquiring gray frame, 8 bits/sample
scanimage: reading one scanline, 628 bytes... PASS
scanimage: reading one byte... PASS
scanimage: stepped read, 2 bytes... PASS
scanimage: stepped read, 4 bytes... PASS
scanimage: stepped read, 8 bytes... PASS
scanimage: stepped read, 16 bytes... PASS
scanimage: stepped read, 32 bytes... PASS
scanimage: stepped read, 64 bytes... PASS
scanimage: stepped read, 128 bytes... PASS
scanimage: stepped read, 256 bytes... PASS
scanimage: stepped read, 512 bytes... PASS
scanimage: stepped read, 1024 bytes... PASS
scanimage: stepped read, 1023 bytes... PASS
scanimage: stepped read, 511 bytes... PASS
scanimage: stepped read, 255 bytes... PASS
scanimage: stepped read, 127 bytes... PASS
scanimage: stepped read, 63 bytes... PASS
scanimage: stepped read, 31 bytes... PASS
scanimage: stepped read, 15 bytes... PASS
scanimage: stepped read, 7 bytes... PASS
scanimage: stepped read, 3 bytes... PASS
Segmentation fault
With SANE_DEBUG_DLL set the last lines read:
...
scanimage: stepped read, 7 bytes...
[dll]sane_read(handle=0x8086de0,data=0x80a8190,maxlen=7,lenp=0xbfb04158)
PASS
scanimage: stepped read, 3 bytes...
[dll]sane_read(handle=0x8086de0,data=0x80a8190,maxlen=3,lenp=0xbfb04158)
PASS
[dll] sane_cancel(handle=0x8086de0)
Segmentation fault
root at pu:~#
I recompiled everything (with make dist-clean) also copying genesys.conf
over to /etc/sane.d/ but the problem persists.
Any hints how I can debug (and maybe solve) the problem further are
highly appreciated.
Best regards,
--
Uli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110922/a3b7ae6c/attachment.pgp>
More information about the sane-devel
mailing list