Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Some) raster tiles fail to render fonts #1399

Open
leonardehrenfried opened this issue Oct 1, 2024 · 10 comments
Open

(Some) raster tiles fail to render fonts #1399

leonardehrenfried opened this issue Oct 1, 2024 · 10 comments

Comments

@leonardehrenfried
Copy link

I'm running tileserver-gl 5.0.0 in a docker container and sometimes, some tiles fail to rasterize their fonts.

Screenshot from 2024-10-01 13-39-51

This only happens to raster tiles. The vector versions are fine:

image

I also checked the vector tiles themselves and they do contain the information that we need to display the street names and badges.

I checked the logs but cannot see anything unusual, just the regular activity of tiles and fonts being downloaded. I also cannot see a pattern of which raster tiles works and which doesn't.

Has anyone ever experienced this before?

@acalcutt
Copy link
Collaborator

acalcutt commented Oct 1, 2024

Can you post the style you are using? Does it look correct in vector view?

@leonardehrenfried
Copy link
Author

The style is available here: https://github.com/leonardehrenfried/ansible-baseline/blob/34c64cb42293683a5de1942786ec642348bad75e/roles/tileserver/templates/streets.json

Yes, it does look correct in the vector view, which is the bottom screenshot. (Sorry if that wasn't super clear.)

@acalcutt
Copy link
Collaborator

acalcutt commented Oct 1, 2024

Did this working in [v4.13.3](https://github.com/maptiler/tileserver-gl/releases/tag/v4.13.3 . or any previous version?

@acalcutt
Copy link
Collaborator

acalcutt commented Oct 2, 2024

When I test this style locally it works for me. the only change I had really made was Replacing "KlokanTech Noto Sans" with a newer "Noto Sans". I am not using the docker here , but it shouldn't be different.

https://tiles.wifidb.net/styles/streets/?raster#14/50.5318/6.4409
image

@acalcutt
Copy link
Collaborator

acalcutt commented Oct 2, 2024

Can you see if see the issue with the fonts I am using and style changes. I zipped them up here.
https://wifidb.net/demo/issues/streets_test_style.zip

@leonardehrenfried
Copy link
Author

Maddeningly the problem appears at random. Once I delete the tile cache (handled by nginx) and re-render the tiles the previously errouneous one then has the correct fonts but elsewhere I have tiles without fonts.

It appears that during download or rendering of the font something goes awry.

@acalcutt
Copy link
Collaborator

acalcutt commented Oct 2, 2024

I would think if it wasn't getting a font file at all from the server it wouldn't render the image since maplibre-native is really picky about fonts and will usually just return nothing if something is missing.

Could be a rendering issue in maplibre native. If you could test v4.13.3 and see maplibre based on opengl-2 behaves differently

Could be the change to @mapbox/glyph-pbf-composite in v4.12.0, maybe try a version before that v4.11.1 and see if the issue occurs.

@acalcutt
Copy link
Collaborator

acalcutt commented Oct 2, 2024

Are you regenerating your source vector tiles often?

@leonardehrenfried
Copy link
Author

Once a day.

@acalcutt
Copy link
Collaborator

acalcutt commented Oct 2, 2024

So maybe also a intermittent issue in your source tiles that is getting cached and fixed before you get to look at it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants