Bug 2944 - Help command in disassembly window crashes MonoDevelop
Summary: Help command in disassembly window crashes MonoDevelop
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: Trunk
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-01-17 15:32 UTC by Mikayla Hutchinson [MSFT]
Modified: 2012-03-30 09:44 UTC (History)
3 users (show)

Tags: trident
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 Mikayla Hutchinson [MSFT] 2012-01-17 15:32:20 UTC
Using the Help command in the debugger disassembly window crashes MonoDevelop with the following unhandled exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.ArgumentNullException: Value cannot be
null.
Parameter name: editor
   at MonoDevelop.CSharp.Resolver.NRefactoryResolver..ctor(ProjectDom dom,
ICompilationUnit unit, SupportedLanguage lang, TextEditorData editor, String
fileName)
   at MonoDevelop.CSharp.Parser.McsParser.CreateResolver(ProjectDom dom, Object
editor, String fileName)
Comment 1 Mikayla Hutchinson [MSFT] 2012-01-17 15:37:03 UTC
Full trace:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: editor
   at MonoDevelop.CSharp.Resolver.NRefactoryResolver..ctor(ProjectDom dom, ICompilationUnit unit, SupportedLanguage lang, TextEditorData editor, String fileName)
   at MonoDevelop.CSharp.Parser.McsParser.CreateResolver(ProjectDom dom, Object editor, String fileName)
   at MonoDevelop.CSharp.Resolver.TextEditorResolverProvider.GetLanguageItem(ProjectDom dom, TextEditorData data, Int32 offset)
   at MonoDevelop.SourceEditor.ExtensibleTextEditor.GetLanguageItem(Int32 offset)
   at MonoDevelop.SourceEditor.SourceEditorWidget.MonodocResolverUpdate(CommandInfo cinfo)
   at MonoDevelop.SourceEditor.SourceEditorView.MonodocResolverUpdate(CommandInfo cinfo)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at MonoDevelop.Components.Commands.CommandUpdaterInfo.Run(Object cmdTarget, CommandInfo info)
   at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo(Object commandId, CommandTargetRoute targetRoute)
Comment 2 Mikayla Hutchinson [MSFT] 2012-01-17 15:43:34 UTC
Note: this only happens after stepping in the disassembly view.
Comment 3 Jeffrey Stedfast 2012-01-17 16:09:34 UTC
Fixed in git master
Comment 4 Mikayla Hutchinson [MSFT] 2012-01-17 16:44:55 UTC
The crash has been worked around but the underlying issue remains - a command is being dispatched through a SourceEditorView that is not the active document.
Comment 5 Mike Krüger 2012-03-30 09:44:00 UTC
Shouldn't happen in newresolver anymore.