> Hi Krzysztof,
>
>> Hi Simon,
>>
>> Simon Matter via sane-devel <[email protected]> writes:
>>
>>> I have now tried with an old SANE version too. I was unable to compile
>>> version 1.0.14, which is running on our working systems, so I tried
>>> 1.0.32.
>>>
>>> All in all I have tried with three versions, 1.0.32, 1.2.1 and 1.4.0
>>> with
>>> the same results. The scanner would work for some jobs but then quit
>>> working. That's when scanimage says "open of device
>>> fujitsu:fi-7160:42929
>>> failed: Invalid argument".
>>
>> Have you posted a log showing this detail? If not, perhaps do.
>> Also, if still unclear, it could be helpful to run strace on your scan
>> command. Something like
>>
>> strace -fe file,fork,ioctl command...
>>
>> maybe coupled with: 2>&1 | grep EINVAL -C10
>>
>
> Thanks for your suggestion. I've created two traces now, the first is
> taken when all is still well, the second when the scanner doesn't respond
> anymore.
>
> I'm ready to produce more logs if it helps to understand what's going
> wrong.

When the scanner is blocked, here is where it happens in trace2:

[pid 340563] openat(AT_FDCWD,
"/sys/bus/usb/devices/2-2/bConfigurationValue", O_RDONLY|O_CLOEXEC) = 9
[pid 340563] ioctl(8, USBDEVFS_CLAIMINTERFACE, 0x7fffc921e064) = -1 EBUSY
(Device or resource busy)

Simon



Reply via email to