Description
With 3.1.1 using Plotly.react with a config object that has a modeBarButtons property on an already existing plot freezes the browser tab, spikes CPU Usage and consumes multiple GB of memory pretty quickly
Steps to reproduce
CodePen with reproducer
Clicking the Trigger plotly react button is triggering the issue.
Notes
This seems to be a regression in version 3.1.1, it works in 3.1.0 without issues.
When using WebGL plots, many WARNING: Too many active WebGL contexts. Oldest context will be lost. warnings are printed to the console (not visible in code pen, but visible when run locally). I'd assume it's some kind of infinite loop/recursion issue.
The error is present when using non WebGL plot types and the actual modeBarButtons added do not matter, it even happens with an empty modeBarButtons array (see example)
Description
With 3.1.1 using
Plotly.reactwith aconfigobject that has amodeBarButtonsproperty on an already existing plot freezes the browser tab, spikes CPU Usage and consumes multiple GB of memory pretty quicklySteps to reproduce
CodePen with reproducer
Clicking the
Trigger plotly reactbutton is triggering the issue.Notes
This seems to be a regression in version 3.1.1, it works in 3.1.0 without issues.
When using WebGL plots, many
WARNING: Too many active WebGL contexts. Oldest context will be lost.warnings are printed to the console (not visible in code pen, but visible when run locally). I'd assume it's some kind of infinite loop/recursion issue.The error is present when using non WebGL plot types and the actual
modeBarButtonsadded do not matter, it even happens with an emptymodeBarButtonsarray (see example)