[mapserver-dev] mapswf.c : mappostgis.c complains that the layer is closed

Yewondwossen Assefa yassefa at dmsolutions.ca
Wed Feb 16 08:09:09 EST 2011


Hi,

  I have added a trac bug on this [1] with patch for the 5.6 branch.  I 
have cc'd you in the trac bug. Could you please give it a try and update 
the bug
  The problem is related to upgraded done with the queries between the 2 
versions.

regards,

[1]:http://trac.osgeo.org/mapserver/ticket/3691

On 15/02/2011 1:15 PM, Laurent BAEY wrote:
> Hello
>
> I upgraded from 5.2 to 5.6.6.
>
> When drawing the labels with the SWF-MULTIPLE driver, I get the error :
> httpd2-prefork: mappostgis.c:1882: msPostGISLayerResultsGetShape:
> Assertion `layer->layerinfo != ((void *)0)' failed.
>
> If I get it right, we're trying to get info from Postgis, but the layer is
> closed.
> Therefore, msPostGISLayerResultGetShape complains that layer->layerinfo is
> null.
>
> It happens when the msDrawStartShapeUsingIdxSWF function is called in
> msDrawLabelCacheSWF.
>
> By adding a msDebug call, I can confirm in the ms_error log the layer is
> closed :
> [Tue Feb 15 19:01:04 2011].858201 msPostGISReadShape: [type] "village"
> [Tue Feb 15 19:01:04 2011].858206 msPostGISReadShape: [name] "Kesztölc"
> [Tue Feb 15 19:01:04 2011].858280 msPostGISLayerNextShape called.
> [Tue Feb 15 19:01:04 2011].858290 msPostGISLayerFreeItemInfo called.
> [Tue Feb 15 19:01:04 2011].858297 msPostGISLayerClose called: the_geom
> FROM hun_places
> [Tue Feb 15 19:01:04 2011].858308 msConnPoolRelease(HUN_villes,user=xxxx
> password=xxxx dbname=xxxx host=localhost port=5432,0x8089a0d8)
> [Tue Feb 15 19:01:04 2011].858317 msConnPoolClose(user=xxxx password=xxxx
> dbname=xxxx host=xxxx port=5432,0x8089a0d8)
> [Tue Feb 15 19:01:04 2011].858420 msDrawMap(): Layer 3 (HUN_villes),
> 0.044s
> [Tue Feb 15 19:01:04 2011].858442 calling msDrawStartShapeUsingIdxSWF
> (bLayerOpen = 0)
>
> Is there another problem I didn't catch ?
> Has something changed since mapserver 5.2 concerning postgis layer
> manipulation, but hasn't been commited in mapswf.c for labelcache drawing ?
>
> Thank you for help
>
> Laurent
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------




More information about the mapserver-dev mailing list