Bug 4883 - Formatting a document multiple times in a row results in a fatal crash
Summary: Formatting a document multiple times in a row results in a fatal crash
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.9.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-05-04 10:39 UTC by PJ
Modified: 2012-05-04 11:15 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 PJ 2012-05-04 10:39:42 UTC
Hit CMD I (Mac) a few times in a row (rapidly):

System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.TextEditor.HeightTree.LogicalToVisualLine (Int32 logicalLine) [0x00009] in /Users/builder/data/lanes/monodevelop-mac-master/aea1769d/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/HeightTree.cs:343 
  at Mono.TextEditor.TextEditorData.LogicalToVisualLine (Int32 logicalLine) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-master/aea1769d/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditorData.cs:1373 
  at Mono.TextEditor.TextEditor.UpdateAdjustments () [0x00000] in /Users/builder/data/lanes/monodevelop-mac-master/aea1769d/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs:1651 
  at Mono.TextEditor.TextEditor.OnExposeEvent (Gdk.EventExpose e) [0x0000d] in /Users/builder/data/lanes/monodevelop-mac-master/aea1769d/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs:1665 
  at Gtk.Widget.exposeevent_cb (IntPtr widget, IntPtr evnt) [0x00000] in <filename unknown>:0 



Leaving as normal because the repetition rate needed to experience the issue is high.
Comment 1 PJ 2012-05-04 10:40:53 UTC
Whoops. I mean Control + I (whatever your keybinding is for 'Format Document')
Comment 2 Mike Krüger 2012-05-04 11:15:23 UTC
The height tree from master doesn't do that - I backported it to the branch.