Pavel,
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:

1. Can you render this map from the mapserver CGI?
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?

HTH,
r.b.

-----Original Message-----
From:   Pavel Dobeš [mailto:[EMAIL PROTECTED]
Sent:   Tue 6/3/2008 2:27 AM
To:     Burgholzer,Robert
Cc:     
Subject:        Re: [mapserver-users] PHP: Segmentation fault when draw() 
orsaveWebImage()


On 27.5.2008, at 14:50, Burgholzer,Robert wrote:

> Pavel,
> Sounds like you might have some other problem in your mapfile.   
> Perhaps some syntax was allowable in the previous version of  
> mapserver that is no longer OK.  Might want to check the changelog  
> of your new version, and go from there.  Also, since the legend  
> works, you might want to sequentially comment out your layers to  
> determine if you have a specific layer with a problem.
>
Hi Robert,

Thanks for advice. But downgrade to the same version of PHP &  
Mapserver (ie 5.0.0) as before don't solve my problem. (the version of  
apache was chenged because of security issues).

So now is working one collection of 3 maps in one mapfile and not  
working collection of 3 maps in one mapfile too... (but 90 % of load  
is targetting not working maps).

When I comment out all raster layers it's working. (reference map,  
scale bar, grid and drawned points on the map).

When I commnet out only some of raster layers, it works on 33% (once  
yes, 2 times not). I increase amount of allowed memory in php.ini file  
(to 1024M) but without any visible effect.

Bye
Pavel

>
> Robert W. Burgholzer
> Surface Water Modeler
> Office of Water Supply and Planning
> Virginia Department of Environmental Quality
> [EMAIL PROTECTED]
> 804-698-4405
> Open Source Modeling Tools:
> http://sourceforge.net/projects/npsource/
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> ] On Behalf Of Pavel Dobeš
> Sent: Saturday, May 24, 2008 3:41 PM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] PHP: Segmentation fault when draw()  
> orsaveWebImage()
>
> Hi to all,
>
> I run mapserver on my gentoo server now with php-5.2.6_rc4.
>
> After upgrade the apache is falling down with message:
>
> [Sat May 24 21:13:02 2008] [notice] child pid 2476 exit signal
> Segmentation fault (11)
>
> With mapserver 5.0.0-r1 the last line is
>
> $url = $image->saveWebImage();
>
> When I upgrade to 5.0.2 the last lins was
> $image=$map->draw();
>
> $image is from $image=$map->prepareImage(); in both cases...
>
> Any hint, whitch mix of versions (PHP & mapserver) is OK or how to
> pretend this segfault?
>
> Tahnks
> Pavel
> PS: this simple script works
> <?php
> header("Content-type: image/jpeg");
>
> $map = ms_newMapObj("file.map");
> $img = $map->drawScaleBar();
> $img->saveImage('');
>
> ?>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to