[mapserver-dev] pink screen after activating several layers (mapserver version 6.2.0)

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Fri Dec 4 04:18:00 PST 2015


Hi,

I don’t understand, isn’t it you and the client you use who makes the request and Mapserver is just listening?

BTW you might have received an answer from mapserver-users list sooner than from the developer list. Users sometimes know better the problems which happen when Mapserver is used for something real.

-Jukka Rahkonen-

Donald wrote:

Found the problem. Query string has two many parameters. The request should be done by post and not by get. Anyone knows a quick way to make mapserver to make request by post instead of get ?

2015-12-04 9:49 GMT+00:00 Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>>:
Hi,

Apache has a max size of the request string set to 8190 by default but it can be configured to some other value. Perhaps you should check that.
http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestline


-Jukka Rahkonen-

Donald wrote:

I've tried your query on the URL copied from the browser console when I enable all the layers wich is:


http://[my-ip]/cgi-bin/mapserv?MAP=%2Fvar%2Fwww%2Fhtdocs%2Fwebsig%2Fv5%2Ftmp%2Ftmp%2F0jtbdfs8dcivii2ugk0gmgf9g3.map&TRANSPARENT=FALSE&LAYERS=0cc6928e741d75e7a92396317522069e%2C11953163dd7fb12669b41a48f78a29b6%2Ca1ef52d000a69fe51471bfb2c5f33f2b%2C44f4d07f1c8299921e49ad583e6172ac%2C193aeff547d5ae031961a398f3d85103%2C436be651135fc8603fe1eebef755a414%2Ca189d1d6323604bf825894b367be53d8%2C56aac7f0dc0698c8fd1d78b5775cad8b%2C96291e7f00056d5fa2a29a7bb01a5c69%2C9c94ffae5dafd57bc0a5a9a74c33bda1%2Ce2cf648ae25fae6974151b3d8cfe1bd5%2Ca28656725f374cb3e71a201b531e80cd%2C8dc37d46aebc3afc7600e5ff3a98701e%2C8915c77907ad5fc844b6cac7fd4a36ca%2C7209f9f3fb9d9fe99ce4f89b9287fb53%2C35d0e2d968e9feccbca2e105770b7d1a%2C1ff33d2387634a2ba74bfd89e4fae299%2C499dd1b7fff1fe45c60c1e0327f31ac7%2C90542348786781a92dc3159edb3acaeb%2C8f1483fd43d37f2b201b6013cf560548%2Cc031bd271524cfaf3ca33d9a7cdd6963%2C3b51f0944a15a288a8f63a69184eefed%2Cbe0c65808c8b98930fd422c71f4eb503%2C214f89202b43814a91023650bcd7812e%2C466faab804ea25abe829be99d5e9bd62%2C67f56f1066f936643e650ab9abbe8782%2C98a38e6bc3df67b13c88f895b0475bda%2C1ceea623bcd09fd1c588eeab49348267%2C654d83ccc5d76820d377ca1ae5c1b1e7%2Cec66e23e08411ca94ac3140f8b092b32%2C7e87e2573bea6ca53812c110c8b3044f%2C86425ea19a3ef32b8e04bf17d99d7a46%2C6b8f11ea22cc3b3d21054af721405f74%2C1315d315bde3c15132bfe573c31f2e16%2C7504b254d644b0f91405e4fdddc19ae0%2C60cd83680a9c13ad66f64746a7017f5e%2C2bde0769323a37aaf488a8ea7925f80f%2C77404689d7440aaf8316d8ef916244cb%2C1bb0595cd85c6f555b1a421c714a70a2%2C55f5be4757a81d063e68ec307346ead8%2Cd9c9e5d87b555029cddd3ca66e016595%2C76534893b6a38e0b25f8140f1f580968%2Ce7e425d53704ee79df4fdd45e58bf4e6%2C61228e7887c83f5b85a0e781d5f3de2e%2C782d1a09faf16eee2bdf365b137c3aae%2C53766bdaf3f63849b506cb5191f961e7%2C40a0c0facfcdad4e0dc618e60ca9e413%2C2622ea890afbebb5521428fc07ba589b%2C15f3489c410bbc3dd881bb4b759acffb%2C5ce0ca293fb953c464dda085f538b782%2C7f927cda8670e1a6f507076d937850ed%2C65a5fed29aae278c485f89232901404c%2Cb47e509fd65154585d8e77ff11f03015%2C51505d09eb905e7248bf0fed77d2816d%2Cec4858f5b660a6df588e03c32f3e735e%2C7da04e3d53d8c5a62541bd5e42fa0672%2C34bf9aeb79753c6e872c0bd58f51c146%2C3daeb348a79430565833d5cd79fba92f%2C4a78403560ef86c4eea1a0b2573203b3%2C43b0ef7d354de97451c4c319cf9db3b5%2C7238ccb9e6c000e224e5454aa784080c%2C311beab01e8c21adb5a026229ecb839d%2C574b903a819d3fa92a1880f6622c9ab5%2C0e06dc3580edf9e4fc3f3dac76e76f71%2Cc02b5c894edff19a96b3422394c04911%2Cf9521e71f41095bc3ccf8021007cb023%2Cbbadaf32ecbe37b60628d0c230dc412f%2Cc7d53014f8da9740eae6afb8513f3ac4%2C709060ead0f67f018416c4fc035e2c3a%2C2b24c444b2c5fe58b1ffaec61f466d00%2C6719949fc8101ddeb59ed1b67512761e%2Cf7ffc9008d90fe6a9a15f796fad2b657%2C3ba8291855c46ebde15bb92a2a633aeb%2Ce75adec1484a3b03c3a79a27a10901e8%2C80b006c1ce5bf675b5590cfbb417abbe%2C47f5bb8284b4015e41c2e7c250d27543%2C35ce7d65b04081847b87b62a81e597b0%2C143a21bafc7707f9373794e1d2d827cf%2C4ec6eddc8d3c20a0b057b6ad8fc67d50%2Cf1159a1c807f13eec2bd7692ab1975b3%2C2059b13e67326286c4398f15782b43bb%2C8571dd34c9eea72bea2fe57c3d60eebc%2C933a3113365e0576c37383fc9f4dd248%2C22fd995384fdb060697414c52cd15b2f%2Cfffd934ee97bdb7d3c2c90ee19e3651c%2Cab27d90bf463cc0a3f264ec7b2ef8578%2Cfe412288e246b9db179a5252d963578a%2C587de9dc60af8a0a804647e9a534a7e0%2C62bf355cb6fa693e7346b9ce036b97a9%2C7adad602a8e6b21bea8b9a8f765a693a%2Cd3c0bd08ee26893f13cbdee1867092da%2Cbe0907ace4d9ca60c8117e11992f1d5a%2C6dd1992ff78e50d024020d02facd8080%2C13cf57a40ad01e563379e776cd04fc37%2Ca21b5f37cd84b6a519f2fc1f8ea28438%2C72d84e1c154562da0ad2655c8ab5234f%2Ca885eeb0ddd95becfd42ee3a7dcaec2b%2Cd57cf3418fa7038113584a393ff6b260%2Cb400d27e54ba06bffd875b6ff73680f8%2C4ed10cf7ef5fb0e73f9c43b2e5e3677a%2C08f16dbb49febf87e541b04407cf2174%2C59534f8c330d4c27d4a8875ba9155748%2Cb1ec86eb9b540dca4654cb9c610ccfa0%2Cbe34bbd1866b0e986ee9bd7107c36a31%2Ccef38aef772342ec503124046ad6a753%2C884d6ae8aafc603f1e8181103ee9b29c%2Cd7ede8e3595c31b88ca9bd673972ed86%2Cbc000578e49ba3a149c8bafa4560974c%2Cf0749ca842cb10ad3c018ce4ec2bcb2f%2C111bc1c0d5b441f0c89e7193ad20d72c%2C6c3fc16410795c0043c51c7203cf5ddf%2C2fc97b3183948688ff4b6b568081b4d9%2Ce28f27c2a1bb6d772b4f46badc754676%2Ca3f9786e1d897b30211ba252f4847209%2C14b2db52dffc5b6d7a936f4fdf8aa3e2%2C67dda89af34162c1a71a71e4275e7e56%2Cab99a810f6723e06e4558b64d41d6498%2Cc40cd16a3a97071d48ce70e644688e29%2C2c512def841aba91d2e9243aadd652ad%2Cc83ad544d048b82d40f977e00157d101&FORMAT=png&MAXEXTENT=29754.890054972%2C-218525.78697617%2C87631.601716573%2C-160649.07531457&GUTTER=0&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A27492&RANDOM=0.6882094601169229&BBOX=-27150.262730475,-250353.85249421,163349.63439958,-138435.16293029&WIDTH=1440&HEIGHT=846


