icsharpcode / SharpDevelop

#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
2.09k stars 772 forks source link

Crash when adding new folder/file to project #283

Closed dgrunwald closed 10 years ago

dgrunwald commented 10 years ago

From http://community.sharpdevelop.net/forums/t/20225.aspx:

Description

SharpDevelop crashes but can be recovered (continued) when adding a new folder or item to a project in the project explorer. The error occures after right-clicking the project (or sub-folder) and add new item/project via the context menu.

Error Message

SharpDevelop Version : 5.0.0.3602-alpha-840f3f5e
.NET Version         : 4.0.30319.34003
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : German (Germany) (de-DE)
Current UI language  : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 126680kb
GC Heap Memory       : 17683kb

Unhandled WPF exception
Exception thrown:
System.ComponentModel.Win32Exception (0x80004005): Das System kann die angegebene Datei nicht finden
   at ICSharpCode.SharpDevelop.ProcessRunner.CreateProcess(String lpApplicationName, StringBuilder lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, Boolean bInheritHandles, UInt32 dwCreationFlags, String lpEnvironment, String lpCurrentDirectory, STARTUPINFO& lpStartupInfo, PROCESS_INFORMATION& lpProcessInformation)
   at ICSharpCode.SharpDevelop.ProcessRunner.DoStart(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.StartCommandLine(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.Start(String program, String[ arguments)
   at ICSharpCode.SharpDevelop.ProcessRunner.<RunInOutputPadAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ICSharpCode.GitAddIn.RegisterEventsCommand.<AddFile>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
22:34:27.336 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent D:\Repos\thinkutils\TextLibrary\src\Assemblies\ThinkUtils.Text\Properties\AssemblyInfo.cs]
22:34:27.367 [1] DEBUG - Resolved (Line 32, Col 29) to
22:34:27.367 [1] DEBUG - ParseInformationUpdated D:\Repos\thinkutils\TextLibrary\src\Assemblies\ThinkUtils.Text\Properties\AssemblyInfo.cs (updated)
22:34:27.367 [1] DEBUG - Update Foldings
22:34:28.614 [1] DEBUG - Resolved (Line 32, Col 29) to
22:34:28.678 [1] DEBUG - Saving memento of '[AvalonEditViewContent D:\Repos\thinkutils\TextLibrary\src\Assemblies\ThinkUtils.Text\Properties\AssemblyInfo.cs]' to key '1e13ec5:D:\REPOS\THINKUTILS\TEXTLIBRARY\SRC\ASSEMBLIES\THINKUTILS.TEXT\PROPERTIES\ASSEMBLYINFO.CS'
22:34:28.710 [1] DEBUG - ActiveViewContentChanged to
22:34:28.710 [1] DEBUG - ActiveContentChanged to
22:34:28.710 [1] DEBUG - OpenedFileClosed: D:\Repos\thinkutils\TextLibrary\src\Assemblies\ThinkUtils.Text\Properties\AssemblyInfo.cs
22:34:28.711 [1] DEBUG - ActiveWorkbenchWindowChanged to
22:34:30.053 [1] INFO - CurrentProject changed to ThinkUtils.Text.Analysis
22:34:30.068 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
22:34:30.724 [1] INFO - CurrentProject changed to ThinkUtils.Text
22:34:31.443 [1] INFO - CurrentProject changed to null
22:37:09.709 [1] INFO - CurrentProject changed to ThinkUtils.Text
22:37:09.866 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.IClipboard
22:37:13.459 [26] DEBUG - Git: OverlayIconManager Thread started
22:37:13.506 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ComponentModel.Win32Exception (0x80004005): Das System kann die angegebene Datei nicht finden
   at ICSharpCode.SharpDevelop.ProcessRunner.CreateProcess(String lpApplicationName, StringBuilder lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, Boolean bInheritHandles, UInt32 dwCreationFlags, String lpEnvironment, String lpCurrentDirectory, STARTUPINFO& lpStartupInfo, PROCESS_INFORMATION& lpProcessInformation)
   at ICSharpCode.SharpDevelop.ProcessRunner.DoStart(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.StartCommandLine(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.Start(String program, String[ arguments)
   at ICSharpCode.SharpDevelop.ProcessRunner.<RunInOutputPadAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ICSharpCode.GitAddIn.RegisterEventsCommand.<AddFile>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
22:37:13.569 [26] DEBUG - Git: OverlayIconManager Thread finished
22:37:13.616 [1] WARN - Codon (AddSeparator) specified in the insertbefore of the [Codon: name = MenuItem, id = ManagePackages, addIn=D:\Tools\SharpDevelop\bin\..\AddIns\Misc\PackageManagement\PackageManagement.addin] codon does not exist!
22:37:13.616 [1] WARN - Codon (AddSeparator) specified in the insertbefore of the [Codon: name = MenuItem, id = RestorePackages, addIn=D:\Tools\SharpDevelop\bin\..\AddIns\Misc\PackageManagement\PackageManagement.addin] codon does not exist!
22:37:22.756 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ComponentModel.Win32Exception (0x80004005): Das System kann die angegebene Datei nicht finden
   at ICSharpCode.SharpDevelop.ProcessRunner.CreateProcess(String lpApplicationName, StringBuilder lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, Boolean bInheritHandles, UInt32 dwCreationFlags, String lpEnvironment, String lpCurrentDirectory, STARTUPINFO& lpStartupInfo, PROCESS_INFORMATION& lpProcessInformation)
   at ICSharpCode.SharpDevelop.ProcessRunner.DoStart(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.StartCommandLine(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.Start(String program, String[ arguments)
   at ICSharpCode.SharpDevelop.ProcessRunner.<RunInOutputPadAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ICSharpCode.GitAddIn.RegisterEventsCommand.<RenameFile>d__b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
22:37:38.803 [1] INFO - CurrentProject changed to ThinkUtils.Text.Analysis
22:37:40.788 [24] DEBUG - Git: OverlayIconManager Thread started
22:37:40.834 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ComponentModel.Win32Exception (0x80004005): Das System kann die angegebene Datei nicht finden
   at ICSharpCode.SharpDevelop.ProcessRunner.CreateProcess(String lpApplicationName, StringBuilder lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, Boolean bInheritHandles, UInt32 dwCreationFlags, String lpEnvironment, String lpCurrentDirectory, STARTUPINFO& lpStartupInfo, PROCESS_INFORMATION& lpProcessInformation)
   at ICSharpCode.SharpDevelop.ProcessRunner.DoStart(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.StartCommandLine(String commandLine)
   at ICSharpCode.SharpDevelop.ProcessRunner.Start(String program, String[ arguments)
   at ICSharpCode.SharpDevelop.ProcessRunner.<RunInOutputPadAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ICSharpCode.GitAddIn.RegisterEventsCommand.<AddFile>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Post-error application state information:
Installed 3rd party AddIns: [ThemeTool 0.0.0.0]
ProjectService.CurrentSolution: [Solution D:\Repos\thinkutils\TextLibrary\TextLibrary.sln with 2 projects]
ProjectService.CurrentProject: [CSharpProject: ThinkUtils.Text.Analysis]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
dgrunwald commented 10 years ago

I haven't tried reproducing this error yet; but it seems to be a problem with the Git integration; possibly depending on how git was installed (whether git.exe or git.cmd or nothing in the PATH).

ghost commented 10 years ago

You were right about Git integration, it wasn't on the PATH and the exception wasn't thrown anymore after I added it.