Bug 7309 - Resources.GetXml - XmlReader.Name property Hangs without exception
Summary: Resources.GetXml - XmlReader.Name property Hangs without exception
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 4.2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-09-19 15:38 UTC by Erasmo
Modified: 2012-09-20 14:26 UTC (History)
2 users (show)

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:

Description Erasmo 2012-09-19 15:38:59 UTC
The XmlReader object Obtained from Resources.GetXml(Resource.Layout.<Any Layout>) hangs the application upon trying to access the "Name" property.

Steps to reproduce:
 - Create any valid layout xml in Resources/layout
 - In a view try to get the Xml by using Resources.GetXml(<layoutId>);
 - Make a traditional while loop to read through your XmlReader and access the XmlReader.Name property
 - Just access the XmlReader.Name property

  No exception is throwns. The application just hangs until it crashes/closes without throwing an exception.
  If I try to access the XmlReader.Name property from the watch window in the debugger MonoDevelop hangs for a while and then a timeout text is shown in the value box for the watched variable.

Tested in:
 - Mono for Android 4.2.5, Mono Develop
Comment 1 Atsushi Eno 2012-09-20 14:26:22 UTC
Thanks for the report. This is fixed and will be included in the next release.