Bug 26537 - Document Outline is empty
Summary: Document Outline is empty
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 3.9
Hardware: PC Windows
: Highest normal
Target Milestone: ---
Assignee: Vinicius Jarina
Depends on:
Reported: 2015-01-29 06:36 UTC by Marco
Modified: 2015-03-03 11:42 UTC (History)
7 users (show)

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

What I see on my document outline (38.74 KB, image/png)
2015-02-05 05:00 UTC, Marco
Log files (62.25 KB, application/octet-stream)
2015-02-05 05:00 UTC, Marco

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 Marco 2015-01-29 06:36:54 UTC
After some operations on a storyboard, the "Document Outline" stop to works! It appears empty or with repeated and wrong elements.

I need to close and reopen the storyboard to solve the problem.

My config is:

Visual studio 2013 PRO Update 4.
Xamarin 3.9.274
Comment 1 Naqeeb 2015-01-29 10:14:19 UTC
I have tried this issue but not able to reproduce it. To reproduce this issue I have followed steps mentioned below :

1. Create a iPhone Single View app in VS.
2. Open storyboard designer file.
3. Drag some controls like Button,label etc on it.
4. Perform some operations on a storyboard.
5. Open document outline window.

I observed that after performing some operation on a storyboard, "Document Outline" is not appear empty and working fine. Here is the screencast for the same: http://www.screencast.com/t/ddL6MgNhXiGR

Could you please provide us steps to reproduce ? Or please let me know that what steps I am missing/wrong to reproduce this issue. That would be very helpful to reproduce this issue at our end.

Environment info:
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0446016-02241
Microsoft LightSwitch for Visual Studio 2013

Microsoft Office Developer Tools for Visual Studio 2013 ENU   06177-004-0446016-02241
Microsoft Office Developer Tools for Visual Studio 2013 ENU

Team Explorer for Visual Studio 2013   06177-004-0446016-02241
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0446016-02241
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0446016-02241
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0446016-02241
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0446016-02241
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0446016-02241
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.

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

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.2.21010.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.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone

Microsoft Web Developer Tools 2013   2.0.40926.0
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

NuGet Package Manager   2.8.50926.663
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 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 (74260cb)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

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

Xamarin.iOS (dd1b996f9fab5be032c5bfc54df1bc445953e90f)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified
Comment 2 Marco 2015-01-29 11:21:13 UTC
I'm not sure, but I've noticed that sometime this error happens when I copy and paste a View Controller (usually these View controller have the same Class and the same StoryboardID until I change the values for the new storyboard).

I hope this help you
Comment 3 Alan McGovern 2015-02-01 20:39:33 UTC
Marco, sorry we didn't request this immediately, but the next time this error occurs in VS could you get the log files by clicking Help -> Zip Log Directory and then attach the resulting file to this bug report. You can click the 'private attachment' button when adding the file to keep it internal to xamarin. That will hopefully have enough information to figure out what is going wrong.

Comment 4 Marco 2015-02-05 05:00:01 UTC
Created attachment 9656 [details]
What I see on my document outline
Comment 5 Marco 2015-02-05 05:00:48 UTC
Created attachment 9657 [details]
Log files
Comment 6 Marco 2015-02-05 05:01:34 UTC
I added an image of my visual studio and the log after the problem with the document outline!

I hope it will help you to solve the problem!
Comment 7 Alan McGovern 2015-02-05 05:47:58 UTC
Thanks, this should be enough information for us to work with.
Comment 8 Vinicius Jarina 2015-02-26 20:07:56 UTC
This callstack shows a NRE from Insights, not sure if is a designer fault.
Comment 9 Alex Corrado [MSFT] 2015-02-27 16:28:26 UTC
We can ignore the NRE from Insights.

Here's something we might care about though:

Xamarin.VisualStudio.IOS.Designer.VisualStudioIdeServiceProvider Error: 0 : [2015-02-05 09:43:03.3] Error loading assembly: System.ArgumentException: Value does not fall within the expected range.
   at Mono.Cecil.ModuleDefinition.GetFileStream(String fileName, FileMode mode, FileAccess access, FileShare share)
   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.LoadAssemblyFile(String fileName)
   at Xamarin.VisualStudio.IOS.Designer.VisualStudioIdeServiceProvider.UpdateTypesystemWithAssemblies(IEnumerable`1 paths)
Comment 10 Alan McGovern 2015-03-03 11:42:05 UTC
I pulled that into a separate bug report: https://bugzilla.xamarin.com/show_bug.cgi?id=27602.

I'm going to close this issue as no-one can reproduce the underlying issue. It's possible it was fixed by this commit: https://github.com/mono/xwt/commit/dc6cf1f122120984fb74f92047f1030fccfc823e