Hello.<div><br></div><div>Thank You for your suggestion.</div><div><br></div><div>I tried to display my map using the CGI directly... and got the same segmentation fault error.</div><div>It would be very nice of You to tell me, how I may create the ticket (I mean using which site).</div>
<div><br></div><div>Regards,</div><div>Joseph</div><div><br><div class="gmail_quote">On Wed, Sep 8, 2010 at 9:24 PM, Alan Boudreault <span dir="ltr">&lt;<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I&#39;d say that php mapscript is not the cause. Could you try to display your map<br>
using the CGI directly. If you get the same seg fault error, it would be good<br>
if you could create a ticket with a minimal test case with a mapfile and data<br>
(perhaps you could do a simple ogr2gr from postgis to shapefile).<br>
<br>
regards,<br>
Alan<br>
<div class="im"><br>
On September 8, 2010 03:14:22 am Joseph Mamuchishvili wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I have compiled MapServer 5.6.4 with PHPMapscript on FreeBSD 8.1.<br>
&gt; During configuration Ming support was added.<br>
&gt; phpinfo() returns the following:<br>
</div>&gt; MapScriptMapServer VersionMapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG<br>
<div class="im">&gt; OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG<br>
&gt; SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER<br>
&gt; SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR<br>
</div>&gt; INPUT=SHAPEFILEPHP MapScript Version<br>
<div class="im">&gt; ($Revision: 10204 $ $Date: 2010-06-02 06:57:48 -0700 (Wed, 02 Jun 2010) $)<br>
&gt;<br>
</div>&gt; mingMing SWF output libraryenabledVersion0.4.3<br>
<div><div></div><div class="h5">&gt; I am using the following php script (*testmap.php*):<br>
&gt;<br>
&gt; &lt;?php<br>
&gt; $map = ms_newMapObj(&quot;/map/apache/htdocs/map/mapsql.map&quot;);<br>
&gt; $image=$map-&gt;draw();<br>
&gt; $image_url=$image-&gt;saveImage(&quot;\\tmp&quot;);<br>
&gt; ?&gt;<br>
&gt;<br>
&gt; &lt;HTML&gt;<br>
&gt;<br>
&gt; &lt;HEAD&gt;<br>
&gt; &lt;TITLE&gt;Example 1: Displaying a map&lt;/TITLE&gt;<br>
&gt; &lt;/HEAD&gt;<br>
&gt;<br>
&gt; &lt;BODY&gt;<br>
&gt;     &lt;br&gt;<br>
&gt;     &lt;IMG SRC=&lt;?php echo $image_url; ?&gt; &gt;<br>
&gt; &lt;/BODY&gt;<br>
&gt;<br>
&gt; &lt;/HTML&gt;<br>
&gt;<br>
&gt; and the contents for *mapsql.map* file is:<br>
&gt;<br>
&gt; MAP NAME &quot;Europe in purple&quot;<br>
&gt;<br>
&gt;     SIZE 400 400<br>
&gt;     STATUS ON<br>
&gt; EXTENT 478895 4615055 485900 4620056<br>
&gt;<br>
&gt;     UNITS METERS<br>
&gt;     SHAPEPATH &quot;/home/map/SHP&quot;<br>
&gt;<br>
&gt; WEB<br>
&gt;         IMAGEPATH &quot;/map/apache/htdocs/tmp/&quot;<br>
&gt;         IMAGEURL &quot;/tmp/&quot;<br>
&gt;         METADATA<br>
&gt;            &quot;wms_title&quot;     &quot;wms_title&quot;  ##required<br>
&gt;            &quot;wms_onlineresource&quot; &quot;<br>
&gt; <a href="http://soso.freebsd.host/cg-bin/mapserv?map=/map/apache/htdocs/mapsql.map&amp;" target="_blank">http://soso.freebsd.host/cg-bin/mapserv?map=/map/apache/htdocs/mapsql.map&amp;</a>&quot;<br>
&gt;            &quot;wms_srs&quot; &quot;EPSG:32638&quot;<br>
&gt;         END<br>
&gt;     END<br>
&gt; PROJECTION<br>
&gt; &quot;proj=utm&quot;<br>
&gt; &quot;zone=38&quot;<br>
&gt; &quot;ellps=WGS84&quot;<br>
&gt; &quot;datum=WGS84&quot;<br>
&gt; &quot;units=m&quot;<br>
&gt; &quot;no_defs&quot;<br>
&gt; END<br>
&gt;<br>
&gt; QUERYMAP<br>
&gt; COLOR 0 0 255<br>
&gt; STATUS ON<br>
&gt; STYLE HILITE<br>
&gt; END<br>
&gt;<br>
&gt;<br>
&gt; LAYER<br>
&gt;         NAME &quot;main_streets&quot;<br>
&gt;  TOLERANCE 1<br>
&gt; TOLERANCEUNITS meters<br>
&gt;         CONNECTIONTYPE postgis<br>
&gt;         CONNECTION &quot;user=pgsql dbname=pgsql host=soso.freebsd.host&quot;<br>
&gt; TEMPLATE &quot;../query/query_template.html&quot;<br>
&gt;         METADATA<br>
&gt;    QUERYABLE &quot;true&quot;<br>
&gt;    fields &#39;quca_ge:ქუჩის დასახელება,gid:გიდი&#39;<br>
&gt;    hyperlink &#39;quca|<a href="http://myurl.com" target="_blank">http://myurl.com</a>&#39;<br>
&gt;    searchfield &quot;quca&quot;<br>
&gt;       RESULT_FIELDS  &quot;quca_ge&quot;<br>
&gt;       RESULT_HEADERS &quot;the_geom&quot;<br>
&gt;         END<br>
&gt;         TYPE POLYGON<br>
&gt;         STATUS ON<br>
&gt; DATA &quot;the_geom from main_streets&quot;<br>
&gt;         CLASS<br>
&gt;             STYLE<br>
&gt;                 COLOR 110 50 100<br>
&gt;                 OUTLINECOLOR 200 200 200<br>
&gt;             END<br>
&gt;         END<br>
&gt;     END<br>
&gt;<br>
&gt; END<br>
&gt;<br>
&gt; *Everything works fine*, but now *i want to generate flash output*. So I<br>
&gt; added  the following block to *mapsql.map *file:<br>
&gt;<br>
&gt; OUTPUTFORMAT<br>
&gt;   NAME swf<br>
&gt;   DRIVER &quot;SWF&quot;<br>
&gt;   MIMETYPE &quot;application/x-shockwave-flash&quot;<br>
&gt;   EXTENSION &quot;swf&quot;<br>
&gt;   IMAGEMODE PC256<br>
&gt;   FORMATOPTION &quot;OUTPUT_MOVIE=SINGLE&quot;<br>
&gt; END<br>
&gt;<br>
&gt; flash output is not generated and the following is appeared in apache error<br>
&gt; log: *Segmentation fault (11).*<br>
&gt; When trying to *launch *the testmap.php script from* the shell* the<br>
&gt; following happens:<br>
&gt; /php/bin/php ./testmap.php<br>
&gt; *newSFWBitmapFillStyle: not a valid Bitmap FillStyle: 0*<br>
&gt; Segmentation fault (core dumped)<br>
&gt;<br>
&gt; What is the reason of this ? What am I doing wrong ?<br>
&gt;<br>
&gt; Any suggestions or help will be appreciated.<br>
&gt;<br>
&gt; Joseph.<br>
</div></div>&gt; *<br>
&gt; *<br>
&gt;<br>
<font color="#888888"><br>
--<br>
Alan Boudreault<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>With Best Regards,<br><br>Joseph Alex Mamuchishvili<br>
</div>