Open abbottkilroy opened 8 months ago
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
No crash.
Crash.
DGCharts 5.0.0 Xcode 14.3.1 Swift 5.4 iOS
I am getting the same issue in production is there any solution?
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:
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