Skip to content
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

App Crashes When Reloading More Annotation #2045

Closed
RebinX1 opened this issue Nov 2, 2023 · 0 comments
Closed

App Crashes When Reloading More Annotation #2045

RebinX1 opened this issue Nov 2, 2023 · 0 comments
Labels
bug 🪲 Something is broken!

Comments

@RebinX1
Copy link

RebinX1 commented Nov 2, 2023

Environment

  • Xcode version: 15.0.1
  • iOS version: 17.1
  • Devices affected:
  • Maps SDK Version: 11.0.0 beta

Observed behavior and steps to reproduce

Our app refetch data based on user movement from the last distance of the last fetch request location, for example every 10km distance we refetch data and we add those data as annotation on the map.

The app runs perfectly fine for a while on simulator but when we get to refetch data, after refetching and trying to add new annotation the app crashes! saying we have duplicate keys in our dictionary, i have searched all my code for that duplicated key but i did not find any.

Screenshot 2023-11-02 at 12 00 59 PM Screenshot 2023-11-02 at 12 01 03 PM Screenshot 2023-11-02 at 12 01 10 PM

Expected behavior

Previously in MapBox v10 we were using UIViewRepresentable to show our Map On SwiftUI App and we had coordinate and annotationManager Variable, we did not have those issue and the algorithm of our app remained the same.

Notes / preliminary analysis

We have noticed that if we simulated massive location change from the ios simulator that crash wont happen, for example when we use apple free-drive we already got some data in that area and when we eneter a custom location far away from the previous our app remains intact.

@RebinX1 RebinX1 added the bug 🪲 Something is broken! label Nov 2, 2023
@RebinX1 RebinX1 closed this as completed Nov 2, 2023
mapbox-github-ci-writer-public-1 bot pushed a commit that referenced this issue Mar 28, 2024
Enables style transitions in the style DSL by creating a TransitionOptions struct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something is broken!
Projects
None yet
Development

No branches or pull requests

1 participant