Bug 59365 - "There was a problem rendering this document" error when opening .xib files
Summary: "There was a problem rendering this document" error when opening .xib files
Status: RESOLVED DUPLICATE of bug 58226
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 4.6.0 (15.3)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-09-08 23:44 UTC by Daniel
Modified: 2017-09-12 13:56 UTC (History)
5 users (show)

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


Attachments
Error opening xib with <device> element (10.97 KB, image/png)
2017-09-08 23:44 UTC, Daniel
Details
Example xib file with <device> element that causes the problem (2.18 KB, application/octet-stream)
2017-09-11 09:51 UTC, Daniel
Details
zip logs (1.59 MB, application/x-zip-compressed)
2017-09-11 09:58 UTC, Daniel
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 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 58226

Description Daniel 2017-09-08 23:44:16 UTC
Created attachment 24664 [details]
Error opening xib with <device> element

Since updating to Xamarin 4.6.0 (Visual Studio on Windows), we are getting a "There was a problem rendering this document" error when opening .xib files. See attached screenshot of error.

This problem can also present itself as a "error loading custom components" error which appears in an orange bar at the top of the designer.

After some investigation we discovered that this is caused by a <device> element in the xib file. Here is an example:

<device id="retina4_7" orientation="portrait">
  <adaptation id="fullscreen"/>
</device>

If we delete this element from the xib file it will load correctly. This is not ideal since we have many xib files across multiple projects with this element. The xib files were originally created on Xcode which is where this element comes from.

This has not been a problem until updating to Xamarin 4.6.0 (and VS 15.3.3). Before this version we have been successfully opening these xib files for months. The latest version of Xamarin.iOS is also installed on the attached Mac.

Please fix this bug. If the Visual Studio iOS designer is now not compatible with the <device> element, it should be ignored instead of erroring and preventing xib files from opening.

Full Environment details:
Visual Studio - 15.3.3
Xamarin - 4.6.0.299 (b63523e27)
Xamarin.iOS and Xamarin.Mac SDK - 10.12.0.20 (80b8487)


Thanks.
Comment 1 Prashant [MSFT] 2017-09-11 04:47:25 UTC
Thanks so much for taking the time to submit this report! 

I’m unable to reproduce this issue using the latest Visual Studio 2017 & 2015 

Please attach the following to help us reproduce this issue:
-Detailed reproduction steps
-Version information (Help → About Microsoft Visual Studio → Copy Info)
-Logs (Help → Xamarin → Zip Logs (last 7 days))
-Optional: project to reproduce your issue
Comment 2 Daniel 2017-09-11 09:51:09 UTC
Created attachment 24673 [details]
Example xib file with <device> element that causes the problem
Comment 3 Daniel 2017-09-11 09:57:26 UTC
See my previous comment with an xib file attached (View1.xib) that will cause an error when opened in the designer in Visual Studio (2017). This is caused by the <device> element which is a valid element and the attached View1.xib file will correctly open in Xcode.

Other info you requested:
-Detailed reproduction steps
Simply open the attached View1.xib file in Visual Studio 2017.

-Version information (Help → About Microsoft Visual Studio → Copy Info)
Microsoft Visual Studio Community 2017 
Version 15.3.3
VisualStudio.15.Release/15.3.3+26730.12
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Community

Visual Basic 2017   00369-60000-00001-AA268
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA268
Microsoft Visual C# 2017

Visual F# 4.1   00369-60000-00001-AA268
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.8.00712.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30726.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   1.0
Provides languages services for ASP.NET Core Razor.

ASP.NET Template Engine 2017   15.0.30726.0
ASP.NET Template Engine 2017

ASP.NET Web Frameworks and Tools 2012   4.0.20601.0
For additional information, visit https://www.asp.net/

ASP.NET Web Frameworks and Tools 2017   5.2.50601.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30728.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.2.9000.1
Microsoft Azure Data Lake Tools for Visual Studio

Azure Data Lake Tools for Visual Studio   2.2.9000.1
Microsoft Azure Data Lake Tools for Visual Studio

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

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript UWP Project System   2.0
JavaScript UWP Project System

JetBrains ReSharper Ultimate 2017.1.1    Build 108.0.20170407.122957
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure HDInsight Azure Node   2.2.9000.1
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service   2.2.9000.1
Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio   1.7
Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service   2.2.9000.1
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50719.1

Microsoft Continuous Delivery Tools for Visual Studio   0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

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

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   4.6.8-pre (ec7034f)
Support for debugging Mono processes with Visual Studio.

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

SlowCheetah - XML config transforms   1.0
This package enables you to transform your app.config or any other XML file based on the build configuration. It also adds additional tooling to help you create XML transforms.

SQL Server Data Tools   15.1.61707.200
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   2.3.4.0
TypeScript tools for Visual Studio

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

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

WebJobs Tools v1.0.0   __RESXID_PRODUCTVERSION__
WebJobs Tools v1.0.0

Xamarin   4.6.0.299 (b63523e27)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.4.0.21 (2851083)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.12.0.20 (80b8487)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

-Logs (Help → Xamarin → Zip Logs (last 7 days))
Attached

Thanks
Comment 4 Daniel 2017-09-11 09:58:07 UTC
Created attachment 24674 [details]
zip logs
Comment 5 Alan McGovern 2017-09-12 13:52:17 UTC
The fix for this should have shipped with the latest 15.3 update. Do let us know if you have any issues with that release!

Thanks!

*** This bug has been marked as a duplicate of bug 58226 ***
Comment 6 Alan McGovern 2017-09-12 13:56:27 UTC
Actually I could be mistaken - I think the release was delayed slightly due to some external factors. I believe Visual Studio 15.3.4 (or newer) release will have the fix. If that is not yet available as an update to your stable version of Visual Studio it will be soon!