Unit tests not working in Rider 2021.3.3
Rider 2021.3.3 Build #RD-213.6775.4, built on January 26, 2022
When I try to run unit tests, I get an error:
Test not run
Last runner error: Test runner agent exited unexpectedly Process C:\Program Files\JetBrains\JetBrains Rider 2021.3.3\lib\ReSharperHost\TestRunner\netcoreapp3.0\ReSharperTestRunner.exe:16136 exited with code '0': Failed to load the dll from [C:\Program Files (x86)\dotnet\host\fxr\5.0.14\hostfxr.dll], HRESULT: 0x800700C1 The library hostfxr.dll was found, but loading it from C:\Program Files (x86)\dotnet\host\fxr\5.0.14\hostfxr.dll failed - Installing .NET Core prerequisites might help resolve this problem. https://go.microsoft.com/fwlink/?linkid=798306
--- EXCEPTION #1/3 [UnknownExitCodeException]
Message = “
Process C:\Program Files\JetBrains\JetBrains Rider 2021.3.3\lib\ReSharperHost\TestRunner\netcoreapp3.0\ReSharperTestRunner.exe:16136 exited with code '0':
Failed to load the dll from [C:\Program Files (x86)\dotnet\host\fxr\5.0.14\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from C:\Program Files (x86)\dotnet\host\fxr\5.0.14\hostfxr.dll failed
- Installing .NET Core prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=798306
”
ExceptionPath = Root.InnerException.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.UnknownExitCodeException
HResult = COR_E_EXCEPTION=80131500
--- Outer ---
--- EXCEPTION #2/3 [ProcessExitedUnexpectedlyException]
Message = “Test runner agent exited unexpectedly”
ExceptionPath = Root.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.ProcessExitedUnexpectedlyException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.ReSharper.UnitTestFramework
StackTraceString = “
в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TestRunnerAgent.AnalyseExitCode(IPreparedProcess process)
в JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__14`2.MoveNext()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<StartTestRunnerAgent>d__3.MoveNext()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
в JetBrains.dotCover.Ide.Core.UnitTesting.Model.PreloadedTestRunners.PreloadedTestRunnerAgentPool.<Allocate>d__13.MoveNext()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.<GetExecutionAgent>d__3.MoveNext()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<StartTestRunner>d__19.MoveNext()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<Run>d__16.MoveNext()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
в JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в JetBrains.Util.Special.GeneralUtil.WithNotNull[T](T item, Action`1 F)
в JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
в JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<Start>d__36.MoveNext()
”
--- Outer ---
--- EXCEPTION #3/3 [LoggerException]
Message = “Test runner agent exited unexpectedly”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
в JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
в JetBrains.Util.ILoggerEx.Error(ILogger this, Exception exception, ExceptionOrigin origin, String comment)
в JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<Start>d__36.MoveNext()
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
в System.Threading.Tasks.Task.FinishContinuations()
в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
в JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
в System.Threading.Tasks.Task.FinishContinuations()
в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<Run>d__16.MoveNext()
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
в System.Threading.Tasks.Task.FinishContinuations()
в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<StartTestRunner>d__19.MoveNext()
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
в System.Threading.Tasks.Task.FinishContinuations()
в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.<GetExecutionAgent>d__3.MoveNext()
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
в System.Threading.Tasks.Task.FinishContinuations()
в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
в JetBrains.dotCover.Ide.Core.UnitTesting.Model.PreloadedTestRunners.PreloadedTestRunnerAgentPool.<Allocate>d__13.MoveNext()
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
в System.Threading.Tasks.Task.FinishContinuations()
в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
в JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<StartTestRunnerAgent>d__3.MoveNext()
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
в System.Threading.Tasks.Task.FinishContinuations()
в System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
в System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
в System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
в JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__14`2.MoveNext()
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
в System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
в System.Threading.Tasks.Task.FinishContinuations()
в System.Threading.Tasks.Task`1.TrySetResult(TResult result)
в System.Threading.Tasks.TaskFactory.CompleteOnInvokePromise.Invoke(Task completingTask)
в System.Threading.Tasks.Task.FinishContinuations()
в System.Threading.Tasks.Task`1.TrySetResult(TResult result)
в System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result)
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)
”
Please sign in to leave a comment.
I have the same issue, in case that helps anything (except it's for .net core 6):
Last runner error: Test runner agent exited unexpectedly Process C:\Program Files\JetBrains\JetBrains Rider 221.5080.110\lib\ReSharperHost\TestRunner\netcoreapp3.0\ReSharperTestRunner.exe:12492 exited with code '-2147450750': Failed to load the dll from [C:\Program Files (x86)\dotnet\host\fxr\6.0.3\hostfxr.dll], HRESULT: 0x800700C1 The library hostfxr.dll was found, but loading it from C:\Program Files (x86)\dotnet\host\fxr\6.0.3\hostfxr.dll failed - Installing .NET Core prerequisites might help resolve this problem. https://go.microsoft.com/fwlink/?linkid=798306
--- EXCEPTION #1/3 [UnknownExitCodeException]
Message = “
Process C:\Program Files\JetBrains\JetBrains Rider 221.5080.110\lib\ReSharperHost\TestRunner\netcoreapp3.0\ReSharperTestRunner.exe:12492 exited with code '-2147450750':
Failed to load the dll from [C:\Program Files (x86)\dotnet\host\fxr\6.0.3\hostfxr.dll], HRESULT: 0x800700C1
The library hostfxr.dll was found, but loading it from C:\Program Files (x86)\dotnet\host\fxr\6.0.3\hostfxr.dll failed
- Installing .NET Core prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=798306
”
ExceptionPath = Root.InnerException.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.UnknownExitCodeException
HResult = COR_E_EXCEPTION=80131500
--- Outer ---
--- EXCEPTION #2/3 [ProcessExitedUnexpectedlyException]
Message = “Test runner agent exited unexpectedly”
ExceptionPath = Root.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.ProcessExitedUnexpectedlyException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.ReSharper.UnitTestFramework
StackTraceString = “
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TestRunnerAgent.AnalyseExitCode(IPreparedProcess process)
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__14`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<StartTestRunnerAgent>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.<GetExecutionAgent>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<StartTestRunner>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<Run>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at JetBrains.Util.Special.GeneralUtil.WithNotNull[T](T item, Action`1 F)
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<Start>d__36.MoveNext()
”
--- Outer ---
--- EXCEPTION #3/3 [LoggerException]
Message = “Test runner agent exited unexpectedly”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.ILoggerEx.LogException(ILogger this, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment)
at JetBrains.Util.ILoggerEx.Error(ILogger this, Exception exception, ExceptionOrigin origin, String comment)
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<Start>d__36.MoveNext()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<Run>d__16.MoveNext()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<StartTestRunner>d__19.MoveNext()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.<GetExecutionAgent>d__3.MoveNext()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<StartTestRunnerAgent>d__3.MoveNext()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__14`2.MoveNext()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
at System.Threading.Tasks.TaskFactory.CompleteOnInvokePromise.Invoke(Task completingTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
at System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)
”
Found a workaround Aleksandr Rezvanov:
https://youtrack.jetbrains.com/issue/RIDER-72248
Hello!
Thank you for the input. The encountered behaviour is indeed caused by RIDER-72248.
The workaround is to specify either one of the following environment variables
This helped me in 2023.2.3 as well
The same issue appears in 2025.2 version on Ubuntu 24.04. An environment variable DOTNET_ROOT is specified.
Log file:
17:08:39.874 |E| Test runner agent exited unexpectedly Process /home/ubuntu/.dotnet/dotnet:127982 exited with code '0'.
--- EXCEPTION #1/3 [UnknownExitCodeException]
Message = Process /home/ubuntu/.dotnet/dotnet:127982 exited with code '0'.
ExceptionPath = Root.InnerException.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.UnknownExitCodeException
HResult = COR_E_EXCEPTION=80131500
--- Outer ---
--- EXCEPTION #2/3 [ProcessExitedUnexpectedlyException]
Message = Test runner agent exited unexpectedly
InnerException = Exception #1 at Root.InnerException.InnerException
StackTraceString =
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TestRunnerAgent.AnalyseExitCode(IPreparedProcessWithCachedOutput process) in AnalyseExitCode.il:line IL_00BD mvid BA53
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<>c__DisplayClass2_0.<StartTestRunnerAgent>b__2() in TemporaryTestRunnerAgentInvoker.il:line IL_0000 mvid BA53
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.ThrowIf[TResult,TException](Task`1 task, Task signallingTask, Func`1 exceptionFactory) in ThrowIf.il:line IL_00B7 mvid BA53 or ThrowIf.il:line IL_0126 mvid BA53
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.ThrowIf[TResult,TException](Task`1 task, Task signallingTask, Func`1 exceptionFactory) in ThrowIf.il:line IL_00B7 mvid BA53 or ThrowIf.il:line IL_0126 mvid BA53
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.CancelIf[TResult](Task`1 task, CancellationToken ct) in CancelIf.il:line IL_0176 mvid BA53
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.StartTestRunnerAgent(ITestRunnerContext ctx, CancellationToken ct) in StartTestRunnerAgent.il:line IL_03A2 mvid BA53
at JetBrains.dotCover.EntryPoints.Common.UnitTesting.DotCoverTestRunnerAgentPool.Allocate(ITestRunnerContext context, CancellationToken ct) in Allocate.il:line IL_0083 mvid 0C08
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.GetExecutionAgent(ITestRunnerExecutionContext context, CancellationToken ct) in GetExecutionAgent.il:line IL_0083 mvid BA53
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.StartTestRunner(IUnitTestRun run, ITestRunnerAdditionalStartupOptions environmentSpecifier, CancellationToken cancelCt, CancellationToken abortCt) in StartTestRunner.il:line IL_008F mvid BA53
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.Run(IUnitTestRun run) in Run.il:line IL_013D mvid BA53
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.StartCore(CancellationToken onCancel, CancellationToken onAbort) in StartCore.il:line IL_01E7 mvid BA53 or StartCore.il:line IL_03B3 mvid BA53
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<>c.<StartCore>b__37_0(ExceptionDispatchInfo e) in UnitTestRun.il:line IL_0000 mvid BA53
at JetBrains.Util.Special.GeneralUtil.WithNotNull[T](T item, Action`1 F) in WithNotNull.il:line IL_0016 mvid 5534
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.StartCore(CancellationToken onCancel, CancellationToken onAbort) in StartCore.il:line IL_01E7 mvid BA53 or StartCore.il:line IL_03B3 mvid BA53
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.Start(CancellationToken onCancel, CancellationToken onAbort) in Start.il:line IL_0182 mvid BA53
ExceptionPath = Root.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.ProcessExitedUnexpectedlyException
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.ReSharper.UnitTestFramework
--- Outer ---
--- EXCEPTION #3/3 [LoggerException]
Message = Test runner agent exited unexpectedly
InnerException = Exception #2 at Root.InnerException
StackTraceString =
at JetBrains.Util.ILoggerEx.LogException(ILogger logger, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment) in LogException.il:line IL_002E mvid 5534
at JetBrains.Util.ILoggerEx.Error(ILogger logger, Exception exception, ExceptionOrigin origin, String comment) in Error.il:line IL_0000 mvid 5534
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.Start(CancellationToken onCancel, CancellationToken onAbort) in Start.il:line IL_0182 mvid BA53
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid C608
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField) in SetException.il:line IL_0025 mvid C608
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.StartCore(CancellationToken onCancel, CancellationToken onAbort) in StartCore.il:line IL_03B3 mvid BA53
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid C608
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField) in SetException.il:line IL_0025 mvid C608
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.Run(IUnitTestRun run) in Run.il:line IL_013D mvid BA53
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid C608
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField) in SetException.il:line IL_0025 mvid C608
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.StartTestRunner(IUnitTestRun run, ITestRunnerAdditionalStartupOptions environmentSpecifier, CancellationToken cancelCt, CancellationToken abortCt) in StartTestRunner.il:line IL_008F mvid BA53
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid C608
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField) in SetException.il:line IL_0025 mvid C608
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.GetExecutionAgent(ITestRunnerExecutionContext context, CancellationToken ct) in GetExecutionAgent.il:line IL_0083 mvid BA53
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid C608
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField) in SetException.il:line IL_0025 mvid C608
at JetBrains.dotCover.EntryPoints.Common.UnitTesting.DotCoverTestRunnerAgentPool.Allocate(ITestRunnerContext context, CancellationToken ct) in Allocate.il:line IL_0083 mvid 0C08
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid C608
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField) in SetException.il:line IL_0025 mvid C608
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.StartTestRunnerAgent(ITestRunnerContext ctx, CancellationToken ct) in StartTestRunnerAgent.il:line IL_03A2 mvid BA53
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid C608
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField) in SetException.il:line IL_0025 mvid C608
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.CancelIf[TResult](Task`1 task, CancellationToken ct) in CancelIf.il:line IL_0176 mvid BA53
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task`1.TrySetResult(TResult result) in TrySetResult.il:line IL_004B mvid C608
at System.Threading.Tasks.Task.TwoTaskWhenAnyPromise`1.Invoke(Task completingTask) in Invoke.il:line IL_0088 mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid C608
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField) in SetException.il:line IL_0025 mvid C608
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.ThrowIf[TResult,TException](Task`1 task, Task signallingTask, Func`1 exceptionFactory) in ThrowIf.il:line IL_00B7 mvid BA53 or ThrowIf.il:line IL_0126 mvid BA53
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task`1.TrySetResult(TResult result) in TrySetResult.il:line IL_004B mvid C608
at System.Threading.Tasks.Task.TwoTaskWhenAnyPromise`1.Invoke(Task completingTask) in Invoke.il:line IL_0088 mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid C608
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField) in SetException.il:line IL_0025 mvid C608
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.ThrowIf[TResult,TException](Task`1 task, Task signallingTask, Func`1 exceptionFactory) in ThrowIf.il:line IL_00B7 mvid BA53 or ThrowIf.il:line IL_0126 mvid BA53
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task`1.TrySetResult(TResult result) in TrySetResult.il:line IL_004B mvid C608
at System.Threading.Tasks.Task.TwoTaskWhenAnyPromise`1.Invoke(Task completingTask) in Invoke.il:line IL_0088 mvid C608
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid C608 or RunContinuations.il:line IL_0090 mvid C608
at System.Threading.Tasks.Task`1.TrySetResult(TResult result) in TrySetResult.il:line IL_004B mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetExistingTaskResult(Task`1 task, TResult result) in SetExistingTaskResult.il:line IL_001D mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result) in SetResult.il:line IL_0015 mvid C608
at JetBrains.Util.ProcessExtensions.WaitForExitAsync(IPreparedProcess process, CancellationToken token) in WaitForExitAsync.il:line IL_018C mvid 4D6C
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid C608
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in RunFromThreadPoolDispatchLoop.il:line IL_0015 mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid C608 or MoveNext.il:line IL_0040 mvid C608 or MoveNext.il:line IL_004E mvid C608
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecuteFromThreadPool(Thread threadPoolThread) in ExecuteFromThreadPool.il:line IL_0000 mvid C608
at System.Threading.ThreadPoolWorkQueue.Dispatch() in Dispatch.il:line IL_013F mvid C608
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() in WorkerThreadStart.il:line IL_00A0 mvid C608
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
Hello Andrew,
To help us narrow down the issue, please provide the information below:
Settings | Build, Execution, Deployment | Unit Testing | Test RunnerLogging Levelto TRACE;Help | Diagnostic Tools | Choose Trace Scenarios, enable theUnitTestingBackendtrace scenario thereSettings | Build, Execution, Deployment | Unit Testing | Test Runner | Logging Levelto OFF.Help | Diagnostic Tools | Choose Trace ScenariosYou can upload the files to the Upload Service and share the Upload ID.
Thanks,
Tom
Hi Tom,
So the upload ID is: 2025_08_23_K3bHYhSmVK21e8FCzznArY. There are both the full logs bundle and the
.csprojfile.The issue is reproduced when I'm trying to start a Debug session within my tests. Running tests works fine, and it does not matter which test I'm trying to debug — a new one or an old one.
The project itself is not new, but I have not been working on it for several months. During that period, I installed all Rider updates.
I also tried to completely delete Rider with all its data and install it from scratch. The issue was reproduced in that case as well.
Thank you!
Hello Andrew,
Thanks for the additional details. I've reviewed the logs you uploaded, but they don't help much in diagnosing this issue. I also attempted to set up a smiliar environment(Ubuntu 24.04 + Dotnet 6 + NUnit 3) but was unable to reproduce the issue.
To help investigate this further, I've created a ticket on our issue tracker on your behalf: RIDER-129283 Test runner agent exited unexpectedly. You may upvote it and subscribe for updates.
If you have any further questions or additional information to share, please add them in the comments of that issue.
Thanks,
Tom