Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
To whom it may concern.
For some reason my monodev is crashing every time I try to open and load a layout (Fatal Error).
This happens with select .axml files and if I delete the file from my system this happens to another random file.
This is not with all my .axml files only a couple for some reason.
As you can imagine this is very frustrating.
This is the stack trace.
System.NullReferenceException: Object reference not set to an instance of an object.
at Xamarin.AndroidDesigner.Layouts.TableRow.AddMissingPlaceholders(Int32 ncols)
at Xamarin.AndroidDesigner.AndroidDesignerSession.InitializeItem(AndroidDesignerItem item)
at Xamarin.AndroidDesigner.AndroidDesignerSession.InitLayoutXml(LayoutInfo layout)
at Xamarin.AndroidDesigner.AndroidDesignerSession.LoadLayoutXml(String path)
at Xamarin.AndroidDesigner.AndroidDesignerSession.DoRefresh(Boolean asyncRefresh)
at Xamarin.AndroidDesigner.AndroidDesignerSession.<Refresh>b__1f(Object )
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
This is the same issue as mentioned here with a repro: https://xamarin.desk.com/agent/case/16510
I can confirm this is a critical issue. MonoDevelop designer is extremely unstable, especially when working with TableLayouts. I will try post an example project.
Created attachment 2537 [details]
Small example project that crashes
This is an example project that will crash when you try and open the QQReplyLayout.axml file through the designer.
(Running 188.8.131.52 monodev and 4.2.5 mono for android)
*** Bug 7022 has been marked as a duplicate of this bug. ***
Fixed in master in 3.0.4 branch
*** Bug 7194 has been marked as a duplicate of this bug. ***
*** Bug 6355 has been marked as a duplicate of this bug. ***
*** Bug 7047 has been marked as a duplicate of this bug. ***
*** Bug 7105 has been marked as a duplicate of this bug. ***
*** Bug 7481 has been marked as a duplicate of this bug. ***
*** Bug 7404 has been marked as a duplicate of this bug. ***
*** Bug 6990 has been marked as a duplicate of this bug. ***
*** Bug 8135 has been marked as a duplicate of this bug. ***
*** Bug 7403 has been marked as a duplicate of this bug. ***
Lluis - what version of Mono for Android did this make it into?
Today, I have checked this issue with:
XS 4.2.4(build 266)
We are successfully able to open the layout file of attached sample project in Bug, without any error.
Hence closing this issue.