Bug 15732 - Gtk does not always emit FocusIn event when user refocuses Xamarin Studio
Summary: Gtk does not always emit FocusIn event when user refocuses Xamarin Studio
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Cody Russell
URL:
: 18133 ()
Depends on:
Blocks:
 
Reported: 2013-10-27 14:38 UTC by Gutemberg Ribeiro
Modified: 2014-09-12 15:25 UTC (History)
5 users (show)

Tags: gtk
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 Gutemberg Ribeiro 2013-10-27 14:38:51 UTC
Hello,

After the latest updates in Xamarin.iOS and Xcode, it started with lots of freeze/hang when I'm editing .xib or .storyboard files on Xcode.

To reproduce:

1. Create a new project with Xamarin.iOS on Xamarin Studio with StoryBoard support.
2. Open the storyboard
3. Make any change like add a viewcontroller, a view, change a property, add any outlet on Xcode than save the project.
4. Without close Xcode, go back to Xamarin Studio. You can also test just click on desktop or any other application and then go to Xamarin Studio.

It just freeze with the spinning/waiting cursor, and when you right click on the Xamarin Studio or XCode icon on dock, it says that it is not responding. After some time waiting, it will present an alert "Xamarin Studio Could not communicate with Xcode".

Sometimes the changes on XCode are updated on Xamarin project, sometimes not.

Also, if after save the changes on step 3 I close Xcode, some time Xamarin Studio don't get updated with the changes and you have to re-open the file in XCode, save again, close and get back to Xamarin Studio.

It is a pretty annoying bug that happens every single time I open XCode.

I'm on OSX Maveric on latest vertion and here are my versions of Xamarin:

