Daily Usage Issues

Console: ERROR (Internal): Unable to load description for framework 'nCrunch.Module.Gallio.Inte...

Started by GreenMoose on 2,245 views

[NCrunch Console Tool v3.28.0.6]

I have started getting below error from NCrunch Console (process completes and exits with error code #0 though (but my TC is set to fail for exceptions in log).


[13:06:26][Core-16] Loading external NCrunch modules
[13:06:26][Core-16] Loading module: E:\TCAgent\work\bbPrivDev.dev.csCommon-#1-oneSln\_tmp\packages\Gmd.NCrunch.Console.3.28.0.6-dev.20190602T103626\lib\net45\Modules\Gallio\nCrunch.Module.Gallio.crunchmodule
[13:06:26][Core-16] Loading module: E:\TCAgent\work\bbPrivDev.dev.csCommon-#1-oneSln\_tmp\packages\Gmd.NCrunch.Console.3.28.0.6-dev.20190602T103626\lib\net45\Modules\MSpec\nCrunch.Module.MSpec.crunchmodule
[13:06:26][Core-16] Loading module: E:\TCAgent\work\bbPrivDev.dev.csCommon-#1-oneSln\_tmp\packages\Gmd.NCrunch.Console.3.28.0.6-dev.20190602T103626\lib\net45\Modules\MSTest\nCrunch.Module.MSTest.crunchmodule
[13:06:26][Core-16] Loading module: E:\TCAgent\work\bbPrivDev.dev.csCommon-#1-oneSln\_tmp\packages\Gmd.NCrunch.Console.3.28.0.6-dev.20190602T103626\lib\net45\Modules\NUnit\nCrunch.Module.NUnit.crunchmodule
[13:06:26][Core-16] Loading module: E:\TCAgent\work\bbPrivDev.dev.csCommon-#1-oneSln\_tmp\packages\Gmd.NCrunch.Console.3.28.0.6-dev.20190602T103626\lib\net45\Modules\NUnit3\nCrunch.Module.NUnit3.crunchmodule
[13:06:26][Core-16] Loading module: E:\TCAgent\work\bbPrivDev.dev.csCommon-#1-oneSln\_tmp\packages\Gmd.NCrunch.Console.3.28.0.6-dev.20190602T103626\lib\net45\Modules\XUnit2\nCrunch.Module.XUnit2.crunchmodule
[13:06:44][Core-16] ERROR (Internal): Unable to load description for framework 'nCrunch.Module.Gallio.Integration.GallioTestFramework': Gallio.Runtime.RuntimeException: The runtime could not be initialized. ---> Gallio.Runtime.RuntimeException: Could not register plugin 'Gallio'. ---> System.ArgumentException: There is already a plugin registered with id 'Gallio'.
[13:06:44][Core-16] Parameter name: pluginRegistration
[13:06:44][Core-16]    at Gallio.Runtime.Extensibility.Registry.<>c__DisplayClass1.<RegisterPlugin>b__0(RegistryData data)
[13:06:44][Core-16]    at Gallio.Common.Concurrency.LockBox`1.Write[TResult](WriteFunc`2 func)
[13:06:44][Core-16]    at Gallio.Runtime.Extensibility.Registry.RegisterPlugin(PluginRegistration pluginRegistration)
[13:06:44][Core-16]    at Gallio.Runtime.Extensibility.PluginCatalog.RegisterPlugins(IRegistry registry, IList`1 topologicallySortedPlugins)
[13:06:44][Core-16]    --- End of inner exception stack trace ---
[13:06:44][Core-16]    at Gallio.Runtime.Extensibility.PluginCatalog.RegisterPlugins(IRegistry registry, IList`1 topologicallySortedPlugins)
[13:06:44][Core-16]    at Gallio.Runtime.Extensibility.PluginCatalog.ApplyTo(IRegistry registry)
[13:06:44][Core-16]    at Gallio.Runtime.DefaultRuntime.RegisterLoadedPlugins()
[13:06:44][Core-16]    at Gallio.Runtime.DefaultRuntime.Initialize()
[13:06:44][Core-16]    --- End of inner exception stack trace ---
[13:06:44][Core-16]    at Gallio.Runtime.DefaultRuntime.Initialize()
[13:06:44][Core-16]    at Gallio.Runtime.RuntimeBootstrap.Initialize(RuntimeSetup setup, ILogger logger)
[13:06:44][Core-16]    at nCrunch.Module.Gallio.Integration.GallioWrapper.GetCustomConfig()
[13:06:44][Core-16]    at nCrunch.Module.Gallio.Integration.GallioTestFramework.GetDescription()
[13:06:44][Core-16]    at nCrunch.Core.TestManagement.TestFrameworkRegistry.GetDescriptionForEachFramework()
Hi, thanks for sharing this issue.

This is caused by a duplication of Gallio plugins in the NCrunch install directory.

Try clearing out your NCrunch install path, then reinstalling it.
Hrm I use NCrunch console via a home-brew nuget package though, but how come this scenario can appear in the first place? Is it a known issue due to NCrunch process being aborted or similar?
i.e. is there anything one can do to avoid it from happening?

(I only use NUnit btw)
I saw this issue appear a bit when we were still modularising the areas of NCrunch and adjusting the installers (several years back). At present, I don't know of any way the problem can occur between newer versions of the product while using the standard installers. Sometimes people would extract the ZIP files without considering the directory structure inside them, which could result in some of the modules being duplicated in the install path when they upgraded across multiple versions.

A safe approach is to always delete all existing installed files before you extract the package. In this way, you won't end up with any duplication of the gallio modules.

Edit: Disabling Gallio/xunitv1 may also help, but this would only be fixing the symptoms of the problem. Better to make sure your install structure is correct.

Edited

Post a reply

Log in to reply.