decentraland / decentraland/unity-explorer
System.Collections.Generic.KeyNotFoundException: The given key 'body_shape' was not present in the dictionary.
- Dominant language
- C#
- Stars
- 23
- Forks
- 17
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 101
Description
Sentry Issue: [UNITY-EXPLORER-KW0](https://decentraland.sentry.io/issues/7248228469/)
```
System.Collections.Generic.KeyNotFoundException: The given key 'body_shape' was not present in the dictionary.
File "C:/workspace/workspace/p/Explorer/Assets/DCL/AvatarRendering/Wearables/Equipped/EquippedWearables.cs", line 27, in Wearable
File "C:/workspace/workspace/p/Explorer/Assets/DCL/Profiles/Components/ProfileExtensions.cs", line 38, in CreateNewProfileForUpdate
File "C:/workspace/workspace/p/Explorer/Assets/DCL/Profiles/Self/SelfProfile.cs", line 113, in UpdateProfileAsync
File "C:/workspace/workspace/p/Explorer/Assets/DCL/Profiles/Self/SelfProfile.cs", line 68, in Dispose
File "C:/workspace/workspace/p/Explorer/Assets/DCL/Backpack/BackpackEquipStatusController.cs", line 234, in UpdateProfileAsync
...
(144 additional frame(s) were not displayed)
```
This issue was automatically created by Sentry via [Explorer Alpha Github Issue Creation](https://sentry.io/organizations/decentraland/monitors/alerts/3130340/)
Contributor guide
Research direction
Start with Assets/DCL/AvatarRendering/Wearables/Equipped/EquippedWearables.cs at line 27, then follow the profile update path through ProfileExtensions.cs and SelfProfile.cs. Reproduce or inspect the Sentry trace to determine why the body_shape key is absent during profile updates. Done means the reported KeyNotFoundException no longer occurs and the relevant behavior is covered by a regression test if the project has one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100