<html><head></head><body><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">Dear SANE Developers,</div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">I'm encountering some trouble with a<b> Brother ADS-2800W</b> (<a href="https://support.brother.com/g/b/spec.aspx?c=us&lang=en&prod=ads2800w_all" rel="nofollow" target="_blank">https://support.brother.com/g/b/spec.aspx?c=us&lang=en&prod=ads2800w_all</a>). This scanner is using the brother5 driver (<span><em><span><span><em>1.1.0-0</em></span></span> 08/30/2018)</em></span> provided by Brother.<br></div><div><br></div><div><span>The problem was revealed following the use of gscan2pdf. At launch of gscan2pdf I have the following error: <i><span>"Error retreiving scanner options: error getting option 5: invalid argument". </span></i><span>You can find the related bug thread (<a href="https://sourceforge.net/p/gscan2pdf/bugs/313/" rel="nofollow" target="_blank">https://sourceforge.net/p/gscan2pdf/bugs/313/</a>) that I have with <span>Jeffrey Ratcliffe </span>(The developer of gscan2pdf).</span><div><br></div></span><span><div> <div><span>the problem is also revealed with scanimage. Using the following command line "<span><i>scanimage -d 'brother5:net1:dev0' -h</i>" which is ending with a <span><i>[dll] sane_get_option_descriptor(handle=0x55e07b804410,option=5) Segmentation fault</i></span></span></span></div><div><span><span><span></span></span></span><br></div><div>You can find some details in the<i> </i>following <span>attachments:</span></div><div><span>- <span><span><span>sane-scanimage.help.dll128.trace.txt<br></span></span></span></span></div><div><span><span><span><span>- <span>sane-scanimage.gdb.backtrace.txt</span></span></span></span><br></span></div><div><span>- <span>sane-xscanimage.gdb.backtrace.txt</span></span></div><div><span><span><span>- brsaneconfig5-diagnostics.txt</span></span></span><br></div><span><span><span><br></span></span></span><div>I have tested the following combinations with always the same result:</div><div>- Ubuntu 17.10, Ubuntu 18.04, Ubuntu 18.10 using SANE packages from official repo</div><div>-  <span>Scanner connection via wired Ethernet (original config) and directly via USB</span><br></div><div>- Commenting all unnecessary interface in <span>/etc/sane.d/dll.conf keeping only <i>net</i> and <i>brother5</i></span></div><div><span>- Tested on 2 different computers (1st: with HP + Brother devices | 2nd: Only brother device)</span></div><div><span>- Tested scanimage with and without sudo or directly as root</span></div><div><span>- Tested scanimage with device -d switch quoted and unquoted.</span><br></div></div></span><span><div><br></div></span></div><div><b><span><span>What is working without segmentation fault:</span></span></b></div><div><span><span>- scanimage -L</span></span></div><div><span><span>- <span><span><span><span>scanimage -d 'brother5:net1:dev0' -T</span></span></span></span><br></span></span></div><div><span><span></span><span></span></span>- scanimage <span><span><span><span><span><span><span>-d 'brother5:net1:dev0' > output.pnm</span></span></span></span></span></span></span></div><div><span><span><span><span><span><span><span></span></span></span></span></span></span></span><span>- scanimage <span><span><span><span><span><span><span>-d 'brother5:net1:dev0' --mode XXX --resolution XXX --source XXX  > output.pnm</span></span></span></span></span></span></span></span></div><div><span><span><span><span><span><span><span><span>- XSane (tested using each options <span>displayed for the Brother ADS-2800W, color, B&W, dpi, ADF, duplex, ...)</span></span></span></span></span></span></span></span></span></div><div><span><span><span><span><span><span><span><span><span>- Simple Scan</span></span></span></span></span></span></span></span></span><br></div><div><br></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><b>What is not working:</b></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">- <span><span><span><span>scanimage -d 'brother5:net1:dev0' -h</span></span></span></span> => <span><span><span><span><span><i>[dll] sane_get_option_descriptor(handle=0x55e07b804410,option=5) Segmentation fault</i></span></span></span></span></span></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span><span><span><i>- gscan2pdf => <span><span><i><span>Error retreiving scanner options: error getting option 5: invalid argument</span></i></span></span><br></i></span></span></span></span></span></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span><span><span><i><br></i></span></span></span></span></span></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span><span><span></span></span></span></span></span> <span>I do not know what's behind this option 5.</span></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><br></span></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span>Many thanks in advance for your help or advices.</span></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><br></span></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span>Kind regards</span></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span>Fabien</span><br></div><div class="ydp36cad91dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div></body></html>