Hi,

I have created a bug for this:
http://bugzilla.xamarin.com/show_bug.cgi?id=1741

I know there are similar bugs reported earlier in bugzilla, please give me a 
solution for this.
This is critical, and if we can not resolve this, our product is gone, we can 
not proceed at all.

Here is the detail again:

We are downloading lot of image files  by calling web method once for each
file in loop. We receive the file as stream of bytes.

When tested, for a download of about 50~200 files,  after few 20~30 files the
web service call fails and the app crashes, while downloading any random
file(not specific to any file).
File sizes are normally 0.5MB to 4 MB,  and we have already set timeout etc,
as given below:

         binding.SendTimeout = new TimeSpan(0, 20, 0);
         binding.MaxReceivedMessageSize = 2147483647;
         binding.MaxBufferSize = 2147483647;
         svc.Proxy = new ProjectCentreServiceClient(binding, endpoint);

I have monitored the error and mostly this appears:

10-26 16:35:00.975: INFO/mono(25398): Stacktrace:
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Text.StringBuilder.InternalEnsureCapacity (int) <0x000b7>
10-26 16:35:00.979: INFO/mono(25398):   at System.Text.StringBuilder.Append 
(char) <0x0003f>
10-26 16:35:00.979: INFO/mono(25398):   at Mono.Xml2.XmlTextReader.ReadText 
(bool) <0x0010f>
10-26 16:35:00.979: INFO/mono(25398):   at Mono.Xml2.XmlTextReader.ReadContent 
() <0x001db>
10-26 16:35:00.979: INFO/mono(25398):   at Mono.Xml2.XmlTextReader.Read () 
<0x001d3>
10-26 16:35:00.979: INFO/mono(25398):   at System.Xml.XmlTextReader.Read () 
<0x000c7>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Xml.XmlSimpleDictionaryReader.Read () <0x0001f>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Xml.XmlReader.ReadStartElement () <0x00033>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Xml.XmlDictionaryReader.ReadElementContentAsString () <0x0004f>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Runtime.Serialization.XmlFormatterDeserializer.DeserializePrimitive 
(System.Type,System.Xml.XmlReader,System.Xml.XmlQualifiedName) <0x002db>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Runtime.Serialization.XmlFormatterDeserializer.Deserialize 
(System.Type,System.Xml.XmlReader) <0x004c7>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Runtime.Serialization.SerializationMap.DeserializeContent 
(System.Xml.XmlReader,System.Runtime.Serialization.XmlFormatterDeserializer,string,bool)
 <0x004cb>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Runtime.Serialization.SerializationMap.DeserializeContent 
(System.Xml.XmlReader,System.Runtime.Serialization.XmlFormatterDeserializer,string)
 <0x00037>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Runtime.Serialization.SerializationMap.DeserializeObject 
(System.Xml.XmlReader,System.Runtime.Serialization.XmlFormatterDeserializer) 
<0x000b7>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Runtime.Serialization.XmlFormatterDeserializer.DeserializeByMap 
(System.Xml.XmlQualifiedName,System.Type,System.Xml.XmlReader) <0x00147>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Runtime.Serialization.XmlFormatterDeserializer.Deserialize 
(System.Type,System.Xml.XmlReader) <0x00527>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Runtime.Serialization.XmlFormatterDeserializer.Deserialize 
(System.Xml.XmlReader,System.Type,System.Runtime.Serialization.KnownTypeCollection,System.Runtime.Serialization.IDataContractSurrogate,System.Runtime.Serialization.DataContractResolver,System.Runtime.Serialization.DataContractResolver,string,string,bool)
 <0x000ef>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Runtime.Serialization.DataContractSerializer.ReadObject 
(System.Xml.XmlDictionaryReader,bool) <0x000c3>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.Runtime.Serialization.XmlObjectSerializer.ReadObject 
(System.Xml.XmlDictionaryReader) <0x0002b>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.ServiceModel.Dispatcher.DataContractMessagesFormatter.ReadMessagePart 
(System.ServiceModel.Description.MessagePartDescription,System.Xml.XmlDictionaryReader)
 <0x00093>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.ServiceModel.Dispatcher.DataContractMessagesFormatter.MessageToParts 
(System.ServiceModel.Description.MessageDescription,System.ServiceModel.Channels.Message)
 <0x001af>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.ServiceModel.Dispatcher.BaseMessagesFormatter.DeserializeReply 
(System.ServiceModel.Channels.Message,object[]) <0x00107>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.ServiceModel.Dispatcher.OperationFormatter.DeserializeReply 
(System.ServiceModel.Channels.Message,object[]) <0x0002f>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request 
(System.ServiceModel.Description.OperationDescription,object[]) <0x0051b>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess 
(System.Reflection.MethodBase,string,object[]) <0x00077>
10-26 16:35:00.979: INFO/mono(25398):   at 
System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process 
(System.Reflection.MethodBase,string,object[]) <0x00037>

_______________________________________________
Monodroid mailing list
[email protected]

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

Reply via email to