cyanfish / naps2

Scan documents to PDF and more, as simply as possible.
https://www.naps2.com
Other
2.87k stars 330 forks source link

Duplex scanning not working since 6.0b3 till now #67

Open cz-vilda opened 1 year ago

cz-vilda commented 1 year ago

Describe the bug Unable to scan in duplex mode. Only first page is scanned. Last version able to scan in duplex mode is 6.0b3.

Expected behavior Scan both of pages.

Desktop (please complete the following information):

Additional context See error from log files.

Version 6.0b4 and above:

2023-01-31 22:07:46.4295 Error setting property System.ArgumentException: Could not set property 3096 (Pages) value to "0"
Parameter name: value
   v NAPS2.Scan.Wia.Native.WiaProperty.set_Value(Object value)
   v NAPS2.Scan.Wia.Native.WiaExtensions.SetProperty(WiaItemBase item, Int32 propId, Int32 value)

Version 7.x:

 2023-01-31 21:51:36.2387 2000 Error setting property System.ArgumentException: Could not set property 3096 (Pages) value to "0"
Parameter name: value
   v NAPS2.Wia.WiaProperty.set_Value(Object value)
   v NAPS2.Wia.WiaExtensions.SetProperty(WiaItemBase item, Int32 propId, Int32 value)
   v NAPS2.Scan.Internal.Wia.WiaExtensions.SafeSetProperty(WiaItemBase item, Int32 propId, Int32 value)
cyanfish commented 1 year ago

Can you try with this test version? naps2-7.0b3-testwia.zip

And then, whether or not it works, can you take the errorlog.txt file from the Data folder and attach it here?

cz-vilda commented 1 year ago

Thank you. I will try it next week (im on holiday now without scanner).

cz-vilda commented 1 year ago

Still not working. errorlog.txt: 2023-02-10 22:30:47.9134 11044 IPS_PAGES: min 0, max 50, step 1, nom 1, flags ReadWrite, Range 2023-02-10 22:30:47.9915 11044 Could not set property 3096 (Pages) value to "50" Název parametru: value System.ArgumentException: Could not set property 3096 (Pages) value to "50" Název parametru: value v NAPS2.Wia.WiaProperty.set_Value(Object value) v NAPS2.Scan.Internal.Wia.WiaScanDriver.WiaScanContext.ConfigureProps(WiaDevice device, WiaItem item) v NAPS2.Scan.Internal.Wia.WiaScanDriver.WiaScanContext.DoTransfer(WiaDevice device, WiaItem item) v NAPS2.Scan.Internal.Wia.WiaScanDriver.WiaScanContext.<Scan>d__6.MoveNext() --- Konec trasování zásobníku z předchozího místa, ze kterého byla vyvolána výjimka --- v System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() v System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) v NAPS2.Scan.Internal.Wia.WiaScanDriver.<>c__DisplayClass3_0.<<Scan>b__0>d.MoveNext() --- Konec trasování zásobníku z předchozího místa, ze kterého byla vyvolána výjimka --- v System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() v System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) v NAPS2.Scan.Internal.RemoteScanController.<Scan>d__5.MoveNext() --- Konec trasování zásobníku z předchozího místa, ze kterého byla vyvolána výjimka --- v System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() v System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) v NAPS2.Scan.ScanController.<>c__DisplayClass10_0.<<Scan>b__6>d.MoveNext()

cyanfish commented 1 year ago

Thanks, can you try selecting "1.0" for "Wia Version" in the Advanced profile settings window? Doesn't matter if it's the test version or the normal NAPS2 installation. If that fails too I'd like to see the error log.

cz-vilda commented 1 year ago

Stil not working... 2023-02-16 20:15:22.9018 6636 Došlo k chybě ovladače skeneru. NAPS2.Wia.WiaException: WIA error code 80070057 v NAPS2.Wia.WiaTransfer.Download() v NAPS2.Scan.Internal.Wia.WiaScanDriver.WiaScanContext.DoTransfer(WiaDevice device, WiaItem item) v NAPS2.Scan.Internal.Wia.WiaScanDriver.WiaScanContext.<Scan>d__6.MoveNext() --- Konec trasování zásobníku z předchozího místa, ze kterého byla vyvolána výjimka --- v System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() v System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) v NAPS2.Scan.Internal.Wia.WiaScanDriver.<>c__DisplayClass3_0.<<Scan>b__0>d.MoveNext()

cyanfish commented 1 year ago

Hi, if you're still interested in trying to fix this, I'm circling back to this as I got my hands on a fi-6130Z, though I can't reproduce the issue. What driver version do you have installed? You can find it in Device Manager. image