I'm honestly not even sure when I installed libgit2sharp
, but, when I open any solution, Visual Studio 2015 crashes. The following errors are logged to the event viewer:
Faulting application name: devenv.exe, version: 14.0.25123.0, time stamp: 0x56f22f32 Faulting module name: git2-msvstfs.DLL, version: 14.0.25110.0, time stamp: 0x56e1f02b Exception code: 0xc0000005 Fault offset: 0x00033710 Faulting process id: 0xfbc Faulting application start time: 0x01d1b5d840a79b09 Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe Faulting module path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\git2-msvstfs.DLL Report Id: e7833424-fc8b-4d26-b61b-c824861a3168 Faulting package full name: Faulting package-relative application ID:
and
Application: devenv.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at LibGit2Sharp.Core.NativeMethods.git_status_list_new(LibGit2Sharp.Core.Handles.StatusListSafeHandle ByRef, LibGit2Sharp.Core.Handles.RepositorySafeHandle, LibGit2Sharp.Core.GitStatusOptions) at LibGit2Sharp.RepositoryStatusWithDetails..ctor(LibGit2Sharp.Repository, LibGit2Sharp.StatusOptions) at LibGit2Sharp.RepositoryExtensions.RetrieveStatusWithDetails(LibGit2Sharp.IRepository, LibGit2Sharp.StatusOptions) at Microsoft.TeamFoundation.Git.CoreServices.Extensions.GitExtensions.RetrieveStatusWithDetailsWithRenameDetection(LibGit2Sharp.IRepository) at Microsoft.TeamFoundation.Git.CoreServices.SccStatusService+RepositoryStatusMonitor+<>c__DisplayClass18_1.b__0() at Microsoft.TeamFoundation.Git.CoreServices.SccStatusService+RepositoryStatusMonitor.RetryLoop(System.Action, Int32) at Microsoft.TeamFoundation.Git.CoreServices.SccStatusService+RepositoryStatusMonitor.Refresh(Boolean ByRef, Boolean ByRef) at Microsoft.TeamFoundation.Git.CoreServices.SccStatusService+RepositoryStatusMonitor.RefreshIfNeeded(Boolean ByRef, Boolean ByRef) at Microsoft.TeamFoundation.Git.CoreServices.SccStatusService.Refresh(Boolean ByRef, Boolean ByRef, Boolean ByRef, System.Collections.Generic.List`1 ByRef) at Microsoft.TeamFoundation.Git.CoreServices.SccStatusService.RefreshIfNeeded() at Microsoft.TeamFoundation.Git.CoreServices.SccStatusService.QueuedActionCallback(System.Object) at Microsoft.TeamFoundation.Git.CoreServices.QueuedActionLimiter.DeliverAction(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
I've never seen this before so any direction is appreciated:
- What mechanism is breaking - why is RetrieveStatusWithDetails even being called?
- How do I investigate the root cause and correct this?
- Have I found a defect in
libgit2sharp
?