Bug 21133 - Adding or removing SDK path causes error
Summary: Adding or removing SDK path causes error
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: 5.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-07-04 17:21 UTC by Paul Johnson
Modified: 2014-07-25 14:52 UTC (History)
6 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 Paul Johnson 2014-07-04 17:21:26 UTC
Using XS 5.1.1.19

If I change the SDK path for Xcode via the preferences (either add or remove), XS gives the following throwback

at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00069] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:238 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System.Reflection/MethodBase.cs:114 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000d5] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System/Delegate.cs:424 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System/MulticastDelegate.cs:70 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System/Delegate.cs:398 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00050] in /Volumes/build-root-ramdisk/gtk-sharp-2.12.21/glib/Signal.cs:195 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00019] in /Volumes/build-root-ramdisk/gtk-sharp-2.12.21/glib/SignalClosure.cs:118 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00084] in /Volumes/build-root-ramdisk/gtk-sharp-2.12.21/glib/SignalClosure.cs:146 

"This report will be sent to Xamarin for investigation" then follows
Comment 1 Tajinder Singh 2014-07-07 03:20:20 UTC
I can't reproduce this, we may have to see if a developer can figure out what's going on from the stack trace. If you have a chance, it might also be helpful to include  Xamarin Studio build information ( Xamarin Studio=> About Xamarin Studio=> Show details=> Copy Information.)

Screencast: http://www.screencast.com/t/YzyitmKY

Environment Info:

=== Xamarin Studio ===

