ET版本7.2
我有一个测试接口,发送的数据量有30万 byte
根据下面错误,能定位到是什么问题吗?
报错如下:
127.0.0.1:10004 39183 System.IO.EndOfStreamException: Attempted to read past the end of the stream.
at ProtoBuf.ProtoReader.TryReadUInt64VariantWithoutMoving (System.UInt64& value) [0×0015b] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\ProtoReader.cs:418
at ProtoBuf.ProtoReader.ReadUInt64Variant () [0×00001] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\ProtoReader.cs:455
at ProtoBuf.ProtoReader.ReadInt64 () [0×0002e] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\ProtoReader.cs:360
at ProtoBuf.Serializers.Int64Serializer.Read (System.Object value, ProtoBuf.ProtoReader source) [0×0000b] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\Int64Serializer.cs:21
at ProtoBuf.Serializers.TagDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×00049] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\TagDecorator.cs:74
at ProtoBuf.Serializers.DefaultValueDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\DefaultValueDecorator.cs:38
at ProtoBuf.Serializers.PropertyDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×00029] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\PropertyDecorator.cs:73
at ProtoBuf.Serializers.TypeSerializer.Read (System.Object value, ProtoBuf.ProtoReader source) [0×0010b] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\TypeSerializer.cs:228
at ProtoBuf.Meta.RuntimeTypeModel.Deserialize (System.Int32 key, System.Object value, ProtoBuf.ProtoReader source) [0×00051] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Meta\RuntimeTypeModel.cs:826
at ProtoBuf.ProtoReader.ReadTypedObject (System.Object value, System.Int32 key, ProtoBuf.ProtoReader reader, System.Type type) [0×00033] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\ProtoReader.cs:582
at ProtoBuf.ProtoReader.ReadObject (System.Object value, System.Int32 key, ProtoBuf.ProtoReader reader) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\ProtoReader.cs:570
at ProtoBuf.Serializers.SubItemSerializer.ProtoBuf.Serializers.IProtoSerializer.Read (System.Object value, ProtoBuf.ProtoReader source) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\SubItemSerializer.cs:77
at ProtoBuf.Serializers.TagDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×00049] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\TagDecorator.cs:74
at ProtoBuf.Serializers.ListDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×000f8] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\ListDecorator.cs:555
at ProtoBuf.Serializers.FieldDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×0000b] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\FieldDecorator.cs:32
at ProtoBuf.Serializers.TypeSerializer.Read (System.Object value, ProtoBuf.ProtoReader source) [0×0010b] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\TypeSerializer.cs:228
at ProtoBuf.Meta.RuntimeTypeModel.Deserialize (System.Int32 key, System.Object value, ProtoBuf.ProtoReader source) [0×00051] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Meta\RuntimeTypeModel.cs:826
at ProtoBuf.ProtoReader.ReadTypedObject (System.Object value, System.Int32 key, ProtoBuf.ProtoReader reader, System.Type type) [0×00033] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\ProtoReader.cs:582
at ProtoBuf.ProtoReader.ReadObject (System.Object value, System.Int32 key, ProtoBuf.ProtoReader reader) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\ProtoReader.cs:570
at ProtoBuf.Serializers.SubItemSerializer.ProtoBuf.Serializers.IProtoSerializer.Read (System.Object value, ProtoBuf.ProtoReader source) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\SubItemSerializer.cs:77
at ProtoBuf.Serializers.TagDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×00049] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\TagDecorator.cs:74
at ProtoBuf.Serializers.PropertyDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×00029] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\PropertyDecorator.cs:73
at ProtoBuf.Serializers.TypeSerializer.Read (System.Object value, ProtoBuf.ProtoReader source) [0×0010b] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\TypeSerializer.cs:228
at ProtoBuf.Meta.RuntimeTypeModel.Deserialize (System.Int32 key, System.Object value, ProtoBuf.ProtoReader source) [0×00051] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Meta\RuntimeTypeModel.cs:826
at ProtoBuf.ProtoReader.ReadTypedObject (System.Object value, System.Int32 key, ProtoBuf.ProtoReader reader, System.Type type) [0×00033] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\ProtoReader.cs:582
at ProtoBuf.ProtoReader.ReadObject (System.Object value, System.Int32 key, ProtoBuf.ProtoReader reader) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\ProtoReader.cs:570
at ProtoBuf.Serializers.SubItemSerializer.ProtoBuf.Serializers.IProtoSerializer.Read (System.Object value, ProtoBuf.ProtoReader source) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\SubItemSerializer.cs:77
at ProtoBuf.Serializers.TagDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×00049] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\TagDecorator.cs:74
at ProtoBuf.Serializers.ListDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×000f8] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\ListDecorator.cs:555
at ProtoBuf.Serializers.FieldDecorator.Read (System.Object value, ProtoBuf.ProtoReader source) [0×0000b] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\FieldDecorator.cs:32
at ProtoBuf.Serializers.TypeSerializer.Read (System.Object value, ProtoBuf.ProtoReader source) [0×0010b] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializers\TypeSerializer.cs:228
at ProtoBuf.Meta.RuntimeTypeModel.Deserialize (System.Int32 key, System.Object value, ProtoBuf.ProtoReader source) [0×00051] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Meta\RuntimeTypeModel.cs:826
at ProtoBuf.Meta.TypeModel.DeserializeCore (ProtoBuf.ProtoReader reader, System.Type type, System.Object value, System.Boolean noAutoCreate) [0×0001f] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Meta\TypeModel.cs:718
at ProtoBuf.Meta.TypeModel.Deserialize (System.IO.Stream source, System.Object value, System.Type type, ProtoBuf.SerializationContext context) [0×0002a] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Meta\TypeModel.cs:591
at ProtoBuf.Meta.TypeModel.Deserialize (System.IO.Stream source, System.Object value, System.Type type) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Meta\TypeModel.cs:570
at ProtoBuf.Serializer.Deserialize (System.Type type, System.IO.Stream source) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\ThirdParty\protobuf-net\Serializer.cs:79
at ET.ProtobufHelper.Deserialize (System.Type type, System.IO.Stream stream) [0×00001] in C:\Code\Dream\oe10\Unity\Codes\Model\Core\Serialize\ProtobufHelper.cs:48
at ET.SerializeHelper.Deserialize (System.Type type, System.IO.Stream stream) [0×00001] in C:\Code\Dream\oe10\Unity\Codes\Model\Core\Serialize\SerializeHelper.cs:25
at ET.MessageSerializeHelper.DeserializeFrom (System.UInt16 opcode, System.Type type, System.IO.MemoryStream memoryStream) [0×0000e] in C:\Code\Dream\oe10\Unity\Codes\Model\Module\Message\MessageSerializeHelper.cs:12
at ET.SessionStreamDispatcherClientOuter.Dispatch (ET.Session session, System.IO.MemoryStream memoryStream) [0×0001a] in C:\Code\Dream\oe10\Unity\Codes\Hotfix\Demo\Session\SessionStreamDispatcherClientOuter.cs:13
at ET.SessionStreamDispatcherSystem.Dispatch (ET.SessionStreamDispatcher self, System.Int32 type, ET.Session session, System.IO.MemoryStream memoryStream) [0×0001e] in C:\Code\Dream\oe10\Unity\Codes\Hotfix\Module\Message\SessionStreamDispatcherSystem.cs:82
at ET.NetKcpComponentSystem.OnRead (ET.NetKcpComponent self, System.Int64 channelId, System.IO.MemoryStream memoryStream) [0×00020] in C:\Code\Dream\oe10\Unity\Codes\Hotfix\Module\Message\NetKcpComponentSystem.cs:67
at ET.NetKcpComponentAwakeSystem+<>cDisplayClass0_0.<Awake>b1 (System.Int64 channelId, System.IO.MemoryStream Memory) [0×00000] in C:\Code\Dream\oe10\Unity\Codes\Hotfix\Module\Message\NetKcpComponentSystem.cs:18
at ET.AService.OnRead (System.Int64 channelId, System.IO.MemoryStream memoryStream) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\Mono\Module\Network\AService.cs:55
at ET.TChannel.OnRead (System.IO.MemoryStream memoryStream) [0×00009] in C:\Code\Dream\oe10\Unity\Assets\Mono\Module\NetworkTCP\TChannel.cs:398
at ET.TChannel.OnRead (System.IO.MemoryStream memoryStream) [0×0001c] in C:\Code\Dream\oe10\Unity\Assets\Mono\Module\NetworkTCP\TChannel.cs:402
at ET.TChannel.HandleRecv (System.Object o) [0×000de] in C:\Code\Dream\oe10\Unity\Assets\Mono\Module\NetworkTCP\TChannel.cs:286
at ET.TChannel.OnRecvComplete (System.Object o) [0×00001] in C:\Code\Dream\oe10\Unity\Assets\Mono\Module\NetworkTCP\TChannel.cs:234
at ET.TChannel+<>cDisplayClass10_0.<OnComplete>b1 () [0×00000] in C:\Code\Dream\oe10\Unity\Assets\Mono\Module\NetworkTCP\TChannel.cs:37
at ET.ThreadSynchronizationContext.Update () [0×00021] in C:\Code\Dream\oe10\Unity\Assets\Mono\Core\ThreadSynchronizationContext.cs:34
at ET.Game.Update () [0×00001] in C:\Code\Dream\oe10\Unity\Codes\Model\Core\Entity\Game.cs:38
at ET.Init.Update () [0×00001] in C:\Code\Dream\oe10\Unity\Assets\Mono\MonoBehaviour\Init.cs:80
UnityEngine.Debug:LogError (object)
ET.UnityLogger:Error (string) (at Assets/Mono/Core/Log/UnityLogger.cs:36)
ET.Log:Error (string) (at Assets/Mono/Core/Log/Log.cs:91)
ET.TChannel:OnRead (System.IO.MemoryStream) (at Assets/Mono/Module/NetworkTCP/TChannel.cs:402)
ET.TChannel:HandleRecv (object) (at Assets/Mono/Module/NetworkTCP/TChannel.cs:286)
ET.TChannel:OnRecvComplete (object) (at Assets/Mono/Module/NetworkTCP/TChannel.cs:234)
ET.TChannel/<>cDisplayClass10_0:<OnComplete>b1 () (at Assets/Mono/Module/NetworkTCP/TChannel.cs:37)
ET.ThreadSynchronizationContext:Update () (at Assets/Mono/Core/ThreadSynchronizationContext.cs:34)
ET.Game:Update () (at Codes/Model/Core/Entity/Game.cs:38)
ET.Init:Update () (at Assets/Mono/MonoBehaviour/Init.cs:80)