Random crashes when Charts is being used in our app ($s6Charts16BarChartRenderer)
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
* [ X] 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?
Nothing, after using the library in our app, we're getting lots of seemingly random crashes as users are using our app.
## What did you expect to happen?
The library to not crash our app
## What happened instead?
We're getting lots of crash reports with this message: `$$s6Charts16BarChartRendererC13prepareBuffer33_B1DA9F8F94F55CD815106107021BB63DLL7dataSet5indexyAA0bc4DataO8Protocol_p_SitF`
It's happening across many different iOS devices and iOS versions, and seemingly at random.
## DGCharts Environment
**DGCharts version: 4.1.0**
**Xcode version: 15.0.1**
**Swift version: 5**
**Platform(s) running DGCharts: iOS and iPadOS**
**macOS version running Xcode: Sanoma 14.2**
Contributor guide
Research direction
Start at BarChartRenderer.prepareBuffer, the entry point named by the crash symbol, and review how it is reached during chart use. Compare additional crash reports across iOS and iPadOS on DGCharts 4.1.0 to isolate a reproducible failure; done means the random crash is explained and no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100