-
-
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 Observed when AxisRenderer interval is becoming NaN #2168
Comments
This is one of the lldb log: fatal error: Double value cannot be converted to Int because it is either infinite or NaN |
need more info why some of the values become NaN or inf. |
Not sure. I am just using the API and it was crashing on this If in near future I get to reproduce I will surely paste the info. As of now I would like someone to fix it for invalid values. Any help would be appreciated. |
yep but we need more info on how this happens |
are you having same issue as in #2356? |
I am not sure since I was not able to replicate this crash and it points to different line of code which is |
that's weird, I need to know when let intervalMagnitude = ChartUtils.roundToNextSignificant(number: pow(10.0, Double(Int(log10(interval))))) will make |
Hello @liuxuan30 , @danielgindi this is the line: let intervalMagnitude = ChartUtils.roundToNextSignificant(number: pow(10.0, Double(Int(log10(interval))))) please if you have any suggestions I'll be very thankful. |
Can you check if #2377 fix the issue? It has been sometime and I don't remember if they are the same. |
@josman185hotm did you solve your issue ? |
closing now. reopen with updates |
The same thing happened for me when dismissing a viewController and returning to the view that included the chart in
Edit: It seems that the Transformers valueToPixelMatrix is producing the nan value but right now I do not know where I might be missing setting this, since all my Charts logic is in one place and in all the other cases do not crash (when presenting the vc). |
Hello. The same crash! STR:
|
The solution for me: |
Hitting this crash as well. |
same here... i think is related to the interval value not getting the default (minimal) init. |
I have a chart graph and based upon Segment Controller, We change the value of graph. When the axis graphs values are changed and segment is changed, the zoom level remains the same as it was earlier zoomed to. The following line is crashing in AxisRendererBase.swift since variable are becoming NaN.
let intervalSigDigit = Int(interval / intervalMagnitude)
My Chart Release shows following in Lock file
The text was updated successfully, but these errors were encountered: