Bug 37217 - IndexOutOfRangeException in text editor
Summary: IndexOutOfRangeException in text editor
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2015-12-22 00:48 UTC by Mikayla Hutchinson [MSFT]
Modified: 2016-01-04 13:07 UTC (History)
1 user (show)

Tags:
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:
Status:
RESOLVED FIXED

Description Mikayla Hutchinson [MSFT] 2015-12-22 00:48:55 UTC
ERROR [2015-12-22 00:09:59Z]: An unhandled exception has occured. Terminating Xamarin Studio? False
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at Mono.TextEditor.Utils.ImmutableText.FindLeaf (Int32 index, Int32 offset) [0x00070] in /Users/michael/Mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor.Utils/ImmutableText.cs:466 
  at Mono.TextEditor.Utils.ImmutableText.get_Item (Int32 index) [0x00050] in /Users/michael/Mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor.Utils/ImmutableText.cs:121 
  at Mono.TextEditor.TextDocument.GetCharAt (Int32 offset) [0x00000] in /Users/michael/Mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/TextDocument.cs:373 
  at MonoDevelop.SourceEditor.Wrappers.TextDocumentWrapper.MonoDevelop.Core.Text.ITextSource.GetCharAt (Int32 offset) [0x00000] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.Wrappers/ITextDocumentWrapper.cs:349 
  at MonoDevelop.Ide.Editor.TextEditor.GetCharAt (Int32 offset) [0x00000] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs:707 
  at MonoDevelop.Ide.Editor.TextMarkerFactory.CreateErrorMarker (MonoDevelop.Ide.Editor.TextEditor editor, MonoDevelop.Ide.TypeSystem.Error info) [0x00082] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextMarkerFactory.cs:118 
  at MonoDevelop.Ide.Editor.TextEditorViewContent.UnderLineError (MonoDevelop.Ide.TypeSystem.Error info) [0x00000] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditorViewContent.cs:203 
  at MonoDevelop.Ide.Editor.TextEditorViewContent+<UpdateErrorUndelines>c__async0+<UpdateErrorUndelines>c__AnonStorey6.<>m__1 () [0x0005b] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditorViewContent.cs:228 
  at GLib.Timeout+TimeoutProxy.Handler () [0x0000f] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/gtk-sharp-2.12.21/glib/Timeout.cs:70
Comment 1 xamarin-release-manager 2016-01-04 13:07:24 UTC
Fixed in version 6.0.0.2659 (master)

Author: Mike Kr??ger
Commit: 888c49861114c235b7a624e097db4f1baa116da0 (mono/monodevelop)