Menu

#487 MFC-J985DW -- Flatbed OK -- Feeder not OK

5.X
open
nobody
brother (3)
5.8.1.2646
Support
Medium
WIA
2018-12-14
2018-08-23
No

I have a MFC-J985DW.
When using the flatbed, all is good at 150 dpi.
When using the feeder as the source, I get only the center of each page at 150 dpi.
At 300 dpi it gets the entire 1st page, but gets the following for page 2:

NAPS2.Scan.Exceptions.ScanDriverUnknownException: An error occurred with the scanning driver. ---> System.Runtime.InteropServices.COMException: This operation returned because the timeout period expired. (Exception from HRESULT: 0x800705B4)
at WIA.ItemClass.Transfer(String FormatID)
at NAPS2.WinForms.FScanProgress.<fscanprogress_shown>b26_0(WiaState wia)
--- End of inner exception stack trace ---
at NAPS2.Scan.Wia.WiaApi.ThrowDeviceError(COMException e)
at NAPS2.Scan.Wia.WiaApi.ThrowDeviceError(Exception error)
at NAPS2.Scan.Wia.ForegroundWiaTransfer.Transfer(Int32 pageNumber, WiaBackgroundEventLoop eventLoop, String format)
at NAPS2.Scan.Wia.WiaScanDriver.TransferImage(WiaBackgroundEventLoop eventLoop, Int32 pageNumber, Boolean& cancel)
at NAPS2.Scan.Wia.WiaScanDriver.<scaninternal>d</scaninternal>
13.MoveNext()
at NAPS2.Scan.ScanPerformer.PerformScan(ScanProfile scanProfile, ScanParams scanParams, IWin32Window dialogParent, ISaveNotify notify, Action`1 imageCallback)</fscanprogress_shown>


Windows Sacn has similar troubles.
Windows Fax & Scan however gets all the pages OK.

Enviroment: Windows 10, scanner and PC both on WiFi.

Related

Tickets: #487

Discussion

  • Ben Olden-Cooligan

    Have you tried using TWAIN instead of WIA?

     
    • Bryce Nesbitt

      Bryce Nesbitt - 2018-08-24

      TWAIN is ghosted.

       
  • Bryce Nesbitt

    Bryce Nesbitt - 2018-08-24

    At attempt with the Mac OS scan app, on the same setup, worked great.

     
  • Ben Olden-Cooligan

     
    • Bryce Nesbitt

      Bryce Nesbitt - 2018-08-27

      Do you recommend the "optimized for USB" driver for my case, which is wifi connection?

      Here's another run of page 2. It appears the 2nd page gets fed through the feeder prior to the scan operation for page 2 starting:

      NAPS2.Scan.Exceptions.ScanDriverUnknownException: An error occurred with the scanning driver. ---> System.Runtime.InteropServices.COMException: This operation returned because the timeout period expired. (Exception from HRESULT: 0x800705B4)
      at WIA.ItemClass.Transfer(String FormatID)
      at NAPS2.WinForms.FScanProgress.<fscanprogress_shown>b26_0(WiaState wia)
      --- End of inner exception stack trace ---
      at NAPS2.Scan.Wia.WiaApi.ThrowDeviceError(COMException e)
      at NAPS2.Scan.Wia.WiaApi.ThrowDeviceError(Exception error)
      at NAPS2.Scan.Wia.ForegroundWiaTransfer.Transfer(Int32 pageNumber, WiaBackgroundEventLoop eventLoop, String format)
      at NAPS2.Scan.Wia.WiaScanDriver.TransferImage(WiaBackgroundEventLoop eventLoop, Int32 pageNumber, Boolean& cancel)
      at NAPS2.Scan.Wia.WiaScanDriver.<scaninternal>d</scaninternal>
      13.MoveNext()
      at NAPS2.Scan.ScanPerformer.PerformScan(ScanProfile scanProfile, ScanParams scanParams, IWin32Window dialogParent, ISaveNotify notify, Action`1 imageCallback)</fscanprogress_shown>

      The TWAIN "Chose Device" button says "No scanning device was found".

       

      Last edit: Bryce Nesbitt 2018-08-27
  • Bryce Nesbitt

    Bryce Nesbitt - 2018-08-27
     
  • Ben Olden-Cooligan

    Okay, it's probably that TWAIN doesn't work with the network interface.

    In your profile settings, under Advanced, you could try "Delay between scans" and see if that has any effect.

    Other than that, unfortunately I don't think there's anything I can do. The problem is in the WIA driver which is external to NAPS2. Windows Fax and Scan has some special sauce that I don't have access to.

     
    • Bryce Nesbitt

      Bryce Nesbitt - 2018-10-23

      Same result with Brother MFC-J480DW

      Only the WIA driver is available.
      After a filed scan, it stops working completely. Reports "No scanning
      device found" until Windows 10 is rebooted.
      Restarting the spooler service (probably the wrong service) does nothing.

      On Mon, Aug 27, 2018 at 4:34 PM Ben Olden-Cooligan ben-cyanfish@users.sourceforge.net wrote:

      Okay, it's probably that TWAIN doesn't work with the network interface.

      In your profile settings, under Advanced, you could try "Delay between
      scans" and see if that has any effect.

      Other than that, unfortunately I don't think there's anything I can do.
      The problem is in the WIA driver which is external to NAPS2. Windows Fax
      and Scan has some special sauce that I don't have access to.


      Status: open
      Milestone: 5.X
      Labels: brother
      Created: Thu Aug 23, 2018 06:22 AM UTC by Bryce Nesbitt
      Last Updated: Mon Aug 27, 2018 07:44 PM UTC
      Owner: nobody

      I have a MFC-J985DW.
      When using the flatbed, all is good at 150 dpi.
      When using the feeder as the source, I get only the center of each page at
      150 dpi.
      At 300 dpi it gets the entire 1st page, but gets the following for page 2:

      NAPS2.Scan.Exceptions.ScanDriverUnknownException: An error occurred with
      the scanning driver. ---> System.Runtime.InteropServices.COMException: This
      operation returned because the timeout period expired. (Exception from
      HRESULT: 0x800705B4)
      at WIA.ItemClass.Transfer(String FormatID)
      at NAPS2.WinForms.FScanProgress.<fscanprogress_shown>b</fscanprogress_shown>

      26_0(WiaState wia) --- End of inner exception stack trace --- at
      NAPS2.Scan.Wia.WiaApi.ThrowDeviceError(COMException e) at
      NAPS2.Scan.Wia.WiaApi.ThrowDeviceError(Exception error) at
      NAPS2.Scan.Wia.ForegroundWiaTransfer.Transfer(Int32 pageNumber,
      WiaBackgroundEventLoop eventLoop, String format) at
      NAPS2.Scan.Wia.WiaScanDriver.TransferImage(WiaBackgroundEventLoop
      eventLoop, Int32 pageNumber, Boolean& cancel) at
      NAPS2.Scan.Wia.WiaScanDriver.<scaninternal>d</scaninternal>
      13.MoveNext()
      at NAPS2.Scan.ScanPerformer.PerformScan(ScanProfile scanProfile,
      ScanParams scanParams, IWin32Window dialogParent, ISaveNotify notify,
      Action`1 imageCallback)


      Windows Sacn has similar troubles.
      Windows Fax & Scan however gets all the pages OK.

      Enviroment: Windows 10, scanner and PC both on WiFi.

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/naps2/tickets/487/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #487

      • Bryce Nesbitt

        Bryce Nesbitt - 2018-10-23

        With the Advanced->Delay options it's different. The first page scans OK.
        The rest feed without scanning, then the scanner driver locks up.

        On Tue, Oct 23, 2018 at 12:12 PM Bryce Nesbitt bryce2@obviously.com wrote:

        Same result with Brother MFC-J480DW

        Only the WIA driver is available.
        After a filed scan, it stops working completely. Reports "No scanning
        device found" until Windows 10 is rebooted.
        Restarting the spooler service (probably the wrong service) does nothing.

        On Mon, Aug 27, 2018 at 4:34 PM Ben Olden-Cooligan ben-cyanfish@users.sourceforge.net wrote:

        Okay, it's probably that TWAIN doesn't work with the network interface.

        In your profile settings, under Advanced, you could try "Delay between
        scans" and see if that has any effect.

        Other than that, unfortunately I don't think there's anything I can do.
        The problem is in the WIA driver which is external to NAPS2. Windows Fax
        and Scan has some special sauce that I don't have access to.


        Status: open
        Milestone: 5.X
        Labels: brother
        Created: Thu Aug 23, 2018 06:22 AM UTC by Bryce Nesbitt
        Last Updated: Mon Aug 27, 2018 07:44 PM UTC
        Owner: nobody

        I have a MFC-J985DW.
        When using the flatbed, all is good at 150 dpi.
        When using the feeder as the source, I get only the center of each page
        at 150 dpi.
        At 300 dpi it gets the entire 1st page, but gets the following for page 2:

        NAPS2.Scan.Exceptions.ScanDriverUnknownException: An error occurred with
        the scanning driver. ---> System.Runtime.InteropServices.COMException: This
        operation returned because the timeout period expired. (Exception from
        HRESULT: 0x800705B4)
        at WIA.ItemClass.Transfer(String FormatID)
        at NAPS2.WinForms.FScanProgress.<fscanprogress_shown>b</fscanprogress_shown>

        26_0(WiaState wia) --- End of inner exception stack trace --- at
        NAPS2.Scan.Wia.WiaApi.ThrowDeviceError(COMException e) at
        NAPS2.Scan.Wia.WiaApi.ThrowDeviceError(Exception error) at
        NAPS2.Scan.Wia.ForegroundWiaTransfer.Transfer(Int32 pageNumber,
        WiaBackgroundEventLoop eventLoop, String format) at
        NAPS2.Scan.Wia.WiaScanDriver.TransferImage(WiaBackgroundEventLoop
        eventLoop, Int32 pageNumber, Boolean& cancel) at
        NAPS2.Scan.Wia.WiaScanDriver.<scaninternal>d</scaninternal>
        13.MoveNext()
        at NAPS2.Scan.ScanPerformer.PerformScan(ScanProfile scanProfile,
        ScanParams scanParams, IWin32Window dialogParent, ISaveNotify notify,
        Action`1 imageCallback)


        Windows Sacn has similar troubles.
        Windows Fax & Scan however gets all the pages OK.

        Enviroment: Windows 10, scanner and PC both on WiFi.

        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/naps2/tickets/487/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Tickets: #487

  • Bryce Nesbitt

    Bryce Nesbitt - 2018-10-30

    Still true.
    Could I buy you a Brother printer, for your testing purposes?

     
  • Ben Olden-Cooligan

    Hi,

    With my model, I see two options when selecting a device:

    With the first one I get similar behaviour (the first page scans fine, the second page gives a busy error and it pulls the rest of the pages without scanning; Windows Fax & Scan works).
    The second one works for me.

    Questions:
    1. Do you only have the one option?
    2. If so, does (re)installing the full software package make any difference? (You should be able to select Custom and only choose the printer/scanner drivers to avoid the other cruft.)
    If not, I will attempt to get the first device option working from NAPS2 if possible.

     
    • Bryce Nesbitt

      Bryce Nesbitt - 2018-11-05

      I have only one option.

      There is a LOT of cruft in that "full driver".

       
  • Ben Olden-Cooligan

    Quick update: I think I understand the root cause of the issue and will be able to fix it. It'll still be a fair bit of work though.

     
    • Bryce Nesbitt

      Bryce Nesbitt - 2018-11-07

      What's the ten cent version of the underlying issue?

      On Wed, Nov 7, 2018 at 9:55 AM Ben Olden-Cooligan ben-cyanfish@users.sourceforge.net wrote:

      Quick update: I think I understand the root cause of the issue and will be
      able to fix it. It'll still be a fair bit of work though.


      Status: open
      Milestone: 5.X
      Labels: brother
      Created: Thu Aug 23, 2018 06:22 AM UTC by Bryce Nesbitt
      Last Updated: Mon Nov 05, 2018 11:29 PM UTC
      Owner: nobody

      I have a MFC-J985DW.
      When using the flatbed, all is good at 150 dpi.
      When using the feeder as the source, I get only the center of each page at
      150 dpi.
      At 300 dpi it gets the entire 1st page, but gets the following for page 2:

      NAPS2.Scan.Exceptions.ScanDriverUnknownException: An error occurred with
      the scanning driver. ---> System.Runtime.InteropServices.COMException: This
      operation returned because the timeout period expired. (Exception from
      HRESULT: 0x800705B4)
      at WIA.ItemClass.Transfer(String FormatID)
      at NAPS2.WinForms.FScanProgress.<fscanprogress_shown>b</fscanprogress_shown>

      26_0(WiaState wia) --- End of inner exception stack trace --- at
      NAPS2.Scan.Wia.WiaApi.ThrowDeviceError(COMException e) at
      NAPS2.Scan.Wia.WiaApi.ThrowDeviceError(Exception error) at
      NAPS2.Scan.Wia.ForegroundWiaTransfer.Transfer(Int32 pageNumber,
      WiaBackgroundEventLoop eventLoop, String format) at
      NAPS2.Scan.Wia.WiaScanDriver.TransferImage(WiaBackgroundEventLoop
      eventLoop, Int32 pageNumber, Boolean& cancel) at
      NAPS2.Scan.Wia.WiaScanDriver.<scaninternal>d</scaninternal>
      13.MoveNext()
      at NAPS2.Scan.ScanPerformer.PerformScan(ScanProfile scanProfile,
      ScanParams scanParams, IWin32Window dialogParent, ISaveNotify notify,
      Action`1 imageCallback)


      Windows Sacn has similar troubles.
      Windows Fax & Scan however gets all the pages OK.

      Enviroment: Windows 10, scanner and PC both on WiFi.

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/naps2/tickets/487/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #487

  • Ben Olden-Cooligan

    WIA has a low-level Windows API that provides the core functionality. However, it is a pain to use, so pretty much all WIA-based software (including NAPS2) uses a COM abstraction provided by Microsoft.

    The COM interface is only capable of providing one page per transfer operation; so if you want to scan multiple pages, you do multiple transfer operations. However, some drivers don't handle this properly - when you try to start a second transfer operation for the second page, you get various issues.

    If I bypass the COM interface (and duplicate some of its functionality), I can build it so that it can handle multiple pages in a single transfer operation. That is fully supported in the low-level Windows API. Windows Fax and Scan is built in this way, which is why it works.

     
  • Ben Olden-Cooligan

    Hi,

    I have a version ready for testing. Could you try the attached version and let me know if it works for you?

    Some things to test:
    - With predefined settings
    - With native UI
    - With the flatbed
    - With the feeder
    - I don't know if you have any duplex scanners, but if so, with duplex
    - With WIA Version 1.0 (under Advanced) - this should reproduce the issue you had before

    Thanks,
    Ben

     
  • Ben Olden-Cooligan

    I've published the change in the latest version, 6.0b4 (and will make a non-beta version with it in the next couple weeks). Thanks again.

     
  • Bryce Nesbitt

    Bryce Nesbitt - 2018-12-14

    Thanks!

    Right now I can't get NAPS2 to work on either of my two Brother machines at all.
    Windows Fax & Scan does not work either. The Brother utility and a Mac OS X box work fine. It's all pain, and I've mostly switched to using the Mac and transferring the result to Windows.

     

Log in to post a comment.