Skip to content

[BUG]: Engine hangs awaiting getItemsByVisibility #699

@ShaMan123

Description

@ShaMan123

Describe the bug 📝

I am using the Outliner and Hider programatically.
I am not sure what is going on but perhaps if an item is hidden and I try to outline it the engine boils.
Passing them to functions such as Outliner#addItems or CameraControls#fitToItems leaves the app in a broken state. The promise never resolves.

Reproduction ▶️

Steps to reproduce 🔢

Use Outliner#addItems and Hider

This is what hangs:

const invisibleItems = new Set(await model?.getItemsByVisibility(false));

System Info 💻

n/a

Used Package Manager 📦

npm

Error Trace/Logs 📃

No response

Validations ✅

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
  • Check that this is a concrete bug. For Q&A join our Community.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions