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

.Net Compiler Platform SDK: DGML Viewer Crashes Visual Studio #525

Closed
vsfeedback opened this issue May 4, 2020 · 1 comment
Closed

.Net Compiler Platform SDK: DGML Viewer Crashes Visual Studio #525

vsfeedback opened this issue May 4, 2020 · 1 comment

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


Steps to reproduce:

  1. Install the .Net Compiler Platform SDK
  2. Install the DGML Editor
  3. Open a C# file in Visual Studio
  4. Open the Syntax Visualizer
    5: Select a node, right-click and select "View Directed Syntax Graph"

Visual Studio crashes with a MissingManifestResourceException.

Caveat: This might be Visual Studio Professional, but although the DGML editor should not edit DGML files, shouldn't we be able to see the generated files from the compiler platform? At the very least Visual Studio shouldn't crash.

Exception 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.Dictionary`2<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.HashSet`1<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)


Original Comments

Visual Studio Feedback System on 5/3/2020, 11:53 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

@sharwell sharwell transferred this issue from dotnet/roslyn May 4, 2020
@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
Projects
None yet
Development

No branches or pull requests

3 participants