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

Fix annotation manager crashes #1297

Merged
merged 3 commits into from
Apr 17, 2023
Merged

Conversation

felix-ht
Copy link
Collaborator

@felix-ht felix-ht commented Apr 14, 2023

Fixes a crash that could happen if multiple overlap placement settings were changed without awaiting the results.

At its core the issue is caused by the fact that two async calls are needed to remove and than add layers.

I fixed this by making addLayer upsert the layer if required.

fixes #1207

@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN April 14, 2023 15:13 — with GitHub Actions Inactive
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN April 14, 2023 15:13 — with GitHub Actions Inactive
@felix-ht felix-ht requested a review from AAverin April 14, 2023 15:16
@felix-ht felix-ht merged commit 61b435e into master Apr 17, 2023
@felix-ht felix-ht deleted the fix-annotation-manger-crashes branch April 17, 2023 19:35
felix-mittermeier pushed a commit to Ocell-io/flutter-mapbox-gl that referenced this pull request Apr 20, 2023
* fixed crash caused be race condition in layer deletion

* better layer ids for annotations

* added overlap button to example
sandrews-inc pushed a commit to Get-Phil/flutter-mapbox-gl that referenced this pull request May 15, 2023
* fixed crash caused be race condition in layer deletion

* better layer ids for annotations

* added overlap button to example
FreeGrow added a commit to FreeGrow/maps that referenced this pull request Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS 15.2 - 16.0 Crashing after updating above 0.14.0
2 participants