Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#1492 closed defect (fixed)

creating QUERYMAP of layers with SIZEITEM/ANGLEITEM causes crash

Reported by: karhof@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer CGI Version: 4.6
Severity: critical Keywords:
Cc:

Description

Mapserver (4.6.1) crashes if I want create querymaps with a query on a layer
(point or polygon) which includes SIZEITEM and/or ANGLEITEM in the STYLE-Object. 

For example I have a layer with filled circles in one CLASS where the size
varies with SIZEITEM. If I click on a circle in the query (or nquery) mode then
mapserver hangs up. 
I get neither a querymap nor query results but an “Internal Server Error”.
The same query works fine without creating a querymap.

Some parts of my Mapfile:

NAME BERLIN2
STATUS ON
SIZE 460 380
SYMBOLSET "symbols/symbols.sym"
EXTENT 368711.0 5799080.0 417394.3 5837400.0
UNITS METERS
SHAPEPATH "data2"
IMAGECOLOR 255 255 224
TRANSPARENT OFF
IMAGETYPE PNG

WEB
  TEMPLATE  berlin2.html
  MINSCALE   50000
  MAXSCALE  310000
  IMAGEPATH "c:/ms4w/tmp/ms_tmp/"
  IMAGEURL "/ms_tmp/"
  HEADER templates/head.html
  FOOTER templates/foot.html
END

QUERYMAP
  SIZE 260 210
  STATUS ON
  STYLE HILITE
  COLOR 255 255 0
END

PROJECTION
      "init=epsg:32633"
END

LAYER
    NAME ewabs3_orte
    PROJECTION
      "init=epsg:4326"
    END
    TYPE Point
    DATA portsteile
    STATUS ON
    TEMPLATE templates/ewzahl.html
    TOLERANCE 8
    CLASS
      STYLE
        SYMBOL  punkt # filled circle
        SIZEITEM "EW_SIZE"
        COLOR 0 0 204
        OUTLINECOLOR 0 0 0
      END
    END
END

END

The Apache error.log says:
Premature end of script headers: mapserv_46.exe, referer:
http://localhost/cgi-bin/
.

The same problem occurs if I use ANGLEITEM in a STYLE-Object. If I use SIZE or
ANGLE instead of SIZEITEM or ANGLEITEM in the same layer, mapservers draws the
querymaps correctly.

This happens also in a polygon-layer with SYMBOL HATCH and SIZEITEM/ANGLEITEM in
the STYLE-Object.

Karsten Hoffmann

Change History (7)

comment:1 by sdlime, 19 years ago

If you set STATUS OFF for the querymap what happens?

Steve

comment:2 by karhof@…, 19 years ago

With STATUS OFF for the querymap I get a normal query result without any problems.

Karsten

comment:3 by sdlime, 18 years ago

Status: newassigned
Karsten: There was another similar problem related to sizeitem/angleitem (bug
1392) that I believe is related to this one. I fixed that (I believe) over the
weekend in CVS head (this is not in beta 2). Is there anyway you can test the
CVS version on you end?

Steve

comment:4 by karhof@…, 18 years ago

Sorry Steve, i’m not familiar neither with CVS nor with compiling mapserver. I
can’t test it. If you want I could send you the mapfile, the templates and the
shapefile.
Do you mean bug 1398 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1398
(instead of bug 1392) which is perhaps related to this one? But I don’t use
labels in the layers where the problem occurs.

Karsten

comment:5 by sdlime, 18 years ago

Post (or just email me) the files and I'll try them here.

Steve

comment:6 by sdlime, 18 years ago

Resolution: fixed
Status: assignedclosed
I found and fixed the problem in 4.8. I will backport to 4.6 since the fix is so
simple.

Steve

comment:7 by sdlime, 18 years ago

Fixed in 4.6 as well.

Steve
Note: See TracTickets for help on using tickets.