Bug 37369 - Designer is slow loading the storyboard files in the VS
Summary: Designer is slow loading the storyboard files in the VS
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 4.0.0 (C6)
Hardware: PC Mac OS
: High normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-01-04 06:31 UTC by Prashant Cholachagudda
Modified: 2017-05-25 17:39 UTC (History)
17 users (show)

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

Logs (634.35 KB, application/zip)
2016-01-04 06:31 UTC, Prashant Cholachagudda
Logs from the iOS designer in Xamarin Studio on OS X (90.78 KB, application/zip)
2016-06-16 23:17 UTC, Dimitar Dobrev

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 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:

Description Prashant Cholachagudda 2016-01-04 06:31:21 UTC
Created attachment 14427 [details]

# Description
Storyboard files load very slow (takes over a minute) or does not load at all in VS 2015 (with latest Xamarin tools installed)

# Version information

Microsoft Visual Studio Professional 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00081

Installed Version: Professional

LightSwitch for Visual Studio 2015 00322-50050-70321-AA781
Microsoft LightSwitch for Visual Studio 2015

Visual Basic 2015 00322-50050-70321-AA781
Microsoft Visual Basic 2015

Visual C# 2015 00322-50050-70321-AA781
Microsoft Visual C# 2015

Visual C++ 2015 00322-50050-70321-AA781
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 14.0.20626.0
ASP.NET and Web Tools

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

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

GenerateUnitTest 1.0
Generates unit test code for methods in classes under test.

GitHub.VisualStudio 1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools

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

Office Developer Tools for Visual Studio 2015 ENU 14.0.23025
Microsoft Office Developer Tools for Visual Studio 2015 ENU

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

SQL Server Data Tools 14.0.50730.0
Microsoft SQL Server Data Tools

Visual Studio Tools for Universal Windows Apps 14.0.23309.00 d14oob
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.

Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin (1390b70)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android (d300845)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS (ea30b32)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 3 Rafael Veronezi 2016-04-04 02:15:15 UTC
I'm finding the very same issue here using the latest version of Xamarin Visual Studio as of this date.
Comment 4 Rafael Veronezi 2016-04-04 02:15:43 UTC
I'm finding the very same issue here using the latest version of Xamarin Visual Studio as of this date.
Comment 5 Dimitar Dobrev 2016-06-16 19:08:28 UTC
It might be a separate issue but the iOS designer is unusably slow in the latest (6.0.5174) Xamarin Studio too. An empty storyboard, created by Xamarin Studio itself, cannot load for at least 20 minutes. It was very slow in the previous XS too but it did load, now it just spins endlessly.
Comment 6 Alan McGovern 2016-06-16 20:56:33 UTC
The log files from a slow loading session would be incredibly useful. With those we'll be able to tell which part is not working correctly. Could you attach them so we can review them?
Comment 7 Alan McGovern 2016-06-16 20:57:40 UTC
For reference, the original log files contain sign of the designer starting so it's likely whatever the problem is, it's not related specifically to the designer. More log files might shed more light on the problem.
Comment 8 Dimitar Dobrev 2016-06-16 20:59:33 UTC
How do I collect the logs? Also, are there of any use if the designer never finishes loading? I had it loading for 20 minutes and then went to have dinner for another 20, when I got back, it hadn't loaded so I am definitely not waiting for it to complete.
Comment 9 Dimitar Dobrev 2016-06-16 21:00:14 UTC
*are they
Comment 10 claytonfetzer 2016-06-16 21:56:08 UTC
I am also getting this issue in Xamarin Studios on OS X. I've been waiting 20+ minutes and it isn't loading.
Comment 11 Dimitar Dobrev 2016-06-16 21:57:20 UTC
Yes, I forgot to clarify, I get it on OS X too.
Comment 12 Alan McGovern 2016-06-16 23:11:46 UTC
The logs are useful even if the designer never loads. The set of logs originally attached indicate that the designer core never started loading. If that is consistently the case then we know where to start looking.

You can get the locks in either IDE by clicking on Help -> Open Log Directory. The name of the property might change between IDEs. Also if you are in VS it does help to be connceted to the mac when gathering the logs as there are other log files VS will include which are located on the Mac.
Comment 13 Dimitar Dobrev 2016-06-16 23:17:03 UTC
Created attachment 16372 [details]
Logs from the iOS designer in Xamarin Studio on OS X

