<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Yes, I will.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Any additional background information you can share on the adviced PROJ<6 (or PROJ<=6, e.g. the current 6.3.2)</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks,</div><div class="gmail_default" style="font-family:verdana,sans-serif">Rob</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op ma 12 okt. 2020 om 19:17 schreef Jeff McKenna <<a href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Rob,<br>
<br>
Next I would remove the ECW support/reliance and try to trigger the <br>
error without ECW data (yes with a local mapfile called from shp2img).<br>
<br>
Maybe others have ideas.<br>
<br>
-jeff<br>
<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
MapServer Consulting and Training Services<br>
co-founder of FOSS4G<br>
<a href="http://gatewaygeo.com/" rel="noreferrer" target="_blank">http://gatewaygeo.com/</a><br>
<br>
<br>
<br>
On 2020-10-12 2:11 p.m., Rob Marjot wrote:<br>
> Hi Jeff, all,<br>
> <br>
> Thank you for your thoughts on this. Can you elaborate on the PROJ<6 <br>
> remark; serious performance hits?<br>
> <br>
> Indeed, I am on the NG (SWIG) MapScript. Trying with shp2img and mapserv <br>
> -nh will require to have the equivalent .map file on disk; I will work <br>
> on that soon.<br>
> <br>
> Taking a complete different approach, I have been able to reproduce the <br>
> same problem by:<br>
> 1. Installing *binaries* for MapServer 7.6.1, GDAL 3.1.3 and PROJ 7.1.1 <br>
> from UbuntuGIS Unstable<br>
> 2. Add ECW support through compiling the simple GDAL-plugin (tested: <br>
> gdal_translate from ECW to GTiff works brilliantly)<br>
> 3. Configured this to run in the context of 7.4 PHP-FPM<br>
> <br>
> Again the seg fault. Connecting to PHP-FPM from either Apache or NGINX <br>
> does not make a difference, but that's no surprise.<br>
> <br>
> Rob<br>
> <br>
> Op ma 12 okt. 2020 om 15:38 schreef Jeff McKenna <br>
> <<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a> <mailto:<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>>>:<br>
> <br>
> Hi Rob,<br>
> <br>
> I'm not sure what is happening in your case, but make sure that you are<br>
> using the recommended PHP SWIG MapScript in your build<br>
> (-DWITH_PHPNG=1),<br>
> as the old PHP MapScript is unmaintained.<br>
> <br>
> Some other thoughts:<br>
> <br>
> - can you trigger this with shp2img at the commandline? (this will<br>
> remove MapScript/Apache/WMS from the equation)<br>
> <a href="https://mapserver.org/utilities/shp2img.html" rel="noreferrer" target="_blank">https://mapserver.org/utilities/shp2img.html</a><br>
> <br>
> - also, try your GetMap request at the commandline with:<br>
> <br>
> mapserv -nh<br>
> "QUERY_STRING=map=/ms4w/apps/local-demo/local-demo.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&..."<br>
> <br>
> > ttt.png<br>
> <br>
> But if I can speak openly here, I believe most production instances are<br>
> still running PROJ<6, so everyone is beginning to experiment with<br>
> settings of FCGI/PHP-FPM for GDAL3+PROJ7 (as there is a noticeable<br>
> performance hit with the new PROJ).<br>
> <br>
> In other words, keep us posted here on your testing and configuration;<br>
> also, do consider documenting your configuration and workaround on the<br>
> MapServer wiki, so others can follow:<br>
> <a href="https://github.com/MapServer/MapServer/wiki" rel="noreferrer" target="_blank">https://github.com/MapServer/MapServer/wiki</a><br>
> <br>
> Thanks Rob!<br>
> <br>
> -jeff<br>
> <br>
> <br>
> <br>
> -- <br>
> Jeff McKenna<br>
> MapServer Consulting and Training Services<br>
> co-founder of FOSS4G<br>
> <a href="http://gatewaygeo.com/" rel="noreferrer" target="_blank">http://gatewaygeo.com/</a><br>
> <br>
> <br>
> <br>
> On 2020-10-09 9:44 p.m., Rob Marjot wrote:<br>
> > Hi All,<br>
> ><br>
> > I am running latest MapServer 7.6.1 compiled from source on<br>
> Ubuntu 20.04<br>
> > with (also from source):<br>
> > - proj-7.1.0<br>
> > - gdal-3.1.2<br>
> ><br>
> > Using the ppa:ondrej/php repo, I installed the following PHP<br>
> packages:<br>
> > php7.4 php7.4-fpm php7.4-dev<br>
> > Apache/2.4.41 proxies into the FPM over unix socket<br>
> ><br>
> > Compiling MapServer went smoothly and through the configuration<br>
> of the<br>
> > extension in PHP, MapScript is available. When I call (HTTP GET)<br>
> my PHP<br>
> > script to handle a WMS-formatted request [ OWSDispatch() ], the<br>
> first 2<br>
> > requests are handled fine (returns a rendered map image), but the<br>
> next<br>
> > two make the PHP-FPM crash:<br>
> > /var/log/syslog:<br>
> > Oct 10 01:59:25 as02 kernel: [3663532.034251] php-fpm7.4[1260175]:<br>
> > segfault at 28 ip 00007fbce21fb3eb sp 00007ffe87f600e0 error 6 in<br>
> > libgdal.so.27.0.2[7fbce152e000+d50000]<br>
> > Oct 10 01:59:25 as02 kernel: [3663532.034262] Code: 8b 15 81 de<br>
> 56 00 e9<br>
> > 24 2d 38 ff 0f 1f 40 00 f3 0f 1e fa 41 54 49 89 f4 55 48 89 d5 53<br>
> 89 fb<br>
> > 48 89 cf e8 e8 f0 ff ff 48 63 fb <4c> 89 24 f8 48 89 ac f8 00 01<br>
> 00 00<br>
> > 5b 5d 41 5c c3 0f 1f 40 00 f3<br>
> ><br>
> > What could be the problem? Any help is much appreciated.<br>
> ><br>
> > Best,<br>
> > Rob Marjot<br>
> ><br>
> ><br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a> <mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
> <br>
> <br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
> <br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div>