Join Date: Sep 2022
Posts: 7
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()
-----------------------------------------------------------------------------------------------------------------------------------------------------------------