<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6619.12">
<TITLE>RE: [mapserver-users] PHP: Segmentation fault when draw() orsaveWebImage()</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Pavel,<BR>
So... the trouble is actually with the rasters, not with the Mapserver version? As evidenced by the fact that now neither the previous nor the current version of mapserver work for you? Couple of questions:<BR>
<BR>
1. Can you render this map from the mapserver CGI?<BR>
2. Did you recompile PHP, mapserver, and the PHPMapscript with the same options? Perhaps there is a missing option pertaining to the raster graphic format?<BR>
<BR>
HTH,<BR>
r.b.<BR>
<BR>
-----Original Message-----<BR>
From: Pavel Dobeš [<A HREF="mailto:dobes@lnx.cz">mailto:dobes@lnx.cz</A>]<BR>
Sent: Tue 6/3/2008 2:27 AM<BR>
To: Burgholzer,Robert<BR>
Cc: <BR>
Subject: Re: [mapserver-users] PHP: Segmentation fault when draw() orsaveWebImage()<BR>
<BR>
<BR>
On 27.5.2008, at 14:50, Burgholzer,Robert wrote:<BR>
<BR>
> Pavel,<BR>
> Sounds like you might have some other problem in your mapfile. <BR>
> Perhaps some syntax was allowable in the previous version of <BR>
> mapserver that is no longer OK. Might want to check the changelog <BR>
> of your new version, and go from there. Also, since the legend <BR>
> works, you might want to sequentially comment out your layers to <BR>
> determine if you have a specific layer with a problem.<BR>
><BR>
Hi Robert,<BR>
<BR>
Thanks for advice. But downgrade to the same version of PHP & <BR>
Mapserver (ie 5.0.0) as before don't solve my problem. (the version of <BR>
apache was chenged because of security issues).<BR>
<BR>
So now is working one collection of 3 maps in one mapfile and not <BR>
working collection of 3 maps in one mapfile too... (but 90 % of load <BR>
is targetting not working maps).<BR>
<BR>
When I comment out all raster layers it's working. (reference map, <BR>
scale bar, grid and drawned points on the map).<BR>
<BR>
When I commnet out only some of raster layers, it works on 33% (once <BR>
yes, 2 times not). I increase amount of allowed memory in php.ini file <BR>
(to 1024M) but without any visible effect.<BR>
<BR>
Bye<BR>
Pavel<BR>
<BR>
><BR>
> Robert W. Burgholzer<BR>
> Surface Water Modeler<BR>
> Office of Water Supply and Planning<BR>
> Virginia Department of Environmental Quality<BR>
> rwburgholzer@deq.virginia.gov<BR>
> 804-698-4405<BR>
> Open Source Modeling Tools:<BR>
> <A HREF="http://sourceforge.net/projects/npsource/">http://sourceforge.net/projects/npsource/</A><BR>
><BR>
> -----Original Message-----<BR>
> From: mapserver-users-bounces@lists.osgeo.org [<A HREF="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</A><BR>
> ] On Behalf Of Pavel Dobeš<BR>
> Sent: Saturday, May 24, 2008 3:41 PM<BR>
> To: mapserver-users@lists.osgeo.org<BR>
> Subject: [mapserver-users] PHP: Segmentation fault when draw() <BR>
> orsaveWebImage()<BR>
><BR>
> Hi to all,<BR>
><BR>
> I run mapserver on my gentoo server now with php-5.2.6_rc4.<BR>
><BR>
> After upgrade the apache is falling down with message:<BR>
><BR>
> [Sat May 24 21:13:02 2008] [notice] child pid 2476 exit signal<BR>
> Segmentation fault (11)<BR>
><BR>
> With mapserver 5.0.0-r1 the last line is<BR>
><BR>
> $url = $image->saveWebImage();<BR>
><BR>
> When I upgrade to 5.0.2 the last lins was<BR>
> $image=$map->draw();<BR>
><BR>
> $image is from $image=$map->prepareImage(); in both cases...<BR>
><BR>
> Any hint, whitch mix of versions (PHP & mapserver) is OK or how to<BR>
> pretend this segfault?<BR>
><BR>
> Tahnks<BR>
> Pavel<BR>
> PS: this simple script works<BR>
> <?php<BR>
> header("Content-type: image/jpeg");<BR>
><BR>
> $map = ms_newMapObj("file.map");<BR>
> $img = $map->drawScaleBar();<BR>
> $img->saveImage('');<BR>
><BR>
> ?><BR>
> _______________________________________________<BR>
> mapserver-users mailing list<BR>
> mapserver-users@lists.osgeo.org<BR>
> <A HREF="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR>
> _______________________________________________<BR>
> mapserver-users mailing list<BR>
> mapserver-users@lists.osgeo.org<BR>
> <A HREF="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>