[mapserver-dev] MS 6.0.2 bug
Stephen Woodbridge
woodbri at swoodbridge.com
Sun Mar 4 00:10:05 EST 2012
I have opened a bug for this problem as I could not find one already. I
also found another case that generates this problem on a polygon layer,
if I uncomment the STYLE block in the LABEL below:
CLASS
EXPRESSION "K1231" # Hospital
STYLE
COLOR "#EBD2CF"
END
LABEL
# STYLE
# GEOMTRANSFORM 'labelpnt'
# SYMBOL "etc/icons2/poi/8060.png"
# END
MAXSCALEDENOM 10000
TYPE TRUETYPE
FONT "sans"
SIZE 8
COLOR "#655949"
OUTLINECOLOR "#F3EFEF"
PARTIALS FALSE
MINDISTANCE 250
MINFEATURESIZE 10
BUFFER 4
POSITION AUTO
PRIORITY 4
WRAP " "
ALIGN CENTER
END
END
-Steve W
On 3/3/2012 8:05 PM, Stephen Woodbridge wrote:
> Ok, I have found out how to work around the problem so this might help a
> developer figure out why it is happening. I have a SYMBOLSET file with
> the shield symbols defined as follows. I will also note that is does not
> occur at all zoom levels within the LAYERs scale range. Maybe the symbol
> is getting bumped out in the drawLabelCache so it doesn't get executed.
>
> -Steve W
>
> SYMBOL
> NAME "I"
> TYPE PIXMAP
> IMAGE "icons2/hwy/interstate.png"
> TRANSPARENT 7
> END
>
> SYMBOL
> NAME "U"
> TYPE PIXMAP
> IMAGE "icons2/hwy/ushwy.png"
> TRANSPARENT 1
> END
>
> SYMBOL
> NAME "S"
> TYPE PIXMAP
> IMAGE "icons2/hwy/sthwy.png"
> END
>
> My layer definition is this:
>
> LAYER
> NAME "hwyshieldsnear"
> METADATA
> "ows_title" "Hwy Shields Near"
> "ows_srs" "EPSG:4269 EPSG:4326"
> "ows_abstract" "Hwy Shields for the U.S. Census ROADS data layer."
> END
> TYPE ANNOTATION
> TILEINDEX "tidx-ROADS"
> PROJECTION
> "+proj=longlat +ellps=GRS80 +datum=NAD83" #EPSG: 4269
> END
> MAXSCALEDENOM 300000
> FILTER (length('[RTENUM]')>0 && '[RTTYP]' ~ '^(I|U|S)$')
> CLASSITEM "RTTYP"
> LABELITEM "RTENUM"
> CLASS
> EXPRESSION "I"
> STYLE
> # SYMBOL [RTTYP] ##### This cause the error #########
> SYMBOL "I" ##### This works fine #########
> END
> LABEL
> SIZE TINY
> POSITION CC
> OFFSET 1 0
> MINDISTANCE 100
> COLOR "#ffffff"
> PARTIALS FALSE
> PRIORITY 7
> END
> END
> CLASS
> EXPRESSION "U"
> STYLE
> SYMBOL "U"
> END
> LABEL
> SIZE TINY
> POSITION CC
> OFFSET 1 0
> MINDISTANCE 100
> COLOR "#000000"
> PARTIALS FALSE
> PRIORITY 7
> END
> END
> CLASS
> EXPRESSION "S"
> STYLE
> SYMBOL "circle-filled"
> COLOR "#FFFFFF"
> OUTLINECOLOR "#000000"
> SIZE 19
> END
> LABEL
> SIZE TINY
> POSITION CC
> MINDISTANCE 100
> COLOR "#000000"
> PARTIALS FALSE
> PRIORITY 7
> END
> END
> END
>
>
> On 3/3/2012 7:10 PM, Stephen Woodbridge wrote:
>> Here is a valgrind report that should a couple of leaks but doesn't shed
>> any light on error below and one error that may/may not be related to it:
>>
>> woodbri at mappy:/u/software/mapserver-6.0.2$ valgrind --leak-check=full
>> ./mapserv
>> QUERY_STRING='MAP=%2Fu%2Fdata%2Ftgr2011-maps%2Ftiger2011-tmp.map&FORMAT=image%2Fpng&MAP_IMAGETYPE=agg_qn&LAYERS=Tiger_2011&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-9803618.4071426,5152908.7732279,-9800274.287239,5155536.2960093&WIDTH=700&HEIGHT=550'
>>
>> > junk.png
>> ==21971== Memcheck, a memory error detector.
>> ==21971== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
>> ==21971== Using LibVEX rev 1854, a library for dynamic binary
>> translation.
>> ==21971== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
>> ==21971== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation
>> framework.
>> ==21971== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
>> ==21971== For more details, rerun with: -v
>> ==21971==
>> [Sat Mar 3 19:07:01 2012].499464 msDrawMap(): rendering using
>> outputformat named agg_qn (AGG/PNG).
>> [Sat Mar 3 19:07:01 2012].583443 msDrawMap(): WMS/WFS set-up and query,
>> 0.015s
>> [Sat Mar 3 19:07:10 2012].476239 msDrawMap(): Layer 2 (World Z2), 8.864s
>> [Sat Mar 3 19:07:10 2012].532026 msDrawMap(): Layer 3 (Forest), 0.050s
>> [Sat Mar 3 19:07:10 2012].838982 msDrawMap(): Layer 6 (Lakes Z2), 0.306s
>> [Sat Mar 3 19:07:11 2012].126799 msDrawMap(): Layer 7 (World Boundaries
>> Z1), 0.285s
>> [Sat Mar 3 19:07:13 2012].548199 msDrawMap(): Layer 16 (state), 2.421s
>> [Sat Mar 3 19:07:14 2012].23603 msDrawMap(): Layer 19 (place), 0.475s
>> [Sat Mar 3 19:07:14 2012].575893 msDrawMap(): Layer 20 (area_landmarks),
>> 0.552s
>> [Sat Mar 3 19:07:14 2012].609551 msDrawMap(): Layer 21 (military), 0.033s
>> [Sat Mar 3 19:07:15 2012].994444 msDrawMap(): Layer 22 (area_water),
>> 1.385s
>> [Sat Mar 3 19:07:16 2012].68264 msDrawMap(): Layer 23 (linear_water),
>> 0.073s
>> [Sat Mar 3 19:07:16 2012].133183 msDrawMap(): Layer 26 (rails), 0.064s
>> [Sat Mar 3 19:07:17 2012].222080 msDrawMap(): Layer 27 (roads), 1.088s
>> [Sat Mar 3 19:07:17 2012].371530 msDrawMap(): Layer 28
>> (point_landmarks), 0.149s
>> [Sat Mar 3 19:07:17 2012].583520 msDrawMap(): Layer 30 (hwyshieldsnear),
>> 0.212s
>> [Sat Mar 3 19:07:17 2012].586644 msDrawLabelCache():
>> labelcache_map_edge_buffer = 10
>> [Sat Mar 3 19:07:18 2012].301754 msGetMArkerSize(): General error
>> message. msGetMarkerSize() called on unloaded pixmap symbol, this is a
>> bug in mapserver itself
>> ==21971== Conditional jump or move depends on uninitialised value(s)
>> ==21971== at 0x4E2026: agg2RenderBitmapGlyphs(imageObj*, double, double,
>> labelStyleObj*, char*) (in /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x44A3A0: msWriteErrorImage (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x4CD857: msWMSException (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x4D57F7: msWMSDispatch (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x470829: msOWSDispatch (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x4157DC: main (in /u/software/mapserver-6.0.2/mapserv)
>> [Sat Mar 3 19:07:18 2012].929013 msFreeMap(): freeing map at 0x10a1a960.
>> ==21971==
>> ==21971== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 10 from 1)
>> ==21971== malloc/free: in use at exit: 217 bytes in 80 blocks.
>> ==21971== malloc/free: 19,643 allocs, 19,563 frees, 26,189,909 bytes
>> allocated.
>> ==21971== For counts of detected errors, rerun with: -v
>> ==21971== searching for pointers to 80 not-freed blocks.
>> ==21971== checked 4,336,552 bytes.
>> ==21971==
>> ==21971==
>> ==21971== 90 bytes in 79 blocks are definitely lost in loss record 1 of 2
>> ==21971== at 0x4C2260E: malloc (vg_replace_malloc.c:207)
>> ==21971== by 0x85CDDF1: strdup (in /lib/libc-2.7.so)
>> ==21971== by 0x425FD9: msStrdup (in /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x4688F4: msSelectOutputFormat (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x468987: msPostMapParseOutputFormatSetup (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x438E54: loadMapInternal (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x43A3F7: msLoadMap (in /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x414FD8: loadMap (in /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x415138: main (in /u/software/mapserver-6.0.2/mapserv)
>> ==21971==
>> ==21971==
>> ==21971== 127 bytes in 1 blocks are definitely lost in loss record 2 of 2
>> ==21971== at 0x4C2260E: malloc (vg_replace_malloc.c:207)
>> ==21971== by 0x427B60: msEncodeHTMLEntities (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x4CD7FD: msWMSException (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x4D57F7: msWMSDispatch (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x470829: msOWSDispatch (in
>> /u/software/mapserver-6.0.2/mapserv)
>> ==21971== by 0x4157DC: main (in /u/software/mapserver-6.0.2/mapserv)
>> ==21971==
>> ==21971== LEAK SUMMARY:
>> ==21971== definitely lost: 217 bytes in 80 blocks.
>> ==21971== possibly lost: 0 bytes in 0 blocks.
>> ==21971== still reachable: 0 bytes in 0 blocks.
>> ==21971== suppressed: 0 bytes in 0 blocks.
>>
>>
>> On 3/3/2012 6:07 PM, Stephen Woodbridge wrote:
>>> I just got a weird error message:
>>>
>>> msGetmarkerSize(): General error message. msGetMarkerSize() called on
>>> unloaded pixmap symbol, this is a bug in mapserver itself
>>>
>>> Any idea what this is and how come we do not trap this condition and
>>> handle it in a benign way? Is this caused by having too many symbols
>>> defined?
>>>
>>> This is easy for me to reproduce with this mapfile.
>>>
>>> -Steve W.
>>>
>>> Here is the error log:
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].720259 msDrawMap(): rendering using outputformat named
>>> agg_qn (AGG/PNG)., referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].720475 msDrawMap(): WMS/WFS set-up and query, 0.000s,
>>> referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].866600 msDrawMap(): Layer 2 (World Z2), 0.146s, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].867559 msDrawMap(): Layer 3 (Forest), 0.001s, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].872924 msDrawMap(): Layer 6 (Lakes Z2), 0.005s, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].874245 msDrawMap(): Layer 7 (World Boundaries Z1),
>>> 0.001s, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].916075 msDrawMap(): Layer 16 (state), 0.042s, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].926136 msDrawMap(): Layer 19 (place), 0.010s, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].928578 msDrawMap(): Layer 20 (area_landmarks), 0.002s,
>>> referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].929427 msDrawMap(): Layer 21 (military), 0.001s, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].955001 msDrawMap(): Layer 22 (area_water), 0.026s,
>>> referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].956590 msDrawMap(): Layer 23 (linear_water), 0.002s,
>>> referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].958226 msDrawMap(): Layer 26 (rails), 0.002s, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].992081 msDrawMap(): Layer 27 (roads), 0.034s, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].993642 msDrawMap(): Layer 28 (point_landmarks), 0.001s,
>>> referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].998422 msDrawMap(): Layer 30 (hwyshieldsnear), 0.005s,
>>> referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:20 2012].998479 msDrawLabelCache(): labelcache_map_edge_buffer =
>>> 10, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:21 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:21 2012].16760 msGetMArkerSize(): General error message.
>>> msGetMarkerSize() called on unloaded pixmap symbol, this is a bug in
>>> mapserver itself, referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>> [Sat Mar 03 15:37:21 2012] [error] [client 108.20.60.11] [Sat Mar 3
>>> 15:37:21 2012].44957 msFreeMap(): freeing map at 0x20eeb20., referer:
>>> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> mapserver-dev mailing list
>>> mapserver-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>>
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
More information about the mapserver-dev
mailing list