Getting the error "Cannot access a closed pipe"

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_11.<b__1>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler) at UiPath.CoreIpc.ServiceClient1.<>c__DisplayClass21_11.<Invoke>b__2(Exception ex) at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 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

Hello.

Can you take a backup of the project and delete the project.json and try to open it again.
Also you can update all the packages.

Hug

Hello @aneesh.mohanan

Did you checked the software and hardware requirements for the uipath to work properly?

If not plz have a look.

Tried it, but the issue persists. I was able to get few commands working and automate few steps in the process, but then again got the same error.

Hi @Rahul_Unnikrishnan - all the software and hardware requirements are met.