[sane-devel] Scanimage Segmentation fault : sane_get_option_descriptor(handle=..., option=5)

moo can moocan2112 at yahoo.fr
Fri Oct 26 12:26:35 BST 2018


Dear SANE Developers,
I'm encountering some trouble with a Brother ADS-2800W (https://support.brother.com/g/b/spec.aspx?c=us&lang=en&prod=ads2800w_all). This scanner is using the brother5 driver (1.1.0-0 08/30/2018) provided by Brother.

The problem was revealed following the use of gscan2pdf. At launch of gscan2pdf I have the following error: "Error retreiving scanner options: error getting option 5: invalid argument". You can find the related bug thread (https://sourceforge.net/p/gscan2pdf/bugs/313/) that I have with Jeffrey Ratcliffe (The developer of gscan2pdf).
 the problem is also revealed with scanimage. Using the following command line "scanimage -d 'brother5:net1:dev0' -h" which is ending with a [dll] sane_get_option_descriptor(handle=0x55e07b804410,option=5) Segmentation fault
You can find some details in the following attachments:- sane-scanimage.help.dll128.trace.txt
- sane-scanimage.gdb.backtrace.txt
- sane-xscanimage.gdb.backtrace.txt- brsaneconfig5-diagnostics.txt

I have tested the following combinations with always the same result:- Ubuntu 17.10, Ubuntu 18.04, Ubuntu 18.10 using SANE packages from official repo- Scanner connection via wired Ethernet (original config) and directly via USB
- Commenting all unnecessary interface in /etc/sane.d/dll.conf keeping only net and brother5- Tested on 2 different computers (1st: with HP + Brother devices | 2nd: Only brother device)- Tested scanimage with and without sudo or directly as root- Tested scanimage with device -d switch quoted and unquoted.

What is working without segmentation fault:- scanimage -L- scanimage -d 'brother5:net1:dev0' -T
- scanimage -d 'brother5:net1:dev0' > output.pnm- scanimage -d 'brother5:net1:dev0' --mode XXX --resolution XXX --source XXX  > output.pnm- XSane (tested using each options displayed for the Brother ADS-2800W, color, B&W, dpi, ADF, duplex, ...)- Simple Scan

What is not working:- scanimage -d 'brother5:net1:dev0' -h => [dll] sane_get_option_descriptor(handle=0x55e07b804410,option=5) Segmentation fault- gscan2pdf => Error retreiving scanner options: error getting option 5: invalid argument

 I do not know what's behind this option 5.
Many thanks in advance for your help or advices.
Kind regardsFabien

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20181026/fac39e93/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sane-scanimage.help.dll128.trace.txt
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20181026/fac39e93/attachment-0004.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sane-scanimage.gdb.backtrace.txt
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20181026/fac39e93/attachment-0005.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sane-xscanimage.gdb.backtrace.txt
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20181026/fac39e93/attachment-0006.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: brsaneconfig5-diagnostics.txt
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20181026/fac39e93/attachment-0007.txt>


More information about the sane-devel mailing list