Skip to content

[BUG]: Plotly.react with config that includes modeBarButtons broken in v3.1.1 #7572

@WeisSebastian

Description

@WeisSebastian

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)

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions