Error: Failed writing AreaTriggerCreatePropertiesOrbitData

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

Nobody has claimed this yet.

Assessment

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

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.

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)
Dominant language
C#
Stars
539
Forks
392
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

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.

More from TrinityCore/WowPacketParser

All issues in TrinityCore/WowPacketParser

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.