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

Can't find sprite named 'markerViewSettings' in Android #6352

Closed
kingfisherphuoc opened this issue Sep 16, 2016 · 4 comments
Closed

Can't find sprite named 'markerViewSettings' in Android #6352

kingfisherphuoc opened this issue Sep 16, 2016 · 4 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@kingfisherphuoc
Copy link

Platform: Android
Mapbox SDK version: 4.1.1

Steps to trigger behavior

  1. Add mapview to fragment.
  2. The logcat logs too many info about:

I/mbgl: [Sprite]: Can't find sprite named 'markerViewSettings'
I/mbgl: [Sprite]: Can't find sprite named 'markerViewSettings'
I/mbgl: [Sprite]: Can't find sprite named 'markerViewSettings'
I/mbgl: [Sprite]: Can't find sprite named 'icon'
I/mbgl: [Sprite]: Can't find sprite named 'icon'

What is the problem of my mapbox map? is it just a debug log and how to turn it off?

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Sep 19, 2016
@tobrun
Copy link
Member

tobrun commented Sep 19, 2016

@boundsj this is because of annotations views ghosting annotations. I remember this also occurring on iOS and remember a PR coming by that resolved this. I'm unable to locate that one, could you link it? or explain the changes?

@kingfisherphuoc
Copy link
Author

@tobrun I upgraded mapbox sdk to 4.2.0-beta.3@aar, but nothing has changed. The errors above are logged even more when I add some markers to the map.
Can you give me a suggestion?

@klblk
Copy link

klblk commented Oct 10, 2016

"Can't find sprite named 'icon'" call when Marker created MarkerOptions (not MarkerViewOptions).
In issue #6422 logs:

{pboxandroiddemo}[JNI]: nativeUpdateMarker
{pboxandroiddemo}[JNI]: nativePixelForLatLng
{pboxandroiddemo}[JNI]: nativeRender
{pboxandroiddemo}[Android]: NativeMapView::activate
{pboxandroiddemo}[Sprite]: Can't find sprite named 'icon'
{pboxandroiddemo}[Android]: NativeMapView::notifyMapChange()
{pboxandroiddemo}[Android]: NativeMapView::notifyMapChange()
{pboxandroiddemo}[Android]: NativeMapView::updateFps()
{pboxandroiddemo}[Android]: NativeMapView::deactivate
{pboxandroiddemo}[Sprite]: Can't find sprite named 'icon'
{pboxandroiddemo}[Sprite]: Can't find sprite named 'icon'
{pboxandroiddemo}[Android]: NativeMapView::invalidate()
{pboxandroiddemo}[JNI]: nativeUpdateMarker
{pboxandroiddemo}[JNI]: nativePixelForLatLng
{pboxandroiddemo}[JNI]: nativeQueryPointAnnotations
{pboxandroiddemo}[JNI]: nativePixelForLatLng

@boundsj
Copy link
Contributor

boundsj commented Oct 10, 2016

@tobrun

I remember this also occurring on iOS and remember a PR coming by that resolved this. I'm unable to locate that one, could you link it? or explain the changes?

I'm sorry I missed this before. I think the iOS PRs you were thinking of are:

#5461
#5509

They add an invisible pixel so that the existing annotation management system has a way to track annotations at the GL level (as it always has) even though the the actual annotation is represented with a native view. I'm not certain that is the issue in this report although it may be.

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

No branches or pull requests

4 participants