Bug 1789 - Exception while editing text: HashSet have been modified
Summary: Exception while editing text: HashSet have been modified
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.8
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-10-31 04:54 UTC by René Ruppert
Modified: 2011-10-31 07:41 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 René Ruppert 2011-10-31 04:54:54 UTC
Happened while inserting a line of code and typing a slash Cannot reproduce.

System.InvalidOperationException: HashSet have been modified while it was iterated over
  at System.Collections.Generic.HashSet`1+Enumerator[Mono.TextEditor.FoldSegment].CheckState () [0x00033] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/System.Core/System.Collections.Generic/HashSet.cs:680 
  at System.Collections.Generic.HashSet`1+Enumerator[Mono.TextEditor.FoldSegment].MoveNext () [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/System.Core/System.Collections.Generic/HashSet.cs:633 
  at Mono.TextEditor.HeightTree.Rebuild () [0x00143] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/HeightTree.cs:109 
  at Mono.TextEditor.TextEditor.UpdateLinesOnTextMarkerHeightChange (System.Object sender, Mono.TextEditor.LineEventArgs e) [0x00000] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:2696 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_LineEventArgs (object,Mono.TextEditor.LineEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_LineEventArgs (object,Mono.TextEditor.LineEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_LineEventArgs (object,Mono.TextEditor.LineEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_LineEventArgs (object,Mono.TextEditor.LineEventArgs)
  at Mono.TextEditor.Document.SplitterLineSegmentTreeLineChanged (System.Object sender, Mono.TextEditor.LineEventArgs e) [0x0000b] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:130 
  at Mono.TextEditor.LineSplitter.OnLineChanged (Mono.TextEditor.LineEventArgs e) [0x0000d] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/LineSplitter.cs:393 
  at Mono.TextEditor.LineSplitter.ChangeLength (Mono.TextEditor.TreeNode line, Int32 newLength, Int32 delimiterLength) [0x0000e] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/LineSplitter.cs:385 
  at Mono.TextEditor.LineSplitter.ChangeLength (Mono.TextEditor.TreeNode line, Int32 newLength) [0x00000] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/LineSplitter.cs:378 
  at Mono.TextEditor.LineSplitter.TextInsert (Int32 offset, System.String text) [0x000b2] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/LineSplitter.cs:201 
  at Mono.TextEditor.LineSplitter.TextReplaced (System.Object sender, Mono.TextEditor.ReplaceEventArgs args) [0x0002e] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/LineSplitter.cs:98 
  at Mono.TextEditor.Document.Mono.TextEditor.IBuffer.Replace (Int32 offset, Int32 count, System.String value) [0x000f0] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:228 
  at Mono.TextEditor.TextEditorData.Replace (Int32 offset, Int32 count, System.String value) [0x00009] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditorData.cs:269 
  at Mono.TextEditor.TextEditorData.Insert (Int32 offset, System.String value) [0x00000] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditorData.cs:209 
  at Mono.TextEditor.EditMode.InsertCharacter (UInt32 unicodeKey) [0x00323] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/EditMode.cs:139 
  at Mono.TextEditor.SimpleEditMode.HandleKeypress (Key key, UInt32 unicodeKey, ModifierType modifier) [0x0003c] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/SimpleEditMode.cs:397 
  at Mono.TextEditor.EditMode.InternalHandleKeypress (Mono.TextEditor.TextEditor editor, Mono.TextEditor.TextEditorData data, Key key, UInt32 unicodeChar, ModifierType modifier) [0x0000e] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/EditMode.cs:48 
  at Mono.TextEditor.TextEditor.SimulateKeyPress (Key key, UInt32 unicodeChar, ModifierType modifier) [0x00008] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:827 
  at MonoDevelop.SourceEditor.SourceEditorWidget.MonoDevelop.Ide.Gui.Content.ITextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs:126 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.DocFood.DocFoodTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00060] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs:69 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.CSharp.Formatting.CSharpTextEditorIndentation.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00376] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/CSharpTextEditorIndentation.cs:263 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x0005a] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:94 
  at MonoDevelop.CSharp.Completion.CSharpTextEditorCompletion.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpTextEditorCompletion.cs:178 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:257
Comment 1 Mike Krüger 2011-10-31 07:41:28 UTC
fixed.