simon-knuth / scanner

An all-in-one scanner app built for the Universal Windows Platform

Home Page:https://simon-knuth.github.io/scanner/index

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error 0x80070005 with PDF

Marving1023 opened this issue · comments

Hello,

I'm encountering error 0x80070005 when scanning a document in PDF format.
If I choose another format like JPG, PNG, TIFF, BMP, everything works fine.

An issue occurred:
    Scanning failed due to an unknown error.
    Access denied. (Exception from HRESULT: 0x80070005)

I want to point out that I've never had any issues with the application before.

I uninstalled and reinstalled the application, but the issue persists.

Hi, thanks for bringing this to my attention! Just out of curiosity, did you change anything about your setup recently?
I've got a suspicion as to what might be causing this, but I am surprised that this is only impacting less than 1% of all users and that the issue would just suddenly start out of nowhere.

You should be able to find your PDF file in this folder: %LOCALAPPDATA%\Packages\9390SimonKnuth.ScannerforWindows10_69n05hp4v3s90\TempState
If that's the case, I'd be super interested to hear whether the PDF file is flagged as "in use", you should be able to test that by attempting to rename or change it.

Yes, I do have the PDF document:

Directory: %LOCALAPPDATA%\Packages\9390SimonKnuth.ScannerforWindows10_69n05hp4v3s90\TempState
File: SCN_20240327_134143.pdf
Size: 0 KB ( blank page )

In the following folder, I have the scanned document image:

%LOCALAPPDATA%\Packages\9390SimonKnuth.ScannerforWindows10_69n05hp4v3s90\TempState\Conversion
File: 0.jpg
Size: 898 KB ( Matches with scanned document)

I have tried on 3 printers, but I still get the error 0x80070005

  • Brother DCP L3560CDW
  • Epson SX415
  • Canon MG5700

Thank you very much for the detailed description. I am not able to reproduce the issue on my end, but based on your info and the analytics I have, I suspect that the PDF file is not always finalized correctly before it is moved to its target location, causing an "Access denied" error. My best guess is that this is related to your PC's system/storage performance and certain timings occurring, which is why this is happening regardless of the used scanner and can start out of the blue.

I have made several improvements to the code, which I hope will fix the issue. I don't have a precise projection as to when I'll be able to package and publish this update, but I'll post an update here when I do.

If it can help you, here is my configuration:

  • Asus B650E-E
  • AMD Ryzen 7 7700X
  • 32Go DDR5 Corsair
  • AMD RX6950XT
  • Samsung NVME 980 (Windows) / 990 (Storage)
  • Windows 11
    To check the data transfer speeds, please refer to the attached pic.

Drive C
Drive A