Skip to content

mapView(_:didTap:) crashes randomly #90

Description

@Rakesh-iOS

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions