Re: [OSM-dev] renderd - terminate called after throwing an instance of 'mapnik::config_error'
Dne sobota 05 Září 2009 23:32:18 Jon Burgess napsal(a): > > It certainly used to work but looks like it was broken in r17329. I have > applied a fix in SVN. > > Jon Yeah, I knew it was something in some of the last commits :-). Thank you for the fix (I tested that it's working). -- Ing. Radek Bartoň Faculty of Information Technology Department of Computer Graphics and Multimedia Brno University of Technology E-mail: black...@post.cz Web: http://blackhex.no-ip.org Jabber: black...@jabber.cz ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] renderd - terminate called after throwing an instance of 'mapnik::config_error'
On Sat, 2009-09-05 at 23:10 +0200, Radek Bartoň wrote: > After your advise I noticed that there is font_dir_recurse=0 in > renderd log > although renderd.conf contains font_dir_recurse=1 as I wrote > previously. > > Seems like a small bug for me. Anyway with > font_dir=/usr/share/fonts/dejavu > are fonts loaded. It certainly used to work but looks like it was broken in r17329. I have applied a fix in SVN. Jon ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] renderd - terminate called after throwing an instance of 'mapnik::config_error'
> 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 Thanks a lot Jon. After your advise I noticed that there is font_dir_recurse=0 in renderd log although renderd.conf contains font_dir_recurse=1 as I wrote previously. Seems like a small bug for me. Anyway with font_dir=/usr/share/fonts/dejavu are fonts loaded. font_dir=/usr/share/fonts: renderd[17258]: Starting stats thread renderd[17539]: Rendering daemon started renderd[17539]: Parsing section renderd renderd[17539]: Parsing render section 0 renderd[17539]: Parsing section mapnik renderd[17539]: Parsing section default renderd[17539]: Parsing section tracks renderd[17539]: config renderd: unix socketname=/var/run/renderd/renderd.sock renderd[17539]: config renderd: num_threads=2 renderd[17539]: config renderd: num_slaves=0 renderd[17539]: config renderd: tile_dir=/mnt/data/OpenTrackMap/ renderd[17539]: config renderd: stats_file=/var/run/renderd/renderd.stats renderd[17539]: config mapnik: plugins_dir=/usr/lib/mapnik/input renderd[17539]: config mapnik: font_dir=/usr/share/fonts/ renderd[17539]: config mapnik: font_dir_recurse=0 renderd[17539]: config renderd(0): Active renderd[17539]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock renderd[17539]: config renderd(0): num_threads=2 renderd[17539]: config renderd(0): tile_dir=/mnt/data/OpenTrackMap/ renderd[17539]: config renderd(0): stats_file=/var/run/renderd/renderd.stats renderd[17539]: config map 0: name(default) file(/mnt/data/OpenTrackMap/osm.xml) uri(/default/) htcp() host(opentrackmap.no-ip.org) renderd[17539]: config map 1: name(tracks) file(/mnt/data/OpenTrackMap/tracks.xml) uri(/tracks/) htcp() host(opentrackmap.no-ip.org) renderd[17539]: Initialising unix server socket on /var/run/renderd/renderd.sock renderd[17539]: Created server socket 4 font_dir=/usr/share/fonts/dejavu: renderd[16728]: Rendering daemon started renderd[16728]: Parsing section renderd renderd[16728]: Parsing render section 0 renderd[16728]: Parsing section mapnik renderd[16728]: Parsing section default renderd[16728]: Parsing section tracks renderd[16728]: config renderd: unix socketname=/var/run/renderd/renderd.sock renderd[16728]: config renderd: num_threads=2 renderd[16728]: config renderd: num_slaves=0 renderd[16728]: config renderd: tile_dir=/mnt/data/OpenTrackMap/ renderd[16728]: config renderd: stats_file=/var/run/renderd/renderd.stats renderd[16728]: config mapnik: plugins_dir=/usr/lib/mapnik/input renderd[16728]: config mapnik: font_dir=/usr/share/fonts/dejavu
Re: [OSM-dev] renderd - terminate called after throwing an instance of 'mapnik::config_error'
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. [jburg...@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 ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] renderd - terminate called after throwing an instance of 'mapnik::config_error'
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 DejaVu Sans Condensed DejaVu Sans Condensed Bold DejaVu Sans Condensed Bold Oblique DejaVu Sans Condensed Oblique DejaVu Sans ExtraLight DejaVu Sans Mono Bold DejaVu Sans Mono Bold Oblique DejaVu Sans Mono Book DejaVu Sans Mono Oblique DejaVu Sans Oblique DejaVu Serif Bold DejaVu Serif Bold Italic DejaVu Serif Book DejaVu Serif Condensed DejaVu Serif Condensed Bold DejaVu Serif Condensed Bold Italic DejaVu Serif Italic Any other reason for the exception? -- Ing. Radek Bartoň Faculty of Information Technology Department of Computer Graphics and Multimedia Brno University of Technology E-mail: black...@post.cz Web: http://blackhex.no-ip.org Jabber: black...@jabber.cz ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] renderd - terminate called after throwing an instance of 'mapnik::config_error'
oops. Meant to send this to dev as well as OP. On Sat, Sep 5, 2009 at 1:09 PM, Richard Weait wrote: > On Sat, Sep 5, 2009 at 11:21 AM, Radek Bartoň wrote: >> Hello OSM developers. >> >> Since last "svn up" (maybe few more, I'm not sure), my instance of renderd is >> failing with message: >> >> terminate called after throwing an instance of 'mapnik::config_error' >> what(): Unable to find specified font face 'DejaVu Sans Book' >> >> Here is my renderd.conf: >> >> [mapnik] >> plugins_dir=/usr/lib/mapnik/input >> font_dir=/usr/share/fonts >> font_dir_recurse=1 >> >> And here is find /usr/share/fonts -name *DejaVu*: >> >> /usr/share/fonts/dejavu/DejaVuSerifCondensed-Italic.ttf >> /usr/share/fonts/dejavu/DejaVuSansMono.ttf >> /usr/share/fonts/dejavu/DejaVuSans.ttf >> /usr/share/fonts/dejavu/DejaVuSerif.ttf >> /usr/share/fonts/dejavu/DejaVuSerif-Italic.ttf >> /usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf >> /usr/share/fonts/dejavu/DejaVuSansMono-BoldOblique.ttf >> /usr/share/fonts/dejavu/DejaVuSerifCondensed.ttf >> /usr/share/fonts/dejavu/DejaVuSans-ExtraLight.ttf >> /usr/share/fonts/dejavu/DejaVuSansCondensed-BoldOblique.ttf >> /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf >> /usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf >> /usr/share/fonts/dejavu/DejaVuSansCondensed.ttf >> /usr/share/fonts/dejavu/DejaVuSerifCondensed-BoldItalic.ttf >> /usr/share/fonts/dejavu/DejaVuSerif-BoldItalic.ttf >> /usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf >> /usr/share/fonts/dejavu/DejaVuSerifCondensed-Bold.ttf >> /usr/share/fonts/dejavu/DejaVuSans-Oblique.ttf >> /usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf >> /usr/share/fonts/dejavu/DejaVuSansCondensed-Oblique.ttf >> /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf >> >> I would like to ask if this is a problem of missing font (I don't see any >> DejaVuSansBook.ttf) and in what package/version I can find this font or this >> font face shoud be already included in for example DejaVuSans.ttf file. >> >> Nevertheless, shouldn't renderd/mapnik find alternative font instead of >> crashing with an excepiton? >> >> Thank you for your help. > > The font names that python sees are not necessarily the same as the > file names. > > 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 > ... > > Best regards, > Richard > http://weait.com/content/add-fonts-your-openstreetmap-server > ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] renderd - terminate called after throwing an instance of 'mapnik::config_error'
Hello OSM developers. Since last "svn up" (maybe few more, I'm not sure), my instance of renderd is failing with message: terminate called after throwing an instance of 'mapnik::config_error' what(): Unable to find specified font face 'DejaVu Sans Book' Here is my renderd.conf: [mapnik] plugins_dir=/usr/lib/mapnik/input font_dir=/usr/share/fonts font_dir_recurse=1 And here is find /usr/share/fonts -name *DejaVu*: /usr/share/fonts/dejavu/DejaVuSerifCondensed-Italic.ttf /usr/share/fonts/dejavu/DejaVuSansMono.ttf /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/fonts/dejavu/DejaVuSerif.ttf /usr/share/fonts/dejavu/DejaVuSerif-Italic.ttf /usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf /usr/share/fonts/dejavu/DejaVuSansMono-BoldOblique.ttf /usr/share/fonts/dejavu/DejaVuSerifCondensed.ttf /usr/share/fonts/dejavu/DejaVuSans-ExtraLight.ttf /usr/share/fonts/dejavu/DejaVuSansCondensed-BoldOblique.ttf /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf /usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf /usr/share/fonts/dejavu/DejaVuSansCondensed.ttf /usr/share/fonts/dejavu/DejaVuSerifCondensed-BoldItalic.ttf /usr/share/fonts/dejavu/DejaVuSerif-BoldItalic.ttf /usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf /usr/share/fonts/dejavu/DejaVuSerifCondensed-Bold.ttf /usr/share/fonts/dejavu/DejaVuSans-Oblique.ttf /usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf /usr/share/fonts/dejavu/DejaVuSansCondensed-Oblique.ttf /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf I would like to ask if this is a problem of missing font (I don't see any DejaVuSansBook.ttf) and in what package/version I can find this font or this font face shoud be already included in for example DejaVuSans.ttf file. Nevertheless, shouldn't renderd/mapnik find alternative font instead of crashing with an excepiton? Thank you for your help. -- Ing. Radek Bartoň Faculty of Information Technology Department of Computer Graphics and Multimedia Brno University of Technology E-mail: black...@post.cz Web: http://blackhex.no-ip.org Jabber: black...@jabber.cz ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev