Visual Studio 2010 - Exception thrown on compile error
See original GitHub issueThe latest 2.2.x updates seem to have broken something in Visual Studio 2010. When I get a compile error there is a message box stating that an exception has been thrown. Below is an excerpt from the activity log when the error occurs.
ActivityLog.xml output:
<entry>
<record>423</record>
<time>2016/01/25 00:15:14.668</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.BrushesEqual(Brush brush, Brush other)
at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.IsEqual(TextFormattingRunProperties other)
at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.<>c__DisplayClass1.<FindOrCreateProperties>b__0(TextFormattingRunProperties other)
at System.Collections.Generic.List1.Find(Predicate
1 match)
at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.FindOrCreateProperties(TextFormattingRunProperties properties)
at Microsoft.VisualStudio.Text.Classification.Implementation.ClassificationFormatMap.CreateTFRPFromRD(ResourceDictionary dictionary)
at Microsoft.VisualStudio.Text.Classification.Implementation.ClassificationFormatMap.GetTextProperties(IClassificationType classificationType)
at Microsoft.VisualStudio.Text.Classification.Implementation.ViewSpecificFormatMap.GetTextProperties(IClassificationType classificationType)
at Microsoft.VisualStudio.Text.Formatting.Implementation.NormalizedSpanGenerator.CreateClassifiedRuns(SnapshotSpan span, IClassifier classifier, IClassificationFormatMap classificationFormatMap)
at Microsoft.VisualStudio.Text.Formatting.Implementation.NormalizedSpanGenerator.Create(ITextAndAdornmentCollection elements, ITextSnapshot sourceSnapshot, IClassifier classifier, IClassificationFormatMap classificationFormatMap)
at Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedLineSource.Format(ITextAndAdornmentCollection elements, ITextSnapshotLine line)
at Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedLineSource.FormatLineInVisualBuffer(ITextSnapshotLine visualLine)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.FormatSnapshotLine(ITextSnapshotLine visualLine)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.DoLayoutDown(ITextSnapshotLine visualLine, Double referenceLine, Double effectiveViewportHeight, Double& distanceBelowReferenceLine)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.DoCompleteLayout(SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportHeight, Double& referenceLine, Double& distanceAboveReferenceLine, Double& distanceBelowReferenceLine)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.InnerPerformLayout(SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportWidth, Double effectiveViewportHeight)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(ITextSnapshot newSnapshot, ITextSnapshot newVisualSnapshot, SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportWidth, Double effectiveViewportHeight)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(ITextSnapshot newSnapshot, ITextSnapshot newVisualSnapshot)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshot(TextSnapshotChangedEventArgs e)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshotOnUIThread(TextSnapshotChangedEventArgs e)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.OnVisualBufferChanged(Object sender, TextContentChangedEventArgs e)
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler1 eventHandlers, TArgs args)</description> </entry> <entry> <record>424</record> <time>2016/01/25 00:15:15.416</time> <type>Error</type> <source>Editor or Editor Extension</source> <description>System.NullReferenceException: Object reference not set to an instance of an object.
 at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.BrushesEqual(Brush brush, Brush other)
 at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.IsEqual(TextFormattingRunProperties other)
 at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.<>c__DisplayClass1.<FindOrCreateProperties>b__0(TextFormattingRunProperties other)
 at System.Collections.Generic.List
