Opened 16 years ago
Closed 15 years ago
#2645 closed defect (invalid)
AGG PNG to be used for complicated
Reported by: | purnomod | Owned by: | tbonfort |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | AGG | Version: | unspecified |
Severity: | major | Keywords: | AGG Quantized |
Cc: |
Description
This bug is related to the ticket#2436 (support of paletted rgba output -http://trac.osgeo.org/mapserver/ticket/2436).
I have applied the additional of paletted png output for rgba images, using the same OUTPUTFORMAT options as for rgb images, i.e QUANTIZE_FORCE and PALETTE_FORCE. It worked very well with most of the layers. However, whenI try to open a complicated layer (lots of overlaping polygon or layers with numerous nodes) it did not work, instead it gave "Internal server error" message
I trace the request and in between the information I found something peculiar:
connect(7, {sa_family=AF_FILE, path="/var/tmp/lighttpd/mapserver-fastcgi.socket-4"}, 46) = 0
write(3, "2008-06-12 18:49:11: (mod_fastcgi.c.2961) got proc: pid: 4089 socket: unix:/var/tmp/lighttpd/mapserver-fastcgi.socket-4 load: 1 \n", 129) = 129
getsockname(6, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("151.130.36.20")}, [16]) = 0
writev(7, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\4
\0\0\17\17SERVER_SOFTWARElighttpd/1.4.19\v\6SERVER_NAMEdesa99\21\7GATEWAY_INTERFACECGI/1.1\v\2SERVER_PORT80\v\rSERVER_ADDR151.130.36.20\v\4REMOTE_PORT1654\v\16REMOTE_ADDR151.130.157.10\v\20SCRIPT_NAME/cgi-bin/mapserv\t\0PATH_INFO\17\24SCRIPT_FILENAME/tmp/cgi-bin/mapserv\r\5DOCUMENT_ROOT/tmp/\v\200\0\0\354REQUEST_URI/cgi-bin/mapserv?&LAYERS=DOIR-003&BBOX=115.807733483916,-33.4174335225006,122.623742022294,-27.8096341968344&service=wms&version=1.1.1&request=getmap&width=800&height=800&format=GDPNG&srs=EPSG:4283&styles=&map=/slip/dev/DV/wmspublic.map\f\200\0\0\333QUERY_STRING&LAYERS=DOIR-003&BBOX=115.807733483916,-33.4174335225006,122.623742022294,-27.8096341968344&service=wms&version=1.1.1&request=getmap&width=800&height=800&format=GDPNG&srs=EPSG:4283&styles=&map=/slip/dev/DV/wmspublic.map\16\3REQUEST_METHODGET\17\3REDIRECT"..., 1148}, {"\1\5\0\1\0\0\0\0", 8}], 2) = 1156
write(3, "2008-06-12 18:49:11: (connections.c.1744) state at exit: 6 handle-req \n", 71) = 71
accept(4, 0xbfebcdd0, [112]) = -1 EAGAIN (Resource temporarily unavailable)
time(NULL) = 1213267752
poll([{fd=4, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=7, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}], 16, 1000) = 0
time(NULL) = 1213267753
poll([{fd=4, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=7, events=POLLIN, revents=POLLIN}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}, {fd=-1}], 16, 1000) = 1
ioctl(7, FIONREAD, [8192]) = 0
read(7, "\1\6\0\1\37\370\0\0Content-type: image/png\n\n\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\3 \0\0\3 \10\6\0\0\1\254w6\376\0\0 \0IDATx\234\354\275K\250m\313\273\37Ts{\21\215\35\265!\356c\24\305\213\370\270F\33\271b+\212\4\5\263wG\202\n\356#\"\330\262\241\3308\210\202\30\2\n\33\304\236\222V0;\215\4\354\355#\22\10\n\n\22\224\250\0204\r\221\20\275\254\235`\307\216\212D\0356\326\251\271\276\371\233\277\337\367\250\307\230s\377\357
The following is the mapfile setting for the layer
LAYER
NAME "DOIR-003A"
GROUP "BUSECY"
PROCESSING "CLOSE_CONNECTION=DEFER" #
CONNECTION "host=desa01 dbname=land_uat user=xxxx password=xxxx port=5432"
CONNECTIONTYPE postgis
DATA "the_geom from prod_4283.doir_003a using unique gid"
DEBUG ON
STATUS ON
DUMP true #required for wfs
TYPE polygon
TEMPLATE 'demo.html'
MINSCALEDENOM 1
MAXSCALEDENOM 1000000000
METADATA
"wms_title" "Mining Tenements (DOIR-003)"
"wms_srs" "EPSG:4283 EPSG:4326 EPSG:28349 EPSG:28350 EPSG:28351 EPSG:28352"
"wms_group_title" "Business and Economy"
"wms_extent" "104.00 -36.00 129.00 -9.00"
"ows_include_items" "all" ## optional (serves all attributes for layer)
END #METADATA
PROJECTION
"init=epsg:4283"
END #PROJECTION
CLASSITEM "tenstatus"
LABELITEM "fmt_tenid"
CLASS
NAME "PENDING"
EXPRESSION("[tenstatus]" eq "PENDING")
STYLE
SYMBOL 'hatch135'
OUTLINECOLOR 0 92 230
COLOR 0 92 230
SIZE 5
END #STYLE
LABEL
TYPE TRUETYPE
FONT "fritqat"
SIZE 8
ANTIALIAS TRUE
COLOR 0 0 0
POSITION CC
ANGLE 0
OFFSET 0 0
MINFEATURESIZE 50
END #LABEL
END #CLASS
CLASS
NAME "LIVE"
EXPRESSION("[tenstatus]" eq "LIVE")
STYLE
SYMBOL 'hatch45'
OUTLINECOLOR 76 230 0
COLOR 76 230 0
SIZE 5
END #STYLE
LABEL
TYPE TRUETYPE
FONT "fritqat"
SIZE 8
ANTIALIAS TRUE
COLOR 0 0 0
POSITION CC
ANGLE 0
OFFSET 0 0
MINFEATURESIZE 50
END #LABEL
END #CLASS
END #LAYER
Attached also a sample of data set. The sample attached is quite small and the issue is not consistently appeared when you pan around the layer. I have a better sample of the dataset (around 1MB) but I am worried that it will be too big for this. Please email me, if a large sample is required.
Attachments (1)
Change History (4)
by , 16 years ago
Attachment: | DOIR-003b.zip added |
---|
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Summary: | Quantized → AGG PNG to be used for complicated |
---|
Also just found out that it seems that these complicated images does not work with a usual AGG/PNG as well.
OUTPUTFORMAT
NAME "AGGPNG" MIMETYPE "image/png" DRIVER AGG/PNG IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON
END
comment:3 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
seems more like a problem with the server setup as the image is generated.
please come up with a reproducible test-case (i.e. a mapfile and data with a size and extent that triggers the problem) if you feel this should be reopened
The issue happens to both for fastcgi or cgi version.