dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.84k stars 4k forks source link

[Test] Roslyn.Services.Editor.VisualBasic.UnitTests failing with NullReferenceException at TemporaryStorageServiceFactory.MemoryMappedInfo.Finalize #16979

Open dpoeschl opened 7 years ago

dpoeschl commented 7 years ago

https://ci.dot.net/job/dotnet_roslyn/job/master/job/windows_release_unit64/409/artifact/Binaries/Release/UnitTests/BasicEditorServicesTest/xUnitResults/Roslyn.Services.Editor.VisualBasic.UnitTests.dll.3.out.log

Pilchie commented 7 years ago

@heejaechang Any ideas here?

heejaechang commented 7 years ago

not sure. there seems nothing that can throw null exception unless there is some concurrent thing going on.

Pilchie commented 7 years ago

It's quite likely that multiple tests are running concurrently, unless they are all marked by WpfFact.

333fred commented 7 years ago

Failed in an official build today: https://devdiv.visualstudio.com/DevDiv/_build?buildId=655391. Log is at "\cpvsbuild\drops\Roslyn\Roslyn-Signed\master\Release\20170404.3\UnitTests\ServicesVisualStudioTest\xUnitResults\Roslyn.VisualStudio.Services.UnitTests.dll.2.out.log"

333fred commented 7 years ago

FYI @Pilchie

vladimir-koshelev commented 6 years ago

I have the same issue on mono 5.0.1-5.2.0 with Roslyn 2.2.0-2.3.2:


[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object

  at Microsoft.CodeAnalysis.Host.TemporaryStorageServiceFactory+MemoryMappedInfo.Dispose (System.Boolean disposing) [0x0001a] in <43494904657a4fb99e35e930a2c70ef9>:0

  at Microsoft.CodeAnalysis.Host.TemporaryStorageServiceFactory+MemoryMappedInfo.Finalize () [0x00000] in <43494904657a4fb99e35e930a2c70ef9>:0

Is it another bug in mono runtime?