Bug 1723 - Assembly Browser throws exception when changing from IL/C# to Summary
Summary: Assembly Browser throws exception when changing from IL/C# to Summary
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.8
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-10-27 10:51 UTC by Alexander Riman
Modified: 2012-04-11 03:38 UTC (History)
4 users (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 Alexander Riman 2011-10-27 10:51:28 UTC
Assembly Browser throws exception when changing from IL/C# to Summary:
----------------------------------------------------------------
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 Mono.TextEditor.TextEditor.RedrawLine (Int32 logicalLine) [0x0000c] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:708 
  at Mono.TextEditor.LineUpdate.Update (Mono.TextEditor.TextEditor editor) [0x00000] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/DocumentUpdateRequest.cs:70 
  at Mono.TextEditor.TextEditor.DocumentUpdatedHandler (System.Object sender, System.EventArgs args) [0x0001d] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:573 
  at Mono.TextEditor.Document.CommitDocumentUpdate () [0x0001c] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1318 
  at Mono.TextEditor.Document.CommitLineUpdate (Int32 line) [0x0000c] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1332 
  at Mono.TextEditor.Document.CommitLineUpdate (Mono.TextEditor.LineSegment line) [0x00000] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1337 
  at Mono.TextEditor.TextEditor.HandleTextEditorDataDocumentMarkerChange (System.Object sender, Mono.TextEditor.TextMarkerEvent e) [0x0003f] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:145 
  at Mono.TextEditor.Document.OnMarkerRemoved (Mono.TextEditor.TextMarkerEvent e) [0x0000d] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1157 
  at Mono.TextEditor.Document.RemoveMarker (Mono.TextEditor.TextMarker marker, Boolean updateLine) [0x00071] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1225 
  at Mono.TextEditor.Document.RemoveMarker (Mono.TextEditor.TextMarker marker) [0x00000] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1204 
  at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.<ClearReferenceSegment>m__B (Mono.TextEditor.UnderlineMarker m) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:848 
  at System.Collections.Generic.List`1[Mono.TextEditor.UnderlineMarker].ForEach (System.Action`1 action) [0x00018] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Collections.Generic/List.cs:360 
  at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.ClearReferenceSegment () [0x00007] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:848 
  at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.FillInspectLabel () [0x0003b] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:879 
  at MonoDevelop.AssemblyBrowser.AssemblyBrowserWidget.LanguageComboboxhandleChanged (System.Object sender, System.EventArgs e) [0x0002c] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyBrowserWidget.cs:289 
  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 /private/tmp/monobuild/build/BUILD/mono-2.10.6/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 /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Reflection/MonoMethod.cs:234 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Reflection/MethodBase.cs:96 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000bf] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System/Delegate.cs:408 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System/MulticastDelegate.cs:70 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System/Delegate.cs:382 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0 
----------------------------------------------------------------

To view Summary I need to close Assembly Browser and open it again.
Comment 1 Mike Krüger 2012-04-11 03:38:02 UTC
Should be fixed in master.