Xian55 / WowClassicGrindBot

Highly configurable and responsive World of Warcraft Classic pixel Grind Bot - No DLL injection or memory tampering, just screen capture and input simulation.
172 stars 119 forks source link

[NpcNameFinder] Specified argument was out of the range of valid values. #609

Open cppbeliever opened 1 month ago

cppbeliever commented 1 month ago

Description

HeadLessServer reports an error after selling an item to a merchant.Is it related to running out of food and drink?

Addon Version

1.7.57

World of Warcraft Client

Wrath of the Lich King Classic

Reproduction Steps

HeadLessServer reports an error after selling an item to a merchant

Last Good Version

No response

Screenshots

aaa

Logs

headless_out20240713.log out20240713.log

Xian55 commented 1 month ago

Hello, looking into it

System.AggregateException: One or more errors occurred. (Specified argument was out of the range of valid values.) (Specified argument was out of the range of valid values.) (Specified argument was out of the range of valid values.)
 ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---

   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
   at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location ---

   at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at SixLabors.ImageSharp.Advanced.ParallelRowIterator.IterateRows[T,TBuffer](Rectangle rectangle, ParallelExecutionSettings& parallelSettings, T& operation)
   at SharedLib.NpcFinder.NpcNameFinder.Update() in D:\HuB\WowClassicGrindBot-dev\WowClassicGrindBot-dev\SharedLib\NpcFinder\NpcNameFinder.cs:line 337
   at Core.BotController.ScreenshotThread() in D:\HuB\WowClassicGrindBot-dev\WowClassicGrindBot-dev\Core\BotController.cs:line 197
 ---> (Inner Exception #1) System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---

   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---

 ---> (Inner Exception #2) System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---

it seems

at SharedLib.NpcFinder.NpcNameFinder.Update() in D:\HuB\WowClassicGrindBot-dev\WowClassicGrindBot-dev\SharedLib\NpcFinder\NpcNameFinder.cs:line 337

went out of bound.

Seems like a weird issue, not sure how to tackle it or even reproduce it.

cppbeliever commented 1 month ago

@Xian55 thanks for your response

Xian55 commented 1 month ago

No need to close this one. Let it open, so i wont forget about it.