I get from the command line a bunch of weird characters such as:

8$I*.}(Laà$©¸ô¡0
C¤ÖÒWÀ I*³8$Iê+}cà$©¯ô}0C¤¾Ò÷À8IúJßã8$Iê+}cà$©¯ô}0C¤²ÒÇÀDIúJßã8$Iê+}cà$©¯ô}0C¤¾Ò÷À8I*³8$Iª,}"Ìbà$©²ô0C¤ÖÒWÀ IZK_       8$I*.}(Laà$©»ô­0C¤úÒç@?$IJ_
å
µ}443pH4§ôÝPËÀ!IÒÒw at -$IsJß
µ*}:t2pH4ªôéÐÉÀ!IÒÒw at -$IsJß
$
ÍÍ)}7Ô2pH4§ôÝPËÀ!IÒÒG at 3$ICJ
Í}443pH4¤ôÑÐÌÀ!IÒÒG at 3$ICJ
Í}443pH4¤ôÑÐÌÀ!IÒÒG at 3$ICJ
µ}443pH4§ôÝPËÀ!IÒÒw at -$IsJß
 *}:t2pH4­ôõPÈÀ!IÒÌÒ7@$IcK=
$
/}L40pH4¿ô=gà$i~é{ ÎÀ!IÒüÒ÷@C¤ù¥ï     8$IÃK
$M.}I0pH4§ôÝPËÀ!IÒ
                  Ò@9$Iõ¥Ï~IºKß
