I’m getting this error consistently getting this error on many occasions like recording, adding an activity to the solution etc. Sometimes the run command itself won’t work - The run button gets disabled once clicked but the run won’t happen. When I tried adding an Use Application/Browser command to the blank solution also this error came. So it doesn’t seem to be application specific or specific to any activity in particular.
The error message from log (UiPath.studio.project) is as below:
—> System.ObjectDisposedException: Cannot access a closed pipe.
at System.IO.Pipes.PipeStream.CheckWriteOperations()
at System.IO.Pipes.PipeStream.WriteAsync(Byte buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
at UiPath.CoreIpc.IOHelpers.WriteMessage(Stream stream, WireMessage message, CancellationToken cancellationToken)
at UiPath.CoreIpc.Connection.SendMessage(WireMessage wireMessage, CancellationToken cancellationToken)
at Nito.AsyncEx.TaskExtensions.DoWaitAsync(Task task, CancellationToken cancellationToken)
at UiPath.CoreIpc.Connection.RemoteCall(Request request, Stream uploadStream, CancellationToken token)
at UiPath.CoreIpc.ServiceClient1.<>c__DisplayClass21_1
1.<b__1>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func
2 func, String message, Func2 exceptionHandler) at UiPath.CoreIpc.ServiceClient
1.<>c__DisplayClass21_11.<Invoke>b__2(Exception ex) at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List
1 cancellationTokens, Func2 func, String message, Func
2 exceptionHandler)
— End of inner exception stack trace —, HResult -2146233088
15:07:18.8107 => [ERROR] [UiPath.Studio.Project] [2] OnTaskUnobservedException: System.AggregateException: A Task’s exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Cannot access a closed pipe.)
Studio version - 2022.4.3