Page MenuHomePhabricator

Staging error: SVG attribute is not supported
Closed, ResolvedPublic

Description

Example URL from local env:
http://127.0.0.1:6533/img/osm-intl,12,a,a,700x700.png?lang=en&domain=en.wikipedia.org&title=Cooper_Stadium&revid=1267478141&groups=_333257aef22731b75d1101b6b754b06e69be3e64

Mapnik LOG> 2025-01-27 10:44:01: SVG support error: <overflow> attribute is not supported
Mapnik LOG> 2025-01-27 10:44:01: SVG support error: <enable-background> attribute is not supported
Mapnik LOG> 2025-01-27 10:44:01: SVG support error: <overflow> attribute is not supported
Mapnik LOG> 2025-01-27 10:44:01: SVG support error: <enable-background> attribute is not supported
Mapnik LOG> 2025-01-27 10:44:01: SVG support error: <overflow> attribute is not supported
Mapnik LOG> 2025-01-27 10:44:01: SVG support error: <enable-background> attribute is not supported

This looks related to the failing rendering of road labels

Event Timeline

I found this issue that may be interesting, it highlights the same errors. Somebody points to:

https://github.com/gravitystorm/openstreetmap-carto/blob/master/CONTRIBUTING.md#map-icon-guidelines

I am not 100% clear what is the SVG that causes the issue, but maybe it is not compatible with the new mapnik? If so cleaning up may become a real fun..

Unfortunately even clearing the errors the rendered labels are still broken.

Update: If I force a specific sans font things are rendered better. I think that the errors are just a red herring (just ignored before) and the root cause is the order we load the fonts.

Change #1114420 had a related patch set uploaded (by Elukey; author: Elukey):

[operations/deployment-charts@master] services: update Kartotherian's docker image

https://gerrit.wikimedia.org/r/1114420

Change #1114420 merged by Elukey:

[operations/deployment-charts@master] services: update Kartotherian's docker image

https://gerrit.wikimedia.org/r/1114420

Jgiannelos claimed this task.

This looks like a warning that is not affecting output. Closing this ticket for now.