Errors After model.clear() and loadSubtreeFromModel()

Hi,

I’m seeing a couple of rejected promise errors when switching between 2D sheets in HOOPS Visualize Web 2025.6.

Code


await viewer2d.model.clear();

await iafViewer._viewer2d.model.loadSubtreeFromModel(
    iafViewer._viewer2d.model.getAbsoluteRootNode(),
    fileName,
    subtreeConfig
);

The clear() call is awaited before calling loadSubtreeFromModel().

Errors observed

The browser console reports the following:

  1. During model.clear():

Rejected promise in '_resetAssemblyTreeBegin' callback:
Error: Unable to remove markup from unknown view

Stack trace includes:


unregisterMarkupItem
unregisterMarkup
_resetEdgeMarkup
onDeactivate
_deactivateOperator
_resetAssemblyTreeBegin
  1. During the subsequent load:

Rejected promise in '_modelStructureHeaderParsed' callback:
MeshInstance_create

and


Rejected promise in '_firstModelLoaded' callback:
MeshInstance_create

Additional information

  • HOOPS Visualize Web 2025.6
  • This occurs while switching between 2D sheets.
  • model.clear() is awaited before calling loadSubtreeFromModel().
  • No parallel loadSubtreeFromModel() calls are made.
  • The sheet still appears to load correctly, but these rejected promises are logged in the console.

Questions

  1. Is this a known issue in HOOPS 2025.6?
  2. Is there any additional cleanup required before calling model.clear() (for example, deactivating operators or clearing markups)?
  3. Is model.clear() followed by loadSubtreeFromModel() the recommended workflow for switching 2D sheets, or is there a better approach?

Any guidance would be appreciated.

This issue was previously reported as a bug and resolved with the release of Visualize Web 2026.1.0.

ok thanks! any workround?

Unfortunately, there is not a workaround available. Regarding Visualize Web 2026.1.0 specifically, more information can be found in the Release Notes.