Bug 1837 - [New Resolver] Crash when closing a solution
Summary: [New Resolver] Crash when closing a solution
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-11-02 12:20 UTC by Lluis Sanchez
Modified: 2011-11-03 01:52 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 FIXED

Description Lluis Sanchez 2011-11-02 12:20:28 UTC
I got this crash when closing a solution (I had several solutions open):

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,ICSharpCode.NRefactory.TypeSystem.Implementation.SimpleProjectContent].Add (System.String key, ICSharpCode.NRefactory.TypeSystem.Implementation.SimpleProjectContent value) [0x00171] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:437 
  at MonoDevelop.TypeSystem.TypeSystemService.StoreSolutionCache (MonoDevelop.Projects.Solution solution) [0x0004c] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:336 
  at MonoDevelop.TypeSystem.TypeSystemService.Unload (MonoDevelop.Projects.WorkspaceItem item) [0x00088] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:473 
  at MonoDevelop.Ide.RootWorkspace.NotifyItemRemovedGui (MonoDevelop.Projects.WorkspaceItem item) [0x00093] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1062 
  at MonoDevelop.Ide.RootWorkspace.NotifyItemRemoved (MonoDevelop.Projects.WorkspaceItem item) [0x0001e] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1034 
  at MonoDevelop.Ide.RootWorkspaceItemCollection.RemoveItem (Int32 index) [0x0001a] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1435 
  at System.Collections.ObjectModel.Collection`1[MonoDevelop.Projects.WorkspaceItem].Remove (MonoDevelop.Projects.WorkspaceItem item) [0x00011] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Collections.ObjectModel/Collection.cs:127 
  at MonoDevelop.Ide.RootWorkspace.CloseWorkspaceItem (MonoDevelop.Projects.WorkspaceItem item) [0x00028] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:470 
  at MonoDevelop.Ide.Gui.Pads.ProjectPad.SolutionNodeCommandHandler.OnCloseItem () [0x0001e] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SolutionNodeBuilder.cs:359 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d5] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Reflection/MonoMethod.cs:226 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Reflection/MonoMethod.cs:234 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Reflection/MethodBase.cs:96 
  at MonoDevelop.Components.Commands.DefaultCommandHandler.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x00018] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1495 
  at MonoDevelop.Components.Commands.CustomCommandTargetAttribute.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x00000] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/CustomCommandTargetAttribute.cs:54 
  at MonoDevelop.Ide.Gui.Components.NodeCommandHandler+TransactedNodeHandlerAttribute.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x00026] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/NodeCommandHandler.cs:270 
  at MonoDevelop.Components.Commands.CustomCommandTargetAttribute.MonoDevelop.Components.Commands.ICommandTargetHandler.Run (System.Object target, MonoDevelop.Components.Commands.Command cmd) [0x00000] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/CustomCommandTargetAttribute.cs:44 
  at MonoDevelop.Components.Commands.CommandHandlerInfo.Run (System.Object cmdTarget, MonoDevelop.Components.Commands.Command cmd) [0x00017] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1383 
  at MonoDevelop.Components.Commands.CommandManager+<DispatchCommand>c__AnonStorey4A.<>m__55 () [0x0003d] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:597 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x0029e] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:614
Comment 1 Mike Krüger 2011-11-03 01:52:59 UTC
fixed.