Skip to content

Conversation

@Kiruel
Copy link

@Kiruel Kiruel commented Jan 19, 2026

Fixes a crash observed in MKPuckAccuracyLayer during _updateColors by removing redundant CLLocationManager updates in FlutterMapView.swift.

When myLocationEnabled is true, the plugin was redundantly starting locationManager updates while also setting showsUserLocation = true on the MKMapView. This dual-management appeared to cause a race condition or conflict within MapKit's internal layers, leading to EXC_BAD_ACCESS crashes during trait collection changes (e.g., toggling Dark Mode). This PR removes the manual locationManager configuration, relying solely on MKMapView's built-in user location handling.

List which issues are fixed by this PR.

Pre-launch Checklist

  • I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy].
  • I updated CHANGELOG.md to add a description of the change.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making if a test is possible.
  • All existing and new tests are passing.

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

Successfully merging this pull request may close these issues.

1 participant