Bug 14530 - GUI Thread hangs a while while xml serialization
Summary: GUI Thread hangs a while while xml serialization
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NUnit ()
Version: unspecified
Hardware: PC Linux
: Low normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-09-08 02:51 UTC by Mike Krüger
Modified: 2014-04-04 15:33 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 Mike Krüger 2013-09-08 02:51:33 UTC
Xml Serialization is likely the >slowest< way to serialize data and shouldn't be used.

(btw. nrefactory contains an optimized fast binary serializer - that should be used instead)


GUI Thread state:

------------

"GUI Thread" tid=0x0x7f0deebae780 this=0x0x7f0ded940010 thread handle 0x403 state : not waiting owns ()
  at System.Xml.XmlChar.IsInvalid (int) [0x00029] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml/XmlChar.cs:84
  at Mono.Xml2.XmlTextReader.ReadText (bool) [0x0009b] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1611
  at Mono.Xml2.XmlTextReader.ReadContent () [0x0015a] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1295
  at Mono.Xml2.XmlTextReader.Read () [0x00141] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml/XmlTextReader.cs:573
  at System.Xml.XmlTextReader.Read () [0x0006b] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:566
  at System.Xml.XmlReader.ReadElementString () [0x00040] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml/XmlReader.cs:627
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadPrimitiveValue (System.Xml.Serialization.XmlTypeMapElementInfo) [0x0005c] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:648
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo) [0x0003f] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:622
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap,object,bool,bool) [0x00855] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:473
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping,object) [0x00000] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:240
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x000df] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:230
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x00031] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:193
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo) [0x0005c] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:628
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListElement (System.Xml.Serialization.XmlTypeMapping,bool,object,bool) [0x000f8] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:692
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap,object,bool,bool) [0x005c0] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:435
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping,object) [0x00000] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:240
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x000df] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:230
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x00031] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:193
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo) [0x0005c] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:628
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListElement (System.Xml.Serialization.XmlTypeMapping,bool,object,bool) [0x000f8] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:692
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap,object,bool,bool) [0x005c0] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:435
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping,object) [0x00000] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:240
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x000df] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:230
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x00031] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:193
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo) [0x0005c] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:628
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListElement (System.Xml.Serialization.XmlTypeMapping,bool,object,bool) [0x000f8] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:692
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap,object,bool,bool) [0x005c0] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:435
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping,object) [0x00000] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:240
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x000df] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:230
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x00031] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:193
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo) [0x0005c] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:628
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListElement (System.Xml.Serialization.XmlTypeMapping,bool,object,bool) [0x000f8] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:692
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap,object,bool,bool) [0x005c0] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:435
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping,object) [0x00000] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:240
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x000df] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:230
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x00031] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:193
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo) [0x0005c] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:628
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListElement (System.Xml.Serialization.XmlTypeMapping,bool,object,bool) [0x000f8] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:692
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap,object,bool,bool) [0x005c0] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:435
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping,object) [0x00000] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:240
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x000df] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:230
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x00031] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:193
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo) [0x0005c] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:628
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListElement (System.Xml.Serialization.XmlTypeMapping,bool,object,bool) [0x000f8] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:692
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap,object,bool,bool) [0x005c0] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:435
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping,object) [0x00000] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:240
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x000df] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:230
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping,bool,bool) [0x00031] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:193
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot (System.Xml.Serialization.XmlTypeMapping) [0x00057] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:184
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () [0x00028] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializationReaderInterpreter.cs:87
  at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader) [0x0001c] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs:359
  at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.XmlReader) [0x0002c] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs:348
  at System.Xml.Serialization.XmlSerializer.Deserialize (System.IO.TextReader) [0x00015] in /home/mkrueger/work/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs:336
  at MonoDevelop.NUnit.XmlResultsStore.GetRootRecord (string,System.DateTime) [0x00068] in /home/mkrueger/work/monodevelop/main/src/addins/NUnit/Services/XmlResultsStore.cs:244
  at MonoDevelop.NUnit.XmlResultsStore.GetPreviousResult (string,MonoDevelop.NUnit.UnitTest,System.DateTime) [0x00006] in /home/mkrueger/work/monodevelop/main/src/addins/NUnit/Services/XmlResultsStore.cs:109
  at MonoDevelop.NUnit.XmlResultsStore.GetLastResult (string,MonoDevelop.NUnit.UnitTest,System.DateTime) [0x0000d] in /home/mkrueger/work/monodevelop/main/src/addins/NUnit/Services/XmlResultsStore.cs:129
  at MonoDevelop.NUnit.UnitTestResultsStore.GetLastResult (System.DateTime) [0x0002b] in /home/mkrueger/work/monodevelop/main/src/addins/NUnit/Services/UnitTestResultsStore.cs:48
  at MonoDevelop.NUnit.UnitTest.GetLastResult () [0x00020] in /home/mkrueger/work/monodevelop/main/src/addins/NUnit/Services/UnitTest.cs:255
  at MonoDevelop.CSharp.UnitTestTextEditorExtension/UnitTestMarker.DrawForeground (Mono.TextEditor.TextEditor,Cairo.Context,Mono.TextEditor.MarginDrawMetrics) [0x000c6] in /home/mkrueger/work/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.UnitTests/UnitTestTextEditorExtension.cs:409
  at Mono.TextEditor.ActionMargin.Draw (Cairo.Context,Cairo.Rectangle,Mono.TextEditor.DocumentLine,int,double,double,double) [0x000a0] in /home/mkrueger/work/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/ActionMargin.cs:82
  at Mono.TextEditor.TextArea.RenderMargins (Cairo.Context,Cairo.Context,Cairo.Rectangle) [0x00183] in /home/mkrueger/work/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs:1752
  at Mono.TextEditor.TextArea.OnExposeEvent (Gdk.EventExpose) [0x00103] in /home/mkrueger/work/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs:1825
  at Gtk.Widget.exposeevent_cb (intptr,intptr) [0x0000f] in /home/mkrueger/work/gtk-sharp/gtk/generated/Widget.cs:1979
  at (wrapper native-to-managed) Gtk.Widget.exposeevent_cb (intptr,intptr) <IL 0x00024, 0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <IL 0x0000e, 0xffffffff>
  at Gtk.Application.Run () [0x00001] in /home/mkrueger/work/gtk-sharp/gtk/Application.cs:135
  at MonoDevelop.Ide.IdeApp.Run () [0x00000] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:387
  at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions) [0x007ae] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:295
  at MonoDevelop.Ide.IdeStartup.Main (string[]) [0x00086] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:541
  at MonoDevelop.Startup.MonoDevelopMain.Main (string[]) [0x00000] in /home/mkrueger/work/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:17
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <IL 0x0005c, 0xffffffff>
Comment 1 Mike Krüger 2014-04-04 15:33:53 UTC
Fixed 

https://github.com/mono/monodevelop/pull/512