Skip to content

Constant browser memory growth in Vaadin Charts (specifically, type LINE) #6383

Open
@jonathanjt

Description

@jonathanjt

Description

Updating an existing chart data series via DataSeries::add( item, true, true ), with Push enabled, causes a growing memory consumption - Chrome DevTools profiler suggests listeners are being added and not being cleaned up when the data points are shifted.

Expected outcome

Would expect memory to remain roughly constant as new data points are added

Minimal reproducible example

v23-chart-leak.zip

Steps to reproduce

Run the provided demo - in creates a chart with some settings ( similar to our production usage where we spotted the issue, in case the particular settings matter ), and sets a timer to update the chart once per second with new data. Shortening the interval will make the growth quite obvious:
image

Environment

Vaadin version(s): 23.5
OS: Linux

Browsers

Chrome

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions