Skip to content

Catastrophic failure: System.NullReferenceException when running a test #15308

@sebastienros

Description

@sebastienros

Link to the run:
https://github.com/sebastienros/fluid/actions/runs/19074169863/attempts/2?pr=844

suceeded after retry

VSTest version 17.14.1 (x64)

VSTest version 17.14.1 (x64)

Starting test execution, please wait...
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:10.02] Fluid.Tests: Catastrophic failure: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.TestPlatform.ObjectModel.Navigation.PortableSymbolReader.Dispose() in /_/src/Microsoft.TestPlatform.ObjectModel/Navigation/PortableSymbolReader.cs:line 48
   at Microsoft.VisualStudio.TestPlatform.ObjectModel.DiaSession.Dispose(Boolean disposing) in /_/src/Microsoft.TestPlatform.ObjectModel/Navigation/DiaSession.cs:line 80
   at Microsoft.VisualStudio.TestPlatform.ObjectModel.DiaSession.Dispose() in /_/src/Microsoft.TestPlatform.ObjectModel/Navigation/DiaSession.cs:line 69
   at Xunit.Runner.VisualStudio.DiaSessionWrapper.Dispose()
   at Xunit.Runner.VisualStudio.VisualStudioSourceInformationProvider.DisposeAsync()
   at Xunit.Runner.VisualStudio.VsTestRunner.RunTestsInAssembly(IRunContext runContext, IFrameworkHandle frameworkHandle, LoggerHelper logger, TestPlatformContext testPlatformContext, RunSettings runSettings, IMessageSink reporterMessageHandler, AssemblyRunInfo runInfo)

Passed!  - Failed:     0, Passed:  1299, Skipped:     0, Total:  1299, Duration: 8 s - Fluid.Tests.dll (net8.0)

Passed!  - Failed:     0, Passed:  1299, Skipped:     0, Total:  1299, Duration: 9 s - Fluid.Tests.dll (net9.0)

Workload updates are available. Run `dotnet workload list` for more information.
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions