[ka-Map-users] precache2.php

Stephen Woodbridge woodbri at swoodbridge.com
Wed Jul 5 14:42:36 EDT 2006


Ramesh,

This is probably because there is a bug in libgd2 for single pixel wide 
antialiased lines the causes a segv. Steve Lime posted a online fix to 
libgd2 if you want to get the source, patch and build it.

The reason you built the first two scales it likely because you did not 
draw any antialiased 1 pixel lines.

-Steve W.

ramesh karra wrote:
> Thanks for the response Lorenzo.
> 
> I have built the gd library and tried. This time I did
> not get the same error but it coredumped while trying
> to build the cache. It has successfully created cache
> for first two scales and coredumped while trying to
> create cache for the third scale.
> 
> Here is the output:
> 
>   Scale: 200000
>     Meta tiles: 2 x 2 = 4
>     Tiles: 2 x 2 x 5 x 5 = 100
>     Group: __base__
>   Scale: 100000
>     Meta tiles: 2 x 2 = 4
>     Tiles: 2 x 2 x 5 x 5 = 100
>     Group: __base__
>   Scale: 50000
>     Meta tiles: 3 x 2 = 6
>     Tiles: 3 x 2 x 5 x 5 = 150
>     Group: __base__
> Segmentation fault (core dumped)
> 
> 
> The stack trace of php using the gdb is:
> 
> #0  0x002ff342 in gdImageSetAAPixelColor
> (im=0x85e21b0, x=1961, y=2080, 
>     color=-200, t=255) at gd.c:3055
> #1  0x002ff4c4 in gdImageAALine (im=0x85e21b0,
> x1=1945, y1=2077, x2=1961, 
>     y2=2079, col=13158600) at gd.c:3098
> #2  0x002fc186 in gdImageLine (im=0x85e21b0, x1=1969,
> y1=2080, x2=1945, 
>     y2=2077, color=-7) at gd.c:965
> #3  0x00abbdcc in msImageLoadGD () from
> /opt/php_mapscript.so
> #4  0x00ac0c9c in msDrawShadeSymbolGD () from
> /opt/php_mapscript.so
> #5  0x00ab9a30 in msDrawShadeSymbol () from
> /opt/php_mapscript.so
> #6  0x00ab86e1 in msDrawShape () from
> /opt/php_mapscript.so
> #7  0x00ab6cbe in msDrawVectorLayer () from
> /opt/php_mapscript.so
> #8  0x00ab67fe in msDrawLayer () from
> /opt/php_mapscript.so
> #9  0x00ab5d8b in msDrawMap () from
> /opt/php_mapscript.so #10 0x00a7d8fb in mapObj_draw ()
> from /opt/php_mapscript.so
> #11 0x00a6d609 in php3_ms_map_draw () from
> /opt/php_mapscript.so
> #12 0x08130406 in execute (op_array=0x83422fc)
>     at /opt/php-4.4.2/Zend/zend_execute.c:1675
> #13 0x08123cb7 in zend_execute_scripts (type=8,
> retval=0x0, file_count=3)
>     at /opt/php-4.4.2/Zend/zend.c:934
> #14 0x08100b9f in php_execute_script
> (primary_file=0xbfff94b0)
>     at /opt/php-4.4.2/main/main.c:1753
> #15 0x08134370 in main (argc=6, argv=0xbfff9574)
>     at /opt/php-4.4.2/sapi/cli/php_cli.c:830
> 
> 
> Any ideas on what's the problem here?
> 
> Thanks
> Ramesh
> 
> --- Lorenzo Becchi <lorenzo at ominiverdi.com> wrote:
> 
>> Hi Ramesh,
>> are you sure the path to DG lib is well written in
>> include/config.php ?
>> is your ka-map working properly accessing from the
>> web server?
>> if not, what's the output accessing your init.php
>> from the web?
>> and which one with tile.php?
>>
>> this are important points.
>>
>> ciao
>> Lorenzo
>> _______________________________________________
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
>>
> http://lists.maptools.org/mailman/listinfo/ka-map-users
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
> 



More information about the ka-Map-users mailing list