Menu

#645 OutOfMemory crash when scanning in color

6.X
open
nobody
None
Support
Low
N/A
2019-07-29
2019-07-27
No

Hi,

I'm using an Epson GT-S50 with Twain drivers. When scanning with duplex, color, and 600dpi, it'll manage to scan the first page and then crash on the second after trying to deskew. It works using the native UI, but I would prefer being able to use the NAPS2 interface if possible. This is the error I get
https://pastebin.com/m5bwsks6

I'm on version 6.1.1

I also attached the errorlog and a screenshot of my settings.

2 Attachments

Discussion

  • Dennis Nguyen

    Dennis Nguyen - 2019-07-27

    Windows 10 64-bit

     
  • Dennis Nguyen

    Dennis Nguyen - 2019-07-27

    I've noticed it occurs on pages with a lot of color. I've tried different pages with a lot of color in them and it'll crash even in native UI mode. This did not happen on previous versions of NAPS with the same scanner if that info helps.

     
  • Dennis Nguyen

    Dennis Nguyen - 2019-07-27

    I apologize for spamming the thread like this, but I've been playing around with the settings and I've narrowed it down to the deskew feature. With deskew enabled, scanning pages that contain a large amount of color will cause the scan to fail (The program will not crash and I am still able to continue scanning after dismissing the error prompt). With deskew disabled, there are no issues scanning, even with multiple pages that contain color. Disabling the deskew option in options and using deskew after the fact does not cause this issue either.

     

    Last edit: Dennis Nguyen 2019-07-27
  • Andrew

    Andrew - 2019-07-29

    NAPS2 version 6.1.2

    Epson WF-7720 multi-function trying to scan with TWAIN driver. A4 comes through perfectly but trying to scan A3 in 600DPI results in an out of memory exception, checked the Epson Scan 2 settings and deskew is already disabled. The printer used to work perfectly with the WIA driver but after uninstall/reinstall to fix a printing issue the WIA driver is nowhere to be found, I have no idea how to re-install it either.

    NAPS2.Scan.Exceptions.ScanDriverUnknownException: An error occurred with the scanning driver. ---> System.OutOfMemoryException: Out of memory.
       at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
       at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
       at NAPS2.Scan.Images.ImageScaleHelper.ScaleImage(Image original, Double scaleFactor)
       at NAPS2.Scan.Images.ScannedImageHelper.PostProcessStep1(Image output, ScanProfile profile, Boolean supportsNativeUI)
       at NAPS2.Scan.Twain.TwainWrapper.<>c__DisplayClass9_0.<InternalScan>b__2(Object sender, DataTransferredEventArgs eventArgs)
       --- End of inner exception stack trace ---
       at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at NAPS2.Worker.WorkerService.<TwainScan>d__8.MoveNext()
       at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
       at NAPS2.Scan.ScanPerformer.<PerformScan>d__7.MoveNext()
    

    Computer is running on Windows 10 Pro 32-Bit Build 1803 with 3GB memory with 1.5GB free at the time of scan attempts

     

    Last edit: Andrew 2019-07-29

Log in to post a comment.

MongoDB Logo MongoDB