iOS Google Maps SDK Crashing

Viewed 778

Hello I'm having a problem, I have Integrated GMS on my app and it keeps on crashing when I'm trying to repeatedly trying to add entries that requires address.

Google Issues: https://issuetracker.google.com/113978690

What is the incorrect behavior that you are experiencing?

  • App is crashing when loading the view with Google Maps

What should happen instead?

  • Should load without a problem

CallStack:

  • gmscore::renderer::MutableImageData::ProvideTextureImage() + 84

Steps to reproduce the problem:

  • Repeat adding new entry until the time google maps crashes

  • Operating system version: iOS 11.4.1 [15G77]

  • Google Maps SDK for iOS version: 2.7.0 / iOS 11.4

  • Hardware model: iphoneX

Code:

override func viewDidLoad() {
    super.viewDidLoad()

    let camera = GMSCameraPosition.camera(withLatitude: 14.52101057,longitude: 121.06712508,zoom: zoomLevel)
    mapView = GMSMapView.map(withFrame: self.view.bounds, camera: camera)
    mapView.settings.myLocationButton = true
    mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
    mapView.isMyLocationEnabled = true
    mapView.settings.myLocationButton = true
    mapView.delegate = self

    do {
        // Set the map style by passing a valid JSON string.
        mapView.mapStyle = try GMSMapStyle(jsonString: kMapStyle)
    } catch {
        NSLog("One or more of the map styles failed to load. \(error)")
    }


    locationManager = CLLocationManager()
    locationManager.desiredAccuracy = kCLLocationAccuracyBest
    locationManager.requestAlwaysAuthorization()
    locationManager.distanceFilter = 50
    locationManager.startUpdatingLocation()
    locationManager.delegate = self

    self.view.addSubview(mapView)
    self.view.addSubview(UserBar)

}

Screencast of phone when the crash occurred: Video

0 Answers
Related