Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BarChartRenderer FatalError: Index out of range #4013

Closed
1 task done
francescodestino92 opened this issue Jun 4, 2019 · 1 comment
Closed
1 task done

BarChartRenderer FatalError: Index out of range #4013

francescodestino92 opened this issue Jun 4, 2019 · 1 comment

Comments

@francescodestino92
Copy link

francescodestino92 commented Jun 4, 2019

What did you do?

Hello everyone, i used a BarChartView inside a UITableViewCell, I have two section in my UITableView and 1 row for section, the BarChart in first section have 4 index, chart in second section got 3 index, every time i reload the view i reload the UITableView with new data for my charts and i got the error on line 790 (let range = e.ranges?[high.stackIndex]) of file BarChartRenderer Fatal error: index out of range
This error doesn't appear every time, but only after few times i reload my view.

What did you expect to happen?

The view to reload normally without crash

What happened instead?

The app crash in that line

Charts Environment

Charts version/Branch/Commit Number: 3.3.0
Xcode version: 10.2.1
Swift version: 5
Platform(s) running Charts: Every iPad
macOS version running Xcode: Mojave 10.14.5

Demo Project

I can't give you the repository because it's a work project and i can't share it, but I can show some images
Schermata 2019-06-04 alle 16 35 53
Schermata 2019-06-04 alle 16 36 09

@liuxuan30
Copy link
Member

Have your tried anything like calling chart.clear() or just re-set the chartData. normally it's beyond our scope to answer this. It's your duty to figure out what's causing the OOB situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants