Bug 2382 - Cannot close MonoDevelop 2.9.1 without an exception
Summary: Cannot close MonoDevelop 2.9.1 without an exception
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: High major
Target Milestone: ---
Assignee: Mike Krüger
URL:
: 2374 2421 ()
Depends on:
Blocks:
 
Reported: 2011-12-07 06:37 UTC by Alan McGovern
Modified: 2012-01-02 02:29 UTC (History)
6 users (show)

Tags: resolver
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 Alan McGovern 2011-12-07 06:37:25 UTC
If I have the MonoDevelop solution open in MD 2.9.1 i get htis exception when closing it:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[MonoDevelop.Projects.Project,System.Int32].get_Item (MonoDevelop.Projects.Project key) [0x000a8] in /private/tmp/monobuild/build/BUILD/mono-2.10.7/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150 
  at MonoDevelop.TypeSystem.TypeSystemService.Unload (MonoDevelop.Projects.Project project) [0x0000c] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:699 
  at MonoDevelop.TypeSystem.TypeSystemService.Unload (MonoDevelop.Projects.WorkspaceItem item) [0x000a9] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:687 
  at MonoDevelop.TypeSystem.TypeSystemService.Unload (MonoDevelop.Projects.WorkspaceItem item) [0x0002a] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:680 
  at MonoDevelop.TypeSystem.TypeSystemService.Unload (MonoDevelop.Projects.WorkspaceItem item) [0x0002a] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:680 
  at MonoDevelop.Ide.RootWorkspace.NotifyItemRemovedGui (MonoDevelop.Projects.WorkspaceItem item) [0x00093] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1062 
  at MonoDevelop.Ide.RootWorkspace.NotifyItemRemoved (MonoDevelop.Projects.WorkspaceItem item) [0x0001e] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1034 
  at MonoDevelop.Ide.RootWorkspaceItemCollection.RemoveItem (Int32 index) [0x0001a] in /Users/alanmcgovern/Projects/monodevelop/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.7/mcs/class/corlib/System.Collections.ObjectModel/Collection.cs:127 
  at MonoDevelop.Ide.RootWorkspace.Close (Boolean saveWorkspacePreferencies, Boolean closeProjectFiles) [0x000f6] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:454
Comment 1 Alan McGovern 2011-12-07 20:53:35 UTC
Another related crash which was reported when using a MonoTouch project:


When I switch (open) to another solution, I got this error:
Could not close solution '<name>'.

System.ArgumentNullException: Argument cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2[MonoDevelop.TypeSystem.TypeSystemService+ProjectContentWrapper,MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo].Remove (MonoDevelop.TypeSystem.ProjectContentWrapper key) [0x00170] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:610 
at MonoDevelop.MacDev.ObjCIntegration.NSObjectInfoService.HandleDomUnloaded (System.Object sender, MonoDevelop.Projects.ProjectEventArgs e) [0x00047] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectInfoService.cs:130 
at MonoDevelop.TypeSystem.TypeSystemService.OnProjectUnloaded (MonoDevelop.Projects.ProjectEventArgs e) [0x0000c] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:719 
at MonoDevelop.TypeSystem.TypeSystemService.Unload (MonoDevelop.Projects.Project project) [0x000a1] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:709 
at MonoDevelop.TypeSystem.TypeSystemService.Unload (MonoDevelop.Projects.WorkspaceItem item) [0x000a9] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:687 
at MonoDevelop.Ide.RootWorkspace.NotifyItemRemovedGui (MonoDevelop.Projects.WorkspaceItem item) [0x00093] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1062 
at MonoDevelop.Ide.RootWorkspace.NotifyItemRemoved (MonoDevelop.Projects.WorkspaceItem item) [0x0001e] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1034 
at MonoDevelop.Ide.RootWorkspaceItemCollection.RemoveItem (Int32 index) [0x0001a] in /private/tmp/source/monodevelop/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.Close (Boolean saveWorkspacePreferencies, Boolean closeProjectFiles) [0x000f6] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:454 

But after this switching continues ok.

MonoDevelop: 2.9.1
Runtime: Mono 2.10.6 (tarball Fri Sep 16 00:13:06 EDT 2011)
Operating System: Mac OSX (Unix 10.8.0.0)
Distributor: Xamarin
Comment 2 Alan McGovern 2011-12-08 12:11:49 UTC
*** Bug 2421 has been marked as a duplicate of this bug. ***
Comment 3 Alan McGovern 2011-12-08 12:11:54 UTC
*** Bug 2374 has been marked as a duplicate of this bug. ***
Comment 4 Mike Krüger 2011-12-09 03:19:45 UTC
fixed.
Comment 5 Atin 2011-12-29 02:07:10 UTC
We don't get any error while closing the Mono develop. Please close this issue.

Environments:
MAC 10.7
Mono Develop 2.8.5 Stable.
Mono Touch 5.0.4 Stable
Mono Framework 2.0.7 Beta
Comment 6 Josh Handel 2011-12-29 08:33:21 UTC
When will this fix be pushed out? I downgraded to 2.8.5 and am waiting to upgrade back to 2.9.1 when this issue is released.

Thanks
Josh
Comment 7 Alan McGovern 2011-12-29 09:43:24 UTC
We have no firm deadlines on when the next 2.9 beta will be released. It should be some time in January, but I don't know more than that.
Comment 8 Mike Krüger 2012-01-02 02:29:34 UTC
2.9.1 is not really an "upgrade" to 2.8.5.

I don't know why it was released to public ... I thought it would only be used internally for us -> 2.9.1 is not for everyday work. It contains some really annoying erros (most are fixed - but some are not).