[OSM-dev] Mapnik/Python keeps crashing
maw269 at gmail.com
maw269 at gmail.com
Tue Nov 2 23:52:24 GMT 2010
> > I am having issues rendering tiles from Mapnik for an OSM world map
> > tile server I am creating. I am using Mapnik 0.7.1 on Windows Server
> > 2008 1TB Raid5.
> > When I use generate_tiles.py everything starts out ok but then after a
> > few minutes it keeps crashing.
> > Here is the command line output:
> > Exception in thread Thread-3:
> > Traceback (most recent call last):
> > File "C:\Python25\lib\threading.py", line 486, in __bootstrap_inner
> > self.run()
> > File "C:\Python25\lib\threading.py", line 446, in run
> > self.__target(*self.__args, **self.__kwargs)
> > File "C:\mapnik-0.7.1\generate_tiles_planet.py", line 109, in loop
> > self.render_tile(tile_uri, x, y, z)
> > File "C:\mapnik-0.7.1\generate_tiles_planet.py", line 91, in render_tile
> > mapnik.render(self.m, im)
> > RuntimeError: PSQL error
> > Full sql was: 'SELECT AsBinary("way") AS geom from
> > (select way from planet_osm_line where route='ferry' ) as routes
> > WHERE "way" && SetSRID('BOX3D(1721973.37320845
> > -8609866.866042253,2348145.508920615 -7983694.730330086)'::box3d,
> > 900913)'
> > Any ideas?
> I think multi-threading problems on Windows have been reported before
> but no one has been in a position to debug the exact cause.
> I recently received a modified version of the generate_tiles.py script
> contributed by Bertrand Gervais which uses the python multiprocess
> module which should avoid any threading issues. I have just added this
> into SVN:
> Could you give this a try?
Thanks Jon. I have been rendering tiles now for the past hour or so with no
interuption. It seems that after I got into zoom level 8 or so, the
crashing ceased. However, as you have seen in my other thread regarding my
OSM map label nonsense, I will inevitably have to recreate my tiles once I
figure out why my non english letters are coming out wrong. When I do, I
will love to try the generate_tiles_multiprocess.py.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dev