mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

{Worker}[Sprite]: Can't find sprite named 'dot.sdf'

Open friedbunny opened this issue 11 years ago • 26 comments

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

friedbunny avatar Jul 10 '15 21:07 friedbunny

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.

1ec5 avatar Jul 10 '15 22:07 1ec5

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'

picciano avatar Jul 13 '15 15:07 picciano

This is an intentional message informing you that the stylesheet/data references an image that is not available in the sprite.

kkaefer avatar Jul 13 '15 15:07 kkaefer

@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.

1ec5 avatar Jul 13 '15 16:07 1ec5

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?

picciano avatar Jul 13 '15 16:07 picciano

I removed the app and reinstalled. The warning went away. Something must be getting cached somewhere.

picciano avatar Jul 13 '15 16:07 picciano

Warning came back after a couple more launches. Something is definitely a bit off.

picciano avatar Jul 13 '15 17:07 picciano

@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.

tmpsantos avatar Jul 13 '15 19:07 tmpsantos

marsh-16 problems → #1885

friedbunny avatar Jul 13 '15 20:07 friedbunny

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'

picciano avatar Jul 13 '15 20:07 picciano

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.

1ec5 avatar Jul 15 '15 10:07 1ec5

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 avatar Jul 22 '15 15:07 vinod1988

@vinod1988, those console messages are harmless. They should be fixed by #1885 in the next release.

1ec5 avatar Jul 22 '15 16:07 1ec5

I got same problem as [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf' Do you guys know how to fix it?

iceman201 avatar Nov 30 '15 00:11 iceman201

@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.

1ec5 avatar Nov 30 '15 01:11 1ec5

@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.

kkaefer avatar Nov 30 '15 09:11 kkaefer

@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

iceman201 avatar Nov 30 '15 20:11 iceman201

@1ec5 it's mapbox://styles/mapbox/satellite-hybrid-v8

iceman201 avatar Nov 30 '15 21:11 iceman201

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 avatar Nov 30 '15 21:11 1ec5

@1ec5 how can I refer a sprite by swift coding? [INFO] {Worker}[Sprite]: Can't find sprite named 'dot.sdf'

iceman201 avatar Nov 30 '15 21:11 iceman201