I am having an issue just like #14998 that @bsterry posted, where I am receiving a deadlock when adding or removing annotations or overlays too quickly. Part of the stacktrace:
However, my users testing this still are having crashes with this new code. @julianrex were you suggesting that DispatchQueue.main.async should only be used for removeAnnotations:?
Expected behavior
Annotations and overlays should be added and removed without error.
Actual behavior
Deadlock and crashing if they are added or removed too fast such as when using a clustering framework.
I am having an issue just like #14998 that @bsterry posted, where I am receiving a deadlock when adding or removing annotations or overlays too quickly. Part of the stacktrace:
The solution that @julianrex mentioned was to use
DispatchQueue.main.async
, which I have done this in my subclass.However, my users testing this still are having crashes with this new code. @julianrex were you suggesting that
DispatchQueue.main.async
should only be used forremoveAnnotations:
?Expected behavior
Annotations and overlays should be added and removed without error.
Actual behavior
Deadlock and crashing if they are added or removed too fast such as when using a clustering framework.
Configuration
Mapbox SDK versions: 5.10 iOS/macOS versions: iOS 13, iOS 14 Device/simulator models: iPhone 11 Pro Max, iPhone 11 Pro, iPhone 6 Xcode version: 12.5