Hello, I have an app that allows users to configure hotspots in a scene. This is basically what I'm doing using krpano.js in this tool.
On the main page I load krpano using the embedpano function.
Code
krpanoJS.embedpano(
{target:"pano",
html5:"auto",
xml:"",
onready: onPanoStart,
vars:settings,
mobilescale:1.0,
passQueryParameters:true});
When the user changes the scene to configure, I call removepano function just before embeding the view (need to do this for some backend validations)
but even doing this, I get the waring: Too many active WebGL contexts. Oldest context will be lost
And occasionally I get the error: WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost and all the view goes black and I have to refresh the page in order to load the scene again.
Does anyone had similar problem and know how to fix this?
Thanks
Best regards.