Opened 17 years ago
Closed 17 years ago
#2201 closed defect (duplicate)
msFreeHashItems getting called on an empty hash in freeLayer
Reported by: | hobu | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | 5.0 release |
Component: | MapServer C Library | Version: | 5.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
Continuing. Traceback (most recent call last): File "render.py", line 16, in ? li = mo.insertLayer(layer) File "/Users/hobu/svn/mapserver/mapscript/python/mapscript.py", line 775, in insertLayer def insertLayer(*args): return _mapscript.mapObj_insertLayer(*args) _mapscript.MapServerError: msFreeHashItems(): Hash table error. Table has no items
This is caused by
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapfile.c?rev=6451#L2495
It doesn't make a lot of sense though. I created an empty mapObj in mapscript and proceeded to put a layerObj on it. I didn't fiddle with the layer's metadata at all. Is this pointer being created when a layer is created now?
Note:
See TracTickets
for help on using tickets.
Howard: Can you post a snippet that creates the error?
Steve