-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
App Crashing while updating BarChart with data #3945
Comments
Have you tried cleaning the build folder and then re-building? I had an issue where the new code hadn't built properly |
I fixed this issue with a clean build (Cmd + Shift + K) |
Duplicate of #3917 |
Post the crash log.
it shouldn't fail to cast. So I need the crash message of the reason. your screenshot includes almost everything but the crash message. Unlike #3917, it's crashed because it's passing in a However you are saying you passed in The ChartsDemo works fine though. |
take a look at #3917, we found something that may causes the crash. closing as dup |
hi, i get issue i dont get any error during build when i run my app than runtime crash |
What did you do?
I wanted to show a bar chart. while configuring bar chart with data , my app get crashing
my code was
func updateBarChart() {
It was crashing on library part . I am adding details about where it crashed.
FileName: BarChartRenderer.swift
Line 79:
full library function code;
open override func initBuffers()
{
if let barData = dataProvider?.barData
{
// Matche buffers count to dataset count
if _buffers.count != barData.dataSetCount
{
while _buffers.count < barData.dataSetCount
{
_buffers.append(Buffer())
}
while _buffers.count > barData.dataSetCount
{
_buffers.removeLast()
}
}
What did you expect to happen?
This code was taken from your dummy project. It ran perfectly before. Now i don't know why crashing
Charts Environment
Charts version/Branch/Commit Number:
Xcode version: 10.2 updated
Swift version: 4.2
Platform(s) running Charts: iPhone XR emulator
macOS version running Xcode: mac OS Mojave
The text was updated successfully, but these errors were encountered: