[mapserver-users] Invalid pdf file from WMS

thomas bonfort thomas.bonfort at gmail.com
Wed Aug 17 12:56:45 PDT 2011


if gdb is installed on the system, you do:

gdb /path/to/mapserv
$ run QUERY_STRING='map=...&....'
(...program runs and spits out the beginning of the pdf..., then segfaults)
$ bt

--
thomas

On Wed, Aug 17, 2011 at 21:36, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote:
> Hi,
>
> Command with big BBOX does lead into segmantation fault.  Unfortunately I am just an amateur and I have no idea about what is a backtrace and how I could provide it to you. The server is a virtual Linux box (Ubuntu).
>
> -Jukka Rahkonen-
>
> thomas bonfort wrote:
>
>> the second one is incomplete, the request seems to be failing.
>
>> can you run the request locally to see if it segfaults, and if so
> provide a backtrace:
>
>> /path/to/mapserver-cgi
> QUERY_STRING='map=/path/to/map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=864&HEIGHT=662&LAYERS=default&TRANSPARENT=TRUE&FORMAT=application/x-pdf&BBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395&SRS=EPSG:2393&STYLES='
>
> --
> thomas
>
> On Wed, Aug 17, 2011 at 15:40, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote:
>> Hi,
>>
>>> This request from Mapserver 6.0 gives me a nice pdf file:
>>> http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=864&HEIGHT=662&LAYERS=default&TRANSPARENT=TRUE&FORMAT=application/x-pdf&BBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395&SRS=EPSG:2393&STYLES=
>>
>> However, if I double the bounding box the resulting pdf cannot be opened by Acrobat reader.
>> http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1728&HEIGHT=1324&LAYERS=default&TRANSPARENT=TRUE&FORMAT=application/x-pdf&BBOX=3409763.750050978,6956187.032331026,3411904.266676571,6957827.104097395&SRS=EPSG:2393&STYLES=
>>
>> The latter gives fine image with format=image/png. Any idea about what is going wrong?
>>
>> -Jukka Rahkonen-_______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>



More information about the MapServer-users mailing list