TrinityCore / TrinityCore/WowPacketParser
System.ArgumentOutOfRangeException - SMSG_UPDATE_OBJECT
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 522
- Fork
- 387
- Merge medio
- 3g 6h
- PR unite (30g)
- 4
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da Enums/Version/UpdateFields.cs in GetUpdateFieldName e da Parsing/Parsers/UpdateHandler.cs in ReadDynamicValuesUpdateBlock. Riproduci il parsing di creature-spawn di V5_3_0_16992 e confronta la build rilevata con il modulo V5_3_0_16981 mostrato nello stack trace. Il lavoro è completato quando il pacchetto viene analizzato senza l’eccezione di indice segnalata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100