Unit Testing works but dotCover failes with Unrecoverable Error
Hi,
I have following error even when all tests pass correctly.
2018.03.21 16:08:58.458 ERROR Coverage analysis: Profiler message: Inconsistent PDB detected, too large offset in statement table
[location] = C:\Build Agent\work\32806c04647ac794\Profiler\Kernel\Windows\Native\Solution\core\src\IL\Var\ILMethodVar.cpp(48)
[function] = unsigned short __cdecl ILMethodVar::BeginInject(struct IWriteCoreStream *,unsigned long)
[token] = 0600001F, MethodDef
[method name] = set_RequiresNotNullDebug
[module name] = D:\Downloads\dotCoverExcepton\MA.Aspects.UnitTests\bin\Debug\netcoreapp2.0\MA.Aspects.UnitTests.dll
[type name] = MA.Aspects.UnitTests.RuntimeNullCheckingTest (C:\Program Files\dotnet\dotnet.exe [pid=20104])
2018.03.21 16:08:58.464 WARN Coverage analysis: Profiler message: Operation is ignored because unrecoverable error is detected
[location] = C:\Build Agent\work\32806c04647ac794\Profiler\Kernel\Windows\Native\Solution\core\src\profilers\coverage\base_coverage_profiler.operation.cpp(129)
[function] = void __cdecl jb::profiler::base_coverage_profiler::operation_measure_stop(bool)
[hresult] = abad0003, CORE_API_E_UNRECOVERABLE_ERROR, Unrecoverable error was detected (C:\Program Files\dotnet\dotnet.exe [pid=20104])
2018.03.21 16:08:58.467 WARN Coverage analysis: Profiler message: Operation is ignored because unrecoverable error is detected
[location] = C:\Build Agent\work\32806c04647ac794\Profiler\Kernel\Windows\Native\Solution\core\src\profilers\coverage\base_coverage_profiler.operation.cpp(129)
[function] = void __cdecl jb::profiler::base_coverage_profiler::operation_measure_stop(bool)
[hresult] = abad0003, CORE_API_E_UNRECOVERABLE_ERROR, Unrecoverable error was detected (C:\Program Files\dotnet\dotnet.exe [pid=20104])
2018.03.21 16:08:58.473 WARN Coverage analysis: Profiler message: Operation is ignored because unrecoverable error is detected
[location] = C:\Build Agent\work\32806c04647ac794\Profiler\Kernel\Windows\Native\Solution\core\src\profilers\coverage\base_coverage_profiler.operation.cpp(129)
[function] = void __cdecl jb::profiler::base_coverage_profiler::operation_measure_stop(bool)
[hresult] = abad0003, CORE_API_E_UNRECOVERABLE_ERROR, Unrecoverable error was detected (C:\Program Files\dotnet\dotnet.exe [pid=20104])
2018.03.21 16:08:58.485 WARN Coverage analysis: Profiler message: Operation is ignored because unrecoverable error is detected
[location] = C:\Build Agent\work\32806c04647ac794\Profiler\Kernel\Windows\Native\Solution\core\src\profilers\coverage\base_coverage_profiler.operation.cpp(129)
[function] = void __cdecl jb::profiler::base_coverage_profiler::operation_measure_stop(bool)
[hresult] = abad0003, CORE_API_E_UNRECOVERABLE_ERROR, Unrecoverable error was detected (C:\Program Files\dotnet\dotnet.exe [pid=20104])
2018.03.21 16:08:58.485 WARN Coverage analysis: Profiler message: Operation is ignored because unrecoverable error is detected
[location] = C:\Build Agent\work\32806c04647ac794\Profiler\Kernel\Windows\Native\Solution\core\src\profilers\coverage\base_coverage_profiler.operation.cpp(129)
[function] = void __cdecl jb::profiler::base_coverage_profiler::operation_measure_stop(bool)
[hresult] = abad0003, CORE_API_E_UNRECOVERABLE_ERROR, Unrecoverable error was detected (C:\Program Files\dotnet\dotnet.exe [pid=20104])
Please sign in to leave a comment.
Hello, Andrei,
Are you using some kind of post-processing tool? PostSharp, Fody?
Yes, Fody. I can provide sample project if you need
Andrei, could you please specify which version of ReSharper are you using?
The error itself shows that PDB files were erroneously generated and didn't pass our check - in that case we can't do much on our side.
For example, we have a bug report that the similar error happened when using NullGuard.Fody add-in: https://youtrack.jetbrains.com/issue/DCVR-8787, but it was fixed on the side of NullGuard.
I am using the latest one 2017.3.3. In general we got this error on Team City build server but exception is also reproducible by Resharper.
Example of project https://drive.google.com/file/d/18kTmv6C76UQodLV2YzykVNxWnwNlOskl/view?usp=sharing