NCover issue with TeamCity 5.1

Hello,

We had a NCover coverage enabled project in TeamCity that was working perfectly under TeamCity 5.0.3. Since we upgraded to the latest version, the project fails to complete the build. Without NCover the project build perfectly under the latest TeamCity.

Here's an last entry of the build log when all unit test have been completed and the coverage calculated.

The agent NUnitLauncher2 seems to have an null exception reference.

[22:51:11]: ***************** End Program Output *****************
[22:51:11]: Execution Time: 404.2656 s
[22:51:12]: Symbol Coverage: 71.92%
[22:51:12]: Branch Coverage: 58.43%
[22:51:12]: Coverage Xml: C:\BuildAgent\temp\buildTmp\tmp4C1.tmp
[22:51:12]: 2010-04-28 22:51:12,140 [3900] ERROR JetBrains.BuildServer.NAntLoggers.NUnitLauncher2 - Object reference not set to an instance of an object.
[22:51:12]: System.NullReferenceException: Object reference not set to an instance of an object.
[22:51:12]: at JetBrains.TeamCity.Utils.ServiceMessageFormatter.Escape(String value) in c:\Agent\work\6223f0c8b1d45aaa\src\Utils\src\ServiceMessageFormatter.cs:line 31
[22:51:12]: at JetBrains.TeamCity.Utils.ServiceMessageFormatter.FormatMessage(String sMessageName, ServiceMessageProperty[] properties) in c:\Agent\work\6223f0c8b1d45aaa\src\Utils\src\ServiceMessageFormatter.cs:line 77
[22:51:12]: at JetBrains.BuildServer.CommonLoggers.Impl.TeamCityServiceMessageImpl.SendMessage(String sMessageName, ServiceMessageProperty[] properties) in c:\Agent\work\6223f0c8b1d45aaa\src\CommonLoggers\src\Impl\TeamCityServiceMessageImpl.cs:line 30
[22:51:12]: at JetBrains.TeamCity.CoverageSupport.ReportCoverageResultServiceMessage.ReportCoverageInfo(String coverageType, String file) in c:\Agent\work\6223f0c8b1d45aaa\src\CoverageSupport\src\ReportCoverageResultServiceMessage.cs:line 19
[22:51:12]: at JetBrains.TeamCity.CoverageSupport.FilesAsArtifactsPublisher.Handler.AfterFinish() in c:\Agent\work\6223f0c8b1d45aaa\src\CoverageSupport\src\FilesAsArtifactsPublisher.cs:line 41
[22:51:12]: at JetBrains.TeamCity.CoverageSupport.CoverageRunner.MultipleExecutionHandler.JetBrains.TeamCity.NUnitCommon.IExecutionHandler.AfterFinish() in c:\Agent\work\6223f0c8b1d45aaa\src\CoverageSupport\src\CoverageRunner.cs:line 151
[22:51:12]: at JetBrains.TeamCity.NUnitCommon.PlugableRunFactory.RunProcessAsPlugable.Run() in c:\Agent\work\6223f0c8b1d45aaa\src\NUnitCommon\src\PlugableRunFactory.cs:line 43
[22:51:12]: at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.ExecuteTasks(ITestRunArguments arguments, IPlugableTestRunner[] plugRuns) in c:\Agent\work\6223f0c8b1d45aaa\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 185
[22:51:12]: at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.Run2(String[] args) in c:\Agent\work\6223f0c8b1d45aaa\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 124
[22:51:12]: at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.Run(String[] args) in c:\Agent\work\6223f0c8b1d45aaa\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 45
[22:51:12]: Object reference not set to an instance of an object.
at JetBrains.TeamCity.Utils.ServiceMessageFormatter.Escape(String value) in c:\Agent\work\6223f0c8b1d45aaa\src\Utils\src\ServiceMessageFormatter.cs:line 31
at JetBrains.TeamCity.Utils.ServiceMessageFormatter.FormatMessage(String sMessageName, ServiceMessageProperty[] properties) in c:\Agent\work\6223f0c8b1d45aaa\src\Utils\src\ServiceMessageFormatter.cs:line 77
at JetBrains.BuildServer.CommonLoggers.Impl.TeamCityServiceMessageImpl.SendMessage(String sMessageName, ServiceMessageProperty[] properties) in c:\Agent\work\6223f0c8b1d45aaa\src\CommonLoggers\src\Impl\TeamCityServiceMessageImpl.cs:line 30
at JetBrains.TeamCity.CoverageSupport.ReportCoverageResultServiceMessage.ReportCoverageInfo(String coverageType, String file) in c:\Agent\work\6223f0c8b1d45aaa\src\CoverageSupport\src\ReportCoverageResultServiceMessage.cs:line 19
at JetBrains.TeamCity.CoverageSupport.FilesAsArtifactsPublisher.Handler.AfterFinish() in c:\Agent\work\6223f0c8b1d45aaa\src\CoverageSupport\src\FilesAsArtifactsPublisher.cs:line 41
at JetBrains.TeamCity.CoverageSupport.CoverageRunner.MultipleExecutionHandler.JetBrains.TeamCity.NUnitCommon.IExecutionHandler.AfterFinish() in c:\Agent\work\6223f0c8b1d45aaa\src\CoverageSupport\src\CoverageRunner.cs:line 151
at JetBrains.TeamCity.NUnitCommon.PlugableRunFactory.RunProcessAsPlugable.Run() in c:\Agent\work\6223f0c8b1d45aaa\src\NUnitCommon\src\PlugableRunFactory.cs:line 43
at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.ExecuteTasks(ITestRunArguments arguments, IPlugableTestRunner[] plugRuns) in c:\Agent\work\6223f0c8b1d45aaa\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 185
at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.Run2(String[] args) in c:\Agent\work\6223f0c8b1d45aaa\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 124
at JetBrains.BuildServer.NAntLoggers.NUnitLauncher2.Run(String[] args) in c:\Agent\work\6223f0c8b1d45aaa\src\NUnitBootstrap\src\NUnitLauncher2.cs:line 45
[22:51:12]: C:\BuildAgent\work\e03842a12d76e05e\Dev\SSDISManager.sln.teamcity.patch.tcprojx(17,5): error : C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" C:\BuildAgent\temp\buildTmp\tmp4BF.tmp exited with code -1.
[22:51:12]: [Project "SSDISManager.sln.teamcity.patch.tcprojx" (TeamCity_Generated_Build;TeamCity_Generated_NUnitTests target(s)):] C:\BuildAgent\work\e03842a12d76e05e\Dev\SSDISManager.sln.teamcity.patch.tcprojx(17, 5): C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" C:\BuildAgent\temp\buildTmp\tmp4BF.tmp exited with code -1.
[22:51:13]: Done Building Project "C:\BuildAgent\work\e03842a12d76e05e\Dev\SSDISManager.sln.teamcity.patch.tcprojx" (TeamCity_Generated_Build;TeamCity_Generated_NUnitTests target(s)) -- FAILED.
[22:51:13]: Build FAILED.
[22:51:13]: "C:\BuildAgent\work\e03842a12d76e05e\Dev\SSDISManager.sln.teamcity.patch.tcprojx" (TeamCity_Generated_Build;TeamCity_Generated_NUnitTests target) (1) ->
[22:51:13]: (TeamCity_Generated_NUnitTests target) ->
[22:51:13]: C:\BuildAgent\work\e03842a12d76e05e\Dev\SSDISManager.sln.teamcity.patch.tcprojx(17,5): error : C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" C:\BuildAgent\temp\buildTmp\tmp4BF.tmp exited with code -1.
[22:51:13]: 0 Warning(s)
[22:51:13]: 1 Error(s)
[22:51:13]: Time Elapsed 00:07:13.65
[22:51:13]: Process exited with code 1
[22:50:02]: Build finished
Anyone has a similar issue with NCover?
Thank you in advance

Please sign in to leave a comment.