Not enough memory resources are available to process this command

Hi Goodman,

does anyone found this error before

System.AggregateException: One or more errors occurred. —> System.DllNotFoundException: Unable to load DLL ‘x86\pdfium.dll’: Not enough memory resources are available to process this command. (Exception from HRESULT: 0x80070008)
at UiPath.PDF.Pdfium.PdfiumMethods.FPDF_InitLibrary()
at UiPath.PDF.PdfLib…ctor()
at UiPath.PDF.Activities.PDFReader…ctor(String filePath, String password)
at UiPath.PDF.Activities.ReadPDFText.GetFileReader(String fileName, String password)
at UiPath.PDF.Activities.ReadTextFileActivity.<>c__DisplayClass24_0.b__0()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task1.get_Result() at UiPath.PDF.Activities.ReadTextFileActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) ---> (Inner Exception #0) System.DllNotFoundException: Unable to load DLL 'x86\pdfium.dll': Not enough memory resources are available to process this command. (Exception from HRESULT: 0x80070008) at UiPath.PDF.Pdfium.PdfiumMethods.FPDF_InitLibrary() at UiPath.PDF.PdfLib..ctor() at UiPath.PDF.Activities.PDFReader..ctor(String filePath, String password) at UiPath.PDF.Activities.ReadPDFText.GetFileReader(String fileName, String password) at UiPath.PDF.Activities.ReadTextFileActivity.<>c__DisplayClass24_0.<ExecuteAsync>b__0() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<—

Please help me

Thanks,
Indra

Can we have the sample workflow and pdf please?

1 Like

Hi Gabriel,
Thank you for your caring,

I used a simple activity “Read PDF with OCR”. Unfortunately, I cannot share PDF file because of credential file from customer.

the out of memory is solved if I restart my machine. If happening again I will share it with you.