Bug 14059 - Crash during file rename
Summary: Crash during file rename
Status: RESOLVED DUPLICATE of bug 14181
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: unspecified
Hardware: PC Linux
: Normal normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-08-18 01:36 UTC by Mike Krüger
Modified: 2013-08-22 19:25 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 DUPLICATE of bug 14181

Description Mike Krüger 2013-08-18 01:36:55 UTC
ERROR [2013-08-18 07:32:52Z]: An unhandled exception has occured. Terminating MonoDevelop? False
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> 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[MonoDevelop.Core.FilePath,MonoDevelop.Projects.ProjectFile].Add (FilePath key, MonoDevelop.Projects.ProjectFile value) [0x00163] in /build/mono/src/mono-3.0.7/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:450 
  at MonoDevelop.Projects.ProjectFileCollection.FilePathChanged (System.Object sender, MonoDevelop.Projects.ProjectFilePathChangedEventArgs e) [0x0001b] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectFileCollection.cs:147 
  at (wrapper delegate-invoke) System.EventHandler`1<MonoDevelop.Projects.ProjectFilePathChangedEventArgs>:invoke_void__this___object_TEventArgs (object,MonoDevelop.Projects.ProjectFilePathChangedEventArgs)
  at MonoDevelop.Projects.ProjectFile.OnPathChanged (FilePath oldPath, FilePath newPath, FilePath oldVirtualPath, FilePath newVirtualPath) [0x0000e] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectFile.cs:457 
  at MonoDevelop.Projects.ProjectFile.set_Name (System.String value) [0x000d3] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectFile.cs:113 
  at MonoDevelop.Projects.SolutionFolder.RenameFileInAllProjects (FilePath oldName, FilePath newName) [0x00075] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionFolder.cs:708 
  at MonoDevelop.Projects.SolutionFolder.RenameFileInProjects (FilePath sourceFile, FilePath targetFile) [0x00021] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionFolder.cs:697 
  at MonoDevelop.Ide.RootWorkspace.CheckFileRename (System.Object sender, MonoDevelop.Core.FileCopyEventArgs args) [0x00041] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs:1298 
  at __EventHandler`1_FileCopyEventArgs_DelegateFactory_2.Dispatch (System.Object ) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.GuiSyncContext.AsyncDispatch (MonoDevelop.Ide.StatefulMessageHandler cb, System.Object ob) [0x0000b] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/GuiSyncContext.cs:47 
  at __EventHandler`1_FileCopyEventArgs_DelegateFactory_2.ProxyCall (System.Object , MonoDevelop.Core.FileCopyEventArgs ) [0x00000] in <filename unknown>:0 
  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) [0x00054] in /build/mono/src/mono-3.0.7/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
Comment 1 Lluis Sanchez 2013-08-20 13:24:21 UTC
Jeff, seems that this is caused by your changes in the project collection.
Comment 2 Jeffrey Stedfast 2013-08-22 19:25:19 UTC

*** This bug has been marked as a duplicate of bug 14181 ***