Application: UiPath.Executor.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.OutOfMemoryException

I’m Facing below error, any systematic steps to troubleshoot, what could be causing this issue ?

Application: UiPath.Executor.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.OutOfMemoryException at System.String.Join(System.String, System.String, Int32, Int32) at System.String.Join(System.String, System.String) at DynamicClass.lambda_method(System.Runtime.CompilerServices.Closure, System.Activities.ActivityContext) at Microsoft.VisualBasic.Activities.VisualBasicValue1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute(System.Activities.CodeActivityContext) at System.Activities.CodeActivity1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InternalExecuteInResolutionContext(System.Activities.CodeActivityContext) at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Activities.ActivityInstance, System.Activities.Activity1<System.__Canon>) at System.Activities.InArgument1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TryPopulateValue(System.Activities.Runtime.LocationEnvironment, System.Activities.ActivityInstance, System.Activities.Runtime.ActivityExecutor) at System.Activities.RuntimeArgument.TryPopulateValue(System.Activities.Runtime.LocationEnvironment, System.Activities.ActivityInstance, System.Activities.Runtime.ActivityExecutor, System.Object, System.Activities.Location, Boolean) at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(System.Activities.RuntimeArgument, Int32, System.Activities.Runtime.ActivityExecutor, System.Collections.Generic.IDictionary2<System.String,System.Object>, System.Activities.Location, Boolean) at System.Activities.ActivityInstance.ResolveArguments(System.Activities.Runtime.ActivityExecutor, System.Collections.Generic.IDictionary2<System.String,System.Object>, System.Activities.Location, Int32) at System.Activities.Runtime.ActivityExecutor+ExecuteActivityWorkItem.ExecuteBody(System.Activities.Runtime.ActivityExecutor, System.Activities.Runtime.BookmarkManager, System.Activities.Location) at System.Activities.Runtime.ActivityExecutor+ExecuteActivityWorkItem.Execute(System.Activities.Runtime.ActivityExecutor, System.Activities.Runtime.BookmarkManager) at System.Activities.Runtime.ActivityExecutor.TryExecuteNonEmptyWorkItem(System.Activities.Runtime.WorkItem) at System.Activities.Runtime.ActivityExecutor.OnExecuteWorkItem(System.Activities.Runtime.WorkItem) at System.Activities.Runtime.Scheduler+Callbacks.ExecuteWorkItem(System.Activities.Runtime.WorkItem) at System.Activities.Runtime.Scheduler.OnScheduledWork(System.Object) at System.Runtime.Fx+SendOrPostThunk.UnhandledExceptionFrame(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object) at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunDispatcher(System.Object) at System.Windows.Application.RunInternal(System.Windows.Window) at System.Windows.Application.Run(System.Windows.Window) at UiPath.Executor.App.Main()

@ANSHUL

This error caused due to your system low memory, Try to close application which causing more memory consumption also clear the %Temp% folder

Hope this may help you

Thanks

Thanks, let me try this.

It would also help to know the context behind this error. Does it also happen on a sample new project with just a log message activity?

Or does it happen when you process a significant amount of data?

It happens when I am processing large data like I am reading PDF pages to extract string values, the volume can range to a max of 100 plus pdf in one run.

Does the issue still occur on the latest version of Studio/Robot 21.4? We have recently added the 64bit support which might come useful in this case.

We cant upgrade the environment as of now as there are other bots running. However I noticed we are reading PDF approx 5 pages and do some regex extraction. At times there can be 40 pdf, So the bot crashes when we feed 35 plus pdf files. However if we reduce the pdf files than it is stable.

Note: we had to clear %temp% files as well.

Is it by chance an Enterprise environment and license? If so, could you please follow-up here with our technical support via this form: