Menu

Canon MX450 series Scanner WS - An error occurred with the scanning driver.

Anonymous
2014-01-01
2014-02-10
  • Anonymous

    Anonymous - 2014-01-01

    Canon MX450 series Scanner WS
    WIA Driver
    Use predefined settings

    I get the error "An error occurred with the scanning driver." when trying to scan.

    In the errorlog.txt:

    2013-12-31 15:43:15.9902 An error occurred with the scanning driver. System.DivideByZeroException: Attempted to divide by zero.
    at NAPS2.Scan.Wia.WiaApi.SetItemIntProperty(Item item, Int32 value, Int32 expectedMin, Int32 expectedMax, Int32 propid)
    at NAPS2.Scan.Wia.WiaApi.SetupItem(Item item)
    at NAPS2.Scan.Wia.WiaApi.GetImage()
    at NAPS2.Scan.Wia.WiaScanDriver.<scan>d__0.MoveNext()</scan>

    If I use the native WIA UI then it works - however that doesn't remember settings :(

     
  • Anonymous

    Anonymous - 2014-01-01

    I debugged the code, and it is getting that exception at:

    actualValue -= actualValue % property.SubTypeStep;
    

    The property was for Contrast.
    The SubTypeDefault, SubTypeMin, SubTypeMax, SubTypeStep values are all 0.

    I've currently resolved it by wrapping the above line in an if statement.

     

    Last edit: Anonymous 2014-01-01
  • Ben Olden-Cooligan

    Hi Jacob,

    Thanks for the detailed error report. I'll add a sanity check and include the fix in a future version of NAPS2.

    Ben

     
  • Shady Glenn

    Shady Glenn - 2014-02-10

    Hi Ben,

    I am also getting this error; I am using a Canon MX432 printer/scanner and get the error when I attempt to scan using the WIA Driver with predefined settings.

    Here is my error:

    2014-02-10 14:19:39.1421 An error occurred with the scanning driver. System.DivideByZeroException: Attempted to divide by zero.
    at NAPS2.Scan.Wia.WiaApi.SetItemIntProperty(Item item, Int32 value, Int32 expectedMin, Int32 expectedMax, Int32 propid)
    at NAPS2.Scan.Wia.WiaApi.SetupItem(Item item)
    at NAPS2.Scan.Wia.WiaApi.GetImage()
    at NAPS2.Scan.Wia.WiaScanDriver.d__0.MoveNext()

    If you would be able to push out the fix for this, it would be greatly appreciated.

    Thanks for all your hard work!

    Shady.

    PS: I just started using NAPS2 after getting frustrated with the crappy bundled scanning software and it is exactly what I wanted, it is a great piece of software!

     

Log in to post a comment.

MongoDB Logo MongoDB