Xamarin Studio
Version 4.0.13 (build 38)
Installation UUID: 7348d641-ed6d-4c8a-b59a-116674e06dfd
Runtime:
	Mono 3.2.3 ((no/8d3b4b7)
	GTK+ 2.24.20 theme: Raleigh
	GTK# (2.12.0.0)
	Package version: 302030000

Apple Developer Tools
Xcode 5.0.1 (3335.23)
Build 5A2053

Xamarin.iOS
Version: 7.0.2.7 (Business Edition)
Hash: 57edee2
Branch: 
Build date: 2013-04-10 18:05:51-0400


Build Information
Release ID: 400130038
Git revision: 07afec667f7be5d0ee511eb7115bbac6377fbae8
Build date: 2013-09-24 08:53:29+0000
Xamarin addins: 61140345a5b109633a94409edcbc7a4c19a425c6

Thanks I really appreciate a hotfix or workaround for this annoying issue.

Gutemberg
Comment 1 Gutemberg Ribeiro 2013-10-27 14:46:03 UTC
A nice workaround while this is investigated is if you guys provide a way to manually sync (a button, command line, idk) the Xcode project with Xamarin.iOS project.

Thanks
Comment 2 Gutemberg Ribeiro 2013-10-27 15:22:44 UTC
Just got another problem. Sometimes, in order to access the outlet variable in ViewDidLoad and not get a Null exception, I have to go to Xcode, remove the outlet, save the file, close Xcode, rebuild the project on Xamarin Studio, get back to Xcode again, add the outlet and then use it on Xamarin... Uhf...
Comment 3 Jeffrey Stedfast 2013-10-28 12:01:09 UTC
In the latest 4.1.x versions, there is a Tools / Sync with Xcode menu item.
Comment 4 Jeffrey Stedfast 2013-10-28 12:04:25 UTC
Cody,

This might be a bug in gtk not properly emitting the focus events when Xamarin Studio regains focus after window switching.
Comment 5 Gutemberg Ribeiro 2013-10-28 16:04:54 UTC
The 4.1.x are not stable right? I just checked for updates here and nothing new on stable channel but 4.0.13 (build 38) so I dont have this menu item here :(

It is really, really slowing down the development process since we got the Xamarin crashed every time this happen.

Thanks
Comment 6 Gutemberg Ribeiro 2013-10-30 12:54:02 UTC
Guys any clue on how to handle it? It is really a big problem for us and we dont have the Tools > Sync menu item here in the latest stable version
Comment 7 Jeffrey Stedfast 2013-10-30 13:01:45 UTC
The 4.1.x series are exactly the same as the stable series, except that they add the iOS Designer (which is still in development), but you can still use Xcode for UI editing.
Comment 8 Jeffrey Stedfast 2013-10-30 13:02:50 UTC
The next stable release will have the Sync from Xcode menu, which is due out in another 2 weeks or so but should be going into the Alpha channel next week (if not by the end of this week)
Comment 9 Gutemberg Ribeiro 2013-10-30 13:05:20 UTC
So I can just use the alpha channel and I should be fine. Ok, will change and test for it. Will let you know.

Thanks!
Comment 10 Jeffrey Stedfast 2013-10-30 13:21:56 UTC
I just checked and it looks like the menu is not in the 4.1.12 Alpha :-(

You could try just switching windows back and forth between Xamarin Studio and some other app until Xamarin Studio syncs.

You could also try clicking inside the text editor area - that might force it to notice that it got refocused.
Comment 11 Gutemberg Ribeiro 2013-10-30 13:23:43 UTC
Just noticed it too after install the alpha. The problem is, when I'm switching the windows focus Xcode and Xamarin studio crashes... :(
Comment 12 Gutemberg Ribeiro 2013-10-30 13:27:48 UTC
Just to let you know, tried to open my storyboard on Xamarin Studio new editor and got this:

System.AggregateException: One or more errors occured ---> MonoTouch.Design.Client.DesignerRemoteException: System.InvalidCastException: Cannot cast from source type to destination type.
	at MonoTouch.Design.ServerParser.<ParseElement>m__6 (MonoTouch.Design.ProxiedView s) in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:768
	at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator1B`2[MonoTouch.Design.ProxiedView,MonoTouch.UIKit.UITableViewCell].MoveNext () in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2269
	at System.Collections.Generic.List`1[MonoTouch.UIKit.UITableViewCell].AddEnumerable (IEnumerable`1 enumerable) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections.Generic/List.cs:134
	at System.Collections.Generic.List`1[MonoTouch.UIKit.UITableViewCell]..ctor (IEnumerable`1 collection) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections.Generic/List.cs:69
	at System.Linq.Enumerable.ToList[UITableViewCell] (IEnumerable`1 source) in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2951
	at MonoTouch.Design.ServerParser.ParseElement (MonoTouch.Design.ProxiedTableView model, MonoTouch.Design.ParseContext context) in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:768
	at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
  at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[Object[]] (MonoTouch.Design.CommandRequest req, Boolean throwIfNotRunning) [0x000be] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:187 
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.String xml, System.String[] viewsToHide) [0x0006b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:120 
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.Xml.Linq.XElement[] xml) [0x00044] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:106 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<ReloadItems>c__AnonStorey71.<>m__198 (MonoTouch.Design.Client.ServerProcessConnection c) [0x0002b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:356 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<EnsureSession>c__AnonStorey85`1[System.Object[]].<>m__1BA () [0x00096] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1425 
  --- End of inner exception stack trace ---
 --> (Inner exception 0) MonoTouch.Design.Client.DesignerRemoteException: System.InvalidCastException: Cannot cast from source type to destination type.
	at MonoTouch.Design.ServerParser.<ParseElement>m__6 (MonoTouch.Design.ProxiedView s) in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:768
	at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator1B`2[MonoTouch.Design.ProxiedView,MonoTouch.UIKit.UITableViewCell].MoveNext () in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2269
	at System.Collections.Generic.List`1[MonoTouch.UIKit.UITableViewCell].AddEnumerable (IEnumerable`1 enumerable) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections.Generic/List.cs:134
	at System.Collections.Generic.List`1[MonoTouch.UIKit.UITableViewCell]..ctor (IEnumerable`1 collection) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections.Generic/List.cs:69
	at System.Linq.Enumerable.ToList[UITableViewCell] (IEnumerable`1 source) in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2951
	at MonoTouch.Design.ServerParser.ParseElement (MonoTouch.Design.ProxiedTableView model, MonoTouch.Design.ParseContext context) in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:768
	at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
  at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[Object[]] (MonoTouch.Design.CommandRequest req, Boolean throwIfNotRunning) [0x000be] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:187 
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.String xml, System.String[] viewsToHide) [0x0006b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:120 
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.Xml.Linq.XElement[] xml) [0x00044] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:106 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<ReloadItems>c__AnonStorey71.<>m__198 (MonoTouch.Design.Client.ServerProcessConnection c) [0x0002b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:356 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<EnsureSession>c__AnonStorey85`1[System.Object[]].<>m__1BA () [0x00096] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1425 


Contents of /Users/gutemberg/Library/Logs/XamarinStudio-4.0/iOSDesigner.2013-10-30__15-24-02.log:
[2013-10-30 15:24:16.9] INFO: ENTERING sandbox: com.xamarin.MTHosting.105a28651
[2013-10-30 15:24:16.9] INFO: Starting simulator at: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk'
[2013-10-30 15:24:17.0] INFO: ENTERING sandbox: com.xamarin.MTHosting.105a28651
[2013-10-30 15:24:17.3] INFO: LEAVING sandbox com.xamarin.MTHosting.105a28651 to parent com.xamarin.MTHosting.105a28651
[2013-10-30 15:24:17.3] INFO: ENTERING sandbox: com.xamarin.MTHosting.105a28651
[2013-10-30 15:24:17.3] INFO: LEAVING sandbox com.xamarin.MTHosting.105a28651 to parent com.xamarin.MTHosting.105a28651
[2013-10-30 15:24:17.3] INFO: ENTERING sandbox: com.xamarin.MTHosting.105a28651
[2013-10-30 15:24:17.3] INFO: LEAVING sandbox com.xamarin.MTHosting.105a28651 to parent com.xamarin.MTHosting.105a28651
[2013-10-30 15:24:17.3] INFO: ENTERING sandbox: com.xamarin.MTHosting.105a28651
[2013-10-30 15:24:17.3] INFO: LEAVING sandbox com.xamarin.MTHosting.105a28651 to parent com.xamarin.MTHosting.105a28651
[2013-10-30 15:24:18.6] INFO: LEAVING sandbox: com.xamarin.MTHosting.105a28651
[2013-10-30 15:24:18.6] INFO: ENTERING sandbox: com.xamarin.MTHosting.105a286b2
[2013-10-30 15:24:18.6] INFO: Starting simulator at: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk'
[2013-10-30 15:24:18.6] INFO: ENTERING sandbox: com.xamarin.MTHosting.105a286b2
[2013-10-30 15:24:19.0] INFO: LEAVING sandbox com.xamarin.MTHosting.105a286b2 to parent com.xamarin.MTHosting.105a286b2
[2013-10-30 15:24:19.0] INFO: ENTERING sandbox: com.xamarin.MTHosting.105a286b2
[2013-10-30 15:24:19.0] INFO: LEAVING sandbox com.xamarin.MTHosting.105a286b2 to parent com.xamarin.MTHosting.105a286b2
[2013-10-30 15:24:19.3] INFO: ENTERING sandbox: com.xamarin.MTHosting.105a286b2
[2013-10-30 15:24:19.3] INFO: LEAVING sandbox com.xamarin.MTHosting.105a286b2 to parent com.xamarin.MTHosting.105a286b2
[2013-10-30 15:24:19.3] INFO: ENTERING sandbox: com.xamarin.MTHosting.105a286b2
[2013-10-30 15:24:19.3] INFO: LEAVING sandbox com.xamarin.MTHosting.105a286b2 to parent com.xamarin.MTHosting.105a286b2
[2013-10-30 15:24:20.5] INFO: LEAVING sandbox: com.xamarin.MTHosting.105a286b2
[2013-10-30 15:24:26.6] INFO: Waiting for server to spin up... 1
[2013-10-30 15:24:26.8] INFO: Waiting for server to spin up... 2
[2013-10-30 15:24:26.8] INFO: Waiting for server to spin up... 1
[2013-10-30 15:24:27.0] INFO: Waiting for server to spin up... 3
[2013-10-30 15:24:27.0] INFO: Waiting for server to spin up... 2
[2013-10-30 15:24:27.2] INFO: Waiting for server to spin up... 4
[2013-10-30 15:24:27.2] INFO: Waiting for server to spin up... 3
[2013-10-30 15:24:27.4] INFO: Waiting for server to spin up... 5
[2013-10-30 15:24:27.4] INFO: Waiting for server to spin up... 4
[2013-10-30 15:26:14.4] INFO: Starting full reload...
[2013-10-30 15:26:14.7] INFO: Fetched iOS SDK data in /var/folders/49/kzmqh1rj4l925yr961xlnm6h0000gn/T/xd-support-files-1ba443e7
[2013-10-30 15:26:15.4] ERROR: EnsureSession (counter 0): MonoTouch.Design.Client.DesignerRemoteException: System.InvalidCastException: Cannot cast from source type to destination type.
	at MonoTouch.Design.ServerParser.<ParseElement>m__6 (MonoTouch.Design.ProxiedView s) in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:768
	at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator1B`2[MonoTouch.Design.ProxiedView,MonoTouch.UIKit.UITableViewCell].MoveNext () in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2269
	at System.Collections.Generic.List`1[MonoTouch.UIKit.UITableViewCell].AddEnumerable (IEnumerable`1 enumerable) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections.Generic/List.cs:134
	at System.Collections.Generic.List`1[MonoTouch.UIKit.UITableViewCell]..ctor (IEnumerable`1 collection) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections.Generic/List.cs:69
	at System.Linq.Enumerable.ToList[UITableViewCell] (IEnumerable`1 source) in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2951
	at MonoTouch.Design.ServerParser.ParseElement (MonoTouch.Design.ProxiedTableView model, MonoTouch.Design.ParseContext context) in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:768
	at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
  at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[Object[]] (MonoTouch.Design.CommandRequest req, Boolean throwIfNotRunning) [0x000be] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:187 
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.String xml, System.String[] viewsToHide) [0x0006b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:120 
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.Xml.Linq.XElement[] xml) [0x00044] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:106 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<ReloadItems>c__AnonStorey71.<>m__198 (MonoTouch.Design.Client.ServerProcessConnection c) [0x0002b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:356 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<EnsureSession>c__AnonStorey85`1[System.Object[]].<>m__1BA () [0x00096] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1425 
[2013-10-30 15:26:15.4] ERROR: Unexpected exception while reloading XML for MonoTouch.Design.Client.IPhoneDesignerItem[]
System.AggregateException: One or more errors occured ---> MonoTouch.Design.Client.DesignerRemoteException: System.InvalidCastException: Cannot cast from source type to destination type.
	at MonoTouch.Design.ServerParser.<ParseElement>m__6 (MonoTouch.Design.ProxiedView s) in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:768
	at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator1B`2[MonoTouch.Design.ProxiedView,MonoTouch.UIKit.UITableViewCell].MoveNext () in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2269
	at System.Collections.Generic.List`1[MonoTouch.UIKit.UITableViewCell].AddEnumerable (IEnumerable`1 enumerable) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections.Generic/List.cs:134
	at System.Collections.Generic.List`1[MonoTouch.UIKit.UITableViewCell]..ctor (IEnumerable`1 collection) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections.Generic/List.cs:69
	at System.Linq.Enumerable.ToList[UITableViewCell] (IEnumerable`1 source) in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2951
	at MonoTouch.Design.ServerParser.ParseElement (MonoTouch.Design.ProxiedTableView model, MonoTouch.Design.ParseContext context) in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:768
	at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
  at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[Object[]] (MonoTouch.Design.CommandRequest req, Boolean throwIfNotRunning) [0x000be] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:187 
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.String xml, System.String[] viewsToHide) [0x0006b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:120 
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.Xml.Linq.XElement[] xml) [0x00044] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:106 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<ReloadItems>c__AnonStorey71.<>m__198 (MonoTouch.Design.Client.ServerProcessConnection c) [0x0002b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:356 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<EnsureSession>c__AnonStorey85`1[System.Object[]].<>m__1BA () [0x00096] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1425 
  --- End of inner exception stack trace ---
 --> (Inner exception 0) MonoTouch.Design.Client.DesignerRemoteException: System.InvalidCastException: Cannot cast from source type to destination type.
	at MonoTouch.Design.ServerParser.<ParseElement>m__6 (MonoTouch.Design.ProxiedView s) in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:768
	at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator1B`2[MonoTouch.Design.ProxiedView,MonoTouch.UIKit.UITableViewCell].MoveNext () in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2269
	at System.Collections.Generic.List`1[MonoTouch.UIKit.UITableViewCell].AddEnumerable (IEnumerable`1 enumerable) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections.Generic/List.cs:134
	at System.Collections.Generic.List`1[MonoTouch.UIKit.UITableViewCell]..ctor (IEnumerable`1 collection) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Collections.Generic/List.cs:69
	at System.Linq.Enumerable.ToList[UITableViewCell] (IEnumerable`1 source) in /Developer/MonoTouch/Source/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2951
	at MonoTouch.Design.ServerParser.ParseElement (MonoTouch.Design.ProxiedTableView model, MonoTouch.Design.ParseContext context) in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:768
	at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
  at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[Object[]] (MonoTouch.Design.CommandRequest req, Boolean throwIfNotRunning) [0x000be] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:187 
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.String xml, System.String[] viewsToHide) [0x0006b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:120 
  at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.Xml.Linq.XElement[] xml) [0x00044] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:106 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<ReloadItems>c__AnonStorey71.<>m__198 (MonoTouch.Design.Client.ServerProcessConnection c) [0x0002b] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:356 
  at MonoTouch.Design.Client.IPhoneDesignerSession+<EnsureSession>c__AnonStorey85`1[System.Object[]].<>m__1BA () [0x00096] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.12-branch/a9ae69a4/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1425
Comment 13 Gutemberg Ribeiro 2013-10-30 13:52:21 UTC
Ok guys, its become impossible to work. Every single change that we make on Xcode, if we switch to any other windows it crash Xamarin and Xcode. :( Please give us an alternative. At least a way to disable this automatic Sync so we can sync manually.

Thanks!
Comment 14 Gutemberg Ribeiro 2013-10-30 20:55:23 UTC
More problems with Alpha. Every time I click on Xcode and click back to Xamarin Studio, it shows me this message:

"A class named 'Poll180.iOS.NewAnswerViewController' already exists but is registered as 'NewAnswerViewController'."

Asking me yes or now for every single controller that I have :(

Please help us! :(
Comment 15 Jeffrey Stedfast 2013-10-31 13:00:47 UTC
Next time it crashes, please attach the latest Ide.log file located in ~/Library/Logs/XamarinStudio-4.0/

It never crashes for me, so there's nothing I can do until I can see a log file to track it down.

I've submitted your iOS Designer bug as bug #15850 - could you subscribe to that bug to provide any feedback that the iOS Designer developers might need?

In the meantime I'll work on backporting the "Sync from Xcode" menu command to the 4.0.14 branch and try to make a custom build for you.
Comment 16 Jeffrey Stedfast 2013-10-31 14:15:34 UTC
https://files.xamarin.com/~jeff/XamarinStudio-4.0.14.dmg should have the menu
Comment 17 Gutemberg Ribeiro 2013-10-31 14:32:43 UTC
Thanks I'll test. Does it have disabled the automatic sync and only the menu command right?

Thank you very much.

I'll add my storyboard to the bug so you can see it.

Thanks
Comment 20 Jeffrey Stedfast 2014-03-07 16:01:52 UTC
*** Bug 18133 has been marked as a duplicate of this bug. ***