[Tilecache] Problem with tilecache_seed.py

Christopher Schmidt crschmidt at metacarta.com
Mon Nov 10 09:52:49 EST 2008


On Mon, Nov 10, 2008 at 08:19:14AM -0500, Alexandre Dube wrote:
> Hi,
> 
>   I still have problems pre-generating tiles with the tilecache_seed.py 
> command.  After a couple of failed tries, I finally gave up on metaTile, 
> but it seems like the problem may be elsewhere because again I get 
> errors after a couple of script running :

I recommend not using a MapServer layer, and using a WMS layer instead,
talking to a local mapserver install.

The former will sufer from memory leaks because the memory usage of
mapserver is in process -- with a seperate mapserv, memory leaks go away
when the process dies.

> Traceback (most recent call last):
>   File "./tilecache_seed.py", line 9, in <module>
>     TileCache.Client.main()
>   File "/home/mapgears/tilecache/TileCache/Client.py", line 108, in main
>     seed(svc, base, layer, map(int, sys.argv[3:5]), map(float, 
> sys.argv[5].split(",")))
>   File "/home/mapgears/tilecache/TileCache/Client.py", line 92, in seed
>     svc.renderTile(tile)
>   File "/home/mapgears/tilecache/TileCache/Service.py", line 138, in 
> renderTile
>     data = layer.render(tile)
>   File "/home/mapgears/tilecache/TileCache/Layer.py", line 437, in render
>     return self.renderTile(tile)
>   File "/home/mapgears/tilecache/TileCache/Layers/MapServer.py", line 
> 51, in renderTile
>     mapImage = wms.draw()
>   File "/home/mapgears/fgs-5.2.0/www/lib/python2.5/mapscript.py", line 
> 1363, in draw
>     def draw(*args): return _mapscript.mapObj_draw(*args)
> _mapscript.MapServerError: msDrawMap(): Image handling error. Failed to 
> draw layer named 'mos'.
> msDrawRasterLayerGDAL(): Memory allocation error. Allocating work image 
> of size 256x256 failed.
> 
>   I'm running out of ideas.  Can anybody help me, please ?
> 
> -- 
> Alexandre Dubé
> Mapgears
> www.mapgears.com
> 
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache

-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list