Visual Studio 2013 Update 4 Crashes On Startup – It Might Be GitExtensions' Fault

by Oliver 23. February 2015 22:49

Lately, I've been having a hard time with my Visual Studio installation because one day it just out of nowhere started crashing during startup.

Starting VS with the /SafeMode flag avoided the crash but wasn't of much help to do major work since all my R# syntax highlighting and refactoring tools are not available in safe mode.

First Try: Reset All Your Settings

The first time I encountered the problem I found this answer on stackoverflow.com  helpful which suggests to:

  1. Reset all your Visual Studio settings by calling devenv /resetsettings from a command line prompt or after hitting the Windows key.
  2. Delete the folders %LocalAppData%\Microsoft\VisualStudio and %LocalAppData%\Microsoft\VSCommon

Second Try: Uninstall GitExtensions

Today, VS started crashing again and I was just happy with resetting all of my fine-tuned settings AGAIN. Luckily, a google search brought up this thread on the NCrunch forum and since I use NCrunch for test execution I went to have a look

Here's what Simon had to say there:

I'm thinking the problem was a GIT plugin installed by GitExtensions - I've read other reports about it causing problems, so I've removed it and things seem stable so far.

To verify whether this was true in my case I just went ahead and uninstalled GitExtensions via the Control Panel – and Visual Studio would happily start again! What a relief.

But I Still Want To Use GitExtensions…

After uninstalling, go get the installer again (did you know there's a standalone version without msysgit and kdiff?) and during install unselect all the Visual Studio plugins like this:

image

UPDATE: Keep Even GitExtensions' VS Plugin!

A commenter to my answer to the VS crash problem on stackoverflow suggested that unchecking the option "Show current branch in Visual Studio" in GitExtensions under Tools –> Settings –> Appearance fixed the VS crashes for him:

git-ext-branch-vs

I used this hint to reactivate the GitExtensions VS plugin on my machine as well, because I use some of its features quite often.

Now, you should be good to go! I'll try to get back to work now while my VS is running…

Happy coding!

Comments (3) -

Steven Robichaud Canada
6/12/2015 4:12:36 PM #

Deleting the .suo file is normally sufficent to get visual studio running again. At least for my projects. A little note though is that this file might be hidden, I had two files with v.11 and v.12, the v.12 one was hidden and was the one I needed to delete. Then bam the project loaded properly.

Fred Belgium
11/1/2017 6:44:56 PM #

I don't have GitExtensions and devenv /resetsettings crashes too.

Fred Belgium
11/1/2017 6:47:12 PM #

Even devenv /safemode crashes in fact.

Comments are closed

About Oliver

shades-of-orange.com code blog logo I build web applications using ASP.NET and have a passion for javascript. Enjoy MVC 4 and Orchard CMS, and I do TDD whenever I can. I like clean code. Love to spend time with my wife and our children. My profile on Stack Exchange, a network of free, community-driven Q&A sites

About Anton

shades-of-orange.com code blog logo I'm a software developer at teamaton. I code in C# and work with MVC, Orchard, SpecFlow, Coypu and NHibernate. I enjoy beach volleyball, board games and Coke.