{Worker}[Sprite]: Can't find sprite named 'dot.sdf'
Console spew when using the satellite style. Other styles have different spew — think I saw failed marsh-16 loads on Streets. Will post when I see it again.
17:49:13.494 Mapbox GL [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'
17:49:13.496 Mapbox GL [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'
17:49:13.499 Mapbox GL [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'
17:49:13.500 Mapbox GL [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'
17:49:13.509 Mapbox GL [ERROR] {Map}[OpenGL]: stencil mask overflow
17:49:13.560 Mapbox GL [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'
17:49:13.572 Mapbox GL [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'
17:49:13.573 Mapbox GL [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'
17:49:13.574 Mapbox GL [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'
17:49:13.575 Mapbox GL [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'
17:49:13.798 Mapbox GL [ERROR] {Map}[OpenGL]: stencil mask overflow
17:49:25.812 Mapbox GL [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'
/cc @tmpsantos @incanus @kkaefer @ansis
This is because the Satellite style lacks a sprite sheet. The workaround for now is to have -mapView:imageForAnnotation: return an image when the Satellite style is active.
I can confirm the "marsh-16" spewing when using Streets...
2015-07-13 09:54:10.837 TallyGo[38640:15692583] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-13 09:54:10.837 TallyGo[38640:15692583] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-13 09:54:10.837 TallyGo[38640:15692583] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-13 09:54:10.837 TallyGo[38640:15692583] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
This is an intentional message informing you that the stylesheet/data references an image that is not available in the sprite.
@picciano, this is distinct from the issue @friedbunny reports above. It’s surprising, too, because a “marsh-16” sprite is defined in the Mapbox Streets sprite sheet.
I built from source (master) this morning. This is seen using the default style.
Does https://www.mapbox.com/mapbox-gl-styles/sprites/mapbox-streets.json somehow get cached on the client?
I removed the app and reinstalled. The warning went away. Something must be getting cached somewhere.
Warning came back after a couple more launches. Something is definitely a bit off.
@picciano I think I know what is going on. The sprites are loaded asynchronously, so you get something on the screen and later when the sprites arrive we trigger an update and everything is rendered normally (and “marsh-16” is found).
Maybe we should print the warning only after the sprites are loaded/parsed, otherwise the warning is misleading.
marsh-16 problems → #1885
That makes sense...i am seeing it with other sprites as well now. It does appear to be timing related.
2015-07-13 13:53:05.066 TallyGo[2648:906379] [INFO] {Worker}[Sprite]: Can't find sprite named 'camera-11'
2015-07-13 13:53:05.081 TallyGo[2648:906383] [INFO] {Worker}[Sprite]: Can't find sprite named 'camera-11'
2015-07-13 13:53:12.530 TallyGo[2648:906381] [INFO] {Worker}[Sprite]: Can't find sprite named 'camera-11'
2015-07-13 13:53:12.531 TallyGo[2648:906381] [INFO] {Worker}[Sprite]: Can't find sprite named 'camera-11'
It looks like all these messages are related. In https://github.com/mapbox/mapbox-gl-native/issues/1877#issuecomment-120540336, I suggested that Satellite was missing a sprite sheet, but that causes a different message, and only when attempting to display a pin annotation on the map. Let’s track the console output here in #1885.
i have this message on log console, why this come i don't know
[INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-22 20:43:09.938 SwiftMenu[16266:206335] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-22 20:43:09.938 SwiftMenu[16266:206335] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-22 20:43:09.939 SwiftMenu[16266:206335] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-22 20:43:12.731 SwiftMenu[16266:206335] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-22 20:43:12.731 SwiftMenu[16266:206335] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-22 20:43:12.731 SwiftMenu[16266:206335] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-22 20:43:12.731 SwiftMenu[16266:206335] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-22 20:43:12.871 SwiftMenu[16266:206335] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-22 20:43:12.871 SwiftMenu[16266:206335] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
2015-07-22 20:43:12.871 SwiftMenu[16266:206335] [INFO] {Map}[Sprite]: Can't find sprite named 'marsh-16'
...
@vinod1988, those console messages are harmless. They should be fixed by #1885 in the next release.
I got same problem as [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf' Do you guys know how to fix it?
@iceman201, what version of the iOS SDK are you using, and what style? In the past, the Satellite style (specifically, satellite-v7) has been known to trigger this console output. However, in recent versions of the iOS SDK, satellite-v8 no longer refers to dot.sdf.
@iceman201 these messages are informational (hence INFO) telling you that you might be referencing a sprite that can't be found; the map should be displayed regardless of these messages.
@1ec5 Mapbox-iOS-SDK (3.0.0) is the version I using now
I setup up as mapView = MGLMapView(frame: view.bounds, styleURL: MGLStyle.hybridStyleURL()) just this one
@1ec5 it's mapbox://styles/mapbox/satellite-hybrid-v8
Ah, the Hybrid style does refer to dot.sdf.
@kkaefer, although that console message is harmless, it’d be nice to eliminate any unnecessary console output. Does the style need to be modified, or gl-native?
@1ec5 how can I refer a sprite by swift coding? [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'