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
Crash in QuadTreeNode annotations(in rect: MKMapRect) #92
Comments
Thanks for reporting. Currently fixing this issue. |
Released 2.3.0. Let me know if you still see the crash. |
@efremidze I have the same problem, I updated Cluster to the latest version (Cluster (2.4.0)). |
I recently noticed it's still occurring. I'll fix it asap. |
Same issue on Cluster (2.4.0), iPhone XR iOS 12.1 |
Hello. @efremidze. Do you have some news about this problem? |
@petrovRV @antoine20001 Sorry for the delay. I've improved thread safety in 2.4.1. Try it out. |
New Issue Checklist
Issue Description
I have noticed a few times that there has been a crash in
QuadTree.swift:132
The line is
for annotation in annotations where rect.contains(annotation.coordinate)
and the crash is due to index out of bounds. Presumably this is due to iterating the
annotations
array while it is being modified. Perhaps a copy of this array should be made inside the method to be used for the iteration. I'm not sure if this fixes it.I cannot replicate this, however it has happened on multiple versions including the latest, 2.2.9. When this happened today the map was in memory but not visible on screen (page view controller sho8wing another page).
Environment
The text was updated successfully, but these errors were encountered: