Bug 28 - MD crashes when git addin is disabled
Summary: MD crashes when git addin is disabled
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: Macintosh Mac OS
: Low critical
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2011-07-20 18:15 UTC by Mikayla Hutchinson [MSFT]
Modified: 2011-11-14 16:19 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 Mikayla Hutchinson [MSFT] 2011-07-20 18:15:05 UTC
First time running MD after disabling the git addin, MD shows an error dialog with the following message, After this dialog is closed, MD crashes.


ERROR [2011-07-20 23:06:48Z]: Add-in error (MonoDevelop.VersionControl.Git,2.6): Add-in could not be loaded: Disabled add-ins can't be loaded.
System.InvalidOperationException: Disabled add-ins can't be loaded.
  at Mono.Addins.AddinEngine.LoadAddin (IProgressStatus statusMonitor, System.String id, Boolean throwExceptions) [0x00000] in <filename unknown>:0 
Marshaling show signal
ERROR [2011-07-20 23:06:48Z]: Unhandled Exception
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Disabled add-ins can't be loaded.
  at Mono.Addins.AddinEngine.LoadAddin (IProgressStatus statusMonitor, System.String id, Boolean throwExceptions) [0x00000] in <filename unknown>:0 
  --- 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) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0 
  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
Comment 1 Miguel de Icaza [MSFT] 2011-07-20 19:00:45 UTC
*** Bug 31 has been marked as a duplicate of this bug. ***
Comment 2 Joseph Hill 2011-11-07 14:59:00 UTC
Should we disable git by default as a workaround for this issue?  

Do we have any idea of what the scope of the effort is to fix this issue?
Comment 3 Mikayla Hutchinson [MSFT] 2011-11-07 17:23:36 UTC
It's bug in Mono.Addins. Your suggestion for a workaround doesn't make sense - it's a bug that happens when the user uses the addin manager to disable the git addin. I'd be surprised if more than a couple of users ever did that.
Comment 4 Joseph Hill 2011-11-07 18:43:28 UTC
Thanks for the additional information.  

I didn't realize that there weren't many people that would disable it.  My suggestion was that, if people are disabling it anyways, we should ship MD with it disabled already.  That assumed that there was a way to ship a working MD with the addin disabled / removed already.
Comment 5 Alan McGovern 2011-11-14 16:19:39 UTC
This must have been fixed because I cannot reproduce the issue.