Bug 23454 - iPad storyboard template fails to open
Summary: iPad storyboard template fails to open
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 3.7
Hardware: PC Mac OS
: High normal
Target Milestone: 3.7
Assignee: Alex Corrado [MSFT]
URL:
: 23464 ()
Depends on:
Blocks:
 
Reported: 2014-09-29 12:44 UTC by Allie Miller
Modified: 2014-10-03 09:02 UTC (History)
7 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 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:
VERIFIED FIXED

Description Allie Miller 2014-09-29 12:44:23 UTC
*Overview*
When attempting to open an iPad storyboard file in the iOS Designer, the storyboard file fails to open with the following error:
System.AggregateException: One or more errors occurred. --->
MonoTouch.Design.Client.DesignerRemoteException:
System.InvalidCastException: Cannot cast from source type to destination
type.
(see Additional Information for more on the error)

*Steps to reproduce*
1) Open the Archive test project.
2) Attempt to open the iPad storyboard file.

*Expected results*
Storyboard opens in iOS Designer without an error.

*Actual results*
The file fails to open with the error mentioned above.

*Additional information*
The full error can be found here: https://gist.github.com/abmiller/737764149c8a918a9393
iOS Designer log file can be found here: https://gist.github.com/abmiller/c08ef14707b0633291ab

This issue is only reported for iPad storyboard files. The iPhone storyboard file opens fine. Additionally, the iPad storyboard file opens fine in Xcode. 

