Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AnkhSVN crash in Visual Studio 2017

[W10 Pro x64 v1709, Visual Studio 2017 Community 15.6.0, AnkhSVN 2.7.12815.35086]

I am getting a crash at VS startup of AnkhSVN in VS 2017. I believe this just started happening today - I don't remember it happening the last time I opened the IDE. Uninstall/reinstall of the extension doesn't help. Error msg when I attempt to open the Pending Changes window:

AnkhSVN Exception
An internal error occurred:
Object reference not set to an instance of an object.

Stack trace:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Ankh.UI.PendingChanges.PendingChangesToolControl.OnLoad(EventArgs e)
   at System.Windows.Forms.UserControl.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at Ankh.VSPackage.AnkhToolWindowPane.get_Window()
   at Microsoft.VisualStudio.Shell.Package.ToolWindowCreationResult..ctor(WindowPane window, UInt32 flags)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags, Object context, Guid persistenceGuid)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, Object context)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id)
   at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
   at Ankh.VSPackage.AnkhSvnPackage.ShowToolWindow(AnkhToolWindow toolWindow, Int32 id, Boolean create)
   at Ankh.VSPackage.AnkhSvnPackage.ShowToolWindow(AnkhToolWindow window)
   at Ankh.Commands.UI.ShowToolWindows.OnExecute(CommandEventArgs e)
   at Ankh.Commands.CommandMapItem.OnExecute(CommandEventArgs e)
   at Ankh.Commands.CommandMapper.Execute(AnkhCommand command, CommandEventArgs e)

Troubleshooting/repair suggestions?

like image 554
Conrad Avatar asked Mar 07 '18 15:03

Conrad


People also ask

Why is Visual Studio crashing?

If you experience crashes of Visual Studio, typically when working with a very large solution, your IDE might be out of virtual memory. Typical indicators of the problem include a "one or more errors occurred" message, "the process appears to be deadlocked" message, and OutOfMemory exception in a crash dump.


1 Answers

This appears to be an issue introduced in the 15.6 release of Visual Studio 2017 - I see the same thing in Visual Studio 2017 Professional v15.6.

There is an open issue here: https://developercommunity.visualstudio.com/content/problem/207735/ankhsvn-2712815-failed-to-load-pending-changes-vie.html that is marked as under investigation. I see 58 people are following the issue, so hopefully it will get some traction and be fixed soon.

like image 104
AlexG Avatar answered Sep 20 '22 22:09

AlexG