Bug 24691 - Opening the Contents.json in Assets catalog throws IndexOutOfRangeException
Summary: Opening the Contents.json in Assets catalog throws IndexOutOfRangeException
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 5.5
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2014-11-20 08:20 UTC by Prashant Cholachagudda
Modified: 2014-11-20 09:08 UTC (History)
2 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 or GitHub 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 FIXED

Description Prashant Cholachagudda 2014-11-20 08:20:20 UTC
When we add the Image set in Assets catalog and open Contents.json file, Xamarin Studio throws the following exception


System.IndexOutOfRangeException: Array index is out of range.
  at MonoDevelop.IPhone.AssetEditor.ImageAssetEditorWidget.SetImages (Newtonsoft.Json.Linq.JArray images, Boolean prerendered) [0x001d8] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/fbe3e945/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/AssetEditor/ImageAssetEditorWidget.cs:151 
  at MonoDevelop.IPhone.AssetEditor.AssetEditorWidget.Load (System.String fileName) [0x00182] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/fbe3e945/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/AssetEditor/AssetEditorWidget.cs:81 
  at MonoDevelop.IPhone.AssetEditor.AssetEditorViewContent.Load (System.String fileName) [0x0000f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/fbe3e945/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/AssetEditor/AssetEditorViewContent.cs:76 
  at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x00116] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.5-branch/fbe3e945/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1422 


Version information:

=== Xamarin Studio ===

Version 5.5.3 (build 6)
Installation UUID: f8016946-f8ae-41ff-8a6e-6c3d1a711d07
Runtime:
	Mono 3.10.0 ((detached/e204655)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000023

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: 8.4.0.16 (Business Edition)
Hash: 80e9ff7
Branch: 
Build date: 2014-10-22 15:09:12-0400

=== Xamarin.Mac ===

Version: 1.10.0.18 (Business Edition)

=== Xamarin.Android ===

Version: 4.18.1 (Business Edition)
Android SDK: /Users/prashantvc/android-sdk
	Supported Android versions:
		2.2    (API level 8)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

=== Build Information ===

Release ID: 505030006
Git revision: fbe3e9453daf6a3bb9a9709ed22bec35f7c9056b
Build date: 2014-10-23 13:08:38-04
Xamarin addins: e44add2b39de4dd57c0742bb2e620dfad84c64c6

=== Operating System ===

Mac OS X 10.10.1
Darwin Prashant-MBPr 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 2 Jeffrey Stedfast 2014-11-20 09:08:51 UTC
already fixed in 5.5.4