[mapserver-dev] A couple of problems I've found.

Rahkonen Jukka (Tike) jukka.rahkonen at mmmtike.fi
Sat Oct 18 12:10:07 PDT 2014


Mapserver-users may be quiet but not dead. In your case you did not get an answer from there probably because most people which I classify to Mapserver users do not know what is mapdraw.c or mapkmlrenderer.cpp. Thank you still for posting to mapserver-users because now we users know that there can be some trouble with rendering to KML and if we experience something similar we can refer to your mail.

For me it looks like you’ve done good work with debugging and I believe that it will help the developers  to resolve the issue.

-Jukka Rahkonen-

yeryry wrote

Reposting this here as mapserver-users seems pretty dead...
I think I've discovered two causes of crashes...

First, one with the KML driver...

msDrawQueryLayer creates and draws a temporary layer here:
The KML renderer sets a reference to the temporary layer here:
msDrawQueryLayer later calls msDrawShape here:
which eventually results in a call to KmlRenderer::renderGlyphs
which gets to KmlRenderer::createPlacemarkNode and reuses the reference that was set:
even though that temporary layer was freed earlier, leading to the crash.
And one with WMS:

It crashes around here:
Probably due to trying to set NULL->map... That error message should probably be moved before that line.
In my case though, I was trying to serve KML over WMS, so "not having an image" shouldn't really be an error condition? And that non-square-pixels thing also shouldn't be relevant for vector layers; currently the dimensions of the requested WMS "image" have a big effect on KML output coordinates, which strikes me as broken, so perhaps that whole function should be avoided for vector output.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20141018/f9bf9296/attachment.html>

More information about the mapserver-dev mailing list