-
-
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
Crash in Charts v2.2.5-Swift3.0 #1570
Comments
...using Xcode 8.0 GM / iOS 10 SDK and running on the iPhone 5s Simulator |
giving the code you post, Could you debug more? e.g. print out if Also, it's better it can be produced by ChartsDemo so we could debug. But for now, you have to debug on your side. Never seen this reported by others I remember. |
since we have no plans to officially support swift 3.0 with chart 2.x we should close all issues related to it and delete the branch to avoid confusion. |
Makes sense, I thought it was worth trying the branch to keep the same Charts API but gain Swift 3.0 support. I was able to patch the crash above with a NaN check inside the method but several more crashes occurred in other methods with the data set we were using so we stopped. The same data set with the v2.3.0 Swift 2.3 branch https://github.com/danielgindi/Charts/tree/v2.3.0 did not crash so we migrated to Swift 2.3 instead until Charts 3.0 Swift 3.0 is finalised. |
Glad to hear you got things working. If you want charts 3.0 sooner you can always help closing the remaining issues 😉 |
Hi there
I found a crash at runtime using the Chart2.2.5-Swift3.0 branch
In certain circumstances the CGPoint created in the
lowestVisibleXIndex
method returns NaN (see screenshot below)We were hoping to use with this version of the Charts API whilst we wait for the Charts 3 / Swift 3.0 release (and with that the new APIs for the library )
Can you advise about fixing the problem or whether its safe to use the branch or if we need to Charts 3?
Thank you for your time and for this library
The text was updated successfully, but these errors were encountered: