I am a developing a web app which has to generate lots of label widgets around a 3D model. I am only using a single fullScreenRenderer and a single render window yet I am still getting WARNING: Too many active WebGL contexts. Oldest context will be lost.. This happens after I call a certain number of label widgets, and despite creating a method which eliminates these label widgets from the view it’s still happening. Any ideas of what could be wrong here?
document.getElementById('btnDel').addEventListener('click', () => {
widgetManager.addWidget(labelWidget).reset()
widgetManager.removeWidget(handle);
svgCleanupCallbacks.get(handle);
svgCleanupCallbacks.delete(handle);
handleTextProps.delete(handle);
handle = null;
})