Protobuf-net反序列化异常编号溢出

时间:2018-09-12 08:02:22

标签: protobuf-net

在点网反序列化protobuf数据时遇到异常。我收到号码溢出异常。由于原型结构相当大,我有什么办法可以得到哪个字段给出了错误。

日志是这样的

09-12 12:55:50.318  9188  9507 E Unity   : Proto DEserialize exception : System.OverflowException: Number overflow.
09-12 12:55:50.318  9188  9507 E Unity   : at ProtoBuf.ProtoReader.TryReadUInt32VariantWithoutMoving (bool,uint&) <0x00328>
09-12 12:55:50.318  9188  9507 E Unity   : at ProtoBuf.ProtoReader.ReadUInt32Variant (bool) <0x0002f>
09-12 12:55:50.318  9188  9507 E Unity   : at ProtoBuf.ProtoReader.ReadInt32 () <0x00057>
09-12 12:55:50.318  9188  9507 E Unity   : at (wrapper dynamic-method) King.Data.GetUserdataInfoStruct.proto_2 (object,ProtoBuf.ProtoReader) <0x006c3>
09-12 12:55:50.318  9188  9507 E Unity   : at ProtoBuf.Serializers.CompiledSerializer.ProtoBuf.Serializers.IProtoSerializer.Read (object,ProtoBuf.ProtoReader) <0x00037>
09-12 12:55:50.318  9188  9507 E Unity   : at ProtoBuf.Meta.RuntimeTypeModel.Deserialize (int,object,ProtoBuf.ProtoReader) <0x00113>
09-12 12:55:50.318  9188  9507 E Unity   : at ProtoBuf.Meta.TypeModel.DeserializeCore (ProtoBuf.ProtoReader,System.Type,object,bool) <0x0006b>
09-12 12:55:50.318  9188  9507 E Unity   : at ProtoBuf.Meta.TypeModel.Deserialize (System.IO.Stream,object,System.Type,ProtoBuf.SerializationContext) <0x000a7>
09-12 12:55:50.318  9188  9507 E Unity   : at ProtoBuf.Meta.TypeModel.Deserialize (System.IO.Stream,object,System.Type) <0x0003b>
09-12 12:55:50.318  9188  9507 E Unity   : at ProtoBuf.Serializer.Deserialize<King.Data.GetUserdataInfoStruct> (System.IO.Stream) <0x00043>
09-12 12:55:50.318  9188  9507 E Unity   : at King.Proto.KingProtBufSerialize

0 个答案:

没有答案
相关问题