Closed herbstrevolver closed 3 years ago
I found a similar problem reported for the brother4 driver here: http://technik.blogs.nde.ag/2013/12/06/brother-dcp-j925dw-problems-when-scanning-via-sane/ There, scanning locally would work but not remotely via saned. The brother4 driver seemed to behave differently depending on which executable it was loaded from. The workaround was to use the brother2 driver, but the brother4 driver has reportedly been fixed since then. So a possible solution for you might be to switch to the brother4 driver, if that supports your scanner.
So a possible solution for you might be to switch to the brother4 driver, if that supports your scanner.
That's sadly not the case. The scanner only works with its "brother3" driver – to my knowledge there are only a few cases where multiple Brother drivers work for one Brother scanner device.
In the last few months I didn't have much time any more to dig deeper into this issue, though I did some experiments a while ago. It seems like a buffer in SANE or between SANE and the driver is overflowing due to a poorly working driver. In the end, the scanning process via SANE can be accomplished for resolutions up to 200 dpi black&white but that's it more or less. It's really not stable.
Thank you very much for your support, I'll close this issue since this is very scanner specific (or related to SANE) and not directly related to AirSane as such.
Hi @herbstrevolver! Have you been able to get rid of that "out of memory" issue? I have a Brother DCP-197C with the same problem (and also brother3 driver). Thanks!
@RGarrido03 No, sadly not. As I've written before it seems to be a problem of the underlying brother3 drivers or SANE itself. Debugging would need some deeper knowledge of SANE that I don't possess.
For my scanning needs I switched to the Brother tool brscan-skey which allows me to scan to a file on my home server by pressing a button on the printer. The files are put in a samba share (basically, brscan-skey triggers a bash script, so you can do pretty much everything…).
I am trying to make the scanner part of a Brother DCP-7030 work with AirSane but it keeps failing: Whether I start the scan via the AirSane web interface or via "Image Capture" on a Mac, the scanner makes it's starting noises but then stops after a second or so. Meanwhile scanning with
scanimage
works perfectly fine.AirSane debug mode always reports
sane_read(0x7f895c1098b0): Out of memory
Output from
sudo airsaned --debug=true --access-log=-
:Output from
sudo scanimage -d "brother3:bus2;dev1" -A
:I have to note that the reported resolutions seem not correct as the scanner only supports 100, 200, 300 and 600 dpi.
Addition: I see now that airsane reports my experiments with the config file in line
/etc/airsane/options.conf: regex 'brother3:.*' matches device name 'brother3:bus2;dev1'
. I tried to set default options for the printer as I suspected wrong default settings (like the scan area), but this didn't help.