Bug 33200 - Visual Studio throws Unhandled System.IndexOutOfRangeException: Index was outside the bounds of the array.
Summary: Visual Studio throws Unhandled System.IndexOutOfRangeException: Index was out...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 3.11 (C5)
Hardware: PC Windows
: Normal normal
Target Milestone: 15.3
Assignee: Joaquin Jares
Depends on:
Reported: 2015-08-18 13:53 UTC by Kent Green [MSFT]
Modified: 2017-07-18 10:48 UTC (History)
15 users (show)

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

Visual Studio logs from customer reporting issue (3.74 MB, application/zip)
2015-08-18 13:53 UTC, Kent Green [MSFT]

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 Kent Green [MSFT] 2015-08-18 13:53:26 UTC
Created attachment 12556 [details]
Visual Studio logs from customer reporting issue

From this Enterprise desk case:

Customer reported Visual Studio throwing the following exception in an error window:
Screenshot: http://screencast.com/t/7i8mlSoYxF

> Exception in OnUnhandledException:

> System.IndexOutOfRangeException: Index was outside the bounds of the array. 
>   at Mono.Debugging.Client.ObjectPath.get_Item(Int32 n)
>   at Mono.Debugging.Client.ObjectValue.GetChild(String name, EvaluationOptions options)
>   at Mono.Debugging.Client.ObjectValue.GetChild(String name)
>   at Mono.Debugging.Client.ExceptionInfo.get_StackIsEvaluating()
>   at Xamarin.VisualStudio.Debugger.ExceptionsAdapter.ResolveFullException(ExceptionInfo exception)
>   at Xamarin.VisualStudio.Debugger.ExceptionsAdapter.GetExceptionInfo(Backtrace backTrace, EvaluationOptions options)
>   at Xamarin.VisualStudio.Debugger.ExceptionsAdapter.OnExceptionThrown(Object sender, TargetEventArgs args)

===Build Info===
Customer noted they're running on Windows 10, I didn't find any indication whether or not that would make a difference.

Microsoft Visual Studio Enterprise 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00079

Installed Version: Enterprise

Architecture and Modeling Tools 00322-80000-00000-AA154
Microsoft Architecture and Modeling Tools

UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015 00322-80000-00000-AA154
Microsoft Visual Basic 2015

Visual C# 2015 00322-80000-00000-AA154
Microsoft Visual C# 2015

Visual C++ 2015 00322-80000-00000-AA154
Microsoft Visual C++ 2015

Visual F# 2015 RC 00322-80000-00000-AA154
Microsoft Visual F# 2015 RC

Windows Phone SDK 8.0 - ENU 00322-80000-00000-AA154
Windows Phone SDK 8.0 - ENU

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

ASP.NET and Web Tools 14.0.20711.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 HDInsight HQL Service 2.0.2200.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio 2.0.2200.0
An integrated development environment for HDInsight application development.

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 Code Digger 0.9
Microsoft Code Digger

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

Microsoft.Pex.VisualStudio 1.0

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

Packet.VisualStudio 1.0
Manage your Paket dependenciesFile from Visual Studio!

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

SQL Server Data Tools 14.0.50616.0
Microsoft SQL Server Data Tools

Visual C++ for Cross Platform Mobile Development 1.0
Visual C++ for Cross Platform Mobile Development

Visual C++ for Cross Platform Mobile Development 1.0
Visual C++ for Cross Platform Mobile Development

Visual F# Power Tools 2.0.0
Visual F# Power Tools

Xamarin 3.11.836.0 (ed5c750)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

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

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

Xamarin.iOS Unified Migration 1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration 1.0
Early preview of Xamarin Test Cloud integration

===Additional Info===
Attaching the VS IDE logs from the customer. Unfortunately, as noted before; I haven't found a way to reproduce the issue, and I'm not seeing the exception directly in the IDE logs. As such I'm expecting this report will probably get marked NEEDINFO, but felt it was reasonable to add the data so far in case anyone else is seeing it or the exception by itself offers more clues where to look.

Also, the fact that the exception was thrown in an error window rather than the build seemed like it might have indicated an environment issue (though I'm not sure about that either.)

The customer also noted the issue occurred around Mon 17/08/2015 11:22 in their system time; though again, it didn't look to me like anything interesting happened in the IDE logs around that time.
Comment 1 Rajneesh Kumar 2015-08-19 11:19:22 UTC
We do not have access to the desk.

Could you please provide us some steps or sample application by other means? So, that we can reproduce this issue at our end.

Comment 4 Sachithra 2016-03-06 08:27:29 UTC
I had an issue just like this one. Reason being accidentally deleting line that sets layout_height. Fixing that line waived the error. 

Comment 5 Dimitar Dobrev 2016-06-28 10:04:27 UTC
I have hit the same problem with Xamarin in Visual Studio 2015 Update 2 on Windows 7 64-bit. I have at present no further information, such as a reliable reproduction, but the bug is still present.
Comment 6 Adrian Alonso 2017-06-21 19:50:53 UTC
This is already fixed in 15.3
Comment 9 Prasad Raghorte 2017-07-18 10:48:26 UTC
As per the above comment marking this bug as verified and we will keep track if same bug observed again.