Х2Н перестал выводить статистику



  • Все работало отлично, но сегодня программа перестала выводить статистику. А при попытке открыть вкладку "сессии" вывела такую ошибку

    ProtoBuf.ProtoException: Invalid wire-type; this usually means you have over-written a file without truncating or setting the length; see http://stackoverflow.com/q/2152978/23354
    at ProtoBuf.ProtoReader.ReadInt32()
    at proto_220(Object , ProtoReader )
    at ProtoBuf.ProtoReader.ReadTypedObject(Object value, Int32 key, ProtoReader reader, Type type)
    at proto_218(Object , ProtoReader )
    at ProtoBuf.ProtoReader.ReadTypedObject(Object value, Int32 key, ProtoReader reader, Type type)
    at proto_198(Object , ProtoReader )
    at ProtoBuf.ProtoReader.ReadTypedObject(Object value, Int32 key, ProtoReader reader, Type type)
    at proto_196(Object , ProtoReader )
    at ProtoBuf.ProtoReader.ReadTypedObject(Object value, Int32 key, ProtoReader reader, Type type)
    at proto_194(Object , ProtoReader )
    at ProtoBuf.ProtoReader.ReadTypedObject(Object value, Int32 key, ProtoReader reader, Type type)
    at proto_192(Object , ProtoReader )
    at ProtoBuf.ProtoReader.ReadTypedObject(Object value, Int32 key, ProtoReader reader, Type type)
    at proto_188(Object , ProtoReader )
    at ProtoBuf.Meta.TypeModel.DeserializeCore(ProtoReader reader, Type type, Object value, Boolean noAutoCreate)
    at ProtoBuf.Meta.TypeModel.Deserialize(Stream source, Object value, Type type, SerializationContext context)
    at ProtoBuf.Serializer.Deserialize[T](Stream source)
    at Common.ProtoHelper.Deserialize[T](Byte[] bytes)
    at Hand2NoteCore.Database.PsdFromDatabaseProvider.GetPsd(Object[] pdiArray, Int32& bytesCount)
    at Hand2NoteCore.Database.PsdFromDatabaseProvider.GetPsd(NicknameRoom player)
    at Hand2NoteCore.Database.PsdCache.LoadItem(NicknameRoom player)
    at Common.KeyValueCache2.GetItem(TKey key) at Hand2NoteCore.Database.PsdCache.GetPsd(NicknameRoom player) at Hand2NoteCore.Database.AliasHelper.GetPlayersPsd(List1 players)
    at Hand2NoteCore.Database.AliasHelper.<>c__DisplayClass0_0.<GetPlayersPsdAsync>b__0()
    at System.Threading.Tasks.Task`1.InnerInvoke()
    at System.Threading.Tasks.Task.Execute()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Hand2NoteCore.Database.AliasHelper.<GetPlayersPsdAsync>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Hand2NoteCore.DataView.SessionsWindowViewModel.<OnSelectedPlayersChanged>d__32.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c__DisplayClass2.<ThrowAsync>b__3(Object state)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

    Можете помочь? Как решить проблему?


  • Global Moderator

    Повреждена база данных. Нужно создать новую в Настройки/База данных.



Похоже, подключение к Hand2Note было разорвано, подождите, пока мы пытаемся восстановить соединение.