roslyn: Blocker: VS 2015 Update 3 - complete freeze / crash when editing code files (intellisense)

This is a real blocker issue for my team. Since update 3, we cannot edit certain files in our solution anymore - visual studio completely freezes when changing code and then after several seconds it crashes.

This is the output of the windows event log:

Faulting application name: devenv.exe, version: 14.0.25420.1, time stamp: 0x57685d85
Faulting module name: Microsoft.CodeAnalysis.CSharp.ni.dll, version: 1.3.1.60616, time stamp: 0xac5e790e
Exception code: 0xc00000fd
Fault offset: 0x002ced15
Faulting process ID: 0x1414
Faulting application start time: 0x01d1d365a3e416c5
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Faulting module path: C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\Microsoft.C1d3c2215#\f217b46a2e086bed6974523572037c2c\Microsoft.CodeAnalysis.CSharp.ni.dll
Report ID: 72eedbbc-cd10-4a81-aa31-5684bf1a1bc8
Faulting package full name: 
Faulting package-relative application ID: 

Unfortunately I have not been able the create a minimal repro yet (in a new project), It seems to only occur in specific file/project constellations.

Question: Is this issue known? Has somebody been able to provide a minimal repro? Our current workaround is to edit these files in Notepad++ … which sucks as you can imagine 😕

One of my team-members already tried to downgrade to Update2 which resulted in a disaster … (TLDR: Complete reinstall of windows was necessary because everything was broken afterwards)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 4
  • Comments: 31 (8 by maintainers)

Most upvoted comments

The original stack overflow is fixed with #12311, and the microupdate containing that fix is live at https://msdn.microsoft.com/library/mt752379.

Our team is experiencing the same problem. We have downgraded to update 2.

The crash is a StackOverflowException, with this stacktrace:

>   mscorlib.dll!System.Text.StringBuilder.ExpandByABlock(int minBlockCharCount)    Unknown
    mscorlib.dll!System.Text.StringBuilder.Append(char* value, int valueCount)  Unknown
    mscorlib.dll!System.Text.StringBuilder.AppendHelper(string value)   Unknown
    mscorlib.dll!System.Text.StringBuilder.Append(string value) Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.VisitNamedType(Microsoft.CodeAnalysis.INamedTypeSymbol symbol)  Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.Visit(Microsoft.CodeAnalysis.ISymbol symbol)    Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.VisitNamedType(Microsoft.CodeAnalysis.INamedTypeSymbol symbol)  Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.Visit(Microsoft.CodeAnalysis.ISymbol symbol)    Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.VisitTypeParameter(Microsoft.CodeAnalysis.ITypeParameterSymbol symbol)  Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.Visit(Microsoft.CodeAnalysis.ISymbol symbol)    Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.EncodeGenericTypeInfo(Microsoft.CodeAnalysis.INamedTypeSymbol symbol)   Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.VisitNamedType(Microsoft.CodeAnalysis.INamedTypeSymbol symbol)  Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.Visit(Microsoft.CodeAnalysis.ISymbol symbol)    Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.VisitTypeParameter(Microsoft.CodeAnalysis.ITypeParameterSymbol symbol)  Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.Visit(Microsoft.CodeAnalysis.ISymbol symbol)    Unknown
    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.SymbolId.Generator.EncodeGenericTypeInfo(Microsoft.CodeAnalysis.INamedTypeSymbol symbol)   Unknown

@xeneo I feel your pain so I have uploaded my self builded vsix. You can download it here: Roslyn.VisualStudio.Setup.vsix (MD5: 33e4982535aa4903cfc53064ec8036ad) Just install it, restart vs, and the bug will be gone.

However, @davidroth - I’m not sure that your issue is the same, since your crash is in Microsoft.CodeAnalysis.CSharp.ni.dll, and this stackoverflow is in Microsoft.CodeAnalysis.Workspaces.dll (usually).

@davidroth Can you post the callstack from the “.NET Runtime” event or the info from the Windows Error Reporting (event id 1001) right around the time of the crash?