Bug 12216 - UI does not work is stuck in never ending loop
Summary: UI does not work is stuck in never ending loop
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.5
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 4.0.9 (from master)
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-05-13 08:21 UTC by Pavel Sich
Modified: 2013-06-24 16:18 UTC (History)
1 user (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:
RESOLVED FIXED

Description Pavel Sich 2013-05-13 08:21:01 UTC
Any window I try to open after iOS or Android project is loaded makes the UI stuck in never ending loop.

Bar at the top says Loading the file and then it starts again and so on. No window with source code opened. When I try to go out of the app (to select other application to be active, like Activity Monitor), Xamarin Studio becomes the active one.

I suspect some settings are corrupted or something as when I do not load any project and try to go to preferences or any other modal dialog following error comes up:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.CSharp.Formatting.CSharpFormattingPolicyPanel ---> System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.SourceEditor.SourceEditorDisplayBinding ---> System.Xml.XmlException: Text node cannot appear in this state.  Line 1, position 1.
  at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00180] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1643 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x0015a] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1295 
  at Mono.Xml2.XmlTextReader.Read () [0x00141] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/System.XML/System.Xml/XmlTextReader.cs:573 
  at System.Xml.XmlTextReader.Read () [0x0006b] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:566 
  at Mono.TextEditor.Highlighting.SyntaxModeService.Scan (System.IO.Stream stream, System.String attribute) [0x0000c] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs:382 
  at Mono.TextEditor.Highlighting.SyntaxModeService.LoadStylesAndModes (System.String path) [0x0002a] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs:412 
  at MonoDevelop.SourceEditor.SourceEditorDisplayBinding.LoadCustomStylesAndModes () [0x00044] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorDisplayBinding.cs:75 
  at MonoDevelop.SourceEditor.SourceEditorDisplayBinding.InitSourceEditor () [0x00020] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorDisplayBinding.cs:60 
  at MonoDevelop.SourceEditor.SourceEditorDisplayBinding..cctor () [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorDisplayBinding.cs:48 
  --- End of inner exception stack trace ---
  at MonoDevelop.SourceEditor.OptionPanels.HighlightingPanel..ctor () [0x00075] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.OptionPanels/HighlightingPanel.cs:48 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/corlib/System.Reflection/MonoMethod.cs:552 
  --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/corlib/System.Reflection/MonoMethod.cs:552 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00013] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/corlib/System.Reflection/MonoMethod.cs:558 
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x000af] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/corlib/System/Activator.cs:329 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/corlib/System/Activator.cs:222 
  at Mono.Addins.TypeExtensionNode.CreateInstance () [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/external/mono-addins/Mono.Addins/Mono.Addins/TypeExtensionNode.cs:93 
  at Mono.Addins.InstanceExtensionNode.CreateInstance (System.Type expectedType) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/external/mono-addins/Mono.Addins/Mono.Addins/InstanceExtensionNode.cs:88 
  at MonoDevelop.Ide.Projects.OptionPanels.CodeFormattingPanel.LoadPolicyTypeData (MonoDevelop.Ide.Gui.Dialogs.MimeTypePanelData data, System.String mimeType, System.Collections.Generic.List`1 types) [0x0003f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CodeFormattingPanel.cs:172 
  at MonoDevelop.Ide.Projects.OptionPanels.CodeFormattingPanel.AddPanel (System.String mt) [0x00093] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CodeFormattingPanel.cs:126 
  at MonoDevelop.Ide.Projects.OptionPanels.CodeFormattingPanel.Initialize (MonoDevelop.Ide.Gui.Dialogs.OptionsDialog dialog, System.Object dataObject) [0x000e9] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CodeFormattingPanel.cs:69 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.CreatePage (TreeIter it, MonoDevelop.Ide.Extensions.OptionsDialogSection section, System.Object dataObject) [0x001ab] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:567 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.AddSection (TreeIter parentIter, MonoDevelop.Ide.Extensions.OptionsDialogSection section, System.Object dataObject) [0x0005c] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:362 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.AddChildSections (TreeIter parentIter, MonoDevelop.Ide.Extensions.OptionsDialogSection section, System.Object dataObject) [0x00028] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:375 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.AddSection (TreeIter parentIter, MonoDevelop.Ide.Extensions.OptionsDialogSection section, System.Object dataObject) [0x00053] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:359 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.AddSection (MonoDevelop.Ide.Extensions.OptionsDialogSection section, System.Object dataObject) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:346 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.FillTree () [0x00044] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:258 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog..ctor (Gtk.Window parentWindow, System.Object dataObject, System.String extensionPath, Boolean removeEmptySections) [0x00376] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:184 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog..ctor (Gtk.Window parentWindow, System.Object dataObject, System.String extensionPath) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Projects.DefaultPolicyOptionsDialog..ctor (Gtk.Window parentWindow) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Workbench.ShowDefaultPoliciesDialog (Gtk.Window parentWindow, System.String panelId) [0x00012] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:575 
  at MonoDevelop.Ide.Gui.Workbench.ShowDefaultPoliciesDialog (Gtk.Window parentWindow) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:567 
  at MonoDevelop.Ide.Commands.DefaultPoliciesHandler.Run () [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/EditCommands.cs:88 
  at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:61 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42 
  at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00076] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1108 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002de] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.5-branch/5c86fd4a/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1075
Comment 1 Pavel Sich 2013-05-13 08:57:50 UTC
I can confirm it is the settings corruption.

When I deleted /Library/XamarinStudio-4.0 folder, then the studio works fine.

Hope this helps.
Comment 2 Mike Krüger 2013-05-24 03:01:20 UTC
fixed - the stack trace was really helpful btw. :)
Comment 3 PJ 2013-06-24 16:18:42 UTC
This bug was marked as fixed for Xamarin Studio 4.0.9, which is currently in the beta channel. Try it out!