Skip to content

Avatar entity will move out of bounds if user grabs/moves it after child entity has been deleted #2022

@zedwick

Description

@zedwick

When I grab and move an avatar entity whose child has recently been deleted I see the following message in the log:

[DEBUG] [hifi.entities] Entity [entity-id: "{0eb42457-0324-412c-beb5-9b3ee2a5f0e1}" ] moved out of domain bounds.

As far as I can tell the necessary conditions are:

  • Both root parent and child entities must be avatar entities. local and domain entities are not affected.
  • It can be any child, even a child of a child, which is deleted.
  • The user must be grabbing the root entity after the child has been deleted. They can also keep the root entity grabbed whilst the child entity is deleted to trigger the issue.
  • The user may need to attempt to move the root entity whilst grabbed.

I have observed occasions where it did not trigger, but they were inconsistent. The vast majority of my tests had the same result.

I have prepared a test script. When it loads it will spawn the root entity (a cube), then a second entity parented to that root entity, then it will immediately kill that second entity. If you try to grab and move the root entity cube it will disappear.

entityOutOfBounds.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions