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?

Change History (4)

comment:1 by sdlime, 17 years ago

Status: newassigned

comment:2 by sdlime, 17 years ago

Howard: Can you post a snippet that creates the error?

Steve

comment:3 by hobu, 17 years ago

This bug is caused by #2203

comment:4 by hobu, 17 years ago

Resolution: duplicate
Status: assignedclosed

Duplicate of #2203

Note: See TracTickets for help on using tickets.