Not sure if it’s due to creating lots of renderWindows since I am using a single fullScreenRenderWindow, and the error only occurs after calling the method which deletes my vtkLabelWidget’s for a third time. Still have not found the issue…
document.getElementById('btnDel').addEventListener('click', () => {
widgetManager.addWidget(labelWidget).reset()
widgetManager.removeWidget(handle);
svgCleanupCallbacks.get(handle);
svgCleanupCallbacks.delete(handle);
handleTextProps.delete(handle);
handle = null;
})
Am I properly deleting the labels from the renderer? Or could it be related to something else?