Bug 16126 - When searching in the whole solution, if there are many search matches (e.g. over 500-1000) an error is displayed
Summary: When searching in the whole solution, if there are many search matches (e.g. ...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.13
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-11-11 18:34 UTC by Koshka
Modified: 2013-11-13 01:15 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 Koshka 2013-11-11 18:34:59 UTC
I discovered this bug when searching in a relatively big solution for "using" or "int". It started showing when there are over 500-1000 search results. It's unlikely that it is because of lack of RAM, I have 16 GB. Something must be wrong with the Search Results widget. If I restart the program, the error is still displayed.

Here is error text:

System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.TextEditor.TextEditorData.GetMarkup (Int32 offset, Int32 length, Boolean removeIndent, Boolean useColors, Boolean replaceTabs) [0x000a5] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.13-branch/07afec66/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditorData.cs:302 
  at MonoDevelop.Ide.FindInFiles.SearchResultWidget.ResultTextDataFunc (Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel model, TreeIter iter) [0x001c4] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.13-branch/07afec66/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.FindInFiles/SearchResultWidget.cs:486 
  at GtkSharp.TreeCellDataFuncWrapper.NativeCallback (IntPtr tree_column, IntPtr cell, IntPtr tree_model, IntPtr iter, IntPtr data) [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2013-11-12 10:33:54 UTC
I can't reproduce it - but I implemented a work around for it.

I tested the monodevelop solution - but maybe that bug already got fixed (4.2 is way ahead of 4.0.13) - but anyways the code is now more robust :)

/fixed
Comment 2 Koshka 2013-11-13 01:05:02 UTC
Thank you! I updated Xamarin Studio to 4.2 and re-checked the issue, it still displays the following error message (with a bit different line number) when trying to search or when scrolling search results after closing the initial error message:

System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.TextEditor.TextEditorData.GetMarkup (Int32 offset, Int32 length, Boolean removeIndent, Boolean useColors, Boolean replaceTabs) [0x000a5] in /Users/builder/data/lanes/monodevelop-lion-license-sync/a37a8e0c/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditorData.cs:303 
  at MonoDevelop.Ide.FindInFiles.SearchResultWidget.ResultTextDataFunc (Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel model, TreeIter iter) [0x001c4] in /Users/builder/data/lanes/monodevelop-lion-license-sync/a37a8e0c/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.FindInFiles/SearchResultWidget.cs:486 
  at GtkSharp.TreeCellDataFuncWrapper.NativeCallback (IntPtr tree_column, IntPtr cell, IntPtr tree_model, IntPtr iter, IntPtr data) [0x00000] in <filename unknown>:0


Maybe it's related to that I have a MacBook Pro (beginning or mid 2011) or Mac OS X Mavericks?
Comment 3 Mike Krüger 2013-11-13 01:15:03 UTC
fixed.