PC Crash while Building Statistics



  • Hello, while I builds statistics my computer has crash and now H2N does not launch , I uninstalled and reinstalled but it still dont work.

    i get this Msg of Critical Error:

    ProtoBuf.ProtoException: Invalid field in source data: 0
    à ProtoBuf.ProtoReader.ReadFieldHeader()
    à proto_78(Object , ProtoReader )
    à ProtoBuf.Meta.TypeModel.DeserializeCore(ProtoReader reader, Type type, Object value, Boolean noAutoCreate)
    à ProtoBuf.Meta.TypeModel.Deserialize(Stream source, Object value, Type type, SerializationContext context)
    à ProtoBuf.Serializer.Deserialize[T](Stream source)
    à Common.SaveLoadObjectProto.LoadObject[T](String path)
    à Hand2NoteCore.Model.LockedObjectHelper.DecryptAndLoad[T](String path)
    à Hand2NoteCore.Common.TreeHelper.LoadDirectory[T](String dirName, String dirAbsolutePath, FolderTreeItem parentFolder, HashSet1 addedEntitiesDuringLoad) à Hand2NoteCore.Common.TreeHelper.LoadDirectory[T](String dirName, String dirAbsolutePath, FolderTreeItem parentFolder, HashSet1 addedEntitiesDuringLoad)
    à Hand2NoteCore.Common.TreeHelper.LoadTree[T](MultiEntityRootFolder`1 tree)
    à Hand2NoteCore.Model.ModelModule.‰Š”T
    à Hand2NoteCore.Model.ModelModule.LoadRepositories()
    à Hand2NoteCore.Model.ModelModule.Initialize()
    à Hand2NoteCore.Hand2NoteCoreModule.Initialize(IEventAggregator eventAggregator)
    à Hand2NoteCore.Loader.<>c.<LoadAsync>b__1_1()
    à System.Threading.Tasks.Task.Execute()
    --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
    à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    à Hand2NoteCore.Loader.<LoadAsync>d__1.MoveNext()
    --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
    à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    à Hand2Note.App.<LoadAsync>d__4.MoveNext()
    --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
    à System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
    à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)



  • I restored my PC has one week before but I always have the same problem, i can't launch H2N no mater what i do , unisnstall/reinstall or restore my PC one week before , i have the same msg .

    ProtoBuf.ProtoException: Invalid field in source data: 0
    à ProtoBuf.ProtoReader.ReadFieldHeader()
    à proto_78(Object , ProtoReader )
    à ProtoBuf.Meta.TypeModel.DeserializeCore(ProtoReader reader, Type type, Object value, Boolean noAutoCreate)
    à ProtoBuf.Meta.TypeModel.Deserialize(Stream source, Object value, Type type, SerializationContext context)
    à ProtoBuf.Serializer.Deserialize[T](Stream source)
    à Common.SaveLoadObjectProto.LoadObject[T](String path)
    à Hand2NoteCore.Model.LockedObjectHelper.DecryptAndLoad[T](String path)
    à Hand2NoteCore.Common.TreeHelper.LoadDirectory[T](String dirName, String dirAbsolutePath, FolderTreeItem parentFolder, HashSet1 addedEntitiesDuringLoad) à Hand2NoteCore.Common.TreeHelper.LoadDirectory[T](String dirName, String dirAbsolutePath, FolderTreeItem parentFolder, HashSet1 addedEntitiesDuringLoad)
    à Hand2NoteCore.Common.TreeHelper.LoadTree[T](MultiEntityRootFolder`1 tree)
    à Hand2NoteCore.Model.ModelModule.‰Š”T
    à Hand2NoteCore.Model.ModelModule.LoadRepositories()
    à Hand2NoteCore.Model.ModelModule.Initialize()
    à Hand2NoteCore.Hand2NoteCoreModule.Initialize(IEventAggregator eventAggregator)
    à Hand2NoteCore.Loader.<>c.<LoadAsync>b__1_1()
    à System.Threading.Tasks.Task.Execute()
    --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
    à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    à Hand2NoteCore.Loader.<LoadAsync>d__1.MoveNext()
    --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
    à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    à Hand2Note.App.<LoadAsync>d__4.MoveNext()
    --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
    à System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
    à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

    any idea ? pliz ^^


  • Global Moderator

    Does your username contain only English characters?



  • my PC name is "Username" in french = "utilisateur"


  • Global Moderator

    Please, follow next steps:

    1. Check that you have installed all the latest updates for Windows

    2. Remove database. By default, it is located in the next folder:

    C:\Users\ <YourUsername>\AppData\Roaming\Hand2Note\h2ndb

    1. Uninstall Hand2Note.

    2. After the uninstallation has finished please delete all program files from the
      install directory (default folder is located in C:\Program Files\Hand2Note).

    3. Create another username (only English
      letters)

    4. Reinstall Hand2Note under the new username.

    Then, run Hand2Note as administrator and check whether the issue persists.



  • it works , thank you



  • I found finally which file prevents H2N from launching , my PC crash again while H2N works , the 1st time I lost 1 personal HUD that y needed several days to do it, This time I have tried to restore the file "config" from the trash directly to the new freshly installed file "C:Programs/Hand2Note/config.

    y've restore one by one and lanch H2N after i've restore one file at the time , in my case its the costum Filters that prevents H2N from Launching.

    is any way to prevent the loss of my custum HUDs (backup or some thing like that?)


  • Global Moderator

    Could you please send us the file where we can see the problem by email to support@hand2note.com with a link to your message on the forum.


Log in to reply
 

Looks like your connection to Hand2Note was lost, please wait while we try to reconnect.