ChartsOrg / ChartsOrg/Charts

ChartDataEntry Leak in version 3.0.1

Open
#2,427 1 comment 0 reactions 0 assignees View on GitHub
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.

wx20170510-192043 2x

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

wx20170510-192410 2x

`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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.