|
I'm just trying to start using SANE. I'm puzzled by the error message
I get: # scanimage --version scanimage (sane-backends) 1.0.19; backend version 1.0.19 # scanimage -L device `umax1220u:libusb:004:002' is a UMAX Astra 2100U flatbed scanner # scanimage -d umax1220u:libusb:004:002 > outfile.pnm ==> scanimage: sane_start: Invalid argument Background information: - I get the same result on Fedora 10 x86-64 and on Ubuntu 8.10 AMD64. (The log above is from Fedora/) - The FAQ has an entry on this message but it doesn't seem to help in this case. - An strace on the Fedora system shows that the device is opened. Just before the failure, scanimage does a bunch of USBDEVFS_CONTROL ioctls on the device's file descriptor. Any suggestions? (I was about to get rid of the scanner because we switched from MS Windows years ago. Then I discovered that SANE now supports this model. Great! Thanks!) -- sane-devel mailing list: [hidden email] http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [hidden email] |
|
You could try to get a debug log of the backend in operation:
SANE_DEBUG_UMAX1220U=255 scanimage 2>error.log you might also try a 32 bit system just to see if that is it... allan On Wed, Dec 17, 2008 at 3:35 PM, D. Hugh Redelmeier <[hidden email]> wrote: > I'm just trying to start using SANE. I'm puzzled by the error message > I get: > > # scanimage --version > scanimage (sane-backends) 1.0.19; backend version 1.0.19 > # scanimage -L > device `umax1220u:libusb:004:002' is a UMAX Astra 2100U flatbed scanner > # scanimage -d umax1220u:libusb:004:002 > outfile.pnm > ==> scanimage: sane_start: Invalid argument > > > Background information: > > - I get the same result on Fedora 10 x86-64 and on Ubuntu 8.10 AMD64. > (The log above is from Fedora/) > > - The FAQ has an entry on this message but it doesn't seem to help in > this case. > > - An strace on the Fedora system shows that the device is opened. > Just before the failure, scanimage does a bunch of USBDEVFS_CONTROL > ioctls on the device's file descriptor. > > Any suggestions? > > (I was about to get rid of the scanner because we switched from > MS Windows years ago. Then I discovered that SANE now supports this > model. Great! Thanks!) > > -- > sane-devel mailing list: [hidden email] > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to [hidden email] > -- "The truth is an offense, but not a sin" -- sane-devel mailing list: [hidden email] http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [hidden email] |
|
| From: m. allan noah <[hidden email]>
| You could try to get a debug log of the backend in operation: | | SANE_DEBUG_UMAX1220U=255 scanimage 2>error.log Thanks. That seems to give useful information. Not that I know how to interpet it. Near the end, just before the error message, the UMAX_set_scan_parameters don't look reasonable to me. Are the resolutions DPI? If so, they seem low. Is it OK to have so many of the other parameters 0? Do you see what is causing the diagnostic? | you might also try a 32 bit system just to see if that is it... I booted from a Ubuntu 8.10 i386 live CD. The diagnostic and the debug output looked similar. Thanks again. # scanimage -L device `umax1220u:libusb:004:003' is a UMAX Astra 2100U flatbed scanner # SANE_DEBUG_UMAX1220U=255 scanimage -d umax1220u:libusb:004:003 > outfile.pnm [sanei_debug] Setting debug level of umax1220u to 255. [umax1220u] sane_init: version_code != 0, authorize != 0 [umax1220u] sane_init: SANE umax1220u backend version 1.0.1 from sane-backends 1.0.19 [umax1220u] reading configure file umax1220u.conf [umax1220u] attach_matching_devices(usb 0x1606 0x0010) [umax1220u] attach_matching_devices(usb 0x1606 0x0030) [umax1220u] attach_matching_devices(usb 0x1606 0x0130) [umax1220u] attach_scanner: libusb:004:003 [umax1220u] attach_scanner: opening libusb:004:003 [umax1220u] UMAX_open_device: `libusb:004:003' [umax1220u] csend: cmd = 0 [umax1220u] usync: len = 0, cmd = 0 [umax1220u] usync: s0 = 0x4b s4 = 0xc8 [umax1220u] doing xxxops [umax1220u] UMAX_close_device: [umax1220u] finished reading configure file [umax1220u] sane_open [umax1220u] sane_open: devicename=libusb:004:003 [umax1220u] UMAX_open_device: `libusb:004:003' [umax1220u] csend: cmd = 0 [umax1220u] usync: len = 0, cmd = 0 [umax1220u] usync: s0 = 0x4b s4 = 0xc8 [umax1220u] doing xxxops [umax1220u] sane_control_option: handle=0x692080, opt=0, act=0, val=0x7fff95f134e8, info=(nil) [umax1220u] sane_control_option: handle=0x692080, opt=0, act=0, val=0x7fff95f133c4, info=(nil) [umax1220u] sane_get_option_descriptor: option = 0 [umax1220u] sane_get_option_descriptor: option = 1 [umax1220u] sane_get_option_descriptor: option = 2 [umax1220u] sane_get_option_descriptor: option = 3 [umax1220u] sane_get_option_descriptor: option = 4 [umax1220u] sane_get_option_descriptor: option = 5 [umax1220u] sane_control_option: handle=0x692080, opt=5, act=0, val=0x60a8a0, info=(nil) [umax1220u] sane_get_option_descriptor: option = 6 [umax1220u] sane_control_option: handle=0x692080, opt=6, act=0, val=0x60a8a4, info=(nil) [umax1220u] sane_get_option_descriptor: option = 7 [umax1220u] sane_control_option: handle=0x692080, opt=3, act=0, val=0x7fff95f133c0, info=(nil) [umax1220u] sane_control_option: handle=0x692080, opt=4, act=0, val=0x7fff95f133c0, info=(nil) [umax1220u] sane_control_option: handle=0x692080, opt=3, act=0, val=0x7fff95f134dc, info=(nil) [umax1220u] sane_get_option_descriptor: option = 5 [umax1220u] sane_control_option: handle=0x692080, opt=5, act=1, val=0x7fff95f134e0, info=0x7fff95f133cc [umax1220u] sane_control_option: handle=0x692080, opt=4, act=0, val=0x7fff95f134dc, info=(nil) [umax1220u] sane_get_option_descriptor: option = 6 [umax1220u] sane_control_option: handle=0x692080, opt=6, act=1, val=0x7fff95f134e0, info=0x7fff95f133cc [umax1220u] sane_start [umax1220u] UMAX_set_scan_parameters: [umax1220u] color = 1 [umax1220u] xo = 0, yo = 0 [umax1220u] w = 0, h = 0 [umax1220u] xres = 75, yres = 75 [umax1220u] left = 0, top = 0 [umax1220u] right = 0, bottom = 0 scanimage: sane_start: Invalid argument [umax1220u] sane_cancel: handle = 0x692080 [umax1220u] sane_cancel: canceling is unsupported in this backend [umax1220u] sane_close [umax1220u] UMAX_close_device: [umax1220u] sane_exit # exit -- sane-devel mailing list: [hidden email] http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [hidden email] |
|
forward to list as well, sorry Dr R....
---------- Forwarded message ---------- From: m. allan noah <[hidden email]> Date: Thu, Dec 18, 2008 at 8:37 AM Subject: Re: [sane-devel] umax1220u: sane_start: Invalid argument To: "D. Hugh Redelmeier" <[hidden email]> On Wed, Dec 17, 2008 at 10:23 PM, D. Hugh Redelmeier <[hidden email]> wrote: > | From: m. allan noah <[hidden email]> > > | You could try to get a debug log of the backend in operation: > | > | SANE_DEBUG_UMAX1220U=255 scanimage 2>error.log > > Thanks. That seems to give useful information. Not that I know how > to interpet it. > > Near the end, just before the error message, the > UMAX_set_scan_parameters don't look reasonable to me. Are the > resolutions DPI? If so, they seem low. Is it OK to have so many of > the other parameters 0? <snip> > [umax1220u] sane_start > [umax1220u] UMAX_set_scan_parameters: > [umax1220u] color = 1 > [umax1220u] xo = 0, yo = 0 > [umax1220u] w = 0, h = 0 > [umax1220u] xres = 75, yres = 75 > [umax1220u] left = 0, top = 0 > [umax1220u] right = 0, bottom = 0 > scanimage: sane_start: Invalid argument > [umax1220u] sane_cancel: handle = 0x692080 > [umax1220u] sane_cancel: canceling is unsupported in this backend > [umax1220u] sane_close > [umax1220u] UMAX_close_device: > [umax1220u] sane_exit > yes- it appears odd that all of those values are 0. what is the output of scanimage --help allan -- "The truth is an offense, but not a sin" -- "The truth is an offense, but not a sin" -- sane-devel mailing list: [hidden email] http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [hidden email] |
|
| From: m. allan noah <[hidden email]>
| On Wed, Dec 17, 2008 at 10:23 PM, D. Hugh Redelmeier <[hidden email]> wrote: | > [umax1220u] sane_start | > [umax1220u] UMAX_set_scan_parameters: | > [umax1220u] color = 1 | > [umax1220u] xo = 0, yo = 0 | > [umax1220u] w = 0, h = 0 | > [umax1220u] xres = 75, yres = 75 | > [umax1220u] left = 0, top = 0 | > [umax1220u] right = 0, bottom = 0 | > scanimage: sane_start: Invalid argument | > [umax1220u] sane_cancel: handle = 0x692080 | > [umax1220u] sane_cancel: canceling is unsupported in this backend | > [umax1220u] sane_close | > [umax1220u] UMAX_close_device: | > [umax1220u] sane_exit | > | | yes- it appears odd that all of those values are 0. what is the output of | | scanimage --help Here it is. I removed the part that does not depend on the device. Note that the USB numbering may be different since I've been moving the device between machines. Options specific to device `umax1220u:libusb:003:002': --resolution auto||75|150|300|600dpi [75] Sets the resolution of the scanned image. --gray[=(yes|no)] [no] Do a grayscale rather than color scan -l 0..228.6mm [0] Top-left x position of scan area. -t 0..298.027mm [0] Top-left y position of scan area. -x 0..228.6mm [0] Width of scan-area. -y 0..298.027mm [0] Height of scan-area. --lamp-off Turn off scanner lamp Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE. List of available devices: umax1220u:libusb:003:002 -- sane-devel mailing list: [hidden email] http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [hidden email] |
|
well, it appears that the backend does not set default values for the
width and height (-x and -y) so, in order to make a scan, you must specify them. scanimage -x 210 -y 297 > image.pnm allan On Thu, Dec 18, 2008 at 10:41 AM, D. Hugh Redelmeier <[hidden email]> wrote: > | From: m. allan noah <[hidden email]> > > | On Wed, Dec 17, 2008 at 10:23 PM, D. Hugh Redelmeier <[hidden email]> wrote: > > | > [umax1220u] sane_start > | > [umax1220u] UMAX_set_scan_parameters: > | > [umax1220u] color = 1 > | > [umax1220u] xo = 0, yo = 0 > | > [umax1220u] w = 0, h = 0 > | > [umax1220u] xres = 75, yres = 75 > | > [umax1220u] left = 0, top = 0 > | > [umax1220u] right = 0, bottom = 0 > | > scanimage: sane_start: Invalid argument > | > [umax1220u] sane_cancel: handle = 0x692080 > | > [umax1220u] sane_cancel: canceling is unsupported in this backend > | > [umax1220u] sane_close > | > [umax1220u] UMAX_close_device: > | > [umax1220u] sane_exit > | > > | > | yes- it appears odd that all of those values are 0. what is the output of > | > | scanimage --help > > Here it is. I removed the part that does not depend on the device. > Note that the USB numbering may be different since I've been moving > the device between machines. > > Options specific to device `umax1220u:libusb:003:002': > --resolution auto||75|150|300|600dpi [75] > Sets the resolution of the scanned image. > --gray[=(yes|no)] [no] > Do a grayscale rather than color scan > -l 0..228.6mm [0] > Top-left x position of scan area. > -t 0..298.027mm [0] > Top-left y position of scan area. > -x 0..228.6mm [0] > Width of scan-area. > -y 0..298.027mm [0] > Height of scan-area. > --lamp-off > Turn off scanner lamp > > Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE. > > List of available devices: > umax1220u:libusb:003:002 > > -- > sane-devel mailing list: [hidden email] > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to [hidden email] > -- "The truth is an offense, but not a sin" -- sane-devel mailing list: [hidden email] http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [hidden email] |
|
| From: [hidden email]
| You need to specify the size of the image to scan, as it defaults to 0 | pixels, which is invalid. | SANE_DEBUG_UMAX1220U=255 scanimage -x 100 -y 100 -d umax1220u:libusb:004:003 > outfile.pnm | From: m. allan noah <[hidden email]> | well, it appears that the backend does not set default values for the | width and height (-x and -y) | | so, in order to make a scan, you must specify them. | | scanimage -x 210 -y 297 > image.pnm It worked! Thanks very much! Is this a backend bug, a scanner bug, or an unfortunate feature? I have yet to explore other programs that call SANE so I don't know if there will be problems specifying -x and -y with them. Thanks again: I was about to give these scanners away (I have two) because I thought there was no Linux support. They've been sitting on the shelf for years and now they can actually be useful. (There was no support when I last checked and it seemed unlikely to be created because no specifications were available.) -- sane-devel mailing list: [hidden email] http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [hidden email] |
|
I'd say it is a backend bug. I dont think it is mentioned in the SANE
spec, but backends should generally start out with reasonable defaults. Should be simple to do that for the scan area params. Can you file a bug report so we dont forget to do it? allan On Thu, Dec 18, 2008 at 11:45 AM, D. Hugh Redelmeier <[hidden email]> wrote: > | From: [hidden email] > > | You need to specify the size of the image to scan, as it defaults to 0 > | pixels, which is invalid. > | SANE_DEBUG_UMAX1220U=255 scanimage -x 100 -y 100 -d umax1220u:libusb:004:003 > outfile.pnm > > > | From: m. allan noah <[hidden email]> > > | well, it appears that the backend does not set default values for the > | width and height (-x and -y) > | > | so, in order to make a scan, you must specify them. > | > | scanimage -x 210 -y 297 > image.pnm > > It worked! Thanks very much! > > Is this a backend bug, a scanner bug, or an unfortunate feature? > > I have yet to explore other programs that call SANE so I don't know if > there will be problems specifying -x and -y with them. > > Thanks again: I was about to give these scanners away (I have two) because > I thought there was no Linux support. They've been sitting on the shelf > for years and now they can actually be useful. (There was no support when > I last checked and it seemed unlikely to be created because no > specifications were available.) > > -- > sane-devel mailing list: [hidden email] > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to [hidden email] > -- "The truth is an offense, but not a sin" -- sane-devel mailing list: [hidden email] http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [hidden email] |
|
| From: m. allan noah <[hidden email]>
| Can | you file a bug report so we dont forget to do it? https://alioth.debian.org/tracker/index.php?func=detail&aid=311313&group_id=30186&atid=410366 -- sane-devel mailing list: [hidden email] http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [hidden email] |
| Powered by Nabble | Edit this page |
