TrinityCore / TrinityCore/WowPacketParser

Error: Failed writing AreaTriggerCreatePropertiesOrbitData

Open
#953 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
522
Forks
387
Avg merge
3d 6h
Merged PRs (30d)
4

Description

TrinityCore - WowPacketParser
Detected build: V11_1_7_61967
Detected locale: enUS
Targeted database: TheWarWithin

4/96 - Error: Failed writing AreaTriggerCreatePropertiesOrbitData

WowPacketParser Error: 0 : System.ArgumentOutOfRangeException: startIndex ('-4') must be a non-negative value. (Parameter 'startIndex')
Actual value was -4.
   at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName)
   at System.Text.StringBuilder.Remove(Int32 startIndex, Int32 length)
   at WowPacketParser.SQL.SQLWhere`1.Build() in C:\WowPacketParser\WowPacketParser\SQL\QueryBuilder.cs:line 115
   at WowPacketParser.SQL.SQLSelect`1.Build() in C:\WowPacketParser\WowPacketParser\SQL\QueryBuilder.cs:line 274
   at WowPacketParser.SQL.SQLDatabase.Get[T](RowList`1 rowList, String database) in C:\WowPacketParser\WowPacketParser\SQL\SQLDatabase.cs:line 554
   at WowPacketParser.SQL.SQLDatabase.Get[T](IEnumerable`1 conditionList, String database) in C:\WowPacketParser\WowPacketParser\SQL\SQLDatabase.cs:line 537
   at WowPacketParser.SQL.Builders.AreaTriggers.AreaTriggerCreatePropertiesOrbitData() in C:\WowPacketParser\WowPacketParser\SQL\Builders\AreaTriggers.cs:line 125
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in SQL/QueryBuilder.cs at SQLWhere.Build line 115, then inspect SQLSelect.Build and the AreaTriggers.cs AreaTriggerCreatePropertiesOrbitData entry point at line 125. Reproduce the V11_1_7_61967 enUS case and trace the empty or invalid query condition; done means the operation completes without the negative startIndex exception and produces its SQL output.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.