Skip to content

Major memory leak in 2D WebGL plots #1813

Closed
@kevineschmidt

Description

@kevineschmidt

The Plotly.purge does not fully clean up a 2D OpenGL plot. It seems that the camera associated with the 2D scene leaves some mouse handlers attached, which then keep a reference to the pickbuffer in GLPlot2D, and in that, some very large Uint32Arrays.

I ran the following plnkr in Chrome under an allocation timeline. Repeatedly click the button.
https://plnkr.co/edit/7fve7JWbJrQy6COqJdIv?p=preview

In the function purgePlot, you can see there are two lines commented out that uninstall them and get rid of that large leak.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions