Visual Studio 2015 is crashing when searching from Solution Explorer. Is this known bug ? is there any workaround.
I am using Microsoft Visual Studio Professional 20
This could likely be because of 'Lightweight Solution Loading' is enabled. I had the same issue and when I turned it off it worked, you can do this on the main solution by right clicking and getting the list of the options.
There's an active bug for this issue.
You can read up on it here
From the comments, you can see that Safe Mode might have some success, but no official workaround is to be found in the bug report as of yet.
I'm the one who filed the BUG in connect. It has three attached files, two crash dumps and one stack trace obtained from the event viewer. If you look at the connect BUG, you will see that another person can repro the bug and this case will be the third (please click on repro "I can too").
I have an active thread on MSDN community forums where you can watch the complete stack trace of two crashs, in text format here.
I'm a member of a developer team looking to move forward to VS 2015 and we need to migrate these existing projects, so I'm stuck. Any help will be greatly appreciated.
What I have tried so far: reset user settings, delete the SUO files, with no success. Safe mode works, so it's probably an extension (not sure if it's an extension in VS 2012 or 2015, as in 2015 there are no extensions that I can disable), I'm trying now the last suggestion from the MSDN thread and I will post here if I can solve this.
MC
One of our team of developers found the BUG and how to reproduce it in a new project in VS 2015:
Create a new VB windows forms project
Add a class like this:
Public class1
Public event Test(byval a as string)
End Class
Save files and project
Go to Solution Explorer and search Test
VS Crashs
If you declare the event as EventHandler it doesn't crash. The VS 2012 Solutions we are migrating use several events declared like this, the files I found to cause the crash contained events declared like this.
So it's a BUG, you can repro it. Also, one of the projects contains 20k files and VS keeps freezing every 5 minutes, we are investigating that issue too.
I commented the connect issue Here and I'm posting a new one.
WORKAROUND: declare delegates like:
Public Delegate Sub MyEventHandler(ByVal s As String)
And use like:
Public Event test As MyEventHandler
Credits go to Kirill from our team.
Regards,
MC PD: I don't know why I can't edit my previous answer, so here's this one.