jfreesane icon indicating copy to clipboard operation
jfreesane copied to clipboard

input stream was truncated while reading a word

Open jurivrljicak opened this issue 3 months ago • 9 comments

Hello, from


SaneSession.java  

private void initSane() throws IOException {
    // RPC code
    outputStream.write(SaneRpcCode.SANE_NET_INIT);

    // version number
    outputStream.write(SaneWord.forSaneVersion(1, 0, 3));

    // username
    outputStream.write(System.getProperty("user.name"));
    outputStream.flush();

    **inputStream.readWord();**
    inputStream.readWord();
  }

I am getting 'input stream was truncated while reading a word' in the highlighted line. I don't know why this happens, any idea?

Very often I have to plug/unplug the device for it to establish a communication but this time I can't pass through this error. Got stuck in there.

Using Ubuntu 16.04 LTS and the latest from jfreesane (1.0)

thanks

jurivrljicak avatar Mar 15 '24 14:03 jurivrljicak