Bug 6711 - when addon registry rebuilds, the PolicyService crashes
Summary: when addon registry rebuilds, the PolicyService crashes
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 3.0.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-08-27 14:57 UTC by Jeffrey Stedfast
Modified: 2015-08-21 06:23 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Jeffrey Stedfast 2012-08-27 14:57:11 UTC
ERROR [2012-08-27 14:49:47Z]: An unhandled exception has occured. Terminating MonoDevelop? True
System.InvalidOperationException: Cannot add second policy of type '[Policy: Type=MonoDevelop.ChangeLogAddIn.ChangeLogPolicy]' to policy set 'Mono'
  at MonoDevelop.Projects.Policies.PolicySet.AddSerializedPolicies (System.IO.StreamReader reader) [0x00052] in /Users/fejj/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicySet.cs:99 
  at MonoDevelop.Projects.Extensions.PolicySetNode.OnChildNodeAdded (Mono.Addins.ExtensionNode node) [0x0000e] in /Users/fejj/src/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Extensions/PolicySetNode.cs:57 
  at Mono.Addins.ExtensionNode.NotifyChildChanged () [0x000ae] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-addins-0.6.2/_build/mono-addins-0.6.2/Mono.Addins/Mono.Addins/ExtensionNode.cs:471 
  at Mono.Addins.TreeNode.NotifyChildrenChanged () [0x0000b] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-addins-0.6.2/_build/mono-addins-0.6.2/Mono.Addins/Mono.Addins/TreeNode.cs:334 
  at Mono.Addins.ExtensionTree.LoadExtensionElement (Mono.Addins.TreeNode tnode, System.String addin, Mono.Addins.Description.ExtensionNodeDescriptionCollection extension, Mono.Addins.Description.ModuleDescription module, System.Int32& curPos, Mono.Addins.BaseCondition parentCondition, Boolean inComplextCondition, System.Collections.ArrayList addedNodes) [0x00275] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-addins-0.6.2/_build/mono-addins-0.6.2/Mono.Addins/Mono.Addins/ExtensionTree.cs:136 
  at Mono.Addins.ExtensionTree.LoadExtension (System.String addin, Mono.Addins.Description.Extension extension, System.Collections.ArrayList addedNodes) [0x0003e] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-addins-0.6.2/_build/mono-addins-0.6.2/Mono.Addins/Mono.Addins/ExtensionTree.cs:64 
  at Mono.Addins.ExtensionContext.LoadModuleExtensionNodes (Mono.Addins.Description.Extension extension, System.String addinId, Mono.Addins.Description.ExtensionNodeSet nset, System.Collections.ArrayList loadedNodes) [0x00006] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-addins-0.6.2/_build/mono-addins-0.6.2/Mono.Addins/Mono.Addins/ExtensionContext.cs:1138 
  at Mono.Addins.ExtensionContext.ActivateAddinExtensions (System.String id) [0x001b6] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-addins-0.6.2/_build/mono-addins-0.6.2/Mono.Addins/Mono.Addins/ExtensionContext.cs:890 
  at Mono.Addins.AddinEngine.ActivateAddin (System.String id) [0x00000] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-addins-0.6.2/_build/mono-addins-0.6.2/Mono.Addins/Mono.Addins/AddinEngine.cs:389 
  at Mono.Addins.Database.AddinDatabase.Update (IProgressStatus monitor, System.String domain) [0x0025b] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-addins-0.6.2/_build/mono-addins-0.6.2/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs:1078 
  at Mono.Addins.Database.AddinDatabase.Repair (IProgressStatus monitor, System.String domain) [0x00099] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-addins-0.6.2/_build/mono-addins-0.6.2/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs:1011 
  at Mono.Addins.AddinRegistry.Rebuild (IProgressStatus monitor) [0x00000] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-addins-0.6.2/_build/mono-addins-0.6.2/Mono.Addins/Mono.Addins/AddinRegistry.cs:626 
  at MonoDevelop.Ide.IdeStartup.Main (System.String[] args) [0x00089] in /Users/fejj/src/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:524 
  at MonoDevelop.Startup.MonoDevelopMain.Main (System.String[] args) [0x00000] in /Users/fejj/src/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:16
Comment 1 Lluis Sanchez 2015-08-21 06:23:50 UTC
Add-in registry is not rebuilt anymore.