Too many active WebGL contexts. Oldest context will be lost
See original GitHub issueIt looks like purging a scattergl graph does not destroy the webgl context. I have a page with 4 scattergl plots on it that are redrawn (purge
and newPlot
) when zooming in on data (as it downloads higher resolution data). Once the graphs are redrawn a couple of times, you start getting the WebGL warning messages. Was wondering if the GL context wasn’t being “removed completely” on purge
(related issues https://github.com/pixijs/pixi.js/issues/2233#issuecomment-181650433)?
Hack of an example https://codepen.io/bytesnz/pen/XBaoee
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Allowing more WebGL contexts - Stack Overflow
Note: having multiple contexts is not a recommended solution. Textures, vertices, and shaders can not be shared between WebGL contexts. That ...
Read more >Too many active WebGL contexts. Oldest context will be lost ...
I created the 3D models by creating a CRUD Method but then it will pop up in console the WEBGL errors.
Read more >multiple canvases - Too many active WebGL contexts. Oldest ...
In the console I get: Too many active WebGL contexts. Oldest context will be lost. It seems that each vtkRenderWindow creates a new...
Read more >Error: Too many WebGL contexts. Unable to add the layer
Cause. The JS API creates one WebGL context per vector tile layer added to a workbook, and Chromium has a limit of sixteen...
Read more >Too many active WebGL contexts. Oldest context will be lost
Hello, there! I need your help. I am absolute beginner in 3D Web graphics and I have problem with displaying 3D model on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was using purge/newPlot to avoid other issues we were getting. What exactly they were, I will have to test again using just react and let you know. Will close and approach browsers.
@bytesnz this does seem like a browser issue, but I wonder if you’ve tried using
Plotly.react
instead ofpurge
+newPlot
? That should give the same result but in principle it reuses resources like webGL contexts.