Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Visualizer - View Directed Graph causes VS 2019 (16.3) to crash #397

Closed
jwooley opened this issue Oct 17, 2019 · 4 comments
Closed

Comments

@jwooley
Copy link

jwooley commented Oct 17, 2019

Version Used: 16.3.4

Steps to Reproduce:
Install the Visual Studio Extension Development workload
Add components for "Code Map" , "DGML Editor", and ".NET Compiler Platform SDK"
Open a C# Code file.
Open View -> Other Window -> Syntax Visualizer
Select a variable declaration statement in the C# code.
Right click on the node in the visualizer and select View Directed Syntax Graph.
Visual Studio crashes and reboots.

From the event log:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Resources.MissingManifestResourceException
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(System.String)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary2<System.String,System.Resources.ResourceSet>, Boolean, Boolean, System.Threading.StackCrawlMark ByRef) at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean, System.Threading.StackCrawlMark ByRef) at System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean) at System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo) at Roslyn.SyntaxVisualizer.DgmlHelper.My.Resources.Resources.get_SyntaxNodeLabel() at Roslyn.SyntaxVisualizer.DgmlHelper.SyntaxDgmlHelper.GetLabelForNode(Microsoft.CodeAnalysis.SyntaxNode) at Roslyn.SyntaxVisualizer.DgmlHelper.SyntaxDgmlHelper.ProcessNode(Roslyn.SyntaxVisualizer.DgmlHelper.SyntaxDgmlOptions, Microsoft.CodeAnalysis.SyntaxNode, System.Xml.Linq.XElement, Int32 ByRef, System.Xml.Linq.XElement, System.Xml.Linq.XElement, System.Collections.Generic.HashSet1<System.String>)
at Roslyn.SyntaxVisualizer.DgmlHelper.SyntaxDgmlHelper.ToDgml(Microsoft.CodeAnalysis.SyntaxNode, Roslyn.SyntaxVisualizer.DgmlHelper.SyntaxDgmlOptions)
at Roslyn.SyntaxVisualizer.Extension.SyntaxVisualizerContainer.DisplaySyntaxNodeDgml(Microsoft.CodeAnalysis.SyntaxNode)
at Roslyn.SyntaxVisualizer.Control.SyntaxVisualizerControl.DirectedSyntaxGraphMenuItem_Click(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

Expected Behavior:
Visualizer should appear

Actual Behavior:
VS Reboots

@jwooley
Copy link
Author

jwooley commented Oct 17, 2019

Also crashing on 16.4.0 preview 2.0.

@jmarolf jmarolf transferred this issue from dotnet/roslyn Oct 17, 2019
@FelixDamrau
Copy link

Still crashing in VS 16.5.4 and VS 16.6.0 preview 5

@bambom
Copy link

bambom commented May 7, 2020

still crashing now 。

@jmarolf
Copy link
Contributor

jmarolf commented Jun 4, 2020

fixed with #542

@jmarolf jmarolf closed this as completed Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants