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
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
When applying a predicate with an IN <array> statement that has 10-digit long NSNumbers in the array, a crash occurs if the array has 4 or more items in it. Oddly enough, if you trim the values of the numbers in the array down to 4-digits then the crash no longer occurs.
Steps to reproduce
Create an MGLFillStyleLayer
Apply a predicate to the layer with an array of NSNumbers. For example:
My first guess would be a precision problem in the code that converts NSExpression to JSON. The NSExpression.mgl_jsonExpressionObject property is useful for debugging these translation issues.
When applying a predicate with an
IN <array>
statement that has 10-digit long NSNumbers in the array, a crash occurs if the array has 4 or more items in it. Oddly enough, if you trim the values of the numbers in the array down to 4-digits then the crash no longer occurs.Steps to reproduce
MGLFillStyleLayer
Expected behavior
Predicate should filter features in the layer by ID.
Actual behavior
The app crashes with the following error:
Configuration
Mapbox SDK versions: 4.6.0
iOS/macOS versions: iOS 12.1
Device/simulator models: iPhone XR
Xcode version: 10.1
cc: @mapbox/maps-ios
The text was updated successfully, but these errors were encountered: