Re: [sane-devel] scanbd crashes when turning on all-in-one

2017-04-11 Thread Wilhelm
Am 11.04.2017 um 16:49 schrieb Manuel Reiter:
> I'm using scanbd with a Pixma MP610 all-in-one on a Raspberry Pi 3 running an 
> up-to-date Rasbian Jessie.
> This works pretty well (with some setup help from this list). However, when I 
> turn on the device, scanbd
> seems to crash:

This is a known bug on debian-based systems. The root cause is due to a
bug in libsane.

However, since scanbd-1.5.0 (or trunk) there is a workaround in scanbd
that should fix the problem.

What is your version?

> 
> Apr 11 07:32:40 hive kernel: [134163.203415] usb 1-1.2: new high-speed USB 
> device number 8 using dwc_otg
> Apr 11 07:32:40 hive kernel: [134163.304688] usb 1-1.2: New USB device found, 
> idVendor=04a9, idProduct=1725
> Apr 11 07:32:40 hive kernel: [134163.304711] usb 1-1.2: New USB device 
> strings: Mfr=1, Product=2, SerialNumber=3
> Apr 11 07:32:40 hive kernel: [134163.304724] usb 1-1.2: Product: MP610 series
> Apr 11 07:32:40 hive kernel: [134163.304736] usb 1-1.2: Manufacturer: Canon
> Apr 11 07:32:40 hive kernel: [134163.304748] usb 1-1.2: SerialNumber: 414EE7
> Apr 11 07:32:40 hive kernel: [134163.310051] usblp 1-1.2:1.1: usblp0: USB 
> Bidirectional printer dev 8 if 1 alt 0 proto 2 vid 0x04A9 pid 0x1725
> Apr 11 07:32:40 hive kernel: [134163.310535] usb-storage 1-1.2:1.2: USB Mass 
> Storage device detected
> Apr 11 07:32:40 hive kernel: [134163.311524] scsi host3: usb-storage 1-1.2:1.2
> Apr 11 07:32:40 hive systemd[1]: Starting Printer.
> Apr 11 07:32:40 hive systemd[1]: Reached target Printer.
> Apr 11 07:32:40 hive systemd[1]: scanbd.service: main process exited, 
> code=killed, status=11/SEGV
> 
> Is this known behaviour? I guess I can get around it by adding a Restart 
> option to the systemd unit file,
> but I'd like to know whether something's possibly wrong first.
> 
> Thanks in advance for your help!
> 
> All the best,
> 
>   Manuel
> 


-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] scanbd crashes when turning on all-in-one

2017-04-11 Thread Wilhelm
Am 11.04.2017 um 16:49 schrieb Manuel Reiter:
> I'm using scanbd with a Pixma MP610 all-in-one on a Raspberry Pi 3 running an 
> up-to-date Rasbian Jessie.
> This works pretty well (with some setup help from this list). However, when I 
> turn on the device, scanbd
> seems to crash:

This is a known bug on debian-based systems. The root cause is due to a
bug in libsane.

However, since scanbd-1.5.0 (or trunk) there is a workaround in scanbd
that should fix the problem.

What is your version?

> 
> Apr 11 07:32:40 hive kernel: [134163.203415] usb 1-1.2: new high-speed USB 
> device number 8 using dwc_otg
> Apr 11 07:32:40 hive kernel: [134163.304688] usb 1-1.2: New USB device found, 
> idVendor=04a9, idProduct=1725
> Apr 11 07:32:40 hive kernel: [134163.304711] usb 1-1.2: New USB device 
> strings: Mfr=1, Product=2, SerialNumber=3
> Apr 11 07:32:40 hive kernel: [134163.304724] usb 1-1.2: Product: MP610 series
> Apr 11 07:32:40 hive kernel: [134163.304736] usb 1-1.2: Manufacturer: Canon
> Apr 11 07:32:40 hive kernel: [134163.304748] usb 1-1.2: SerialNumber: 414EE7
> Apr 11 07:32:40 hive kernel: [134163.310051] usblp 1-1.2:1.1: usblp0: USB 
> Bidirectional printer dev 8 if 1 alt 0 proto 2 vid 0x04A9 pid 0x1725
> Apr 11 07:32:40 hive kernel: [134163.310535] usb-storage 1-1.2:1.2: USB Mass 
> Storage device detected
> Apr 11 07:32:40 hive kernel: [134163.311524] scsi host3: usb-storage 1-1.2:1.2
> Apr 11 07:32:40 hive systemd[1]: Starting Printer.
> Apr 11 07:32:40 hive systemd[1]: Reached target Printer.
> Apr 11 07:32:40 hive systemd[1]: scanbd.service: main process exited, 
> code=killed, status=11/SEGV
> 
> Is this known behaviour? I guess I can get around it by adding a Restart 
> option to the systemd unit file,
> but I'd like to know whether something's possibly wrong first.
> 
> Thanks in advance for your help!
> 
> All the best,
> 
>   Manuel
> 


-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] pixma backend: -x/y auto advertised but not available / how to crop?

2017-04-11 Thread Manuel Reiter
I'm using saned with a Pixma MP610 all-in-one on a Raspberry Pi 3 
running an up-to-date Rasbian Jessie. scanimage --help shows me the 
following options for Geometry:


[...]
Options specific to device `net:localhost:pixma:04A91725_414EE7':
[...]
  Geometry:
-l auto|0..216.069mm [0]
Top-left x position of scan area.
-t auto|0..297.011mm [0]
Top-left y position of scan area.
-x auto|0..216.069mm [216.069]
Width of scan-area.
-y auto|0..297.011mm [297.011]
Height of scan-area.
[...]

However, trying to actually use "-x auto" results in an error:

--snip
reiter@hive:~ $ scanimage -d net:localhost:pixma --mode Color \
--resolution 300 -l auto -t auto -x auto -y auto > /dev/null
scanimage: option --x: bad option value (rest of option: auto)
--snip

Is this a bug or an error on my part?

I intend to use this scanner for a document management system and expect 
to scan quite a number of non-full-size documents. If x/y auto is indeed 
not available, what would be a good way to automatically crop my scans? 
The included (Mac) Software actually does a decent job so it seems to be 
possible.


Thanks in advance for your answers!

Cheers,

  Manuel

--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org