[Mono-dev] System.Reflection.AmbiguousMatchException on Binary Serialization

Babbage Linden babbage at lindenlab.com
Tue Apr 6 09:16:26 EDT 2010


Hi Folks,

We've just started getting these exceptions thrown while serializing
LSL scripts running on Mono 1.2.6 embedded in the Second Life
simulator (we are currently upgrading to Mono 2.6.x, but we're not
there yet).

System.Reflection.AmbiguousMatchException: Ambiguous matching in
method resolution at System.Reflection.Binder+Default.GetBetterMethod
(System.Reflection.MethodBase m1, System.Reflection.MethodBase m2,
System.Type[] types) [0x00000]
 at System.Reflection.Binder+Default.SelectMethod (BindingFlags
bindingAttr, System.Reflection.MethodBase[] match, System.Type[]
types, System.Reflection.ParameterModifier[] modifiers) [0x00000]
 at System.MonoType.GetMethodImpl (System.String name, BindingFlags
bindingAttr, System.Reflection.Binder binder, CallingConventions
callConvention, System.Type[] types,
System.Reflection.ParameterModifier[] modifiers) [0x00000]
 at System.Type.GetMethod (System.String name, BindingFlags
bindingAttr, System.Reflection.Binder binder, CallingConventions
callConvention, System.Type[] types,
System.Reflection.ParameterModifier[] modifiers) [0x00000]
 at System.Type.GetMethod (System.String name, System.Type[] types) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.CodeGenerator.EmitWrite
(System.Reflection.Emit.ILGenerator gen, System.Type type) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.CodeGenerator.EmitWritePrimitiveValue
(System.Reflection.Emit.ILGenerator gen, System.Type type) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.CodeGenerator.GenerateMetadataType
(System.Type type, StreamingContext context) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.CreateMemberTypeMetadata
(System.Type type) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.GetObjectData
(System.Object obj,
System.Runtime.Serialization.Formatters.Binary.TypeMetadata& metadata,
System.Object& data) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObject
(System.IO.BinaryWriter writer, Int64 id, System.Object obj) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectInstance
(System.IO.BinaryWriter writer, System.Object obj, Boolean
isValueObject) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteQueuedObjects
(System.IO.BinaryWriter writer) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectGraph
(System.IO.BinaryWriter writer, System.Object obj,
System.Runtime.Remoting.Messaging.Header[] headers) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize
(System.IO.Stream serializationStream, System.Object graph,
System.Runtime.Remoting.Messaging.Header[] headers) [0x00000]
 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize
(System.IO.Stream serializationStream, System.Object graph) [0x00000]
 at LindenLab.SecondLife.Script.Serialize () [0x00000]

This was the closest bug I could find in Bugzilla
https://bugzilla.novell.com/show_bug.cgi?id=336321

Unfortunately the bug is relatively hard to repro, so I'm not sure
we'll be able to get much more information, but anyone have any idea
what might be causing this?

Cheers,

Jim


More information about the Mono-devel-list mailing list