[Bug] Overlay fails on viewports when used with hanging protocols #4168
Labels
fixed-in-dev-await-release
This issue is fixed in master (viewer-dev) but we are pending testing for release (viewer.ohif.org)
Describe the Bug
When using hanging protocols, and going into a study from the study browser or from a direct link, sometimes some or all of the overlays fail to render with a console error. Refreshing the page or going from one stage to another seems to work fine all the time.
Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at http://localhost:3000/vendors-node_modules_cornerstonejs_tools_dist_esm_store_index_js.js:1998:29
at Array.forEach ()
at clearUntouched (http://localhost:3000/vendors-node_modules_cornerstonejs_tools_dist_esm_store_index_js.js:1995:85)
at draw (http://localhost:3000/vendors-node_modules_cornerstonejs_tools_dist_esm_store_index_js.js:1100:22)
at AnnotationRenderingEngine._triggerRender (http://localhost:3000/vendors-node_modules_cornerstonejs_tools_dist_esm_store_index_js.js:44785:58)
at AnnotationRenderingEngine._renderFlaggedViewports (http://localhost:3000/vendors-node_modules_cornerstonejs_tools_dist_esm_store_index_js.js:44713:26)
Steps to Reproduce
The current behavior
Sometimes the overlay fails to render
The expected behavior
Always renders the overlay
OS
Windows 10
Node version
20.11.1
Browser
Chrome 125.0.6422.77
The text was updated successfully, but these errors were encountered: