Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Crash when calling MapboxMap#query when activity is restarted #14394

Closed
tobrun opened this issue Apr 11, 2019 · 0 comments · Fixed by #14395
Closed

Crash when calling MapboxMap#query when activity is restarted #14394

tobrun opened this issue Apr 11, 2019 · 0 comments · Fixed by #14395
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@tobrun
Copy link
Member

tobrun commented Apr 11, 2019

Follow up issue from downstream nav integration in mapbox/mapbox-navigation-android#1865. When backgrounding the app, bringing back forward and having the following Activity#onStart:

  @Override
  protected void onStart() {
    super.onStart();
    mapView.onStart();
    if (mapboxMap != null) {
      mapboxMap.queryRenderedFeatures(new PointF(0, 0));
    }
  }

This issue originates from destroying the renderer as part of backgrounding the app. When restarted the renderer hasn't been fully recreated yet.

cc @Guardiola31337

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Apr 11, 2019
@tobrun tobrun added this to the release-mojito milestone Apr 11, 2019
@tobrun tobrun self-assigned this Apr 11, 2019
@tobrun tobrun changed the title Crash when calling MapboxMap#query when activity in restarted Crash when calling MapboxMap#query when activity is restarted Apr 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant