joaquimcid / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Running WaTiN under Gallio with .NET4 results in immediate crash #848

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile test DLL for Watin with .NET 4 as target
2. Fire up the task through a nant script

What is the expected output? What do you see instead?

We expect the tests to be running and Gallio reporting the result of these 
tests, instead we receive an error dump in TeamCity that something went wrong 
during the invocation

What version of the product are you using? On what operating system?
3.2, Windows XP

Please provide any additional information below.

[16:50:34]: [exec] Time Elapsed 00:03:05.67
[16:50:34]: [BuildProject] Build is done.
[16:50:34]: [Tests.Watin.Run] call (1m:53s)
[16:50:34]: [call] Tests.Run (1m:53s)
[16:50:34]: [Tests.Run] if (1m:53s)
[16:50:34]: [if] call (1m:53s)
[16:50:34]: [call] test (1m:53s)
[16:50:34]: [test] Started testing 
C:\Robinson\trunk\Projects\Watin\WatinCustomersTests\bin\Debug\WatinCustomersTes
ts.dll
[16:50:34]: [test] gallio (1m:52s)
[16:50:38]: [gallio] Gallio NAnt Task - Version 3.2 build 744
[16:50:41]: [gallio] Start time: 16:50
[16:51:02]: [gallio] Initializing test runner.' flowId='d4a038f1e56312ec
[16:51:02]: [gallio] Running tests.' flowId='d4a038f1e56312ec
[16:52:09]: [gallio] Forcibly killing the host process!
[16:52:10]: [gallio] Host process exited with code: -1
[16:52:17]: [gallio] A fatal exception occurred while running tests. Possible 
causes include invalid test runner parameters and stack overflows. 
Gallio.Model.ModelException: An exception occurred while invoking a test 
driver. ---> Gallio.Runtime.Hosting.HostException: An exception occurred while 
connecting to the host service. ---> Gallio.Runtime.Hosting.HostException: 
Error attaching to the host process. ---> 
System.Runtime.Remoting.RemotingException: Failed to connect to an IPC Port: 
The system cannot find the file specified. Server stack trace: at 
System.Runtime.Remoting.Channels.Ipc.IpcPort.Connect(String portName, Boolean 
secure, TokenImpersonationLevel impersonationLevel, Int32 timeout) at 
System.Runtime.Remoting.Channels.Ipc.ConnectionCache.GetConnection(String 
portName, Boolean secure, TokenImpersonationLevel level, Int32 timeout) at 
System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMess
age msg, ITransportHeaders requestHeaders, Stream requestStream, 
ITransportHeaders& responseHeaders, Stream& responseStream) at 
System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IM
essage msg) Exception rethrown at [0]: at 
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, 
IMessage retMsg) at 
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, 
Int32 type) at Gallio.Runtime.Hosting.IHostService.Ping() at 
Gallio.Runtime.Hosting.IsolatedProcessHost.WaitUntilReady(IHostService 
hostService) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:line 379 at 
Gallio.Runtime.Hosting.IsolatedProcessHost.AcquireRemoteHostService() in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:line 118 --- 
End of inner exception stack trace --- at 
Gallio.Runtime.Hosting.IsolatedProcessHost.AcquireRemoteHostService() in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:line 124 at 
Gallio.Runtime.Hosting.RemoteHost.AcquireHostService() in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\RemoteHost.cs:line 68 at 
Gallio.Runtime.Hosting.BaseHost.Connect() in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHost.cs:line 142 --- End of 
inner exception stack trace --- at Gallio.Runtime.Hosting.BaseHost.Connect() in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHost.cs:line 146 at 
Gallio.Runtime.Hosting.IsolatedProcessHostFactory.CreateHostImpl(HostSetup 
hostSetup, ILogger logger) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHostFactory.cs:line 
58 at Gallio.Runtime.Hosting.BaseHostFactory.CreateHost(HostSetup hostSetup, 
ILogger logger) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHostFactory.cs:line 37 at 
Gallio.Model.Isolation.HostedTestIsolationContext.RunIsolatedTaskInHost[TIsolate
dTask](HostSetup hostSetup, StatusReporter statusReporter, Object[] args) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\Isolation\HostedTestIsolationContext.cs:line 
111 at 
Gallio.Model.Isolation.HostedTestIsolationContext.RunIsolatedTaskImpl[TIsolatedT
ask](HostSetup hostSetup, StatusReporter statusReporter, Object[] args) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\Isolation\HostedTestIsolationContext.cs:line 
93 at 
Gallio.Model.Isolation.BaseTestIsolationContext.RunIsolatedTask[TIsolatedTask](H
ostSetup hostSetup, StatusReporter statusReporter, Object[] args) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\Isolation\BaseTestIsolationContext.cs:line 59 
at Gallio.Model.DotNetTestDriver.ExploreOrRunAssembly(ITestIsolationContext 
testIsolationContext, TestPackage testPackage, TestExplorationOptions 
testExplorationOptions, TestExecutionOptions testExecutionOptions, 
RemoteMessageSink remoteMessageSink, IProgressMonitor progressMonitor, String 
taskName, FileInfo file) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 196 at 
Gallio.Model.DotNetTestDriver.ExploreOrRun(ITestIsolationContext 
testIsolationContext, TestPackage testPackage, TestExplorationOptions 
testExplorationOptions, TestExecutionOptions testExecutionOptions, IMessageSink 
messageSink, IProgressMonitor progressMonitor, String taskName) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 163 at 
Gallio.Model.DotNetTestDriver.RunImpl(ITestIsolationContext 
testIsolationContext, TestPackage testPackage, TestExplorationOptions 
testExplorationOptions, TestExecutionOptions testExecutionOptions, IMessageSink 
messageSink, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 148 at 
Gallio.Model.BaseTestDriver.Run(ITestIsolationContext testIsolationContext, 
TestPackage testPackage, TestExplorationOptions testExplorationOptions, 
TestExecutionOptions testExecutionOptions, IMessageSink messageSink, 
IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\BaseTestDriver.cs:line 94 at 
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.<>c__DisplayClass1f.
<RunImpl>b__1d(ITestDriver driver, IList`1 items, Int32 driverCount) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 463 at 
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver[T](Mul
tiMap`2 testFrameworkPartitions, Func`4 func) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 525 --- 
End of inner exception stack trace --- at 
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver[T](Mul
tiMap`2 testFrameworkPartitions, Func`4 func) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 531 at 
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.RunImpl(ITestIsolati
onContext testIsolationContext, TestPackage testPackage, TestExplorationOptions 
testExplorationOptions, TestExecutionOptions testExecutionOptions, IMessageSink 
messageSink, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 458 at 
Gallio.Model.BaseTestDriver.Run(ITestIsolationContext testIsolationContext, 
TestPackage testPackage, TestExplorationOptions testExplorationOptions, 
TestExecutionOptions testExecutionOptions, IMessageSink messageSink, 
IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\BaseTestDriver.cs:line 94 at 
Gallio.Runner.DefaultTestRunner.Run(TestPackage testPackage, 
TestExplorationOptions testExplorationOptions, TestExecutionOptions 
testExecutionOptions, IProgressMonitor progressMonitor) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runner\DefaultTestRunner.cs:line 314
[16:52:27]: [gallio] Disposed test runner.' flowId='d4a038f1e56312ec
[16:52:27]: [gallio] Stop time: 16:52 (Total execution time: 106,483 seconds)
[16:52:27]: C:\Robinson\trunk\Scripts\NantScripts\NantTestsRunner.build(254,6): 
One or more tests failed. Please check the log for more details
[16:52:28]: Process exited with code 1
[16:52:28]: NAnt output:
[16:52:28]: [gallio] at Gallio.Runtime.Hosting.BaseHost.Connect() in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHost.cs:line 146
[16:52:28]: [gallio] at 
Gallio.Runtime.Hosting.IsolatedProcessHostFactory.CreateHostImpl(HostSetup 
hostSetup, ILogger logger) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHostFactory.cs:line 
58
[16:52:28]: [gallio] at 
Gallio.Runtime.Hosting.BaseHostFactory.CreateHost(HostSetup hostSetup, ILogger 
logger) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHostFactory.cs:line 37
[16:52:28]: [gallio] at 
Gallio.Model.Isolation.HostedTestIsolationContext.RunIsolatedTaskInHost[TIsolate
dTask](HostSetup hostSetup, StatusReporter statusReporter, Object[] args) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\Isolation\HostedTestIsolationContext.cs:line 
111
[16:52:28]: [gallio] at 
Gallio.Model.Isolation.HostedTestIsolationContext.RunIsolatedTaskImpl[TIsolatedT
ask](HostSetup hostSetup, StatusReporter statusReporter, Object[] args) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\Isolation\HostedTestIsolationContext.cs:line 
93
[16:52:28]: [gallio] at 
Gallio.Model.Isolation.BaseTestIsolationContext.RunIsolatedTask[TIsolatedTask](H
ostSetup hostSetup, StatusReporter statusReporter, Object[] args) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\Isolation\BaseTestIsolationContext.cs:line 59
[16:52:28]: [gallio] at 
Gallio.Model.DotNetTestDriver.ExploreOrRunAssembly(ITestIsolationContext 
testIsolationContext, TestPackage testPackage, TestExplorationOptions 
testExplorationOptions, TestExecutionOptions testExecutionOptions, 
RemoteMessageSink remoteMessageSink, IProgressMonitor progressMonitor, String 
taskName, FileInfo file) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 196
[16:52:28]: [gallio] at 
Gallio.Model.DotNetTestDriver.ExploreOrRun(ITestIsolationContext 
testIsolationContext, TestPackage testPackage, TestExplorationOptions 
testExplorationOptions, TestExecutionOptions testExecutionOptions, IMessageSink 
messageSink, IProgressMonitor progressMonitor, String taskName) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 163
[16:52:28]: [gallio] at 
Gallio.Model.DotNetTestDriver.RunImpl(ITestIsolationContext 
testIsolationContext, TestPackage testPackage, TestExplorationOptions 
testExplorationOptions, TestExecutionOptions testExecutionOptions, IMessageSink 
messageSink, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 148
[16:52:28]: [gallio] at Gallio.Model.BaseTestDriver.Run(ITestIsolationContext 
testIsolationContext, TestPackage testPackage, TestExplorationOptions 
testExplorationOptions, TestExecutionOptions testExecutionOptions, IMessageSink 
messageSink, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\BaseTestDriver.cs:line 94
[16:52:28]: [gallio] at 
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.<>c__DisplayClass1f.
<RunImpl>b__1d(ITestDriver driver, IList`1 items, Int32 driverCount) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 463
[16:52:28]: [gallio] at 
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver[T](Mul
tiMap`2 testFrameworkPartitions, Func`4 func) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 525
[16:52:28]: [gallio] --- End of inner exception stack trace ---
[16:52:28]: [gallio] at 
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver[T](Mul
tiMap`2 testFrameworkPartitions, Func`4 func) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 531
[16:52:28]: [gallio] at 
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.RunImpl(ITestIsolati
onContext testIsolationContext, TestPackage testPackage, TestExplorationOptions 
testExplorationOptions, TestExecutionOptions testExecutionOptions, IMessageSink 
messageSink, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 458
[16:52:28]: [gallio] at Gallio.Model.BaseTestDriver.Run(ITestIsolationContext 
testIsolationContext, TestPackage testPackage, TestExplorationOptions 
testExplorationOptions, TestExecutionOptions testExecutionOptions, IMessageSink 
messageSink, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Model\BaseTestDriver.cs:line 94
[16:52:28]: [gallio] at Gallio.Runner.DefaultTestRunner.Run(TestPackage 
testPackage, TestExplorationOptions testExplorationOptions, 
TestExecutionOptions testExecutionOptions, IProgressMonitor progressMonitor) in 
c:\Server\Projects\MbUnit 
v3.2\Work\src\Gallio\Gallio\Runner\DefaultTestRunner.cs:line 314
[16:52:28]: [gallio]
[16:52:28]: ##teamcity[progressFinish 'Running tests.|' 
flowId=|'d4a038f1e56312ec']
[16:52:28]: [gallio]
[16:52:28]: ##teamcity[progressMessage 'Disposed test runner.|' 
flowId=|'d4a038f1e56312ec']
[16:52:28]: [gallio] Stop time: 16:52 (Total execution time: 106,483 seconds)
[16:52:28]: BUILD FAILED - 2 non-fatal error(s), 2 warning(s)
[16:52:28]: C:\Robinson\trunk\Scripts\NantScripts\NantTestsRunner.build(254,6):
[16:52:28]: One or more tests failed. Please check the log for more details
[16:52:28]: Total time: 302.2 seconds.
[16:52:28]: Publishing artifacts
[16:52:28]: [Publishing artifacts] Paths to publish: [C:\Robinson\Output, 
teamcity-info.xml]
[16:52:28]: [Publishing artifacts] Sending files
[16:52:29]: Build finished

Original issue reported on code.google.com by arne.de....@gmail.com on 20 Jun 2011 at 2:58

GoogleCodeExporter commented 8 years ago
Removing the startup entry in the app.config for the unittest allows Gallio to 
continue, but then it hangs when trying to run the test. It doesn't crash 
anymore, but it ain't working either

Original comment by arne.de....@gmail.com on 21 Jun 2011 at 8:01