ChartsOrg / ChartsOrg/Charts

LineChartRenderer crash.

Open
#5,129 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

* [yes] I've read, understood, and done my best to follow the [*CONTRIBUTING guidelines](https://github.com/jjatie/Charts/blob/master/CONTRIBUTING.md).

## What did you do?

We're seeing this crash reported in Crashlytics in our Libre3 app:

Crashed: com.apple.main-thread
0 Libre3 0xc04570 LineChartRenderer.drawHighlighted(context:indices:) + 800 (LineChartRenderer.swift:800)
1 Libre3 0xc04650 @objc LineChartRenderer.drawHighlighted(context:indices:) + 1256744 (:1256744)
2 Libre3 0xb812e0 BarLineChartViewBase.draw(_:) + 251 (BarLineChartViewBase.swift:251)
3 Libre3 0xb816e4 @objc BarLineChartViewBase.draw(_:) + 720316 (:720316)
4 UIKitCore 0x177098 + 572
5 QuartzCore 0x4a8b8 + 188
6 QuartzCore 0x8a934 + 52
7 QuartzCore 0x8c35c + 1864
8 QuartzCore 0x303b0 + 416
9 QuartzCore 0x43cc8 + 464
10 QuartzCore 0x4c79c + 708
11 QuartzCore 0x2f9a8 + 84
12 CoreFoundation 0x3e76c + 32
13 CoreFoundation 0xf974 + 616
14 CoreFoundation 0xaefc + 1012
15 CoreFoundation 0x1e174 CFRunLoopRunSpecific + 572
16 GraphicsServices 0x1988 GSEventRunModal + 160
17 UIKitCore 0x4e5a88 + 1080
18 UIKitCore 0x27ef78 UIApplicationMain + 336
19 Libre3 0x333c0 main + 14 (AppDelegate.swift:14)
20 ??? 0x10498c4d0 (Missing)

The funny part is is that it is calling an empty method:

// Ignore this call since highlighting is drawn along with drawCircles and drawIcons

## What did you expect to happen?

No crash.

## What happened instead?

Crash.

## DGCharts Environment

DGCharts 5.0.0
Xcode 14.3.1
Swift 5.4
iOS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.