Bug 5016 - Android designer errors out opening file
Summary: Android designer errors out opening file
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-05-10 19:02 UTC by Mikayla Hutchinson [MSFT]
Modified: 2012-05-16 14:05 UTC (History)
0 users

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 Mikayla Hutchinson [MSFT] 2012-05-10 19:02:47 UTC
Here's the trace:
System.ArgumentNullException: Argument cannot be null.
Parameter name: array
  at System.Array.IndexOf[Tuple`2] (System.Tuple`2[] array, System.Tuple`2 value) [0x0001d] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System/Array.cs:2118 
  at Xamarin.AndroidDesigner.Selectors.QualifierComboSelector.SelectValue (Xamarin.AndroidDesigner.Resources.QualifierValue v1, Xamarin.AndroidDesigner.Resources.QualifierValue v2) [0x00008] in /Users/michael/Mono/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner.Selectors/QualifierComboSelector.cs:74 
  at Xamarin.AndroidDesigner.Selectors.QualifierComboSelector.Initialize (Xamarin.AndroidDesigner.DesignerSession s) [0x0004e] in /Users/michael/Mono/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner.Selectors/QualifierComboSelector.cs:146 
  at Xamarin.AndroidDesigner.DesignerWidget.set_Session (Xamarin.AndroidDesigner.DesignerSession value) [0x001a9] in /Users/michael/Mono/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/DesignerWidget.cs:547 
  at (wrapper remoting-invoke-with-check) Xamarin.AndroidDesigner.DesignerWidget:set_Session (Xamarin.AndroidDesigner.DesignerSession)
  at MonoDevelop.MonoDroid.Gui.AndroidDesignerView.Load (System.String fileName) [0x00193] in /Users/michael/Mono/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Gui/AndroidDesignerView.cs:127 
  at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x000f8] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1124
Comment 1 Lluis Sanchez 2012-05-15 08:45:18 UTC
Can you consistently reproduce this crash? If you do, can I see the output you get in the console?
Comment 2 Mikayla Hutchinson [MSFT] 2012-05-15 16:06:08 UTC
The output in the console is exactly the same as the exception I pasted.
Comment 4 Lluis Sanchez 2012-05-16 14:05:31 UTC
Fixed in master.