Bug 6129 - IDE hangup -> project not loadable anymore -> .userprefs issue
Summary: IDE hangup -> project not loadable anymore -> .userprefs issue
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 3.0.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
: 6134 ()
Depends on:
Reported: 2012-07-15 12:40 UTC by forum
Modified: 2012-07-16 12:47 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 forum 2012-07-15 12:40:30 UTC
The IDE hangs up and then the project is not loadable anymore. After deleting the .userprefs file the project can be loaded successfully again.

The .userprefs file looks like a common XML file without declaration. So why not check the file against a XSD Schema? The IDE would the be able to catch the error early.
Comment 1 Mikayla Hutchinson [MSFT] 2012-07-15 15:32:28 UTC
Can you attach the userprefs file that causes the hang?

It really wouldn't help to use an xsd schema. That would catch malformed data, but not bugs in *handling* of the data. Anyway, the format is extensible, so it's not possible.
Comment 2 forum 2012-07-16 03:49:03 UTC
After playing around awhile I found out that it is NOT a userpefs fault. It seems that the IDE is hanging up on launching the Layout Designer. For my first steps with Mono for Android I only used the code editor to change the file main.axml. But if this file is open in code editor (and stored in userpefs) and then you quit and restart the program. The IDE wants to open this file in the Designer not in the code editor. So in the summary it is something with the designer and the ide do not remember if a .axml file was opened in code or designer.

The Layout Designer kills my IDE in anyway even if I doubleclick a .axml file in an open project. Limitation in trial version?

Workaround: delete all files with .axml out of your files-section in .userprefs
Comment 3 Lluis Sanchez 2012-07-16 11:54:35 UTC
This is caused by an incompatibility with the Android SDK when you have the new API level 16 installed. A fix for MonoDevelop will be released soon.
Comment 4 Lluis Sanchez 2012-07-16 12:47:53 UTC
*** Bug 6134 has been marked as a duplicate of this bug. ***