stride3d / stride3d/stride

Exception when entity with two references to the same sound is assigned a parent

Open
#2,024 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Release Type: Official Release

Version: 4.1

Platform(s): Windows

Describe the bug
If an entity has an audio component with two keys that reference the same asset, an exception is thrown when that entity (or its parent) is assigned a parent in a script.

To Reproduce
Steps to reproduce the behavior:

  1. make entities A and B
  2. Add audio emitter component to entity A
  3. Import some spatial sound
  4. Add two key/value pairs to the audio emitter, each of which reference the imported sound
  5. In a script, assign entity A to be a child of entity B.

Expected behavior
Not throw an exception, and assign the child as normal.

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 by reproducing the issue with two entities, an audio emitter on entity A, and two keys referencing the same imported spatial sound. Then inspect the entity-parenting path and audio emitter asset handling involved when A is assigned as a child of B. Done means the parent assignment completes without an exception and the child hierarchy remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
audio-video-rtc, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.