ChartDataEntry Leak in version 3.0.1
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I found a large number of ChartDataEntry leak when i set chart data.

And locate code to` sixfoot.TrackDetailDataViewController.drawChart () -> ()` at number 8

`speedData` just a simple array, definition with `var speedData:[ChartDataEntry] = [];`
I try to add autoreleasepool but it doesn't work!
How to fix this?
Contributor guide
Research direction
Start by reproducing the reported leak in sixfoot.TrackDetailDataViewController.drawChart(), focusing on the speedData array of ChartDataEntry values and the chart-data assignment. Use allocation tracking to check whether entries accumulate across repeated draws; the issue is resolved when repeated chart updates no longer show the reported leak.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100