Open tbonfort opened 12 years ago
Author: bartvde@osgis.nl Date: 2004/08/29 - 10:41
I have tried to analyze this a little bit more.
If a do a normal WMS GetMap request, I always get the msBuildPath error. I will
submit my MAP file plus data as an attachment.
If I go through a simple Chameleon application, I get both the msBuildPath error
and the hashtable error, the hashtable error is the first one.
Every error appears with every zoomin, pan etc.
I will also submit my Chameleon MS4W application called Geoservices05. Can the
error logs come from Mapserv CGI only and not from PHP/Mapscript?
Author: bartvde@osgis.nl Date: 2005/02/25 - 15:20
Okay, I have done a bit more analyzing of the msInsertHashTable error message.
I added a little debugging and got at least the key which is getting inserted
with a null value:
msInsertHashTable: Hash table error. Invalid hash table or key (layer_group)
((null))
If I add a GROUP to my LAYER definition though, I get:
msFreeHashItems(): Hash table error. Can't free NULL table
Any ideas on what might be causing this behaviour?
Author: bartvde@osgis.nl Date: 2005/02/25 - 15:52
Also added Steve to the cc as he might know this.
In maptemplate.c there is quite some inconsistency in the way msFreeHashTable is
called.
Sometimes there is a check on if the hashtable is not NULL, sometimes there
isn't. Also, sometimes the hashtable is set explicitly to NULL in maptemplate.c,
but this is already done by the msFreeHashTable function.
One of the following calls causes the msFreeHashItems error which I get when
defining a GROUP on my LAYER:
if (groupArgs)
{
msFreeHashTable(groupArgs);
}
if (layerArgs)
{
msFreeHashTable(layerArgs);
}
if (classArgs)
{
msFreeHashTable(classArgs);
}
So if I give my WMS client layer a GROUP value now (quite useless ofcourse), and
change the code above, I have no error messages anymore in my error file.
But ofcourse this does not seem ideal. Why are the following calls always made
on an optional LAYER parameter such as GROUP? Why is there no check on NULL
values before inserting it into the hashtable?
msInsertHashTable(myHashTable, "layer_group", map->layers[nIdxLayer].group);
Author: bartvde@osgis.nl Date: 2005/02/25 - 15:53
Changed the summary to something more appropriate.
Reporter: bartvde@osgis.nl Date: 2004/08/29 - 10:35