Bug 33068 - Hard crash when setting view class in F# project
Summary: Hard crash when setting view class in F# project
Status: RESOLVED DUPLICATE of bug 30598
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-08-13 13:38 UTC by Mikayla Hutchinson [MSFT]
Modified: 2015-08-17 10:03 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Log file (79.66 KB, application/octet-stream)
2015-08-13 13:38 UTC, Mikayla Hutchinson [MSFT]
Details


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 DUPLICATE of bug 30598

Description Mikayla Hutchinson [MSFT] 2015-08-13 13:38:10 UTC
Created attachment 12493 [details]
Log file

Repo steps:

1. Create F# iOS project
2. Open storyboard in designer
3. Click on the view to select it
4. In the property grid, set a value for Class

XS hard crashes.

Designer exception seems to be:

System.NullReferenceException: Object reference not set to an instance of an object
  at MonoTouch.Design.Client.IPhoneDesignerItem.SetPropertyValue (System.String name, System.String value) [0x00088] in /Users/builder/data/lanes/1980/b99cb19a/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/DesignerItems/IPhoneDesignerItem.cs:361 

But there's also a hard crash displaying the error dialog:

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSend (intptr,intptr) <IL 0x0002e, 0xffffffff>
  at AppKit.NSAlert..ctor () <IL 0x00024, 0x00047>
  at MonoDevelop.MacIntegration.MacAlertDialogHandler.Run (MonoDevelop.Components.Extensions.AlertDialogData) [0x00008] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/addins/MacPlatform/Dialogs/MacAlertDialogHandler.cs:47
  at MonoDevelop.Components.Extensions.PlatformDialog`1.Run () [0x00018] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Extensions/PlatformDialog.cs:98
  at MonoDevelop.Components.Extensions.AlertDialog.Run () [0x0002d] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Extensions/AlertDialog.cs:74
  at MonoDevelop.Ide.MessageService/InternalMessageService.GenericAlert (Gtk.Window,MonoDevelop.Ide.MessageDescription) [0x0001e] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/MessageService.cs:562
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this___object_object (object,intptr,intptr,intptr) <IL 0x0006c, 0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices.InternalExecute (System.Reflection.MethodBase,object,object[],object[]&) <IL 0x0002c, 0xffffffff>
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject,System.Runtime.Remoting.Messaging.IMethodCallMessage) [0x000c2] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:144
  at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) [0x0001f] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting.Messaging/StackBuilderSink.cs:59
  at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) [0x00016] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting.Messaging/ServerObjectTerminatorSink.cs:53
  at System.Runtime.Remoting.Lifetime.LeaseSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) [0x00007] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting.Lifetime/LeaseSink.cs:52
  at MonoDevelop.Ide.Gui.SyncContextDispatchSink.DispatchMessage (object) [0x00015] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/SyncContextAttribute.cs:157
  at MonoDevelop.Ide.Gui.GuiSyncContext.Dispatch (MonoDevelop.Ide.StatefulMessageHandler,object) [0x0000d] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/GuiSyncContext.cs:39
  at MonoDevelop.Ide.Gui.SyncContextDispatchSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) [0x00128] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/SyncContextAttribute.cs:125
  at System.Runtime.Remoting.ClientActivatedIdentity.SyncObjectProcessMessage (System.Runtime.Remoting.Messaging.IMessage) [0x00041] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting/ServerIdentity.cs:191
  at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) [0x00023] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting.Messaging/ServerContextTerminatorSink.cs:50
  at System.Runtime.Remoting.Contexts.CrossContextChannel.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) [0x00041] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting.Contexts/CrossContextChannel.cs:57
  at System.Runtime.Remoting.Messaging.ClientContextTerminatorSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) [0x0003b] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting.Messaging/ClientContextTerminatorSink.cs:62
  at System.Runtime.Remoting.Messaging.EnvoyTerminatorSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) [0x00000] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting.Messaging/EnvoyTerminatorSink.cs:44
  at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke (System.Runtime.Remoting.Messaging.IMessage) [0x000ea] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting.Proxies/RemotingProxy.cs:100
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&) [0x0009c] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs:194
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object_object_object_intptr&_intptr& (object,intptr,intptr,intptr) <IL 0x0007e, 0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) object.__icall_wrapper_mono_remoting_wrapper (intptr,intptr) <IL 0x0002a, 0xffffffff>
  at (wrapper remoting-invoke) MonoDevelop.Ide.MessageService/InternalMessageService.GenericAlert (Gtk.Window,MonoDevelop.Ide.MessageDescription) <IL 0x00045, 0xffffffff>
  at (wrapper remoting-invoke-with-check) MonoDevelop.Ide.MessageService/InternalMessageService.GenericAlert (Gtk.Window,MonoDevelop.Ide.MessageDescription) <IL 0x00021, 0xffffffff>
  at MonoDevelop.Ide.MessageService.GenericAlert (Gtk.Window,string,string,string,int,System.Threading.CancellationToken,MonoDevelop.Ide.AlertButton[]) [0x00050] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/MessageService.cs:489
  at MonoDevelop.Ide.MessageService.GenericAlert (Gtk.Window,string,string,string,int,MonoDevelop.Ide.AlertButton[]) [0x0000e] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/MessageService.cs:468
  at MonoDevelop.Ide.MessageService.GenericAlert (Gtk.Window,string,string,string,MonoDevelop.Ide.AlertButton[]) [0x0000d] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/MessageService.cs:456
  at MonoDevelop.Ide.MessageService.ShowError (Gtk.Window,string,string,System.Exception,bool,MonoDevelop.Ide.AlertButton[]) [0x00057] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/MessageService.cs:223
  at MonoDevelop.Ide.LogReportingStartup.<Run>m__0 (System.Nullable`1<bool>,System.Exception,bool) [0x000a7] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/LogReportingStartup.cs:60
  at (wrapper delegate-invoke) System.Func`4<System.Nullable`1<bool>, System.Exception, bool, System.Nullable`1<bool>>.invoke_TResult_T1_T2_T3 (System.Nullable`1<bool>,System.Exception,bool) <IL 0x00065, 0xffffffff>
  at MonoDevelop.Core.LoggingService.ReportUnhandledException (System.Exception,bool,bool,string) [0x00048] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs:225
  at MonoDevelop.Core.LoggingService.LogFatalError (string,System.Exception) [0x00030] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs:565
  at MonoDevelop.Ide.IdeStartup.Main (string[],MonoDevelop.Ide.Extensions.IdeCustomizer) [0x000b3] in /Users/builder/data/lanes/1980/b99cb19a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:651
  at Xamarin.Startup.MainClass.Main (string[]) [0x00003] in /Users/builder/data/lanes/1980/b99cb19a/source/md-addins/Xamarin.Startup/Main.cs:11
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <IL 0x0006c, 0xffffffff>
Comment 1 Udham Singh 2015-08-14 05:36:18 UTC
I have checked this issue and able to reproduce the reported behaviour. Please refer the screencast : http://www.screencast.com/t/FBeKM5ohL

