Bug 11831 - Crash switching between two android designers
Summary: Crash switching between two android designers
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.8.x
Hardware: PC Mac OS
: High normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-04-17 14:52 UTC by Chris Hamons
Modified: 2014-01-21 09:23 UTC (History)
4 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:
VERIFIED FIXED

Description Chris Hamons 2013-04-17 14:52:01 UTC
I was switching between two designers and ran into this. I had a a lineral layout selected in each one. 

System.NullReferenceException: Object reference not set to an instance of an object
  at Xamarin.AndroidDesigner.AndroidDesignerSession.EndUpdateItem (System.String parentId, System.String itemId, System.Xml.Linq.XElement itemXml, Boolean internalUpdate, Boolean propagateChanges) [0x00216] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/AndroidDesignerSession.cs:2392 
  at Xamarin.AndroidDesigner.AndroidDesignerSession.EndUpdateItem (System.String parentId, System.String itemId, System.Xml.Linq.XElement itemXml) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/AndroidDesignerSession.cs:2329 
  at (wrapper remoting-invoke-with-check) Xamarin.AndroidDesigner.AndroidDesignerSession:EndUpdateItem (string,string,System.Xml.Linq.XElement)
  at Xamarin.AndroidDesigner.AndroidDesignerItem.SetProperty (System.String name, System.String val) [0x0004b] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/AndroidDesignerItem.cs:455 
  at Xamarin.AndroidDesigner.AndroidDesignerItem.SetPropertyValue (System.String name, System.String val) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/AndroidDesignerItem.cs:439 
  at Xamarin.Designer.PropertyEditing.PropertyEditorContext.SetPropertyValue (Xamarin.Designer.PropertyEditing.PropertyEditorBase editor, System.String name, System.String val) [0x00007] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/md-addins/Xamarin.Designer/Xamarin.Designer.PropertyEditing/PropertyEditorContext.cs:101 
  at Xamarin.Designer.PropertyEditing.PropertyEntry.CommitValue (System.String val) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/md-addins/Xamarin.Designer/Xamarin.Designer.PropertyEditing/PropertyEntry.cs:75 
  at Xamarin.Designer.PropertyEditing.PropertyEntry+<CreateTextEntry>c__AnonStorey13.<>m__28 (System.Object , System.EventArgs ) [0x00031] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/md-addins/Xamarin.Designer/Xamarin.Designer.PropertyEditing/PropertyEntry.cs:173 
  at Xwt.Widget.OnLostFocus (System.EventArgs args) [0x0000b] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/monodevelop/main/external/xwt/Xwt/Xwt/Widget.cs:779 
  at Xwt.Widget+WidgetBackendHost.Xwt.Backends.IWidgetEventSink.OnLostFocus () [0x00000] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/monodevelop/main/external/xwt/Xwt/Xwt/Widget.cs:211 
  at Xwt.GtkBackend.WidgetBackend.<HandleWidgetFocusOutEvent>m__7 () [0x00000] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/monodevelop/main/external/xwt/Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs:766 
  at Xwt.Engine.Toolkit.Invoke (System.Action a) [0x00005] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/monodevelop/main/external/xwt/Xwt/Xwt.Engine/Toolkit.cs:41
Comment 1 Miguel de Icaza [MSFT] 2013-07-26 14:14:05 UTC
Lluis, any updates on this?
Comment 2 Lluis Sanchez 2013-10-09 08:40:24 UTC
Already fixed.
Comment 3 Saurabh 2014-01-21 09:23:44 UTC
We have checked this issue with latest master builds:

XS 4.2.3 (build 146) 
Git revision: 76e7c7f6ca0e59052f2bb29f8179313510977377
Xamarin addins: cc120a6f639fa6649aa4d23a0f0e7c5701134047

mono-android-4.13.0-36(Master for Mac)

Now, we are not seeing XS crash on switching between two android designers.

Screencast: http://screencast.com/t/Ocku057y8yB

Please let me know if we have to check any thing else.

As of now closing this issue.