1.5.8 Assertion Failure

1.5.8 Assertion Failure

I'm running NCover 1.5.8 from Gallio 3.0.3 in an MSBuild script.

Here is the Gallio task in my script:

I keep getting the following Error message Popup on my build machine, completely halting the build until someone responds. Ignore seems to work, and I get coverage information.

What is causing this error? How do I fix this?


Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue

Global\CmdReadyEvent_3676 event already exists on this machine.

at ProfilerMessageCenter.CreateEvents()  
at ProfilerMessageCenter..ctor(Int32 profilerID)  
at ProfilerDriver..ctor(ProfilerSettings ps)  
at EmbeddedNCoverProcessTask.RegisterAndStartProfiler(ProfilerSettings settings, Boolean redirectOutput)  
at EmbeddedNCoverProcessTask.StartProcess(ProcessStartInfo startInfo)  
at ProcessTask.StartImpl()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Concurrency\ProcessTask.cs(291)
at Task.Start()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Concurrency\Task.cs(170)
at IsolatedProcessHost.StartProcess(String hostConnectionArguments)  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs(199)
at IsolatedProcessHost.AcquireRemoteHostService()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs(103)
at RemoteHost.AcquireHostService()  c:\RelEng\Proj......

Abort Retry Ignore

Thanks,

Sean


RE: 1.5.8 Assertion Failure

chances are, a previous execution of NCover didn't fully clean up after itself. Have you tried restarting your computer?


RE: 1.5.8 Assertion Failure

A reboot helped for a couple builds, but then it started again.

I may have multiple ncover runs at the same time on this machine. Would this be a problem?

If this is just and assertion, is there a way to automatically ignore it? If I pick "Ignore" then it continues normally.

After a reboot, I ran a bunch of builds, then started getting errors again:


Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue

Global\CmdReadyEvent_1620 event already exists on this machine.

at ProfilerMessageCenter.CreateEvents()  
at ProfilerMessageCenter..ctor(Int32 profilerID)  
at ProfilerDriver..ctor(ProfilerSettings ps)  
at EmbeddedNCoverProcessTask.RegisterAndStartProfiler(ProfilerSettings settings, Boolean redirectOutput)  
at EmbeddedNCoverProcessTask.StartProcess(ProcessStartInfo startInfo)  
at ProcessTask.StartImpl()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Concurrency\ProcessTask.cs(291)
at Task.Start()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Concurrency\Task.cs(170)
at IsolatedProcessHost.StartProcess(String hostConnectionArguments)  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs(199)
at IsolatedProcessHost.AcquireRemoteHostService()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs(103)
at RemoteHost.AcquireHostService()  c:\RelEng\Proj......

Abort Retry Ignore


Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue

Global\ShutdownEvent_1620 event already exists on this machine.

at ProfilerMessageCenter.CreateEvents()  
at ProfilerMessageCenter..ctor(Int32 profilerID)  
at ProfilerDriver..ctor(ProfilerSettings ps)  
at EmbeddedNCoverProcessTask.RegisterAndStartProfiler(ProfilerSettings settings, Boolean redirectOutput)  
at EmbeddedNCoverProcessTask.StartProcess(ProcessStartInfo startInfo)  
at ProcessTask.StartImpl()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Concurrency\ProcessTask.cs(291)
at Task.Start()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Concurrency\Task.cs(170)
at IsolatedProcessHost.StartProcess(String hostConnectionArguments)  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs(199)
at IsolatedProcessHost.AcquireRemoteHostService()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs(103)
at RemoteHost.AcquireHostService()  c:\RelEng\Proj......

Abort Retry Ignore


Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue

Global\CmdReadyEvent_484 event already exists on this machine.

at ProfilerMessageCenter.CreateEvents()  
at ProfilerMessageCenter..ctor(Int32 profilerID)  
at ProfilerDriver..ctor(ProfilerSettings ps)  
at EmbeddedNCoverProcessTask.RegisterAndStartProfiler(ProfilerSettings settings, Boolean redirectOutput)  
at EmbeddedNCoverProcessTask.StartProcess(ProcessStartInfo startInfo)  
at ProcessTask.StartImpl()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Concurrency\ProcessTask.cs(291)
at Task.Start()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Concurrency\Task.cs(170)
at IsolatedProcessHost.StartProcess(String hostConnectionArguments)  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs(199)
at IsolatedProcessHost.AcquireRemoteHostService()  c:\RelEng\Projects\MbUnit v3.0.6\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs(103)
at RemoteHost.AcquireHostService()  c:\RelEng\Proje......

Abort Retry Ignore


RE: 1.5.8 Assertion Failure

This is the instructions for ncover 3 and gallio

http://docs.ncover.com/how-to/running-ncover-with-your-unit-testing-framework/mbunitgallio/

Gallio may have information on how to get the free version running.

Joe Feser


RE: 1.5.8 Assertion Failure

Funny,

The Gallio guys said the NCover guys could help...

http://groups.google.com/group/gallio-dev/browse_thread/thread/a9811e02e403666d?hl=en

I followed the instructions on the Gallio site to get the MSBuild task going to run NCover and Gallio. Works great, except for NCover throwing an assertion error.


RE: 1.5.8 Assertion Failure

I may have multiple ncover runs at the same time on this machine. Would this be a problem?

yes. The community edition was never intended to have more than one running instance at a time.


RE: 1.5.8 Assertion Failure

great it helps me a lot...


RE: 1.5.8 Assertion Failure

great it helps me a lot...


RE: 1.5.8 Assertion Failure

great it helps me a lot...


RE: 1.5.8 Assertion Failure

great it helps me a lot...


Try NCover Free Contact Us Online