Le jeudi 22 septembre 2011 11:58:21 Uli Fouquet, vous avez ?crit : > 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,
Hello, could you enable debug traces with: export SANE_DEBUG_GENESYS=255 export SANE_DEBUG_GENESYS_LOW=255 export SANE_DEBUG_GENESYS_GL646=255 export SANE_DEBUG_GENESYS_GL841=255 export SANE_DEBUG_GENESYS_GL843=255 export SANE_DEBUG_GENESYS_GL847=255 export SANE_DEBUG_GENESYS_GL124=255 then run the same scan, redirecting error log: /usr/bin/scanimage -v --resolution=150 -l 10 -t 10 -x 100 \ -y 100 --format=tiff > image.tiff 2>debug.log and send the debug log ? Thanks, Stef