Version 5.1.1 (build 19)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
Runtime:
	Mono 3.4.0 ((no/63569a7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000205

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.Mac ===

Version: 1.8.0.8

=== Xamarin.Android ===

Version: 4.14.0 (Business Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

=== Xamarin.iOS ===

Version: 7.2.5.5 (Business Edition)
Hash: 87026b6
Branch: 
Build date: 2014-07-02 19:39:08-0400

=== Build Information ===

Release ID: 501010019
Git revision: a29667ee616ae54db3a137a9f68c00bd0c77960d
Build date: 2014-06-30 07:00:33-04
Xamarin addins: 00f802db785b4174e9f853f7286c699509dbf974

=== Operating System ===

Mac OS X 10.9.3
Comment 2 Paul Johnson 2014-07-08 15:54:11 UTC
Ok, more feedback from moving from xcode6 beta2 to beta3

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.SystemException: Kernel returned: 15 (15): (os/kern) invalid name
  at MonoTouch.Hosting.CheckReturnExtensions.Check (kern_return_t result, System.String message) [0x0003c] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Hosting/MachPort.cs:435 
  at MonoTouch.Hosting.MachPort.Dispose () [0x0002f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Hosting/MachPort.cs:140 
  at MonoTouch.Hosting.IndigoHidSubsystem.Dispose () [0x00007] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Hosting/IndigoHidSubsystem.cs:79 
  at MonoTouch.Hosting.IosSession.Stop () [0x0006d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Hosting/IosSession.cs:118 
  at MonoTouch.Hosting.IosSession.Dispose () [0x00002] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Hosting/IosSession.cs:144 
  at MonoTouch.Hosting.CoreSimulatorSession.Dispose () [0x00001] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Hosting/CoreSimulatorSession.cs:55 
  at MonoTouch.Design.Client.Mac.MacServerProcessConnection.Dispose (Boolean disposing) [0x00057] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client.Mac/MacServerProcessConnection.cs:205 
  at MonoTouch.Design.Client.ServerProcessConnection.Dispose () [0x00003] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:296 
  at MonoTouch.Design.Client.PooledConnectionProvider+Pool.Dispose () [0x00028] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:101 
  at MonoTouch.Design.Client.PooledConnectionProvider.Dispose () [0x0002e] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/PooledConnectionProvider.cs:44 
  at MonoTouch.Design.Client.IPhoneDesignerService.Dispose () [0x00025] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerService.cs:184 
  at MonoDevelop.IPhone.Designer.IPhoneDesignerSdkManager.InitSdkConnection (Boolean reinit, System.Uri serverUri) [0x00023] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Designer/IPhoneDesignerSdkManager.cs:52 
  at MonoDevelop.IPhone.Designer.IPhoneDesignerSdkManager.InitSdkConnection (Boolean reinit) [0x0002a] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Designer/IPhoneDesignerSdkManager.cs:45 
  at MonoDevelop.IPhone.Designer.IPhoneDesignerSdkManager.HandleAppleSdkChanged () [0x0001d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Designer/IPhoneDesignerSdkManager.cs:153 
  at (wrapper delegate-invoke) <Module>:invoke_void ()
  at (wrapper delegate-invoke) <Module>:invoke_void ()
  at Xamarin.MacDev.AppleSdkSettings.SetConfiguredSdkLocation (System.String location) [0x00082] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/external/maciostools/Xamarin.MacDev/Encrypted/AppleSdkSettings.cs:107 
  at MonoDevelop.MacDev.Gui.AppleSdkSettingsPanel.SaveSdkLocationSetting (FilePath location) [0x00007] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/md-addins/MonoDevelop.MacDev/MonoDevelop.MacDev/Gui/AppleSdkSettingsPanel.cs:60 
  at MonoDevelop.Ide.Gui.OptionPanels.SdkLocationWidget.ApplyChanges () [0x0001d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/SdkLocationPanel.cs:178 
  at MonoDevelop.Ide.Gui.OptionPanels.SdkLocationPanel.ApplyChanges () [0x00007] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/SdkLocationPanel.cs:49 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.ApplyChanges () [0x00051] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:451 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.OnButtonOkClicked (System.Object sender, System.EventArgs e) [0x00012] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.1.1-branch/a29667ee/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:734 
  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) [0x00054] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
  --- 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) [0x00069] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:238 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System.Reflection/MethodBase.cs:114 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000d5] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System/Delegate.cs:424 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System/MulticastDelegate.cs:70 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /Volumes/build-root-ramdisk/mono-3.6.0/mcs/class/corlib/System/Delegate.cs:398 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00050] in /Volumes/build-root-ramdisk/gtk-sharp-2.12.21/glib/Signal.cs:195 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00019] in /Volumes/build-root-ramdisk/gtk-sharp-2.12.21/glib/SignalClosure.cs:118 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00084] in /Volumes/build-root-ramdisk/gtk-sharp-2.12.21/glib/SignalClosure.cs:146 

This now happens pretty much every time.

Using OS X.X preview 3, xcode 6 beta 3

=== Xamarin Studio ===

Version 5.1.1 (build 19)
Installation UUID: f3d1a29c-1ba2-4a83-a193-1087efe91a85
Runtime:
	Mono 3.6.0 ((no/f6ef3e7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 306000000

=== Xamarin.Android ===

Version: 4.14.0 (Business Edition)
Android SDK: /Users/PFJ/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

=== Apple Developer Tools ===

Xcode 6.0 (6233.3)
Build 6A254o

=== Xamarin.iOS ===

Version: 7.9.1.90 (Business Edition)
Hash: 0ba5e04
Branch: 
Build date: 2014-07-01 17:06:51-0400

=== Xamarin.Mac ===

Version:

=== Build Information ===

Release ID: 501010019
Git revision: a29667ee616ae54db3a137a9f68c00bd0c77960d
Build date: 2014-06-30 07:00:33-04
Xamarin addins: 00f802db785b4174e9f853f7286c699509dbf974

=== Operating System ===

Mac OS X 10.10.0
Darwin Pauls-iMac.local 14.0.0 Darwin Kernel Version 14.0.0
    Mon Jun 30 11:54:42 PDT 2014
    root:xnu-2782.1.20~3/RELEASE_X86_64 x86_64
Comment 3 Jeffrey Stedfast 2014-07-08 16:28:08 UTC
looks like this is related to the iOS Designer
Comment 4 Alan McGovern 2014-07-25 14:52:53 UTC
This should be fixed as part of the Xamarin Studio 5.3 series. Xcode 6 support is still considered experimental, so use Xcode 5.x if you need something stable to work with.