[Mapserver-dev] msLookupHashTable: Hash table error

Howard Butler hobu at iastate.edu
Fri Apr 16 17:27:45 EDT 2004


List,

I'm getting an error with an older WMS server that has worked on older 
versions of MapServer and works fine with the ArcMap WMS Connector.  We're 
grabbing data from Iowa...

Here is the relevant mapfile fragment
LAYER
   NAME cir
   METADATA
     "wms_title" "Iowa CIR"
     "wms_srs"   "EPSG:26915"
   END
   STATUS OFF
   TYPE RASTER
   DEBUG ON
   MAXSCALE 100000
   CONNECTIONTYPE WMS
   CONNECTION 
"http://cairo.gis.iastate.edu/cgi-bin/server.cgi?wmtver=1.0.0&layers=doqqs&format=jpg"
   PROJECTION
     "init=epsg:26915"
   END
END

Debug shows it downloading correctly (and the HTTP request hit against the 
server gives the proper image)

[Fri Apr 16 16:16:51 2004].449881 HTTP: Starting to prepare HTTP requests.
[Fri Apr 16 16:16:51 2004].449923 HTTP request: id=1, 
http://cairo.gis.iastate.edu/cgi-bin/server.cgi?wmtver=1.0.0&layers=doqqs&format=jpg&REQUEST=map&HEIGHT=600&SRS=EPSG:26915&WIDTH=800&BBOX=363411%2E365332%2C4564460%2E840476%2C365246%2E068153%2C4565842%2E683506&EXCEPTIONS=INIMAGE
[Fri Apr 16 16:16:51 2004].450602 HTTP: Before download loop
[Fri Apr 16 16:16:52 2004].30413 msHTTPWriteFct(id=1, 4096 bytes)
.
.
.
[Fri Apr 16 16:16:52 2004].90104 msHTTPWriteFct(id=1, 1554 bytes)
[Fri Apr 16 16:16:52 2004].212308 HTTP: After download loop
[Fri Apr 16 16:16:52 2004].212350 msHTTPExecuteRequests() timing summary 
per layer (connect_time + time_to_first_packet + download_time = total_time 
in seconds)
[Fri Apr 16 16:16:52 2004].212421 Layer 1: -181547.051 + 0.489 + 0.155 = 
-181546.407s
[Fri Apr 16 16:16:52 2004].212821 msDrawRasterLayerLow(cir): entering.
[Fri Apr 16 16:16:52 2004].235302 msResampleGDALToMap in effect: cellsize = 
2.293379
[Fri Apr 16 16:16:52 2004].242909 msDrawGDAL(cir): using RAW_WINDOW=0 0 800 599


And finally, when it comes up to draw, it throws this error (with Python 
MapScript).

Traceback (most recent call last):
   File "/usr/local/apache/cgi-bin/dataview.py", line 294, in ?
     img = map.draw()
   File "/usr/local/lib/python2.3/site-packages/mapscript.py", line 1150, 
in draw
     def draw(*args): return _mapscript.mapObj_draw(*args)
_mapscript.MapServerError: msLookupHashTable: Hash table error. Invalid 
hash table or key

If I turn off the layer, the rest of the map draws fine.  This is with 
today's (an hour ago's) CVS.  Other WMS requests (to TerraServer) work 
fine.  I have never seen this error, and some searching on the list for 
previous tracking showed that this is related to the CONFIG option (Sean 
and Frank were talking a bit about it).  Is this error masking something 
else, or is it really the error?  If so, is it related to a Metadata option 
that is missing (other WMS requests to TerraServer have the same options 
and work fine)?

Any ideas would be greatly appreciated.

Howard

--------------------------------------------------------
Howard Butler
Department of Statistics
Center for Survey Statistics and Methodology
Iowa State University
212 Snedecor Hall
Ames, IA 50011
--------------------------------------------------------
http://hobu.net
-------------------------------------------------------- 




More information about the mapserver-dev mailing list