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

mapView(_:didTap:) crashes randomly #90

Open
Rakesh-iOS opened this issue Oct 13, 2020 · 1 comment
Open

mapView(_:didTap:) crashes randomly #90

Rakesh-iOS opened this issue Oct 13, 2020 · 1 comment

Comments

@Rakesh-iOS
Copy link

Rakesh-iOS commented Oct 13, 2020

Hi I am getting this crash randomly on Production live app.

Here is the code snippet:
func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -> Bool {

    if marker.responds(to: #selector(getter: GMSMarker.cluster)) {
               if let cluster = marker.cluster, cluster.count > 1 { **// crash strack trace indicating this line where crash happen**
                   OperationQueue.main.addOperation {
                       let cameraUpdate = GMSCameraUpdate.fit(marker.cluster!)
                       mapView.animate(with: cameraUpdate)
                   }
                   return true
               }
    }

}

ClusterKit version: 0.5.0
GoogleMapExtension: "GMSMapView+ClusterKit.h"

Screenshot 2020-10-13 at 11 04 52 AM

This is Firebase crash report :

Screenshot 2020-10-13 at 10 23 41 AM

Please help me out. It would be highly appreciated as I'm getting this crash from last 4 - 5 releases.

@alexvaiman
Copy link

alexvaiman commented Dec 10, 2020

when you remove marks from map - remove them from the map as well (not only from cluster manager)
the cluster manager is not synced with what you see on the map other wise.

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

No branches or pull requests

2 participants