Bug 13965 - Xamarin Studio crashed with exception when trying to display context menu.
Summary: Xamarin Studio crashed with exception when trying to display context menu.
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.1
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-08-14 02:03 UTC by César
Modified: 2015-08-27 06:40 UTC (History)
2 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 César 2013-08-14 02:03:59 UTC
Steps to reproduce:

1. Install and run XS 4.1.7 (build 87)
2. Check out the fsharpbinding source code from github: git clone git@github.com:fsharp/fsharpbinding.git
3. Open the solution with Xamarin Studio
4. Expand the FSharp.CompilerBinding project.
5. Open the FSharpCompiler.fs file
6. Find the "type Position = int * int" declaration.
7. Right click on the "Position" word.
8. Confirm that Xamarin Studio crashes with the following  stack trace:

System.NullReferenceException: Object reference not set to an instance of an object

Server stack trace: 
  at MonoDevelop.Ide.MessageService+InternalMessageService.ShowException (Gtk.Window parent, System.String title, System.String message, System.Exception e, MonoDevelop.Ide.AlertButton[] buttons) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x000c2] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:151 

Exception rethrown at [0]: 

  at MonoDevelop.Ide.MessageService+InternalMessageService.ShowException (Gtk.Window parent, System.String title, System.String message, System.Exception e, MonoDevelop.Ide.AlertButton[] buttons) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x000c2] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:151

Expected behavior:

The context menu shows up, and life goes on.
Comment 1 Lluis Sanchez 2015-08-27 06:40:58 UTC
Already fixed.