Bug 4291 - NullReferenceException in UnderlineMarker.InternalDraw
Summary: NullReferenceException in UnderlineMarker.InternalDraw
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-04-06 09:00 UTC by Csaba Halász
Modified: 2012-04-06 12:17 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Csaba Halász 2012-04-06 09:00:57 UTC
Just found this in my logs. I am terribly sorry but don't know what I was doing at the time. Maybe the stack trace is useful as-is. I believe git revision was b411dcf7.

System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.TextEditor.UnderlineMarker.InternalDraw (Int32 markerStart, Int32 markerEnd, Mono.TextEditor.TextEditor editor, Cairo.Context cr, Pango.Layout layout, Boolean selected, Int32 startOffset, Int32 endOffset, Double y, Double startXPos, Double endXPos) [0x00045] in monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextMarker.cs:315
  at Mono.TextEditor.UnderlineMarker.Draw (Mono.TextEditor.TextEditor editor, Cairo.Context cr, Pango.Layout layout, Boolean selected, Int32 startOffset, Int32 endOffset, Double y, Double startXPos, Double endXPos) [0x0008a] in monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextMarker.cs:280
  at Mono.TextEditor.TextViewMargin.DrawLinePart (Cairo.Context cr, Mono.TextEditor.LineSegment line, Int32 lineNumber, Int32 logicalRulerColumn, Int32 offset, Int32 length, System.Double& pangoPosition, System.Boolean& isSelectionDrawn, Double y, Double maxX) [0x009cd] in monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs:1511
  at Mono.TextEditor.TextViewMargin.Draw (Cairo.Context cr, Rectangle area, Mono.TextEditor.LineSegment line, Int32 lineNr, Double x, Double y, Double _lineHeight) [0x0042d] in monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs:2241
  at Mono.TextEditor.TextEditor.RenderMargins (Cairo.Context cr, Cairo.Context textViewCr, Rectangle cairoRectangle) [0x000d7] in monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs:1608
Comment 1 Mike Krüger 2012-04-06 12:17:41 UTC
very, very strange. 

I suppressed it - it shouldn't happen anymore, but why that happened would be interresting.