maptiler / tileserver-gl

Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
https://tileserver.readthedocs.io/en/latest/
Other
2.19k stars 632 forks source link

Error: start must be between 0 and 255; given Infinity #1352

Closed DTiunov closed 1 month ago

DTiunov commented 1 month ago

Hello. I updated my GL tileserver to version 4.12.0. And now I always get the error:

mlgl: {
  class: 'Style',
  severity: 'ERROR',
  text: 'Failed to load glyph range 39168-39423 for font stack Roboto Condensed Italic,Roboto Italic: start must be between 0 and 255; given Infinity'
}
mlgl: {
  class: 'Style',
  severity: 'ERROR',
  text: 'Failed to load glyph range 38656-38911 for font stack Roboto Condensed Italic,Roboto Italic: start must be between 0 and 255; given Infinity'
}

when I execute the request /styles/peaksummer-jpg/static/121.272039,24.388722,12/700x160.png This always happens with the Roboto Condensed Italic font. I tried to convert the font, but there was no result.

This looks like a bug to me. Perhaps I'm wrong. I'm glad to get any help.

acalcutt commented 1 month ago

Looks like I created a duplicate of this in https://github.com/maptiler/tileserver-gl/issues/1367

It seems to be a combined font issue in the @jsse/pbfont we switched to to try and work around @mapbox/glyph-pbf-composite not working past node 20.14.0.

Some ideas in the other thread on how to fix this

akx commented 1 month ago

Apparently fixed via https://github.com/maptiler/tileserver-gl/pull/1369?

acalcutt commented 1 month ago

This should be fixed in v4.13.0