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:
- 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
- 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 callingloadSubtreeFromModel().- No parallel
loadSubtreeFromModel()calls are made. - The sheet still appears to load correctly, but these rejected promises are logged in the console.
Questions
- Is this a known issue in HOOPS 2025.6?
- Is there any additional cleanup required before calling
model.clear()(for example, deactivating operators or clearing markups)? - Is
model.clear()followed byloadSubtreeFromModel()the recommended workflow for switching 2D sheets, or is there a better approach?
Any guidance would be appreciated.
