stride3d / stride3d/stride

AddReferenceViewModel duplicate key exception when viewing entity

Open
#2,785 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Asset area-GameStudio bug good first issue
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Release Type: Github
Version: 6183210a2ba67f82fe3c3321fcf8ba89009e31d1 (latest as of now)

Platform(s): Windows, editor.

Describe the bug
Viewing entities is impossible because of a ArgumentException thrown in PropertyContainer.SetObject.

To Reproduce
Unknown. At the moment this was done with a plain Spot light entity.

Expected behavior
Being able to see entity properties.

Screenshots
Image
Image

Log and callstacks
None at the moment, will add later.

Workarounds
A possible fix is here: https://github.com/Ionized-Interactive/stride/tree/property-fix but I will not create a PR since I don't know what is causing the duplicate key.

Contributor guide

Open the 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.

Research direction

Start at the ArgumentException in PropertyContainer.SetObject and trace how AddReferenceViewModel creates properties while viewing a plain Spot light entity. Compare the behavior with the proposed property-fix branch mentioned in the issue. Done means the editor can display entity properties without the duplicate-key exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.