Skip to content

Bulk multipage scan with promprt cannot save page #779

@scorpp

Description

@scorpp

Describe the bug
Bulk multiplage scan with prompt doesn't work.

System.FormatException: Input string was not in a correct format. Failure to parse near offset 20. Format item ends prematurely.
   at void System.Text.ValueStringBuilder.AppendFormatHelper(IFormatProvider provider, string format, ReadOnlySpan<object> args)
   at string string.FormatHelper(IFormatProvider provider, string format, ReadOnlySpan<object> args)
   at string string.Format(string format, object arg0)
   at void NAPS2.EtoForms.Ui.BatchPromptForm.BuildLayout()
   at void NAPS2.EtoForms.EtoDialogBase.OnPreLoad(EventArgs e)
   at void Eto.Forms.Dialog.ShowModal()
   at bool NAPS2.Scan.Batch.BatchScanPerformer+BatchState.PromptForNextScan()+() => { }
   at T NAPS2.EtoForms.EtoInvoker.InvokeGet<T>(Func<T> func)+() => { }
   at void Eto.WinForms.Forms.ApplicationHandler.Invoke(Action action)+(object state) => { }
   at void System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(object obj)
   at void System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at object System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, object[] args, bool synchronous)
   at object System.Windows.Forms.Control.Invoke(Delegate method, params object[] args)
   at void System.Windows.Forms.WindowsFormsSynchronizationContext.Send(SendOrPostCallback d, object state)
   at T NAPS2.EtoForms.EtoInvoker.InvokeGet<T>(Func<T> func)
   at bool NAPS2.Scan.Batch.BatchScanPerformer+BatchState.PromptForNextScan()
   at async Task NAPS2.Scan.Batch.BatchScanPerformer+BatchState.Input()+(?) => { }
   at async Task NAPS2.Scan.Batch.BatchScanPerformer+BatchState.Input()
   at async Task NAPS2.Scan.Batch.BatchScanPerformer+BatchState.Do() x 2
   at async Task NAPS2.Scan.Batch.BatchScanPerformer.PerformBatchScan(BatchSettings settings, IFormBase batchForm, Action<ProcessedImage> imageCallback, Action<string> progressCallback, CancellationToken cancelToken)
   at async Task NAPS2.EtoForms.Ui.BatchScanForm.DoBatchScan()

To Reproduce
Prerequisites:

  • a profile is previously setup and scannig a single page is working fine

Steps to reproduce the behavior:

  1. Go to 'Scan' - Bulk
  2. Select 'Scan multiple pages (prompt to continue)'
  3. Select either option under 'Reulsts'
  4. Click 'Start'

Actual result: scan proceeds, scans page, performs OCR, then shows error popup (stack trace above, screenshots below)

Expected behavior
There should be a prompt to scan next page or save the results.

Screenshots

Image Image

Desktop (please complete the following information):

  • OS: Windows 11 Pro 25H2
  • Version 8.2.1 installed from GitHub releases

Additional context
Regular scanning (without bulk) works fine.

P.S. Sorry for screenshots in Ukrainian, should you suggest how to switch language in NAPS only, I could retake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions