Bug 16612 - System.ArgumentException: offset < 0
Summary: System.ArgumentException: offset < 0
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
: 17220 ()
Depends on:
Reported: 2013-12-05 05:21 UTC by Marek Safar
Modified: 2014-01-14 05:41 UTC (History)
2 users (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 Marek Safar 2013-12-05 05:21:03 UTC
System.ArgumentException: offset < 0
  at Mono.TextEditor.TextDocument.GetCharAt (Int32 offset) [0x0003c] in /Users/builder/data/lanes/monodevelop-lion-master/eecb549c/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/TextDocument.cs:340 
  at MonoDevelop.SourceEditor.ErrorMarker..ctor (Mono.TextEditor.TextDocument doc, ICSharpCode.NRefactory.TypeSystem.Error info, Mono.TextEditor.DocumentLine line) [0x00054] in /Users/builder/data/lanes/monodevelop-lion-master/eecb549c/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs:1726 
  at MonoDevelop.SourceEditor.SourceEditorWidget.UnderLineError (Mono.TextEditor.TextDocument doc, ICSharpCode.NRefactory.TypeSystem.Error info) [0x00054] in /Users/builder/data/lanes/monodevelop-lion-master/eecb549c/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs:656 
  at MonoDevelop.SourceEditor.SourceEditorWidget+<UpdateErrorUndelines>c__AnonStoreyE.<>m__35 () [0x00083] in /Users/builder/data/lanes/monodevelop-lion-master/eecb549c/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs:633 
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2013-12-06 01:08:33 UTC
Comment 2 Mike Krüger 2014-01-14 05:41:57 UTC
*** Bug 17220 has been marked as a duplicate of this bug. ***