Open Side Menu Go to the Top

10-05-2022 , 07:51 PM
Hello,

I'm not sure if this is the right way to ask but I encountered an error that force closes H2N when I try testing for the stat I created in the Stats Editor.

I can confirm that the hands that are populating in the test hand list are the correct hands. But it seems like whenever it gets to a certain point in the database this error is consistently causing H2N to crash.

My question is:
1. will this kind of error be isolated to just the testing in which case I wouldnt mind including it in one of my popups.
2. Or will this error crash H2N anytime I try to use the popup its on?
3. Is there a way to fix this or is this database considered bricked?

Here is the error message that I get before H2N crashes and force closes itself:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

System.AggregateException: One or more errors occurred. ---> System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(Exceptio nResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKe y key, TValue value, Boolean add)
at Hand2NoteCore.ActionSubsBuilder.BuildSubs(List`1 streetDatas)
at Hand2NoteCore.Analyzing.HandAnalyzer..ctor(K hand, IActionHitsStatRanges iActionHitsStatRanges)
at Hand2NoteCore.FilterCheckHelper.CheckFilter(Filter CheckProxy filter, K hand, IActionHitsStatRanges iActionHitsStatRanges)
at Hand2NoteCore.FilterCheckHelper.A.A(K )
at System.Linq.Parallel.ForAllOperator`1.ForAllEnumer ator`1.MoveNext(TInput& currentElement, Int32& currentKey)
at System.Linq.Parallel.ForAllSpoolingTask`2.Spooling Work()
at System.Linq.Parallel.SpoolingTaskBase.Work()
at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Linq.Parallel.QueryTaskGroupState.QueryEnd( Boolean userInitiatedDispose)
at System.Linq.Parallel.DefaultMergeHelper`2.System.L inq.Parallel.IMergeHelper<TInputOutput>.Execute()
at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
at System.Linq.Parallel.PartitionedStreamMerger`1.Rec eive[TKey](PartitionedStream`2 partitionedStream)
at System.Linq.Parallel.ForAllOperator`1.WrapPartitio nedStream[TKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings)
at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQue ryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
at System.Linq.Parallel.ScanQueryOperator`1.ScanEnume rableQueryOperatorResults.GivePartitionedStream(IP artitionedStreamRecipient`1 recipient)
at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQue ryOperatorResults.GivePartitionedStream(IPartition edStreamRecipient`1 recipient)
at System.Linq.Parallel.QueryOperator`1.GetOpenedEnum erator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
at System.Linq.Parallel.ForAllOperator`1.RunSynchrono usly()
at Hand2NoteCore.FilterCheckHelper.CheckHands(FilterC heckProxy filter, IEnumerable`1 hands, IFilterCheckObserver observer, CancellationToken cancellationToken, IRegHelper iRegHelper, IActionHitsStatRanges iActionHitsStatRanges)
at Hand2NoteCore.FilterEditor.TestFilterViewModel.B()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatch Info.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.Handle NonSuccessAndDebuggerNotification(Task task)
at Hand2NoteCore.FilterEditor.TestFilterViewModel.A.M oveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatch Info.Throw()
at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---> (Inner Exception #0) System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(Exceptio nResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKe y key, TValue value, Boolean add)
at Hand2NoteCore.ActionSubsBuilder.BuildSubs(List`1 streetDatas)
at Hand2NoteCore.Analyzing.HandAnalyzer..ctor(K hand, IActionHitsStatRanges iActionHitsStatRanges)
at Hand2NoteCore.FilterCheckHelper.CheckFilter(Filter CheckProxy filter, K hand, IActionHitsStatRanges iActionHitsStatRanges)
at Hand2NoteCore.FilterCheckHelper.A.A(K )
at System.Linq.Parallel.ForAllOperator`1.ForAllEnumer ator`1.MoveNext(TInput& currentElement, Int32& currentKey)
at System.Linq.Parallel.ForAllSpoolingTask`2.Spooling Work()
at System.Linq.Parallel.SpoolingTaskBase.Work()
at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
at System.Threading.Tasks.Task.Execute()<---

Inner exception
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(Exceptio nResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKe y key, TValue value, Boolean add)
at Hand2NoteCore.ActionSubsBuilder.BuildSubs(List`1 streetDatas)
at Hand2NoteCore.Analyzing.HandAnalyzer..ctor(K hand, IActionHitsStatRanges iActionHitsStatRanges)
at Hand2NoteCore.FilterCheckHelper.CheckFilter(Filter CheckProxy filter, K hand, IActionHitsStatRanges iActionHitsStatRanges)
at Hand2NoteCore.FilterCheckHelper.A.A(K )
at System.Linq.Parallel.ForAllOperator`1.ForAllEnumer ator`1.MoveNext(TInput& currentElement, Int32& currentKey)
at System.Linq.Parallel.ForAllSpoolingTask`2.Spooling Work()
at System.Linq.Parallel.SpoolingTaskBase.Work()
at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
at System.Threading.Tasks.Task.Execute()


-----------------------------------------------------------------------------------------------------------------------------------------------------------------
H2N Error while testing for a stat? Quote
H2N Error while testing for a stat?
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
H2N Error while testing for a stat?
10-05-2022 , 08:04 PM
Please try to rebuild your statistics:

https://hand2note.com/Help/pages/RebuildingStats/
H2N Error while testing for a stat? Quote
10-05-2022 , 11:25 PM
Hello,

I am getting the same error message after rebuilding the stats by importing the relevant popup i was working on and the Default HUD.
H2N Error while testing for a stat? Quote
10-06-2022 , 03:44 AM
Probably your database is damaged? Try with another database please
H2N Error while testing for a stat? Quote
10-06-2022 , 07:47 PM
Yeah, i think its specific to the database. Very unfortunate. Thank you for your help.
H2N Error while testing for a stat? Quote
H2N Error while testing for a stat?
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
H2N Error while testing for a stat?

      
m