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.

We are seeing this same error.

I am having Studio 2022.4.4.
When I try to add any activity or try to run the xaml, I am getting below error
Cannot create new item: UiPath.Studio.Contracts.RecoverableException
—> RemoteException wrapping System.ObjectDisposedException: Cannot access a closed pipe.
I tried creating new process, initially didn’t face such issue. After 5 or 10 mins when i try to add a activity or run that process getting such closed pipe error.
Sometimes I don’t get issue. But mostly I am getting this closed pipe error. Can I know in which version it is resolved.