statnett / vue-plotly

A vue wrapper for plotly.js chart library
MIT License
118 stars 28 forks source link

WebGL context leaking? #8

Closed soichih closed 5 years ago

soichih commented 6 years ago

I am not sure if I need to do something explicit to remove the old view, but vue-plotly seems to be opening but never closing old webgl context once it's no longer used.

After a while, I start seeing the following error message.

Error: WebGL warning: Exceeded 16 live WebGL contexts for this principal, losing the least recently used one.

Can it be updated to close the old webgl upon destroy hook?

mokkabonna commented 5 years ago

Could be fixed after the change to react instead of newPlot. Closing, open if still an issue.