vstest
vstest copied to clipboard
"The active test run was aborted. Reason: Test host process crashed" with no further explanation
Description
This test run calls dotnet test
, which then outputs
The active test run was aborted. Reason: Test host process crashed
Results File: /home/runner/work/dafny/dafny/dafny/Source/IntegrationTests/TestResults/_fv-az446-243_2023-04-06_10_29_09.trx
Test Run Aborted with error System.Exception: One or more errors occurred.
---> System.Exception: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.Read7BitEncodedInt()
at System.IO.BinaryReader.ReadString()
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.LengthPrefixCommunicationChannel.NotifyDataAvailable()
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.TcpClientExtensions.MessageLoopAsync(TcpClient client, ICommunicationChannel channel, Action`1 errorHandler, CancellationToken cancellationToken)
--- End of inner exception stack trace ---.
Looking at the referenced results file (here), there is no indication of anything going wrong.
How can I get a clue of what caused the test host process to crash? Are there particular exceptions that would cause it to crash in this way such as out of memory or stack overflows?
Steps to reproduce
I don't have a small reproduction example, but this issue occurs when the CI for this PR is run
Expected behavior
I expect some sort of stack trace or explanation of why the test host process crashed, that doesn't point to from the test host process such as Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.TcpClientExtensions.MessageLoopAsync
Actual behavior
No explanation is given
Diagnostic logs
Environment
Occurs on Ubuntu