Help with Exit code 134 on macos Catalina

I started getting the error below when running unit tests in Rider. I've restarted Rider, performed clean, rebuild & build solution multiple times, have done a full system restart but continue to get this error. Can anyone offer suggestions on how to correct this? 

 

NoteAffect.WebServer.Tests.Queries.SeriesQueryTests.Execute_Return

Run was aborted

Last runner error: Process /usr/local/share/dotnet/dotnet:2388 exited with code '134': Unhandled Exception: System.BadImageFormatException: Could not load file or assembly '/Applications/Rider.app/Contents/lib/ReSharperHost/TestRunner/netcoreapp2.0/ReSharperTestRunner32.dll'. An attempt was made to load a program with an incorrect format.

--- EXCEPTION #1/1 [LoggerException]
Message = “
Process /usr/local/share/dotnet/dotnet:2388 exited with code '134':


Unhandled Exception: System.BadImageFormatException: Could not load file or assembly '/Applications/Rider.app/Contents/lib/ReSharperHost/TestRunner/netcoreapp2.0/ReSharperTestRunner32.dll'. An attempt was made to load a program with an incorrect format.

ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.UnitTestFramework.TestRunner.TestRunnerRunStrategy.OnExit(IPreparedProcess runner, Int32 exitCode, IUnitTestRun run)
at JetBrains.ReSharper.UnitTestFramework.TestRunner.TestRunnerRunStrategy.Run(IUnitTestRun run)
at JetBrains.ReSharper.UnitTestFramework.Launch.UnitTestRun.StartCore(CancellationToken onCancel, CancellationToken onAbort)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at JetBrains.ReSharper.UnitTestFramework.Launch.UnitTestRun.StartCore(CancellationToken onCancel, CancellationToken onAbort)
at JetBrains.ReSharper.UnitTestFramework.Launch.UnitTestRun.Start(CancellationToken onCancel, CancellationToken onAbort)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at JetBrains.ReSharper.UnitTestFramework.Launch.UnitTestRun.Start(CancellationToken onCancel, CancellationToken onAbort)
at JetBrains.ReSharper.UnitTestFramework.Launch.Stages.RunTestsStage.<>c__DisplayClass5_0.<StartRunChained>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()


Last launch log file: /Users/chris/Library/Logs/JetBrains/Rider2020.2/UnitTestLogs/Sessions/2020-08-27-10-28-38-658___1d7b417b-2220-4d2c-9a16-62d91441e654.log

 

 

1
2 comments

Hi @...

 

Unfortunately, this is a known issue. 

 

Please try running tests by explicitly using the x64 platform as described here. Alternatively, you can change the default platform to x64 to achieve the same result.

 

Let me know if it helps.

0
Avatar
Permanently deleted user

I changed the default platform architecture to x64 and that seemed to take care of it. Thanks for the quick response.

0

Please sign in to leave a comment.