System.ArgumentOutOfRangeException - SMSG_UPDATE_OBJECT

未关闭
#571 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
csharp
领域
devtools

调研方向

从 Enums/Version/UpdateFields.cs 中的 GetUpdateFieldName 和 Parsing/Parsers/UpdateHandler.cs 中的 ReadDynamicValuesUpdateBlock 开始。重现 V5_3_0_16992 的 creature-spawn 解析,并将检测到的 build 与堆栈跟踪中显示的 V5_3_0_16981 模块进行比较。数据包能够在不出现所报告的索引异常的情况下完成解析,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Got the following error when it was parsing SMSG_UPDATE_OBJECT for the creature spawns when I parsed a sniff from 5.3.0 16992

Detected build: V5_3_0_16992
Detected locale: enUS
Targeted database: BattleForAzeroth

System.ArgumentOutOfRangeException
Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
The actual value was -1.
at System.Collections.Generic.SortedList2.GetKey(Int32 index) at System.Collections.Generic.SortedList2.KeyList.get_Item(Int32 index)
at WowPacketParser.Enums.Version.UpdateFields.GetUpdateFieldName[T](Int32 field) in D:\WowPacketParser-master\WowPacketParser\Enums\Version\UpdateFields.cs:line 165
at WowPacketParser.Parsing.Parsers.UpdateHandler.ReadDynamicValuesUpdateBlock(Packet packet, ObjectType type, Object index, Boolean isCreating, Dictionary`2 oldValues) in D:\WowPacketParser-master\WowPacketParser\Parsing\Parsers\UpdateHandler.cs:line 487
at WowPacketParser.Parsing.Parsers.UpdateHandler.ReadDynamicValuesUpdateBlockOnCreate(Packet packet, ObjectType type, Object index) in D:\WowPacketParser-master\WowPacketParser\Parsing\Parsers\UpdateHandler.cs:line 113
at WowPacketParserModule.V5_3_0_16981.Parsers.UpdateHandler.ReadCreateObjectBlock(Packet packet, WowGuid guid, UInt32 map, Object index) in D:\WowPacketParser-master\WowPacketParserModule.V5_3_0_16981\Parsers\UpdateHandler.cs:line 56
at WowPacketParserModule.V5_3_0_16981.Parsers.UpdateHandler.HandleUpdateObject(Packet packet) in D:\WowPacketParser-master\WowPacketParserModule.V5_3_0_16981\Parsers\UpdateHandler.cs:line 39
at WowPacketParser.Parsing.Handler.Parse(Packet packet, Boolean isMultiple) in D:\WowPacketParser-master\WowPacketParser\Parsing\Handler.cs:line 149

主要语言
C#
星标
522
派生
387
平均合并
3 天 6 小时
30 天内合并 PR
4

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TrinityCore/WowPacketParser 的其他 Issue

查看 TrinityCore/WowPacketParser 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。