1.Find(Predicate1 match)
 at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.FindOrCreateProperties(TextFormattingRunProperties properties)
 at Microsoft.VisualStudio.Text.Classification.Implementation.ClassificationFormatMap.CreateTFRPFromRD(ResourceDictionary dictionary)
 at Microsoft.VisualStudio.Text.Classification.Implementation.ClassificationFormatMap.GetTextProperties(IClassificationType classificationType)
 at Microsoft.VisualStudio.Text.Classification.Implementation.ViewSpecificFormatMap.GetTextProperties(IClassificationType classificationType)
 at Microsoft.VisualStudio.Text.Formatting.Implementation.NormalizedSpanGenerator.CreateClassifiedRuns(SnapshotSpan span, IClassifier classifier, IClassificationFormatMap classificationFormatMap)
 at Microsoft.VisualStudio.Text.Formatting.Implementation.NormalizedSpanGenerator.Create(ITextAndAdornmentCollection elements, ITextSnapshot sourceSnapshot, IClassifier classifier, IClassificationFormatMap classificationFormatMap)
 at Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedLineSource.Format(ITextAndAdornmentCollection elements, ITextSnapshotLine line)
 at Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedLineSource.FormatLineInVisualBuffer(ITextSnapshotLine visualLine)
 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.FormatSnapshotLine(ITextSnapshotLine visualLine)
 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.DoLayoutDown(ITextSnapshotLine visualLine, Double referenceLine, Double effectiveViewportHeight, Double& distanceBelowReferenceLine)
 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.DoCompleteLayout(SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportHeight, Double& referenceLine, Double& distanceAboveReferenceLine, Double& distanceBelowReferenceLine)
 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.InnerPerformLayout(SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportWidth, Double effectiveViewportHeight)
 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(ITextSnapshot newSnapshot, ITextSnapshot newVisualSnapshot, SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportWidth, Double effectiveViewportHeight)
 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(ITextSnapshot newSnapshot, ITextSnapshot newVisualSnapshot)
 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshot(TextSnapshotChangedEventArgs e)
 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshotOnUIThread(TextSnapshotChangedEventArgs e)
 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.OnVisualBufferChanged(Object sender, TextContentChangedEventArgs e)
 at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler
1 eventHandlers, TArgs args)</description>
</entry>
<entry>
<record>425</record>
<time>2016/01/25 00:15:20.920</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.BrushesEqual(Brush brush, Brush other)
at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.IsEqual(TextFormattingRunProperties other)
at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.<>c__DisplayClass1.<FindOrCreateProperties>b__0(TextFormattingRunProperties other)
at System.Collections.Generic.List1.Find(Predicate
1 match)
at Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties.FindOrCreateProperties(TextFormattingRunProperties properties)
at Microsoft.VisualStudio.Text.Classification.Implementation.ClassificationFormatMap.CreateTFRPFromRD(ResourceDictionary dictionary)
at Microsoft.VisualStudio.Text.Classification.Implementation.ClassificationFormatMap.GetTextProperties(IClassificationType classificationType)
at Microsoft.VisualStudio.Text.Classification.Implementation.ViewSpecificFormatMap.GetTextProperties(IClassificationType classificationType)
at Microsoft.VisualStudio.Text.Formatting.Implementation.NormalizedSpanGenerator.CreateClassifiedRuns(SnapshotSpan span, IClassifier classifier, IClassificationFormatMap classificationFormatMap)
at Microsoft.VisualStudio.Text.Formatting.Implementation.NormalizedSpanGenerator.Create(ITextAndAdornmentCollection elements, ITextSnapshot sourceSnapshot, IClassifier classifier, IClassificationFormatMap classificationFormatMap)
at Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedLineSource.Format(ITextAndAdornmentCollection elements, ITextSnapshotLine line)
at Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedLineSource.FormatLineInVisualBuffer(ITextSnapshotLine visualLine)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.FormatSnapshotLine(ITextSnapshotLine visualLine)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.DoLayoutDown(ITextSnapshotLine visualLine, Double referenceLine, Double effectiveViewportHeight, Double& distanceBelowReferenceLine)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.DoCompleteLayout(SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportHeight, Double& referenceLine, Double& distanceAboveReferenceLine, Double& distanceBelowReferenceLine)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.InnerPerformLayout(SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportWidth, Double effectiveViewportHeight)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(ITextSnapshot newSnapshot, ITextSnapshot newVisualSnapshot, SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportWidth, Double effectiveViewportHeight)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(ITextSnapshot newSnapshot, ITextSnapshot newVisualSnapshot)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshot(TextSnapshotChangedEventArgs e)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshotOnUIThread(TextSnapshotChangedEventArgs e)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.OnVisualBufferChanged(Object sender, TextContentChangedEventArgs e)
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description>
</entry>
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
The issue has been fixed in VisualAssistX in build 2093 ([VS2010] Fix for crash when VSColorOutput extension is enabled. (case=94928)). See http://www.wholetomato.com/features/whats-new.asp
Thanks!