There you go. I do hope this helps with the fix because the iOS designer is outright useless at present.
Comment 14 Alan McGovern 2016-06-17 00:43:02 UTC
For the people experiencing this problem, have you opened Xcode at least once?

Alex, the first error seems to be this:

system: Jun 16 21:57:58 Dimitars-MacBook-Pro-2 installd[4337]: 0x700000117000 __69-[MIFileManager urlsForItemsInDirectoryAtURL:ignoringSymlinks:error:]_block_invoke: Ignoring symlink at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/CoreServices/CFNetworkAgent
system: Jun 16 21:57:59 Dimitars-MacBook-Pro-2 sharingd[4345]: (Error) MC: MobileContainerManager gave us a path we weren't expecting; file a radar against them
	Expected: /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
	Actual: /tmp/com.xamarin.MTHosting.413671/Home/043B037E-520D-4A40-87D9-22D35B1CCD95/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
	Overriding MCM with the one true path
system: Jun 16 21:58:00 Dimitars-MacBook-Pro-2 sharingd[4345]: 21:58:00.111 : SDActivityPayloadManager::loadPersistedKeyRequests Clearing store as format is invalid (null)
[2016-06-16 21:58:00.8] ERROR: com.xamarin.MTHosting.413671: InstallAndLaunch (attempt 1): Foundation.ObjCException: NSPortTimeoutException: connection timeout: did not receive reply
  at ObjCRuntime.Runtime.ThrowNSException (IntPtr ns_exception) <0x1beedeaf0 + 0x00082> in <filename unknown>:0 
  at ObjCRuntime.Runtime.throw_ns_exception (IntPtr exc) <0x1beedeaa0 + 0x00014> in <filename unknown>:0 
  at (wrapper native-to-managed) ObjCRuntime.Runtime:throw_ns_exception (intptr)
  at (wrapper managed-to-native) MonoTouch.Hosting.Internal.Messaging:xamarin_bool_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (intptr,intptr,intptr,intptr,intptr&)
  at Bindings.SimDevice.InstallApplication (Foundation.NSUrl bundlePath, Foundation.NSDictionary options, Foundation.NSError& err) [0x00028] in /Users/builder/data/lanes/3342/694a75f0/source/md-addins/Xamarin.Designer.iOS/external/ios-sim-sharp/MonoTouch.Hosting/Bindings/SimDevice.g.cs:266 
  at MonoTouch.Hosting.CoreSimulatorFullSession.InstallApplicationImpl (System.String bundlePath, System.String bundleId) [0x00058] in /Users/builder/data/lanes/3342/694a75f0/source/md-addins/Xamarin.Designer.iOS/external/ios-sim-sharp/MonoTouch.Hosting/CoreSimulatorFullSession.cs:178
Comment 15 Dimitar Dobrev 2016-06-17 00:46:51 UTC
I have no idea if you mean once in the current user session or ever but I opened the xib in the iOS designer, it failed to load, then I opened it with Xcode and it loaded immediately, then it failed to load again in the iOS designer.
Comment 16 Rob Bertora 2016-09-27 22:32:59 UTC
I am new to Xamarin, but its unbeareable - what on earth is going on how can Microsoft back this product? How can any company / developers produce anything that works in the story board? I have the fastest mac and pc available on the market and still it takes a minute to expand a label field in a view on the storyboard.. this is crazy! FIX IT.
Comment 17 Rob Bertora 2016-10-18 20:17:20 UTC
I worked out what was slowing things down so much - images set to back, i.e. background images on the uiviews, even low-res images made the designer grind to a halt, so remove the image then edit. hope that helps someone out there with the same problem.
Comment 18 Rob Bertora 2016-10-19 10:57:38 UTC
and even better add the background image dynamically, so it does not affect your editor at all.

Comment 19 Alex Corrado [MSFT] 2017-05-25 17:39:10 UTC
Thank you all for your detailed reports on this. We've shipped some core performance improvements for both Mac and Windows that should significantly improve start up time for the designer. I'm closing the issue now, but please feel free to reopen it and comment if you are still seeing this issue in the latest releases. Thanks again.