So I'm currently working on an application including Cesium. I have a page that generates and removes views as certain data objects are selected. However, despite using .destroy on the views and verifying that they are destroyed (by using isDestroyed() which is returning true), I am continuing to have an error that "Too many active WebGL contexts. Oldest context will be lost." Upon clicking again, it blows up my application.
I am not sure what to do at this point. For a reference of what I am saying, someone shared their code snippet on the sandcastle, and I am able to recreate the error by adding and deleting their view over and over (around 21ish times). Attached the sandcastle link for reference. Is there any way to fully destroy/have cesium viewers let go of the WebGL to actually remove or is this a bug? Thanks in advance.
sandcastle link mentioned above.