*Versioning Information*
Xamarin Studio
Version 5.4 (build 240)
Installation UUID: 0fcdb2d8-9831-4f6e-af5b-90ccb4fe6840
Runtime:
Mono 3.8.0 ((no/45d0ba1)
GTK+ 2.24.23 (Raleigh theme)

Package version: 308000009

Apple Developer Tools
Xcode 5.1.1 (5085)
Build 5B1008

Xamarin.Mac
Version:

Xamarin.Android
Not Installed

Xamarin.iOS
Version: 8.0.0.62 (Business Edition)
Hash: 8bd8158
Branch:
Build date: 2014-09-18 09:12:55-0400

Build Information
Release ID: 504000240
Git revision: 01786bc67c7024ec33d327ed27e4416d7a846f4e
Build date: 2014-09-17 10:58:48-04
Xamarin addins: 7cd7dfcd6b7b7b53281508954ec080f1cd153ad3

Operating System
Mac OS X 10.9.2
Darwin fredbesitchsmbp.bigpond 13.1.0 Darwin Kernel Version 13.1.0
Wed Apr 2 23:52:02 PDT 2014
root:xnu-2422.92.1~2/RELEASE_X86_64 x86_64




VS info
-----------
Microsoft Visual Studio Premium 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.52747

Installed Version: Premium

LightSwitch for Visual Studio 2013 06191-004-0456024-02155
Microsoft LightSwitch for Visual Studio 2013

Microsoft Office Developer Tools for Visual Studio 2013 ENU
06191-004-0456024-02155
Microsoft Office Developer Tools for Visual Studio 2013 ENU

Team Explorer for Visual Studio 2013 06191-004-0456024-02155
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013 06191-004-0456024-02155
Microsoft Visual Basic 2013

Visual C# 2013 06191-004-0456024-02155
Microsoft Visual C# 2013

Visual C++ 2013 06191-004-0456024-02155
Microsoft Visual C++ 2013

Visual F# 2013 06191-004-0456024-02155
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06191-004-0456024-02155
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993
by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition
Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from
Lernout & Hauspie Speech Products N.V. All rights reserved.

ASP.NET and Web Tools 2013.1.41009
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting
providers, on-premises servers, or Windows Azure

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

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

Common Azure Tools 1.0
Provides common services for use by Azure Mobile Services and Windows Azure
Tools.

NuGet Package Manager 2.8.50313.46
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 12.0.30919.1
Microsoft SQL Server Data Tools

Windows Azure Mobile Services Tools 1.0
Windows Azure Mobile Services Tools

Windows Azure Remote Debugging 1.0
Windows Azure Remote Debugging Community Technology Preview

Windows Azure Tools 2.2
Windows Azure Tools for Microsoft Visual Studio 2013 - v2.2.11003.1601

Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the
menus and controls of Visual Studio.

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

Xamarin 3.6.245.0 (49abddaaec0a8be4cb890b8cddefed81727bbe6c)
Visual Studio extension to enable development for Xamarin.iOS and
Xamarin.Android.

Xamarin.Android 4.16.0.17 (2a7b68212b17c903160fbd8e0106babb299d1be3)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS 8.0.52.0 (b38baf1c655f9fe816fee25cbd7ac78225def3e9)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 4 Alan McGovern 2014-09-29 13:07:17 UTC
Alex, can you take a quick look and figure out if we need this fixed asap or if it can wait?
Comment 5 Alan McGovern 2014-09-29 19:47:16 UTC
*** Bug 23464 has been marked as a duplicate of this bug. ***
Comment 6 Alan McGovern 2014-09-29 19:50:24 UTC
This doesn't happen with master.

CC"ing kzu so he can help me track down which git revision this corresponds to.
Comment 7 Alan McGovern 2014-09-29 19:51:20 UTC
Damn, hit enter instead of backspace. I need to know which md-addins revision is in both xamarinvs and that monotouch. We don't expose this and it takes me ages each time.
Comment 8 Alan McGovern 2014-09-30 06:01:30 UTC
This doesn't look like a regression. The code in question hasn't changed in over a year. However i was able to locate the cause of the issue. I could only trigger it when rendering as iOS 7.1 and using Xcode 6.0.1. It's possible the issue will appear in other combinations, but i'm not sure which ones.

Fixed in master: https://github.com/xamarin/md-addins/commit/18113401fa13f4b362a9b0a8491354f434d8a227

monodevelop-5.5-branch: https://github.com/xamarin/md-addins/commit/18d9a66674d1f51e069daa99ca155544a8bcefb3
Comment 9 Mohit Kheterpal 2014-10-01 11:24:27 UTC
I have checked this issue and I am still not able to open main.storyboard file of attached project as shown in screencast : http://screencast.com/t/9oey7zeY

Error Log : https://gist.github.com/Mohit-Kheterpal/cb434aac128b699cc3e7
mtbs Log :https://gist.github.com/Mohit-Kheterpal/8673461cb1d9a565db7c
iOS designer log on mac : https://gist.github.com/Mohit-Kheterpal/c33483b724e747ac9df1
IDE Log :https://gist.github.com/Mohit-Kheterpal/0555ebb4266fcc47d3f8
designer log on windows : https://gist.github.com/Mohit-Kheterpal/30d3d93ba1c1c66423b6


Hence reopening this issues.

Environment info :
X.iOS 8.2.0.190

Microsoft Visual Studio Professional 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.52742

Installed Version: Professional

Xamarin   3.7.191.0 (8ed3fc1c94db017633cea8d857666d3c27f4d349)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.18.0.32 (04399d62cfc00624d575239d1762ea4fd6d012e2)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.2.0.0 (e934614f2e5a410acb3d62a2994c27a3e770a91e)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 10 PJ 2014-10-03 08:22:52 UTC
The md-addins commit of 3.7.191 is bcebe330, and should contain the fix.

Alan?
Comment 11 PJ 2014-10-03 08:46:32 UTC
Looks like it wasn't in the XI used (8.2.0.190) at the time, they see the fix now with XI 8.2.0.193 and will verify shortly.
Comment 12 Mohit Kheterpal 2014-10-03 09:02:30 UTC
I have checked this issue and this issue is working fine i.e. now we are able to open attached project's storyboard file as shown in screencast : http://screencast.com/t/633iGoTd

using XVS 3.7.191 + X.iOS 8.2.0.193

Hence closing this issue.

Thanks