[Mapserver-users] mapserver crashes at a png file

Vincent Schut schut at sarvision.com
Tue Jun 24 08:36:51 PDT 2003


Carsten,

first about the output: that is not only the png image, but also the headers 
as a browser would expect them. You cannot save the output as a png file. But 
you can issue the same command in your browser by typing (in the adress field 
of the browser):
http://localhost/cgi-bin/mapserv?map=/bla/bla/map.map&mode=map
Then you should see the generated png image.

About your png error: have you tried to open the png layer file with an image 
viewer? Just to be sure that the png file is not corrupt...
If you can view the file, you could convert it to tiff and check if mapserver 
can display it if you define your layer to have the tiff file as input. This 
would track the problem down to png reading (e.g. libgd or libgdal or 
libpng).

Btw, after running in gdb and the segfault, did you type 'backtrace'? This 
gives us some more hints to where the crash appeared.

Cheers,
Vincent.

On Tuesday 24 June 2003 19:23, Carsten Busch wrote:
> Hello,
>
> I found the right parameter for testing:
> (gdb) run
> "QUERY_STRING=map=/usr/local/apache/htdocs/itasca/demo.map&layer=thueringen
>" Starting program: /usr/local/apache/cgi-bin/mapserv
> "QUERY_STRING=map=/usr/local/apache/htdocs/itasca/demo.map&layer=thueringen
>"
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x08072d72 in drawPNG ()
>
> lyer=thueringen, is the png layer, If I use any other (right) layer of
> the postgis db, Iget the png image.
>
> Any idea?
>
>
> Carsten

-- 
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com



More information about the MapServer-users mailing list