Gallio error when tests are run via TeamCity: "Possible causes include invalid test runner parameters and stack overflows"

395 views Asked by At

When running MbUnit (3.4.14.0) tests via TeamCity (8.0.2 build 27482), I got the error:

[Error] 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.Model.ModelException: Gallio.Model.ModelException: A fatal exception occurred while running test commands. 
---> Gallio.Runtime.RuntimeException: Could not resolve instance of component 'Gallio.PatternTestController'.
---> Gallio.Runtime.RuntimeException: Could not resolve required dependency 'formatter' of type 'Gallio.Runtime.Formatting.IFormatter' due to an exception. ---> Gallio.Runtime.RuntimeException: Could not resolve instance of component 'Gallio.Formatter'. 
---> Gallio.Runtime.RuntimeException: Could not resolve required dependency 'rules' of type 'Gallio.Runtime.Formatting.IFormattingRule[]' due to an exception. ---> Gallio.Runtime.RuntimeException: Could not resolve instance of component 'Gallio35.ExpressionFormattingRule'. 
---> Gallio.Runtime.RuntimeException: Could not resolve the component handler of component 'Gallio35.ExpressionFormattingRule'.
---> Gallio.Runtime.RuntimeException: Could not resolve the component type of component 'Gallio35.ExpressionFormattingRule'. 
---> Gallio.Common.Reflection.ReflectionResolveException: Could not resolve type 'Gallio.Runtime.Formatting.ExpressionFormattingRule, Gallio35'. 
---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)   at System.Type.GetType(String typeName)   at Gallio.Common.Reflection.TypeName.Resolve() in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Common\Reflection\TypeName.cs:line 175   
--- End of inner exception stack trace ---   at Gallio.Common.Reflection.TypeName.Resolve() in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Common\Reflection\TypeName.cs:line 184   at Gallio.Runtime.Extensibility.ComponentDescriptor.ResolveComponentType() in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Runtime\Extensibility\ComponentDescriptor.cs:line 111   
--- End of inner exception stack trace 

In the previous test run some Back-End tests ran OK, but on the last stage, UI tests hung and I cancelled the TeamCity job.

Any ideas what can cause the error?

Thanks.

1

There are 1 answers

0
Stan Desyatnikov On

A colleague of mine advised to restart the TeamCity service on the build server. It helped.