Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canon DR 1130 Issue #76

Open
qamarhafeez opened this issue Apr 1, 2018 · 2 comments
Open

Canon DR 1130 Issue #76

qamarhafeez opened this issue Apr 1, 2018 · 2 comments

Comments

@qamarhafeez
Copy link

when scanning with Canon DRG1130 Model in adf model, after it finishes all pages sometime it hold me on wait and return STATUS_IO_ERROR and sometimes it didn't wait and return quickly STATUS_NO_DOCS. How can i debug this issue, please help

@sjamesr
Copy link
Owner

sjamesr commented Apr 2, 2018

Are you able to try out a patch for me? It's just a hunch

diff --git a/src/main/java/au/com/southsky/jfreesane/SaneSession.java b/src/main/java/au/com/southsky/jfreesane/SaneSession.java
index b78438e..c6b7061 100644
--- a/src/main/java/au/com/southsky/jfreesane/SaneSession.java
+++ b/src/main/java/au/com/southsky/jfreesane/SaneSession.java
@@ -212,9 +212,9 @@ public final class SaneSession implements Closeable {
     SaneParameters parameters = null;
     listener.scanningStarted(device);
     int currentFrame = 0;
+    SaneDeviceHandle handle = device.getHandle();
 
     do {
-      SaneDeviceHandle handle = device.getHandle();
       outputStream.write(SaneRpcCode.SANE_NET_START);
       outputStream.write(handle.getHandle());
       outputStream.flush();
@@ -285,6 +285,7 @@ public final class SaneSession implements Closeable {
     } while (!parameters.isLastFrame());
 
     listener.scanningFinished(device);
+    cancelDevice(handle);
     SaneImage image = builder.build();
     return image.toBufferedImage();
   }

@qamarhafeez
Copy link
Author

This patch is not the issue, After investing too many hours, i noticed that the scanner is having I/O Error with xhci usb 3.0 kernel driver. My PC has all usb 3 ports, and bios does not have option to disable 3.0 mode. How can i disable it in operating system?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants