Bug 279 - Searching with split view shows lots of exceptions
Summary: Searching with split view shows lots of exceptions
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-08-12 07:01 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2011-08-15 01:15 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Exceptions thrown from just hitting Cmd+F once (24.81 KB, text/plain)
2011-08-12 07:01 UTC, Rolf Bjarne Kvinge [MSFT]
Details


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 Rolf Bjarne Kvinge [MSFT] 2011-08-12 07:01:38 UTC
Created attachment 114 [details]
Exceptions thrown from just hitting Cmd+F once

Repro:

Just split a view horizontally and try searching for something. Lots of exception dialogs show up.
Comment 1 Mike Krüger 2011-08-12 09:13:49 UTC
can't reproduce this one - I've applied a potential patch for it - can you update & try again ?

Re-open, if that happens again.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2011-08-12 10:51:25 UTC
It's still throwing exceptions, but far less.

/mono/ios/monodevelop/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SearchAndReplaceWidget.cs:100

Repro instructions now:

Open C# code file
Split view vertically
Click in left view
Cmd+F
type a search (anything)
Click in right view
Click in search bar's text box
Type a character

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.SourceEditor.SearchAndReplaceWidget.HandleViewTextEditorhandleSizeAllocated (System.Object o, Gtk.SizeAllocatedArgs args) [0x00046] in /mono/ios/monodevelop/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SearchAndReplaceWidget.cs:100 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d5] in /mono/main/git/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:226 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /mono/main/git/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:234 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /mono/main/git/mono/mcs/class/corlib/System.Reflection/MethodBase.cs:96 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000bf] in /mono/main/git/mono/mcs/class/corlib/System/Delegate.cs:408 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /mono/main/git/mono/mcs/class/corlib/System/MulticastDelegate.cs:70 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x0000b] in /mono/main/git/mono/mcs/class/corlib/System/MulticastDelegate.cs:68 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /mono/main/git/mono/mcs/class/corlib/System/Delegate.cs:382 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0004f] in /mono/main/git/gtk-sharp/glib/Signal.cs:195 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x0000c] in /mono/main/git/gtk-sharp/glib/SignalClosure.cs:118 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00144] in /mono/main/git/gtk-sharp/glib/SignalClosure.cs:159
Comment 3 Mike Krüger 2011-08-15 01:15:44 UTC
Ok now I understand why that happens :). 

fixed.