mapbox-plugins-android: Location layer plugin - Maps SDK - can't find source layer warning log and native crash
W/mbgl: {GLThread 3241}[Render]: can't find source for layer 'mapbox-location-stroke-layer'
05-02 17:46:23.719 29315-29355/com.mapbox.services.android.navigation.testapp W/mbgl: {GLThread 3241}[Render]: can't find source for layer 'mapbox-location-layer'
05-02 17:46:23.724 29315-29355/com.mapbox.services.android.navigation.testapp W/mbgl: {GLThread 3241}[Render]: can't find source for layer 'mapbox-location-stroke-layer'
05-02 17:46:23.724 29315-29355/com.mapbox.services.android.navigation.testapp W/mbgl: {GLThread 3241}[Render]: can't find source for layer 'mapbox-location-layer'
05-02 17:46:23.751 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.751 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.751 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.751 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.752 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.752 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.752 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.753 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.755 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.755 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.756 29315-29315/com.mapbox.services.android.navigation.testapp E/mbgl: {igation.testapp}[JNI]: Error setting property: icon-size [5]: Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.
05-02 17:46:23.756 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.756 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.756 29315-29315/com.mapbox.services.android.navigation.testapp W/art: Attempt to remove non-JNI local reference, dumping thread
05-02 17:46:23.759 29315-29315/com.mapbox.services.android.navigation.testapp D/MapboxNavigation: MapboxNavigation startNavigation called.
05-02 17:46:23.765 29315-29315/com.mapbox.services.android.navigation.testapp D/MockLocationEngine: Route distance in km: 0.176245
05-02 17:46:23.767 29315-29355/com.mapbox.services.android.navigation.testapp W/mbgl: {GLThread 3241}[Render]: can't find source for layer 'mapbox-location-stroke-layer'
05-02 17:46:23.767 29315-29355/com.mapbox.services.android.navigation.testapp W/mbgl: {GLThread 3241}[Render]: can't find source for layer 'mapbox-location-layer'
05-02 17:46:23.785 29315-29315/com.mapbox.services.android.navigation.testapp D/MapboxNavigation: Connected to service.
05-02 17:46:23.785 29315-29315/com.mapbox.services.android.navigation.testapp D/NavigationService$LocalBinder: Local binder called.
05-02 17:46:23.790 29315-29355/com.mapbox.services.android.navigation.testapp W/mbgl: {GLThread 3241}[Render]: can't find source for layer 'mapbox-location-stroke-layer'
05-02 17:46:23.791 29315-29355/com.mapbox.services.android.navigation.testapp W/mbgl: {GLThread 3241}[Render]: can't find source for layer 'mapbox-location-layer'
05-02 17:46:23.831 29315-29355/com.mapbox.services.android.navigation.testapp W/mbgl: {GLThread 3241}[Render]: can't find source for layer 'mapbox-location-stroke-layer'
05-02 17:46:23.831 29315-29355/com.mapbox.services.android.navigation.testapp W/mbgl: {GLThread 3241}[Render]: can't find source for layer 'mapbox-location-layer'
After updating to Maps SDK 6.x and LLP 0.5.0 we are seeing these logs in the Nav SDK. This seems to be happening when using the map even if the location layer plugin isn’t being initialized within that activity or fragment. Like something is being cached regarding the layer or expression.
When rotating the turn-by-turn UI, we get intermittent crashes and our orientation instrumentation test is able to reproduce the native crash.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (9 by maintainers)
@mohamed3la2 Normally you get a location update via GPS etc. Mapbox provides a few good examples for this usecase.
But if you cant wait for it:
I can confirm this log messages. But they disappear after the first location update.