Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Console: ERROR (Internal): Unable to load description for framework 'nCrunch.Module.Gallio.Inte...
GreenMoose
#1 Posted : Sunday, June 2, 2019 11:15:51 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
[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).

Code:

[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()
Remco
#2 Posted : Sunday, June 2, 2019 11:11:19 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
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.
GreenMoose
#3 Posted : Monday, June 3, 2019 5:48:02 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
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)
Remco
#4 Posted : Monday, June 3, 2019 11:45:48 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.032 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download