I have a background service that polls a web service every 30 seconds.

The web service receives and returns objects serialized as XML.

The activity that monitors the service (via broadcast receivers) as well as
the service crash after a few hours.

Both stack traces indicate the last method called was:
System.MonoType.GetProperties()

Below are two different stacktrace errors from the last two crashes.

********************************
Crash 1 - 700 calls - which means it ran for about 6 hours:
********************************

01-17 16:27:29.530: 
I/mono(22611): Stacktrace:
01-17 16:27:29.530: 
I/mono(22611):   at System.MonoType.GetProperties
(System.Reflection.BindingFlags) <0x0002f>
01-17 16:27:29.530: 
I/mono(22611):   at System.Type.FindMembers
(System.Reflection.MemberTypes,System.Reflection.BindingFlags,System.Reflection.MemberFilter,object)
<0x00223>
01-17 16:27:29.535: 
I/mono(22611):   at System.Type.GetMember
(string,System.Reflection.MemberTypes,System.Reflection.BindingFlags)
<0x00083>
01-17 16:27:29.535: 
I/mono(22611):   at System.Type.GetMember
(string,System.Reflection.BindingFlags) <0x00033>
01-17 16:27:29.535: 
I/mono(22611):   at System.Xml.Serialization.XmlTypeMapMember.InitMember
(System.Type) <0x00023>
01-17 16:27:29.535: 
I/mono(22611):   at
System.Xml.Serialization.XmlTypeMapMember.CheckOptionalValueType
(System.Type) <0x00027>
01-17 16:27:29.535: 
I/mono(22611):   at
System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData,System.Xml.Serialization.XmlRootAttribute,string)
<0x0050b>
01-17 16:27:29.535: 
I/mono(22611):   at
System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Type,System.Xml.Serialization.XmlRootAttribute,string) <0x00033>
01-17 16:27:29.535: 
I/mono(22611):   at
System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData,System.Xml.Serialization.XmlRootAttribute,string)
<0x004cf>
01-17 16:27:29.535: 
I/mono(22611):   at
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData,System.Xml.Serialization.XmlRootAttribute,string)
<0x000cf>
01-17 16:27:29.535: 
I/mono(22611):   at
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Type,System.Xml.Serialization.XmlRootAttribute,string) <0x0004b>
01-17 16:27:29.535: 
I/mono(22611):   at System.Xml.Serialization.XmlSerializer..ctor
(System.Type,System.Xml.Serialization.XmlAttributeOverrides,System.Type[],System.Xml.Serialization.XmlRootAttribute,string)
<0x000c7>
01-17 16:27:29.535: 
I/mono(22611):   at System.Xml.Serialization.XmlSerializer..ctor
(System.Type) <0x00037>
01-17 16:27:29.535: 
I/mono(22611):   at DBT.helpers.dbtSerializer.WriteString (object) <0x000d7>
01-17 16:27:29.535: 
I/mono(22611):   at FieldMetrix.Base_WorkItem.WriteXMLToString () <0x0001f>
01-17 16:27:29.535: 
I/mono(22611):   at
mfaFieldMetrix.MobileManager.CalculateWorkItemPayloadSizesInBytes
(FieldMetrix.WorkItem,int&) <0x005db>
01-17 16:27:29.535: 
I/mono(22611):   at mfaFieldMetrix.MobileManager.initServerRetrieval ()
<0x003a3>
01-17 16:27:29.535: 
I/mono(22611):   at mfaFieldMetrix.MobileManager.Tick_ServerRetrieval
(object) <0x00817>
01-17 16:27:29.535: 
I/mono(22611):   at System.Threading.Timer/Scheduler.TimerCB (object)
<0x0019f>
01-17 16:27:29.535: 
I/mono(22611):   at (wrapper runtime-invoke)
<Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr)
<0xffffffff>


********************************
Crash 1 -408 calls - which means it ran for just over 3 hours:
********************************

01-17 21:17:09.035: 
I/mono(14565): Stacktrace:
01-17 21:17:09.035: 
I/mono(14565):   at System.MonoType.GetMethods
(System.Reflection.BindingFlags) <0x0002f>
01-17 21:17:09.035: 
I/mono(14565):   at System.Type.FindMembers
(System.Reflection.MemberTypes,System.Reflection.BindingFlags,System.Reflection.MemberFilter,object)
<0x00083>
01-17 21:17:09.035: 
I/mono(14565):   at System.Type.GetMember
(string,System.Reflection.MemberTypes,System.Reflection.BindingFlags)
<0x00083>
01-17 21:17:09.035: 
I/mono(14565):   at System.Type.GetMember
(string,System.Reflection.BindingFlags) <0x00033>
01-17 21:17:09.035: 
I/mono(14565):   at System.Xml.Serialization.XmlTypeMapMember.InitMember
(System.Type) <0x00023>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlTypeMapMember.CheckOptionalValueType
(System.Type) <0x00027>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData,System.Xml.Serialization.XmlRootAttribute,string)
<0x0050b>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Type,System.Xml.Serialization.XmlRootAttribute,string) <0x00033>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData,System.Xml.Serialization.XmlRootAttribute,string)
<0x004cf>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData,System.Xml.Serialization.XmlRootAttribute,string)
<0x000cf>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Type,System.Xml.Serialization.XmlRootAttribute,string) <0x0004b>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlReflectionImporter.ImportElementInfo
(System.Type,string,string,System.Type,System.Xml.Serialization.XmlTypeMapMemberElement,System.Xml.Serialization.XmlAttributes)
<0x008ab>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlReflectionImporter.CreateMapMember
(System.Type,System.Xml.Serialization.XmlReflectionMember,string) <0x00687>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData,System.Xml.Serialization.XmlRootAttribute,string)
<0x004f7>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData,System.Xml.Serialization.XmlRootAttribute,string)
<0x000cf>
01-17 21:17:09.035: 
I/mono(14565):   at
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Type,System.Xml.Serialization.XmlRootAttribute,string) <0x0004b>
01-17 21:17:09.035: 
I/mono(14565):   at System.Xml.Serialization.XmlSerializer..ctor
(System.Type,System.Xml.Serialization.XmlAttributeOverrides,System.Type[],System.Xml.Serialization.XmlRootAttribute,string)
<0x000c7>
01-17 21:17:09.035: 
I/mono(14565):   at System.Xml.Serialization.XmlSerializer..ctor
(System.Type) <0x00037>
01-17 21:17:09.035: 
I/mono(14565):   at DBT.helpers.dbtSerializer.WriteString (object) <0x0006b>
01-17 21:17:09.035: 
I/mono(14565):   at DBT.helpers.dbtSerializer.WriteDocument (object)
<0x00033>
01-17 21:17:09.035: 
I/mono(14565):   at FieldMetrix.WorkItemCollection.WriteToXMLDoc ()
<0x00023>
01-17 21:17:09.035: 
I/mono(14565):   at mfaFieldMetrix.MobileManager.processReturnXML
(string,System.Xml.XmlDocument,bool&) <0x009d3>
01-17 21:17:09.035: 
I/mono(14565):   at mfaFieldMetrix.MobileManager.wrapUpWebServiceCall
(System.IAsyncResult) <0x00697>
01-17 21:17:09.035: 
I/mono(14565):   at System.Net.WebAsyncResult.CB (object) <0x00027>
01-17 21:17:09.035: 
I/mono(14565):   at (wrapper runtime-invoke)
<Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr)
<0xffffffff>


--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Mono-crashing-at-System-MonoType-GetProperties-call-tp5152993p5152993.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to