dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.93k stars 4.02k forks source link

Attaching to InteractiveHost.exe hangs VS... #3680

Closed KevinH-MS closed 9 years ago

KevinH-MS commented 9 years ago
  1. Build Roslyn.sln and launch VS in RoslynDev
  2. Open C# Interactive Window
  3. Attach to InteractiveHost.exe

RESULTS: VS Hangs...

>   mscorlib.dll!System.IO.FileStream.ReadFileNative(Microsoft.Win32.SafeHandles.SafeFileHandle handle, byte[] bytes, int offset, int count, System.Threading.NativeOverlapped* overlapped, out int hr) Line 2511   C#
    mscorlib.dll!System.IO.FileStream.ReadCore(byte[] buffer, int offset, int count) Line 1587  C#
    mscorlib.dll!System.IO.FileStream.Read(byte[] array, int offset, int count) Line 1518   C#
    mscorlib.dll!System.IO.StreamReader.ReadBuffer(char[] userBuffer, int userOffset, int desiredChars, out bool readToUserBuffer) Line 663 C#
    mscorlib.dll!System.IO.StreamReader.Read(char[] buffer, int index, int count) Line 407  C#
    Roslyn.InteractiveFeatures.dll!Microsoft.CodeAnalysis.Interactive.InteractiveHost.RemoteService.ReadOutput(bool error) Line 92  C#
    Roslyn.InteractiveFeatures.dll!Microsoft.CodeAnalysis.Interactive.InteractiveHost.RemoteService..ctor.AnonymousMethod__6_1() Line 42    C#
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) Line 74    C#
    mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Line 954  C#
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Line 902  C#
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 891    C#
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() Line 111   C#
KevinH-MS commented 9 years ago

Hmmm... I can't seem to repro this on the latest bits. I'll re-open if I hit this again.

KevinH-MS commented 9 years ago

Finally repro'ed again...reactivating...

KevinH-MS commented 9 years ago

:disappointed: Moved to the latest VS 2015 build, and I can't repro again...