cyanfish / naps2

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

NAPS2.Console.exe - Error "TWAIN error: MaxConnections" when scanning again after canceling the scanning process (Citrix) #423

Open rothtobi opened 1 month ago

rothtobi commented 1 month ago

Describe the bug When using NAPS2.Console.exe within a Citrix session, we have the problem that the following error message appears during the next scan after clicking Cancel: "TWAIN error: MaxConnections"

To Reproduce

  1. Start the Commandline: NAPS2.Console.exe --output "C:\TEMP\test.jpg" --force --progress --device "PaperStream IP SP-1125 #2" --driver twain --noprofile
  2. Click on "Cancel" during scanning. image The following appears in the console: "No scanned pages to export."
  3. Start the Commandline again: NAPS2.Console.exe --output "C:\TEMP\test.jpg" --force --progress --device "PaperStream IP SP-1125 #2" --driver twain --noprofile The following error message appears: TWAIN error: MaxConnections No scanned pages to export.

Expected behavior The next scan should work if the previous scan was canceled.

Screenshots image

Desktop (please complete the following information):

Additional context