Bug 5288 - Error while evaluating condition 'MonoDroidInstalled' every 100 ms
Summary: Error while evaluating condition 'MonoDroidInstalled' every 100 ms
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: Trunk
Hardware: PC Mac OS
: High critical
Target Milestone: ---
Assignee: Mikayla Hutchinson [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2012-05-23 14:59 UTC by Marek Safar
Modified: 2012-05-23 21:39 UTC (History)
1 user (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 Marek Safar 2012-05-23 14:59:47 UTC
This makes MD unusable for me

ERROR [2012-05-23 19:55:05Z]: Add-in error (): Error while evaluating condition 'MonoDroidInstalled'
System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.MonoDroid.MonoDroidFramework ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Xamarin.AndroidTools.AndroidSdk.get_AdbExe () [0x00001] in /Users/marek/git/md-addins/MonoDevelop.MonoDroid/external/androidtools/Xamarin.AndroidTools/AndroidSdk.cs:75 
  at MonoDevelop.MonoDroid.DeviceManager..ctor () [0x00019] in /Users/marek/git/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Adb/DeviceManager.cs:53 
  at MonoDevelop.MonoDroid.MonoDroidFramework..cctor () [0x00531] in /Users/marek/git/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidFramework.cs:48 
  --- End of inner exception stack trace ---
  at MonoDevelop.MonoDroid.MonoDroidMonoFrameworkBackend.get_IsInstalled () [0x00001] in /Users/marek/git/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidFrameworkBackend.cs:79 
  at MonoDevelop.Core.Assemblies.TargetRuntime.IsInstalled (MonoDevelop.Core.Assemblies.TargetFramework fx) [0x00001] in /Users/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:505 
  at MonoDevelop.Core.Assemblies.TargetRuntime.CreateFrameworks () [0x00025] in /Users/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:515 
  at MonoDevelop.Core.Assemblies.TargetRuntime.RunInitialization () [0x000c3] in /Users/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:429 
  at MonoDevelop.Core.Assemblies.TargetRuntime.BackgroundInitialize () [0x00034] in /Users/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:391 
ERROR [2012-05-23 19:55:05Z]: Add-in error (): Error while evaluating condition 'MonoDroidInstalled'
System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.MonoDroid.MonoDroidFramework ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Xamarin.AndroidTools.AndroidSdk.get_AdbExe () [0x00001] in /Users/marek/git/md-addins/MonoDevelop.MonoDroid/external/androidtools/Xamarin.AndroidTools/AndroidSdk.cs:75 
  at MonoDevelop.MonoDroid.DeviceManager..ctor () [0x00019] in /Users/marek/git/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Adb/DeviceManager.cs:53 
  at MonoDevelop.MonoDroid.MonoDroidFramework..cctor () [0x00531] in /Users/marek/git/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidFramework.cs:48 
  --- End of inner exception stack trace ---
  at MonoDevelop.MonoDroid.MonoDroidMonoFrameworkBackend.get_IsInstalled () [0x00001] in /Users/marek/git/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidFrameworkBackend.cs:79 
  at MonoDevelop.Core.Assemblies.TargetRuntime.IsInstalled (MonoDevelop.Core.Assemblies.TargetFramework fx) [0x00001] in /Users/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:505 
  at MonoDevelop.Core.Assemblies.TargetRuntime.CreateFrameworks () [0x00025] in /Users/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:515 
  at MonoDevelop.Core.Assemblies.TargetRuntime.RunInitialization () [0x000c3] in /Users/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:429 
  at MonoDevelop.Core.Assemblies.TargetRuntime.BackgroundInitialize () [0x00034] in /Users/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:391
Comment 1 Mikayla Hutchinson [MSFT] 2012-05-23 17:25:39 UTC
Here is the trace from the log:
System.ArgumentNullException: Argument cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x000c6] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.IO/Path.cs:126 
  at Xamarin.AndroidTools.AndroidSdkBase..ctor () [0x0004f] in /Users/michael/Mono/md-addins/MonoDevelop.MonoDroid/external/androidtools/Xamarin.AndroidTools/Sdks/AndroidSdkBase.cs:44 
  at Xamarin.AndroidTools.AndroidSdkUnix..ctor () [0x00000] in <filename unknown>:0 
  at Xamarin.AndroidTools.AndroidSdk.Refresh () [0x00019] in /Users/michael/Mono/md-addins/MonoDevelop.MonoDroid/external/androidtools/Xamarin.AndroidTools/AndroidSdk.cs:36 
  at Xamarin.AndroidTools.AndroidSdk..cctor () [0x00000] in /Users/michael/Mono/md-addins/MonoDevelop.MonoDroid/external/androidtools/Xamarin.AndroidTools/AndroidSdk.cs:24
Comment 2 Mikayla Hutchinson [MSFT] 2012-05-23 21:39:26 UTC
Regression in master, fixed.