Why does the storyboard designer take so long to load and cause Mac Agent disconnects?

JohnNolanJohnNolan USMember
edited June 2016 in Xamarin.iOS

Hi guys,

I started using Xamarin around 3 months ago and I have to say it is brilliant! However, the Storyboard designer is very unstable and sluggish. Often the loading indicator displays for 2 to 5 minutes:

image

Then, after some time the following appears:

image

There is no problem with my connection with the Mac Agent and the project builds and runs on the simulator fine. It's just the designer is simply unusable times out and kills the connection:

    Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-06-08 13:29:00.7051] Starting Agent Designer 4.0.4.4...
    Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-06-08 13:29:06.7233] Agent Designer 4.0.4.4 is running
    Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-06-08 13:29:06.7323] MacServer State transition from AgentsStartingState to ConnectedState on [omitted]
    Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-06-08 13:29:06.7373] Connected to the Mac [omitted] with Full support.
    Xamarin.Messaging.Client.MessagingClient Error: 0 : [2016-06-08 13:29:44.0174] An error occurred on client [omitted IP details] while executing a post for topic xma/ping/Broker4044
    System.TimeoutException: The operation has timed out.
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
       at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext()
    Xamarin.Messaging.Client.MessagingClient Information: 0 : [2016-06-08 13:29:44.1395] MacServer State transition from ConnectedState to DisconnectedState on [omitted IP details]
    Xamarin.Messaging.Client.MessagingClient Error: 0 : [2016-06-08 13:29:44.1575] The client vs14756 has been disconnected while waiting a post response to topic xvs/Designer/4.0.4.4/send-payload/1/9/3
    Xamarin.Messaging.Exceptions.ClientDisconnectedException: The client vs14756 has been disconnected while waiting a post response to topic xvs/Designer/4.0.4.4/send-payload/1/9/3
       at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__22`2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__26`2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.<ExecuteAsync>d__11`1.MoveNext() in C:\Users\builder\data\lanes\3240\a9c78262\source\XamarinVS\src\Core\VisualStudio.IOS\Designer\DesignerRemoteRequests.cs:line 0
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.VisualStudio.IOS.Designer.DesignerRemoteRequests.<SendPayloadAsync>d__9.MoveNext() in C:\Users\builder\data\lanes\3240\a9c78262\source\XamarinVS\src\Core\VisualStudio.IOS\Designer\DesignerRemoteRequests.cs:line 87
    Xamarin.Messaging.Client.MessagingClient Information: 0 : [2016-06-08 13:29:44.1795] Disconnected from [omitted IP details]
    Xamarin.Messaging.Client.MessagingClient Error: 0 : [2016-06-08 13:29:44.1865] The client vs14756 has been disconnected while waiting a post response to topic xvs/Designer/4.0.4.4/send-payload/1/9/3
    Xamarin.Messaging.Exceptions.ClientDisconnectedException: The client vs14756 has been disconnected while waiting a post response to topic xvs/Designer/4.0.4.4/send-payload/1/9/3
       at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

The above stack trace was retrieved from the Xamarin log file. It looks like Xamain.Messaging (which I presume uses a HttpClient and some async/await method) throws an error when iterating through the payload and then times out.

Here are my environment details in case any changes there would improve things:

    Microsoft Visual Studio Professional 2015
    Version 14.0.25123.00 Update 2
    Microsoft .NET Framework
    Version 4.6.01038

    Installed Version: Professional

    Visual C# 2015   00322-50000-31647-AA417

    ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11106.0
    ASP.NET and Web Tools 2015.1 (Beta8)
    ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
    ASP.NET Web Frameworks and Tools 2013   5.2.40314.0

    Clang with Microsoft CodeGen   14.0.25115

    JavaScript Language Service   2.0
    JavaScript Project System   2.0

    Microsoft MI-Based Debugger   1.0

    NuGet Package Manager   3.4.4

    Visual C++ for Cross Platform Mobile Development (Android)   14.0.25116.00
    Visual C++ for Cross Platform Mobile Development (Android)

    Visual C++ for Cross Platform Mobile Development (iOS)   14.0.25116.00
    Visual C++ for Cross Platform Mobile Development (iOS)

    Visual Studio Tools for Apache Cordova   Update 9
    Visual Studio Tools for Apache Cordova

    Visual Studio Tools for Universal Windows Apps   14.0.25219.00

    Xamarin   4.0.4.4 (a9c7826)
    Xamarin.Android   6.0.4.0 (ee215fc)
    Xamarin.iOS   9.6.2.2 (be25da5)

____________________________________________________
    Dev machine
    ____________________________________________________
    CPU: i5 3.40Ghz 
    RAM: 16GB 
    OS: Windows 10 Enterprise 
    Network: 100MB fibre 

____________________________________________________
    Mac 
    ____________________________________________________
    CPU: i7 2.8GHz
    RAM: 4GB
    OS: OSX 10.11.4 El Capitan
    XCode 7.3 (7D175)

As I said, the project builds and deploys perfectly fine via the Mac Build Host - it seems to limited to the storyboard designer. This is costing much time from a development standpoint and others flagged this up back in November 2015

Please can you improve the performance of the designer tool or advise if it is possible for me to take any steps to improve things...

All the best,

John

Answers

  • adopadoadopado USMember

    also having this issue

  • JohnNolanJohnNolan USMember
    edited November 2016

    2016-11-23 14:59:29.0] INFO: Reload complete in 45756ms.
    [2016-11-23 14:59:29.2] ERROR: Couldn't load icon for segue
    System.InvalidOperationException: Resource not found: MonoTouch.Design.Client.icons.Custom.segue-popoverpresentation.png
    at Xwt.Backends.ImageBackendHandler.LoadFromResource(Assembly asm, String name)
    at Xwt.Drawing.ResourceImageLoader.LoadImage(String fileName)
    at Xwt.Drawing.Image.LoadImage(ImageLoader loader, String fileName, ImageTagSet tagFilter)
    at Xwt.Drawing.Image.FromResource(Assembly assembly, String resource)
    at Xwt.Drawing.Image.FromResource(Type type, String resource)
    at MonoTouch.Design.Client.IosSdkTarget.GetIconForSegue(String richKind)
    [2016-11-23 14:59:29.4] ERROR: Couldn't load icon for segue
    System.InvalidOperationException: Resource not found: MonoTouch.Design.Client.icons.Custom.segue-showdetail.png
    at Xwt.Backends.ImageBackendHandler.LoadFromResource(Assembly asm, String name)
    at Xwt.Drawing.ResourceImageLoader.LoadImage(String fileName)
    at Xwt.Drawing.Image.LoadImage(ImageLoader loader, String fileName, ImageTagSet tagFilter)
    at Xwt.Drawing.Image.FromResource(Assembly assembly, String resource)
    at Xwt.Drawing.Image.FromResource(Type type, String resource)
    at MonoTouch.Design.Client.IosSdkTarget.GetIconForSegue(String richKind)
    [2016-11-23 14:59:41.5] ERROR: Couldn't create editor entry (item=CocoaTouchStoryboardSegue, prop=ibInspectedSegueClassName)
    System.InvalidCastException: Specified cast is not valid.
    at MonoTouch.Design.Client.Windows.NativePropertyTable.CreateChooserEditor(PropertyChooserEditor editor)
    at MonoTouch.Design.Client.Windows.NativePropertyTable.CreateEditor(PropertyTableRow row, PropertyEditor editor)

    Segues are causing issues as is the deserialization...

    Microsoft Visual Studio Professional 2015
    Version 14.0.25425.01 Update 3
    Microsoft .NET Framework
    Version 4.6.01038

    Installed Version: Professional

    Visual Basic 2015 00322-50000-31647-AA417
    Microsoft Visual Basic 2015

    Visual C# 2015 00322-50000-31647-AA417
    Microsoft Visual C# 2015

    Visual C++ 2015 00322-50000-31647-AA417
    Microsoft Visual C++ 2015

    Windows Phone SDK 8.0 - ENU 00322-50000-31647-AA417
    Windows Phone SDK 8.0 - ENU

    Application Insights Tools for Visual Studio Package 7.12.01117.1
    Application Insights Tools for Visual Studio

    ASP.NET and Web Tools 2015.1 14.1.20907.0
    ASP.NET and Web Tools 2015.1

    ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
    For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

    ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
    For additional information, visit http://www.asp.net/

    Azure App Service Tools v2.8.1 14.0.11123.0
    Azure App Service Tools v2.8.1

    Clang with Microsoft CodeGen 14.0.25317
    Clang with Microsoft CodeGen

    CodeMaid 10.1.93
    CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

    Command Bus, Event Stream and Async Manager Merq
    Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.

    Common Azure Tools 1.8
    Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

    Devart SQL Complete 5.5.205
    Devart dbForge SQL Complete for Management Studio and Visual Studio
    Copyright (c) 2016 Devart. All rights reserved.
    Web: http://www.devart.com/dbforge/sql/sqlcomplete
    Support: http://www.devart.com/dbforge/sql/sqlcomplete/support.html
    Ordering: http://www.devart.com/dbforge/sql/sqlcomplete/ordering.html

    JavaScript Language Service 2.0
    JavaScript Language Service

    JavaScript Project System 2.0
    JavaScript Project System

    KofePackagePackage Extension 1.0
    KofePackagePackage Visual Studio Extension Detailed Info

    Microsoft .NET Core Tools (Preview 2) 14.1.20907.0
    Microsoft .NET Core Tools (Preview 2)

    Microsoft Azure Mobile Services Tools 1.4
    Microsoft Azure Mobile Services Tools

    Microsoft Azure Tools 2.7
    Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.7.30728.1602

    Microsoft MI-Based Debugger 1.0
    Provides support for connecting Visual Studio to MI compatible debuggers

    NuGet Package Manager 3.5.0
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

    PreEmptive Analytics Visualizer 1.2
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

    SQL Server Data Tools 14.0.60519.0
    Microsoft SQL Server Data Tools

    TypeScript 1.8.36.0
    TypeScript tools for Visual Studio

    Visual C++ for Cross Platform Mobile Development (Android) 14.0.25401.00
    Visual C++ for Cross Platform Mobile Development (Android)

    Visual C++ for Cross Platform Mobile Development (iOS) 14.0.25401.00
    Visual C++ for Cross Platform Mobile Development (iOS)

    Visual Studio Spell Check Everywhere VSSpellCheckEverywhere
    An extension that enables spell checking within any Visual Studio file editor or tool window that uses WPF text boxes.
    https://GitHub.com/EWSoftware/VSSpellChecker

    Visual Studio Spell Checker VSSpellChecker
    An editor extension that checks the spelling of comments, strings, and plain text as you type or interactively with tool windows.
    https://GitHub.com/EWSoftware/VSSpellChecker

    Visual Studio Tools for Apache Cordova Update 10
    Visual Studio Tools for Apache Cordova

    Visual Studio Tools for Universal Windows Apps 14.0.25420.01
    The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

    Xamarin 4.2.1.64 (872717c)
    Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

    Xamarin.Android 7.0.2.37 (ce955cc)
    Visual Studio extension to enable development for Xamarin.Android.

    Xamarin.iOS 10.2.1.5 (44931ae)
    Visual Studio extension to enable development for Xamarin.iOS.

  • GuyProvostGuyProvost ✭✭✭ CAMember ✭✭✭

    Join the club... I dont even know I can achieve what is demoed on Windows while doing iOS work. The process is slow and unstable.

    Just watched the Xamarin University demo at Connect 2016 and I'll give it another try.

Sign In or Register to comment.