<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I am having a problem rendering labels to my map. I am running mapserver from ubuntu intrepid packages (none compiled). Kernel is 2.6.27-7-generic. Since this is obviously a common function I must be doing something wrong in the layer or something in the packages is not meshing. Everything works until I try to do anything with TrueType fonts, but I am not sure why gdal would have anything to do with this. When I try to add a label to a working layer (called 'clpoint'), the client gets a 500. Funny because the mapserver log reports lots of stuff like this for the layer (but no error):<br><br><br>40 2009].797599 msDrawMap(): Layer 6 (clpoint), 0.000s<br>[Wed Apr 8 08:24:40 2009].797672 msDrawMap(): Drawing Label Cache, 0.000s<br>[Wed Apr 8 08:24:40 2009].797693 msDrawMap() total time: 0.001s<br>[Wed Apr 8 08:24:40 2009].803041 msFreeMap():
freeing map at 0x8d21ed8.<br>[Wed Apr 8 08:24:40 2009].895713 CGI Request 1 on process 29681<br>[Wed Apr 8 08:24:40 2009].896030 msWMSLoadGetMapParams(): enabling non-square pixels.[Wed Apr 8 08:24:40 2009].902272 msDrawMap(): kicking into non-square pixel preserving mode.[Wed Apr 8 08:24:40 2009].902928 msDrawMap(): Layer 6 (clpoint), 0.001s<br>[Wed Apr 8 08:24:40 2009].903194 msDrawMap(): Drawing Label Cache, 0.000s<br>[Wed Apr 8 08:24:40 2009].903236 msDrawMap() total time: 0.001s<br>[Wed Apr 8 08:24:40 2009].908839 msFreeMap(): freeing map at 0x8971ed8.<br>[Wed Apr 8 08:24:40 2009].928955 CGI Request 1 on process 29683<br><br><br>but syslog reports a bunch of these:<br>Apr 8 08:24:40 geoserver kernel: [1017419.869331] mapserv[29680]: segfault at bf41cfec ip b780fd4b sp bf41cfe0 error 6 in libgdal1.5.0.so.1.12.2[b7736000+4df000]<br>Apr 8 08:24:40 geoserver kernel: [1017419.916239]
mapserv[29682]: segfault at bf72fffc ip b7821d56 sp bf730000 error 6 in libgdal1.5.0.so.1.12.2[b7748000+4df000]<br><br>--The layer in question:<br> LAYER<br> METADATA<br> wms_title "clpoint"<br> END<br> TYPE POINT<br> STATUS ON<br> NAME "clpoint"<br><br> DATA "../shapes/clpoint/clpoint.shp"<br> LABELITEM "CLPTLABEL"<br> LABELCACHE ON<br> CLASS<br> STYLE<br>
COLOR 213 200 230<br> END<br> LABEL<br> TYPE TRUETYPE<br> FONT "arial"<br> SIZE 8<br> ANGLE FOLLOW<br>
COLOR 25 25 175<br> OUTLINECOLOR 255 255 255<br> MINDISTANCE 200<br> PARTIALS FALSE<br> END<br> END<br>#This works fine<br># CLASS<br># STYLE<br># SYMBOL "../symbols/historical.png"<br># SIZE 20<br>#
END<br># END <br><br> JOIN<br> TABLE "../shapes/clpoint/clpoint.dbf"<br> NAME "clpoint"<br> FROM "PolyId"<br> TO "PolyId"<br> TYPE ONE-TO-ONE<br> END<br> END<br><br><br>--Mapserver configuration:<br>MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br><br>--gdlib configuration:<br>#
gdlib-config --version<br>2.0.36<br># gdlib-config --libs<br>-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm<br><br><br>--Gdal configuration:<br># gdal-config --libs<br>-L/usr/lib -lgdal1.5.0 (this 1.5.0 seems odd to me)<br>#gdal-config --version<br>1.5.2<br># gdal-config --ogr-enabled<br>yes<br><br>--The libraries:<br>-rw-r--r-- 1 root root 8817022 2008-07-04 11:08 /usr/lib/libgdal1.5.0.a<br>-rw-r--r-- 1 root root 1345 2008-07-04 11:08 /usr/lib/libgdal1.5.0.la<br>lrwxrwxrwx 1 root root 22 2009-04-07 16:29 /usr/lib/libgdal1.5.0.so -> libgdal1.5.0.so.1.12.2<br>lrwxrwxrwx 1 root root 22 2009-03-31 12:43 /usr/lib/libgdal1.5.0.so.1 -> libgdal1.5.0.so.1.12.2<br>-rw-r--r-- 1 root root 5438428 2008-07-04 11:08 /usr/lib/libgdal1.5.0.so.1.12.2<br><br>--Things I have checked<br>*The font.list is present and seems to be read (fails with a clearer error when I
reference a fake font.).<br>*The font file is a valid true type font and has all permissions. Tried different fonts.<br>*The shape file and the dbf file are readable by other tools and CLPTLABEL in the dbf file has the data I want. <br><br><br>Can someone please tell me where I am going wrong (and thank you)? Sorry for the long post.<br></td></tr></table><br>