Bug 12815 - Visual Studio 2012 crashes when opening Android XAML designer
Summary: Visual Studio 2012 crashes when opening Android XAML designer
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Dominique Louis
URL:
Depends on:
Blocks:
 
Reported: 2013-06-21 09:54 UTC by Hermann Hubschle
Modified: 2016-08-03 15:22 UTC (History)
5 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 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:
VERIFIED FIXED

Description Hermann Hubschle 2013-06-21 09:54:18 UTC
I worked mostly in iOS for the last couple of days and upgraded the alpha version a few times.

Today I tried to edit an Android project and VS consistently crashes whenever the XAML designer is opened, even when you just create a new layout.
The Xamarin Studio designer works fine.


Application: devenv.exe
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: Unrecoverable system error.
Stack:
   at System.Environment.FailFast(System.String)
   at MS.Internal.Invariant.FailFast(System.String, System.String)
   at MS.Internal.Invariant.Assert(Boolean)
   at System.Windows.UIElement.PropagateResumeLayout(System.Windows.Media.Visual, System.Windows.Media.Visual)
   at System.Windows.UIElement.PropagateResumeLayout(System.Windows.Media.Visual, System.Windows.Media.Visual)
   at System.Windows.UIElement.PropagateResumeLayout(System.Windows.Media.Visual, System.Windows.Media.Visual)
   at System.Windows.Media.Visual.AddVisualChild(System.Windows.Media.Visual)
   at System.Windows.FrameworkElement.set_TemplateChild(System.Windows.UIElement)
   at System.Windows.Controls.ScrollContentPresenter.set_TemplateChild(System.Windows.UIElement)
   at System.Windows.Controls.ContentPresenter+UseContentTemplate.BuildVisualTree(System.Windows.FrameworkElement)
   at System.Windows.StyleHelper.ApplyTemplateContent(System.Windows.UncommonField`1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.DependencyObject, System.Windows.FrameworkElementFactory, Int32, System.Collections.Specialized.HybridDictionary, System.Windows.FrameworkTemplate)
   at System.Windows.FrameworkTemplate.ApplyTemplateContent(System.Windows.UncommonField`1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.FrameworkElement)
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
   at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Controls.ScrollViewer.MeasureOverride(System.Windows.Size)
   at Xwt.WPFBackend.ExScrollViewer.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at Xwt.WPFBackend.WidgetBackend.GetWidgetDesiredSize(Double, Double, System.Windows.Size ByRef)
   at Xwt.WPFBackend.WidgetBackend.GetPreferredSize(Xwt.SizeConstraint, Xwt.SizeConstraint)
   at Xwt.Widget.OnGetPreferredSize(Xwt.SizeConstraint, Xwt.SizeConstraint)
   at Xwt.Widget.Xwt.IWidgetSurface.GetPreferredSize(Xwt.SizeConstraint, Xwt.SizeConstraint, Boolean)
   at Xwt.Box.OnGetPreferredSize(Xwt.SizeConstraint, Xwt.SizeConstraint)
   at Xwt.Widget.Xwt.IWidgetSurface.GetPreferredSize(Xwt.SizeConstraint, Xwt.SizeConstraint, Boolean)
   at Xwt.Box.OnGetPreferredSize(Xwt.SizeConstraint, Xwt.SizeConstraint)
   at Xwt.Widget.Xwt.IWidgetSurface.GetPreferredSize(Xwt.SizeConstraint, Xwt.SizeConstraint, Boolean)
   at Xwt.Box.OnGetPreferredSize(Xwt.SizeConstraint, Xwt.SizeConstraint)
   at Xwt.Widget.Xwt.IWidgetSurface.GetPreferredSize(Xwt.SizeConstraint, Xwt.SizeConstraint, Boolean)
   at Xwt.Widget.OnChildPreferredSizeChanged()
   at Xwt.Widget.DelayedResizeRequest()
   at Xwt.Toolkit.ExitUserCode(System.Exception)
   at Xwt.Toolkit.Invoke(System.Action)
   at Xwt.WPFBackend.WidgetBackend.MeasureOverride(System.Windows.Size, System.Windows.Size)
   at Xwt.WPFBackend.CustomPanel.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at Xwt.WPFBackend.CanvasBackend.SetChildBounds(Xwt.Backends.IWidgetBackend, Xwt.Rectangle)
   at Xwt.WPFBackend.CanvasBackend.AddChild(Xwt.Backends.IWidgetBackend, Xwt.Rectangle)
   at Xwt.Canvas.AddChild(Xwt.Widget, Xwt.Rectangle)
   at Xwt.Canvas.AddChild(Xwt.Widget, Double, Double)
   at Xwt.Canvas.AddChild(Xwt.Widget)
   at Xamarin.Designer.DesignerSurface.HandleReadyStatusChanged(System.Object, System.EventArgs)
   at Xamarin.Designer.DesignerSurface.set_Session(Xamarin.Designer.DesignerSession)
   at Xamarin.AndroidDesigner.AndroidDesignerSurface.set_Session(Xamarin.AndroidDesigner.AndroidDesignerSession)
   at Xamarin.AndroidDesigner.DesignerWidget.set_Session(Xamarin.AndroidDesigner.AndroidDesignerSession)
   at Mono.Android.VisualStudio.MonoAndroidDesignerPane.Load(System.String, UInt32, Int32)
   at Mono.Android.VisualStudio.MonoAndroidDesignerPane.LoadDocData(System.String)
   at EnvDTE.ProjectItem.Open(System.String)
   at Microsoft.VisualStudio.TemplateWizard.Wizard.OpenNotedItems(System.String, System.Collections.Generic.List`1<WizardExtension>, EnvDTE.Project)
   at Microsoft.VisualStudio.TemplateWizard.Wizard.Execute(System.Object, Int32, System.Object[] ByRef, System.Object[] ByRef, EnvDTE.wizardResult ByRef)
   at Microsoft.VisualStudio.Shell.Interop.IVsProject.AddItem(UInt32, Microsoft.VisualStudio.Shell.Interop.VSADDITEMOPERATION, System.String, UInt32, System.String[], IntPtr, Microsoft.VisualStudio.Shell.Interop.VSADDRESULT[])
...



Possibly related:
When I check for Android updates the resulting Popup message says Xamarin.iOS is up to date!
 



=== Xamarin Studio ===

Version 4.0.9 (build 9)

Installation UUID: ff29bcfd-1c2d-413c-a88c-a0a264cf531e

Runtime:

	Microsoft .NET 4.0.30319.18047

	GTK 2.24.13

	GTK# (2.12.0.0)

=== Xamarin.Android ===

Version: 4.7.10 (Business Edition)

Android SDK: e:\apps\Android\android-sdk

	Supported Android versions:

		1.6   (API level 4)

		2.1   (API level 7)

		2.2   (API level 8)

		2.3   (API level 10)

		3.1   (API level 12)

		4.0   (API level 14)

		4.0.3 (API level 15)

		4.2   (API level 17)

Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_29

java version "1.6.0_29"

Java(TM) SE Runtime Environment (build 1.6.0_29-b11)

Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)

=== Build Information ===

Release ID: 400090009

8b3c179b3fd917007b9f50cb2283444d41cd9d08

Build date: 2013-06-12 19:13:35Z

Xamarin addins: 6fcb079c732ff933eaf77ccf68481ebcadd1e31a

=== Operating System ===

Windows 6.1.7601.65536 (64-bit)


Cheers,
Hermann
Comment 1 Dominique Louis 2013-06-24 05:23:31 UTC
This has been fixed internally, so should be fixed in the next Alpha release.
Comment 2 Akhilesh kumar 2014-03-27 06:08:02 UTC
Today we have checked this issue and we are able to open and edit Android designer .axml file in VS without any error. 

Using
VS 2012
X.Android 4.13.0-144

Hence closing this issue.
Comment 3 Akhilesh kumar 2014-03-27 07:21:55 UTC
An update to comment 2, I am using X.Android 4.12.03003.