Crash Log : https://gist.github.com/Udham1/1cd982fca6e430f6ae6c
Ide Log : https://gist.github.com/Udham1/746352b0d642de485a09
iOS Designer Log : https://gist.github.com/Udham1/d89e4ebf2e0a91373786

Environment Info : 

=== Xamarin Studio ===

Version 5.9.5 (build 9)
Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc
Runtime:
	Mono 4.0.3 ((detached/d6946b4)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400030020

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: 8.10.4.49 (Enterprise Edition)
Hash: 7e598ef
Branch: master
Build date: 2015-08-08 12:28:27-0400

=== Xamarin.Mac ===

Version: 2.0.2.125 (Enterprise Edition)

=== Xamarin.Android ===

Version: 5.1.5.3 (Enterprise Edition)
Android SDK: /Users/xamarin76/Desktop/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		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)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Build Information ===

Release ID: 509050009
Git revision: b99cb19a1d3b15d8980c4616f13f837457e5b292
Build date: 2015-07-28 02:01:44-04
Xamarin addins: d53d6eceb828422f3d4aff8547f2f6bab6c9ea58

=== Operating System ===

Mac OS X 10.9.5
Darwin Xamarin76s-Mac-mini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 2 Alan McGovern 2015-08-17 10:03:04 UTC

*** This bug has been marked as a duplicate of bug 30598 ***