You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
@ShaMan123 does it happen with all models? If so, feel free to open an issue. If it's just with a certain model, feel free to send it to [email protected] and I'll take a look!
Activity
[-]Engine hangs when passing ids that do not have geometry[/-][+]Engine hangs when passing (hidden?) ids[/+][-]Engine hangs when passing (hidden?) ids[/-][+][BUG]: Engine hangs awaiting `getItemsByVisibility`[/+]ShaMan123 commentedon Feb 20, 2026
I can confirm that this workaround fixes the bug
class Outliner extends BrokenOutliner { /** * work around `https://github.com/ThatOpen/engine_components/issues/699` */ async update(modelIdMap = this._map) { if (modelIdMap === this._map) this.cleanMeshes(); if (this.outlinePositions) this.updatePoints(); if (Object.keys(modelIdMap).length === 0) return; const fragments = this.components.get(FragmentsManager); const renderer = this.getRenderer(); const outlinePass = renderer.postproduction.outlinePass; const mesher = this.components.get(Mesher); const meshes = await mesher.get(modelIdMap); for (const modelId of Object.keys(modelIdMap)) { const model = fragments.list.get(modelId); - const invisibleItems = new Set(await model?.getItemsByVisibility(false)); if (!model) continue; for (const [_, data] of meshes.entries()) { for (const [localId, meshes] of data) { - if (invisibleItems.has(localId)) continue; for (const mesh of meshes) { this._meshes.push(mesh); outlinePass.scene.add(mesh); } } } } } }agviegas commentedon Feb 25, 2026
Fixed, will be available from @thatopen/[email protected], to be published these days. Cheers!
ShaMan123 commentedon Feb 26, 2026
I can confirm this has been fixed.
However using
await model.getItemsByVisibility(true)still hangs.agviegas commentedon Feb 26, 2026
@ShaMan123 does it happen with all models? If so, feel free to open an issue. If it's just with a certain model, feel free to send it to [email protected] and I'll take a look!
ShaMan123 commentedon Feb 27, 2026
The IFC I sent you regarding grids causes this issue to occur. Can't reproduce with the school IFC example.
https://stackblitz.com/edit/vitejs-vite-efp6fmgp?file=src%2FViewer.ts
agviegas commentedon Feb 27, 2026
I see, would you mind opening an issue? Thanks!