Error message when opening H2N in Windows 11

Error message when opening H2N in Windows 11

I just reinstalled H2N and am getting this error message whenever I try to start it:

ProtoBuf.ProtoException: Invalid field in source data: 0
at ProtoBuf.Internal.ThrowHelper.ThrowProtoException(String message, Exception inner) in /_/src/protobuf-net.Core/Internal/ThrowHelper.cs:line 70
at ProtoBuf.ProtoReader.ThrowInvalidField(Int32 fieldNumber) in /_/src/protobuf-net.Core/ProtoReader.cs:line 317
at ProtoBuf.ProtoReader.State.ReadFieldHeaderFallback() in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 714
at proto_423(State&, StatResultsByGameType)
at ProtoBuf.ProtoReader.State.ReadAsRoot[T](T value, ISerializer`1 serializer) in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 1062
at ProtoBuf.ProtoReader.State.DeserializeRoot[T](T value, ISerializer`1 serializer) in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 1038
at ProtoBuf.Serializer.Deserialize[T](Stream source) in /_/src/protobuf-net/Serializer.Deserialize.cs:line 22
at Hand2NoteCore.ChunksHelper.LoadChunk[T](PagedObjectPlacement pagedObjectPlacement, Chunks`1 chunks)
at Hand2NoteCore.ChunksHelper.TryLoad[T](Chunks`1 chunks, Int64 itemId, T& result)
at Hand2NoteCore.StatsDatabaseHelper.LoadStatsResults(StatisticsDatabase database, Int32 playerId)
at Hand2NoteCore.DatabaseHelper.GetStatResultsByGameType(Int32 playerDatabaseId, Database database)
at Hand2NoteCore.DatabaseHelper.GetStatResultsByGameType(PlayerId& playerId, Database database)
at Hand2NoteCore.DatabaseHelper.GetStatResultsForGameType(PlayerId playerId, Int32 gameTypeProfileId, Database database)
at Hand2NoteCore.PlayerPopupHelper.<>c__DisplayClass30_0.b__0(PlayerId playerId)
at System.Linq.Enumerable.SelectIListIterator`2.ToList()
at Hand2NoteCore.Huds.ComputedHudHelper.GetStatResultById(IEnumerable`1 statResultById, UInt16 maxStatShortId)
at Hand2NoteCore.PlayerPopupHelper.GetStatResultById(IPlayerOrAlias playerId, PopupContext context, Int32 gameTypeProfileId)
at Hand2NoteCore.Reports.PlayerStatisticsHelper.GetInitialStatisticsReport(App app, IPlayerOrAlias playerOrAlias, GameTypeProfile gameTypeProfile, StatProfile statProfile, DateFilter dateFilter)
at Hand2NoteCore.Reports.PlayerStatisticsHelper.TryGetInitialStatisticsReportFromLastOpenedConfig(App app, LastOpenedStatisticsReport lastOpenedReport, StatisticsReport& result)
at Hand2NoteCore.Reports.PlayerStatisticsHelper.GetInitialStatisticsReport(App app)
at Hand2NoteCore.AppHelper.LoadInitialReports(App app)
at Hand2NoteCore.AppHelper.LoadApplication(AppLoader loader, ILogger logger, IHudIpcChannel hudIpcChannel, ITableWindowsProvider tableWindowsProvider, AppClipboard clipboard, IServiceProvider serviceProvider, AppLoadingObserver observer, Version applicationVersion)
at Hand2NoteApp.Windows.Program.Start(String[] args)
at Hand2NoteApp.Windows.Program.<>c__DisplayClass0_0.

b__0(Object _, StartupEventArgs _)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
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)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
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)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at Hand2NoteApp.Windows.Program.Main(String[] args)

19 January 2024 at 09:28 PM
Reply...

4 Replies


Earlier posts are available on our legacy forum HERE

Could you try to delete these folders ("reports" and "stats") from the folder where your database is stored, by default here C:\Users\AppData\Roaming\Hand2Note\Databases:


Then launch Hand2Note and click on Build Statistics:


If it doesn't help, you'll have to delete the entire database, unfortunately.


by Hand2note

Could you try to delete these folders ("reports" and "stats") from the folder where your database is stored, by default here C:\Users\AppData\Roaming\Hand2Note\Databases:


Then launch Hand2Note and click on Build Statistics:


If it doesn't help, you'll have to delete the entire database, unfortunately.

Unfortunatly deleting those folders, and deleting all the databases didn't work. It is still throwing the same error when I try to start the program.


by Jaeger96

Unfortunatly deleting those folders, and deleting all the databases didn't work. It is still throwing the same error when I try to start the program.

Hello. Then reinstall the program completely following these instructions:

1. Remove Hand2Note 4 through the control panel
2. Manually delete all files from Hand2Note installation folder. By default it is C:/Program Files/Hand2Note4
3. Please use the latest installer to install Hand2Note 4, please run installer as an administrator
4. Also please delete the Hand2Note 4 database by deleting the Databases folder, which is located in the C:/Users/YourUsername/AppData/Roaming/Hand2Note folder
5. Please always launch Hand2Note4 as an administrator


by Hand2note

Hello. Then reinstall the program completely following these instructions:1. Remove Hand2Note 4 through the control panel2. Manually delete all files from Hand2Note installation folder. By default it is C:/Program Files/Hand2Note43. Please use the latest installer to install Hand2Note 4, please run installer as an administrator4. Also please dele

That worked! Thanks!

Reply...