SaneOption isWritable bug with Epson scanner.

7 views
Skip to first unread message

Roland Quast

unread,
Aug 6, 2013, 11:36:09 PM8/6/13
to jfreesan...@googlegroups.com
I'm getting a read only option returning as writable. Is this an Epson bug or is it a bug with the implementation of isWritable?

From SaneOption:

  public boolean isWriteable() {
    return descriptor.getOptionCapabilities().contains(OptionCapability.SOFT_SELECT);
  }

See attached screenshot for the buggy option.

If you go ahead and write, this option will return an invalid status.

Thanks.
is_writable_bug.png

James Ring

unread,
Aug 6, 2013, 11:43:24 PM8/6/13
to Roland Quast, jfreesane-discuss
I would guess this is a bug in the epson backend (based on what I've
seen they are pretty sloppy with what they return), but I wouldn't
rule out a bug in jfreesane either. Do you know where the source code
for your epson driver lives so I can take a look?
> --
> You received this message because you are subscribed to the Google Groups
> "jfreesane-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jfreesane-disc...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Roland Quast

unread,
Aug 6, 2013, 11:46:29 PM8/6/13
to jfreesan...@googlegroups.com, Roland Quast
I think this is it: https://github.com/hean01/iscan

James Ring

unread,
Aug 6, 2013, 11:54:34 PM8/6/13
to Roland Quast, jfreesane-discuss
Hm, looks like jfreesane might be getting it wrong or you're using an
older version of the driver:

https://github.com/hean01/iscan/blob/master/backend/epkowa.c#L2363

s->opt[OPT_MONITOR_BUTTON].cap |= SANE_CAP_ADVANCED;
s->opt[OPT_MONITOR_BUTTON].cap &= ~SANE_CAP_SOFT_SELECT;

That will definitely turn off the soft select bit. The git history for
that project only shows the one revision, driver version 2.29.1-5. I'd
ensure you're using at least that and then try again.

Regards,
James

Roland Quast

unread,
Aug 7, 2013, 12:03:19 AM8/7/13
to jfreesan...@googlegroups.com, Roland Quast
Now that I think about it, that pc that I have it installed on was an old iscan package file from epson and not the latest one in the ubuntu repository.

In either case, it's good to know it was an epson bug and that it has been fixed. I'll also be sure to catch any exception where an option write throws an exception and continue.

Thanks again.
Reply all
Reply to author
Forward
0 new messages