[OSM-dev] renderd - terminate called after throwing an instance of 'mapnik::config_error'

Jon Burgess jburgess777 at googlemail.com
Sat Sep 5 21:44:19 BST 2009


On Sat, 2009-09-05 at 20:32 +0200, Radek Bartoň wrote:
> Dne sobota 05 Září 2009 19:10:43 Richard Weait napsal(a):
> > >
> > > To check the fonts recognized by python, try
> > >
> > > python
> > >
> > >>>> from mapnik import *
> > >>>> for face in FontEngine.face_names(): print face
> > >
> > > ... [Enter]
> > > DejaVu Sans Bold
> > > DejaVu Sans Bold Oblique
> > > DejaVu Sans Book
> > > ...
> > >
> 
> So missing font is not the problem:
> 
> from mapnik import *
> for face in FontEngine.face_names(): print face
> ...
> DejaVu Sans Bold
> DejaVu Sans Bold Oblique
> DejaVu Sans Book

It could still be related, the python bindings load the fonts using a
different method to rendered. The renderd should print out a list of all
the fonts it registers at startup, e.g.

[jburgess at shark mod_tile]$ ./renderd -f                                                         
renderd[8515]: Rendering daemon started                                                         
renderd[8515]: Parsing section renderd                                                          
...
renderd[8515]: config renderd: tile_dir=/var/lib/mod_tile
renderd[8515]: config renderd: stats_file=/var/run/renderd/renderd.stats
renderd[8515]: config mapnik:  plugins_dir=/usr/local/lib64/mapnik/input
renderd[8515]: config mapnik:  font_dir=/usr/local/lib64/mapnik/fonts
renderd[8515]: config mapnik:  font_dir_recurse=0
renderd[8515]: config renderd(0): Active
renderd[8515]: config renderd(0): unix socketname=/tmp/osm-renderd
...
renderd[8515]: DEBUG: Loading font: /usr/local/lib64/mapnik/fonts/DejaVuSansMono-Bold.ttf
renderd[8515]: DEBUG: Loading font: /usr/local/lib64/mapnik/fonts/DejaVuSerif.ttf
renderd[8515]: DEBUG: Loading font: /usr/local/lib64/mapnik/fonts/DejaVuSansCondensed-BoldOblique.ttf
...
renderd[8515]: DEBUG: Loading font: /usr/local/lib64/mapnik/fonts/DejaVuSans.ttf
...

Does DejaVuSans.ttf get listed for you?

Does it work if you change the font path to:

font_dir=/usr/share/fonts/dejavu

I wonder if you have too many fonts under /usr/share/fonts and Mapnik
gives up loading them after a while.

	Jon






More information about the dev mailing list