#ümVoÐMxÒzIEND®B`ngwebsig at websigv5:/usr/lib/cgi-bin$ PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTuTTYPuTTYPuTTYTYP

I checked the folder and the map file is there and is readable. I also tried the same command on a string that has no layers enabled and I get a clean response. I've copied the same project to localhost environment, enabled all the same layers and it worked fine. Could this be something related to the amount of variables passed in the URL ?



2015-12-03 18:42 GMT+00:00 Stephen Woodbridge <woodbri at swoodbridge.com<mailto:woodbri at swoodbridge.com>>:
Also, LAYERS=[layergroup] in your url does not look valid.

-Steve

On 12/3/2015 12:35 PM, Donald wrote:
The number of layers of the mapfile is above 250.
I get a error in the console of the browser when the pink screen shows.
It's http://[myIP]/cgi-bin/mapserv?MAP=%2Fvar%2Fwww%2Fhtdocs%2Fwebsig%2Fv5%2Ftmp%2Ftmp%2F0olt4opvnq180qoiaukec1t6o2.map&TRANSPARENT=FALSE&LAYERS=[layergroup]&FORMAT=png&MAXEXTENT=29754.890054972%2C-218525.78697617%2C87631.601716573%2C-160649.07531457&GUTTER=0&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A27492&RANDOM=0.6198567883111537&BBOX=-36556.702679255,-245546.77592733,153943.1944508,-133628.08636341&WIDTH=1440&HEIGHT=846<http://[myIP]/cgi-bin/mapserv?MAP=%2Fvar%2Fwww%2Fhtdocs%2Fwebsig%2Fv5%2Ftmp%2Ftmp%2F0olt4opvnq180qoiaukec1t6o2.map&TRANSPARENT=FALSE&LAYERS=%5blayergroup%5d&FORMAT=png&MAXEXTENT=29754.890054972%2C-218525.78697617%2C87631.601716573%2C-160649.07531457&GUTTER=0&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A27492&RANDOM=0.6198567883111537&BBOX=-36556.702679255,-245546.77592733,153943.1944508,-133628.08636341&WIDTH=1440&HEIGHT=846>
*(net::ERR_EMPTY_RESPONSE) *

The mapfile generated by mapserv exists in the tmp folder and the
structure of the file is right. The map file generated has chmod 777 as
well as the folder. Any help would be appreciated.





2015-12-03 14:35 GMT+00:00 Stephen Woodbridge <woodbri at swoodbridge.com<mailto:woodbri at swoodbridge.com>
<mailto:woodbri at swoodbridge.com<mailto:woodbri at swoodbridge.com>>>:

    Please reply to the list so everyone can benefit from the questions
    and answers and there are a lot of other people that might have
    input to the problem.

    On 12/3/2015 5:35 AM, Donald wrote:

        Hi Steve,

        I don't believe that it is a problem with open layers. I tested


    The point is to load the pink tile in a separate window so you can
    view the error message and see why it failed.

        individually one layer at a time and I could conclude that I got the
        pink screen when a certain amount of activated layers are reached
        regardless of the order. Do you know if mapserver has some
        configuration
        that restrict the number of layers to render or some
        configuration about
        memory limit to render the layers ?


    No, I do not think this is the case. How many layers are in your
    mapfile?

    -Steve W

        thanks

        2015-12-02 16:28 GMT+00:00 Stephen Woodbridge
        <woodbri at swoodbridge.com<mailto:woodbri at swoodbridge.com> <mailto:woodbri at swoodbridge.com<mailto:woodbri at swoodbridge.com>>
        <mailto:woodbri at swoodbridge.com<mailto:woodbri at swoodbridge.com> <mailto:woodbri at swoodbridge.com<mailto:woodbri at swoodbridge.com>>>>:


             On 12/2/2015 11:22 AM, Donald wrote:

                 cheers,

                 I have several layers that I can activate. When I
        activate all
                 at once I get
                 a pink screen. If I activate a layer individually by
        selecting
                 one at a time
                 I still get a pink screen even though some layers are
        correctly
                 drawn.  I
                 checked the error log and I the last log line I have says
                 "freeing map at
                 0xa022230". To see the map again I have to unselect all
        layers.

                 Any thoughs on how to solve the problem ?


             Mostly likely it is only one of some of the layers that are
        having
             an issue. So trying, selecting one layer at a time to
        figure out
             which layer is causing the problem.

             Also a "pink screen" sounds like you are using OpenLayers
        and the
             pink is for a failure to render the image. In FireFox,
        right click
             on the pink image and select view image this image or copy
        the image
             url and paste it into a new tab/window and you might get an
        error
             message that would be helpful.

             -Steve W

             _______________________________________________
             mapserver-dev mailing list
        mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>
        <mailto:mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>>
        <mailto:mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>
        <mailto:mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>>>
        http://lists.osgeo.org/mailman/listinfo/mapserver-dev






_______________________________________________
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-dev

_______________________________________________
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20151204/11a26e91/attachment-0001.html>


More information about the mapserver-dev mailing list