You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR, there's some value being passed to the DateComponentsFormatter which is causing a crash. I tried several "obvious" edge cases like zero, negative zero (the value in question is a Double), and -1. Then I remembered that there are plenty more, because doubles... like NaN, infinity, and subnormals.
I believe that something in algorithms.rs (the calculate_trip_progress function) is responsible. I have observed similar issues with doing these sorts of calcs before; sometime even traceable back to the geo rust calculations, which have on occasion not been fully implemented or sound against edge cases (any sort of IEEE-754 division is inherently unsafe.)
The text was updated successfully, but these errors were encountered:
This manifests on iOS today with the arrival view on iOS, but I'm pretty sure the root cause is the core. Here's a sample backtrace.
TL;DR, there's some value being passed to the
DateComponentsFormatter
which is causing a crash. I tried several "obvious" edge cases like zero, negative zero (the value in question is aDouble
), and -1. Then I remembered that there are plenty more, because doubles... likeNaN
, infinity, and subnormals.I believe that something in
algorithms.rs
(thecalculate_trip_progress
function) is responsible. I have observed similar issues with doing these sorts of calcs before; sometime even traceable back to the geo rust calculations, which have on occasion not been fully implemented or sound against edge cases (any sort of IEEE-754 division is inherently unsafe.)The text was updated successfully, but these errors were encountered: