-
Notifications
You must be signed in to change notification settings - Fork 1.3k
{Worker}[Sprite]: Can't find sprite named 'dot.sdf' #1877
Comments
This is because the Satellite style lacks a sprite sheet. The workaround for now is to have |
I can confirm the "marsh-16" spewing when using Streets...
|
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. |
|
That makes sense...i am seeing it with other sprites as well now. It does appear to be timing related.
|
It looks like all these messages are related. In #1877 (comment), 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
|
@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' |
@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 |
@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()) |
@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? |
@iceman201, the reference to dot.sdf can’t be accessed from Swift (or Objective-C); it’s baked into the style you’re using. It may be possible to modify the Hybrid style to stop referring to this sprite, using Mapbox Studio. |
The style needs to be modified, by changing the name of the referenced image to one that actually exists, or by adding the image. |
@kkaefer mapView = MGLMapView(frame: view.bounds, styleURL: MGLStyle.hybridStyleURL()) |
It looks like the style in the mapbox/mapbox-gl-styles project needs to be corrected. For now, the easiest fix is to design your own custom style:
mapView = MGLMapView(frame: view.bounds, styleURL: NSURL(string: "mapbox://styles/iceman201/asdfghjkl"))
# …or whatever the style URL happens to be |
I've deleted all of the missing sprites such as "marsh-16," "dot-9," "dot-10," "circle-12," "airport-11" and "us-interstate-3-small" in various Icon tab -> Image fields or Pattern fields indicated by the warnings in orange. I still get a bunch of logs after publishing and building now for some new missing sprites I've never heard of such as "park-11," "us-interstate-2-small," "rail-11," "cemetery-11," "college-11," and a couple of old favorites like "airport-11" and "us-interstate-3-small." I don't know where these missing sprites are being referenced in Mapbox Studio but I have gone through every tab. I tried waiting a bit to see if the Publish hadn't kicked in but a few minutes later and I still get several logs. I can tell that it looking for these missing files is lowering performance and responsiveness in the map because as soon as I stop adding the annotation to the view, the map runs smoothly. |
We're good here. |
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./cc @tmpsantos @incanus @kkaefer @ansis
The text was updated successfully, but these errors were encountered: