SANE error when attempting to scan with HP Deskjet 3050A

202 views
Skip to first unread message

ne...@bartley.co

unread,
Dec 15, 2011, 9:49:01 AM12/15/11
to open...@googlegroups.com

When trying to scan with a HP Deskjet 3050A I get a SANE error. Lines from opendias.log:

20111214194124:B77DAB70:INF: Processing request for: doScan
20111214194126:B77DAB70:INF: Processing request for: getScanning Progress
20111214194126:B77DAB70:INF: Processing request for: getScanning Progress
20111214194127:B6FD9B70:WRN: Error setting option resolution: Invalid argument
20111214194127:B6FD9B70:ERR: Cannot set resolution (range): sane error = 4 (Invalid argument), return code = 0

The scanner is detected and scans without any issues using simple-scan (as root).

Wayne Booth

unread,
Dec 16, 2011, 8:25:12 AM12/16/11
to open...@googlegroups.com
Hi Neil,

Can you increase your log level and re-test and post the new log.

Inceease logging using:
      /usr/local/bin/opendiasconfig  -s log_verbosity -v 4

Cheers.

Wayne

Neil Bartley

unread,
Jan 4, 2012, 9:55:41 AM1/4/12
to openDIAS
Hi,

More verbose log uploaded here: http://pastebin.com/Lb47npv0

Cheers, Neil.

On Dec 16 2011, 1:25 pm, Wayne Booth <wbooth.clearsc...@gmail.com>
wrote:

Neil Bartley

unread,
Jan 4, 2012, 9:56:29 AM1/4/12
to openDIAS
Should probably add that OpenDIAS requires restarting after the error
is displayed.

Wayne Booth

unread,
Jan 4, 2012, 11:14:26 AM1/4/12
to open...@googlegroups.com
Thanks for the post. I see what the problem is: I'll form a fix for this shortly.

For the record, the relevant log lines are:

20120104145254:B7847B70:DBG: Collected post data:
20120104145254:B7847B70:DBG:       action : doScan
20120104145254:B7847B70:DBG:       deviceid : hpaio:/usb/Deskjet_3050A_J611_series?serial=CN18N434Q705PJ
20120104145254:B7847B70:DBG:       format : Grey Scale
20120104145254:B7847B70:DBG:       pages : 1
20120104145254:B7847B70:DBG:       resolution : 300
20120104145254:B7847B70:DBG:       ocr : eng
20120104145254:B7847B70:DBG:       pagelength : 100
... snip ...
20120104145255:B7046B70:DBG: Option 3: name='resolution' title='Scan resolution' type=int size=4 unit=dpi values=[75, 100, 200, 300, 600, 1200, 2400] cap=soft-select,soft-detect
20120104145255:B7046B70:DBG: Run Query (9878e50)
20120104145255:B7046B70:DBG: Free recordset (9878e50)
20120104145255:B7046B70:DBG: sane_control_option (3, SANE_ACTION_SET_VALUE, 30000) -> (SANE_STATUS_INVAL, 30000)
20120104145255:B7046B70:WRN: Error setting option resolution: Invalid argument
20120104145255:B7046B70:ERR: Cannot set resolution (range): sane error = 4 (Invalid argument), return code = 0

Wayne Booth

unread,
Jan 4, 2012, 4:29:51 PM1/4/12
to open...@googlegroups.com
Hi,

I have committed a patch that I think will fix this issue.
Can you retest with this new version:
     Branch: bugfixes_0_7 
     Commit: 708dd3a
Let me know if this fixes thing for you.
Cheers.

ne...@bartley.co

unread,
Jan 13, 2012, 3:32:45 AM1/13/12
to open...@googlegroups.com
Hi,

That has fixed it!

Thanks for your help.

Cheers, Neil.

Wayne Booth

unread,
Jan 13, 2012, 3:49:59 PM1/13/12
to open...@googlegroups.com
Great. This has been merged into master and made it for the recent 0.7.3 release.
Cheers
Reply all
Reply to author
Forward
0 new messages