Menu

#1108 Exception "Value does not fall within the expected range" with Canon 4400F on Windows 10

7.X
open
nobody
None
Windows
7.3.1
Support
Medium
WIA
2024-03-01
2024-02-28
No

I get this error message whenever I try to acan with a resolution higher than 150 dpi.

2024-02-28 23:50:06.2040 15744 Value does not fall within the expected range. System.ArgumentException: Value does not fall within the expected range.
at void NAPS2.Wia.Native.IWiaTransfer.Download(int lFlags, IWiaTransferCallback pIWiaTransferCallback)
at uint NAPS2.Wia.Native.NativeWiaMethods.Download2(IntPtr transferPtr, TransferStatusCallback func)
at bool NAPS2.Wia.WiaTransfer.Download()
at void NAPS2.Scan.Internal.Wia.WiaScanDriver+WiaScanContext.DoTransfer(WiaDevice device, WiaItem item)
at async Task NAPS2.Scan.Internal.Wia.WiaScanDriver+WiaScanContext.Scan(WiaVersion wiaVersion)
at async Task NAPS2.Scan.Internal.Wia.WiaScanDriver.Scan(ScanOptions options, CancellationToken cancelToken, IScanEvents scanEvents, Action<imemoryimage> callback)+(?) => { }
at async Task NAPS2.Scan.Internal.RemoteScanController.Scan(ScanOptions options, CancellationToken cancelToken, IScanEvents scanEvents, Action<processedimage, postprocessingcontext=""> callback)
at async Task NAPS2.Scan.ScanController+<>c__DisplayClass13_1.<scan>g__DoScan|6(?)+DoScan(?)
at async IAsyncEnumerable<processedimage> NAPS2.Scan.ScanController.Scan(ScanOptions options, CancellationToken cancelToken)+(?) => { }</processedimage></scan></processedimage,></imemoryimage>

Related

Tickets: #1108

Discussion

  • Ben Olden-Cooligan

    Hi, can you try the attached test version and follow these instructions:
    - Download, extract, and run the test version
    - In the "About" window, check "Enable debug logging"
    - Scan and reproduce the error
    - In the extracted folder, in the "Data" folder, find the "debuglog.txt" file and attach it to this ticket

     
    • Henrik Zawischa

      Henrik Zawischa - 2024-03-01

      Hi Ben,

      sure thing. Please find the files attached. I tried twice and switched
      to English in between.

      Thank you!

      Henrik

      On 01.03.2024 22:18, Ben Olden-Cooligan wrote:

      Hi, can you try the attached test version and follow these instructions:
      - Download, extract, and run the test version
      - In the "About" window, check "Enable debug logging"
      - Scan and reproduce the error
      - In the extracted folder, in the "Data" folder, find the
      "debuglog.txt" file and attach it to this ticket

      Attachments:


      [tickets:#1108] https://sourceforge.net/p/naps2/tickets/1108/
      Exception "Value does not fall within the expected range" with Canon
      4400F on Windows 10

      Status: open
      Milestone: 7.X
      Created: Wed Feb 28, 2024 10:53 PM UTC by Henrik Zawischa
      Last Updated: Wed Feb 28, 2024 10:53 PM UTC
      Owner: nobody

      I get this error message whenever I try to acan with a resolution
      higher than 150 dpi.

      2024-02-28 23:50:06.2040 15744 Value does not fall within the expected
      range. System.ArgumentException: Value does not fall within the
      expected range.
      at void NAPS2.Wia.Native.IWiaTransfer.Download(int lFlags,
      IWiaTransferCallback pIWiaTransferCallback)
      at uint NAPS2.Wia.Native.NativeWiaMethods.Download2(IntPtr
      transferPtr, TransferStatusCallback func)
      at bool NAPS2.Wia.WiaTransfer.Download()
      at void
      NAPS2.Scan.Internal.Wia.WiaScanDriver+WiaScanContext.DoTransfer(WiaDevice
      device, WiaItem item)
      at async Task
      NAPS2.Scan.Internal.Wia.WiaScanDriver+WiaScanContext.Scan(WiaVersion
      wiaVersion)
      at async Task NAPS2.Scan.Internal.Wia.WiaScanDriver.Scan(ScanOptions
      options, CancellationToken cancelToken, IScanEvents scanEvents,
      Action<imemoryimage> callback)+(?) => { }
      at async Task
      NAPS2.Scan.Internal.RemoteScanController.Scan(ScanOptions options,
      CancellationToken cancelToken, IScanEvents scanEvents,
      Action<processedimage, postprocessingcontext=""> callback)
      at async Task
      NAPS2.Scan.ScanController+<>c__DisplayClass13_1.<scan>g__DoScan|6(?)+DoScan(?)
      at async IAsyncEnumerable<processedimage>
      NAPS2.Scan.ScanController.Scan(ScanOptions options, CancellationToken
      cancelToken)+(?) => {
      }</processedimage></scan></processedimage,></imemoryimage>


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

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

      --

      Henrik Zawischa

      Steenwisch 49
      22527 Hamburg

      +49 40 63273457
      +49 176 48274609

       

      Related

      Tickets: #1108

  • Henrik Zawischa

    Henrik Zawischa - 2024-03-01

    Hi Ben,

    sure thing. Please find the files attached. I tried twice and switched to English in between.

    Thank you!

    Henrik

     
  • Ben Olden-Cooligan

    In your profile settings, under "Advanced", under "WIA Version", can you try selecting "1.0" and see if that helps?

     
  • Henrik Zawischa

    Henrik Zawischa - 2024-03-01

    No, it doesn't. But the values have changed:

    2024-03-01 22:59:36.8078 2168 xdpi ReadWrite, Range 50-600 @ 300 + 1; [] 
    2024-03-01 22:59:36.8078 2168 ydpi ReadWrite, Range 50-600 @ 300 + 1; [] 
    2024-03-01 22:59:36.8589 2168 Value does not fall within the expected range. System.ArgumentException: Value does not fall within the expected range.
       at void NAPS2.Wia.Native.IWiaPropertyStorage.WriteMultiple(uint cpspec, PROPSPEC[] rgpspec, PROPVARIANT[] rgpropvar, uint propidNameFirst)
       at uint NAPS2.Wia.Native.NativeWiaMethods.StartTransfer1(IntPtr itemPtr, out IntPtr transfer)
       at WiaTransfer NAPS2.Wia.WiaItem.StartTransfer()
       at void NAPS2.Scan.Internal.Wia.WiaScanDriver+WiaScanContext.DoTransfer(WiaDevice device, WiaItem item)
       at async Task NAPS2.Scan.Internal.Wia.WiaScanDriver+WiaScanContext.Scan(WiaVersion wiaVersion)
       at async Task NAPS2.Scan.Internal.Wia.WiaScanDriver.Scan(ScanOptions options, CancellationToken cancelToken, IScanEvents scanEvents, Action<IMemoryImage> callback)+(?) => { }
       at async Task NAPS2.Scan.Internal.RemoteScanController.Scan(ScanOptions options, CancellationToken cancelToken, IScanEvents scanEvents, Action<ProcessedImage, PostProcessingContext> callback)
       at async Task NAPS2.Scan.ScanController+<>c__DisplayClass13_1.<Scan>g__DoScan|6(?)+DoScan(?)
       at async IAsyncEnumerable<ProcessedImage> NAPS2.Scan.ScanController.Scan(ScanOptions options, CancellationToken cancelToken)+(?) => { }
    
     

Log in to post a comment.