[Tilecache] Segmentation fault ERROR when run tilecache_seed.py
Dane Springmeyer
blake at hailmail.net
Sun Dec 13 17:27:27 EST 2009
Petrus,
Actually, I think I know the problem.
On Ubuntu Karmic do:
sudo apt-get install python-cairo
Then let me know if that works (with the python-mapnik package in
Karmic). It looks like a bug specifically in the package, as python-
cairo is a missing dependency.
Dane
On Dec 13, 2009, at 8:55 AM, petrus-v wrote:
>
> Hello Dane,
>
> I didn't success to set mapnik, I had already install from the
> package, so
> I'll install ubuntu 8.04.3 « Hardy Heron » and test it.
>
> Thanks.
>
>
> Dane Springmeyer wrote:
>>
>> Hello Petrus,
>>
>> Short answer: Upgrade to Mapnik trunk, or install mapnik from the
>> apt-
>> repository.
>>
>> Long answer: The Mapnik 0.6.1 release suffers from a shapefile
>> reading
>> bug that only manifests with newer compilers, like those just added
>> to
>> Ubuntu 9.10. We tested on Ubuntu 9.10 beta with no problems but now
>> if
>> you build from source you'll hit this bug. I was able to fix this
>> problem in the Mapnik 0.6.1 package available for Karmic, so try
>> uninstalling your current Mapnik (I assume you installed from
>> source?)
>> and re-installing from packages:
>>
>> That would look like
>>
>> sudo rm /usr/local/lib/libmapnik.dylib
>> sudo rm -rf /usr/local/lib/mapnik/ #careful!
>> and remove the python bindings whose location you can find with:
>> python -c "import mapnik;print mapnik.__file__"
>>
>> Then do:
>>
>> sudo apt-get install python-mapnik
>>
>> Dane
>>
>>
>>
>> On Dec 9, 2009, at 3:04 PM, petrus-v wrote:
>>
>>>
>>> Hi all,
>>>
>>> I'm getting the same error.
>>>
>>> the install success and I get tile when I visit:
>>> http://example.com/yourdir/tilecache.cgi/1.0.0/basic/0/0/0.png
>>>
>>> then I test a Mapnik layer
>>> tilecache.cfg:
>>> [basic_mapnik]
>>> type=MapnikLayer
>>> mapfile=/var/www/wms/data/xml_mapnik/world/world_styles.xml
>>>
>>> which refer to a simple example from mapnik using borderline
>>> world_styles.xml:
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <!DOCTYPE Map>
>>> <Map bgcolor="steelblue" srs="+proj=latlong +datum=WGS84">
>>>
>>> <Style name="My Style">
>>> <Rule>
>>> <PolygonSymbolizer>
>>> <CssParameter name="fill">#f2eff9</CssParameter>
>>> </PolygonSymbolizer>
>>> <LineSymbolizer>
>>> <CssParameter name="stroke">rgb(90%,50%,20%)</CssParameter>
>>> <CssParameter name="stroke-width">0.1</CssParameter>
>>> </LineSymbolizer>
>>> </Rule>
>>> </Style>
>>>
>>> <Layer name="world" srs="+proj=latlong +datum=WGS84">
>>> <StyleName>My Style</StyleName>
>>> <Datasource>
>>> <Parameter name="type">shape</Parameter>
>>> <Parameter
>>> name="file">/var/www/wms/data/shp/world/world_borders</Parameter>
>>> </Datasource>
>>> </Layer>
>>> </Map>
>>>
>>> then I visit:
>>> http://example.com/yourdir/tilecache.cgi/1.0.0/basic_mapnik/
>>> 0/0/0.png
>>> And I get error 500: Internal Server Error
>>> find in the error.log: [Wed Dec 09 23:41:59 2009] [error] [client
>>> 192.168.1.135] Premature end of script headers: tilecache.cgi
>>>
>>> so I install every things to get TileCache Running Standalone under
>>> WSG
>>> then I visit: http://hostname:8080/1.0.0/basic/0/0/0.png I get tile
>>> and change to my mapnik layer
>>> http://hostname:8080/1.0.0/basic_mapnik/0/0/0.png
>>>
>>> In the console get the "Segmentation fault" and the server is
>>> down...
>>> I also get the error on seeding tile when I run the command:
>>> tilecache_seed.py
>>> Is someone have any idea?
>>>
>>> this is my config:
>>> ubuntu server 9.10 (64-bit)
>>> tilecache2.10
>>>
>>>
>>>
>>>
>>> Alphatran wrote:
>>>>
>>>> Dear all members of TileCache Board,
>>>>
>>>> The last time, I configure and run TileCache perfectly. But I'm not
>>>> lucky
>>>> at this time
>>>>
>>>> When I run the command: tilecache_seed.py mytilecachelayername 0 5
>>>>
>>>> It said: "Segmentation fault", no more no less !
>>>>
>>>> I have search through the www but this error may be not popular. I
>>>> hope
>>>> you have experienced on this problem
>>>>
>>>> Please help me!
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/Segmentation-fault-ERROR-when-run-tilecache-seed-py-tp3609752p4142627.html
>>> Sent from the TileCache mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Tilecache mailing list
>>> Tilecache at openlayers.org
>>> http://openlayers.org/mailman/listinfo/tilecache
>>
>> _______________________________________________
>> Tilecache mailing list
>> Tilecache at openlayers.org
>> http://openlayers.org/mailman/listinfo/tilecache
>>
>>
>
> --
> View this message in context: http://n2.nabble.com/Segmentation-fault-ERROR-when-run-tilecache-seed-py-tp3609752p4160184.html
> Sent from the TileCache mailing list archive at Nabble.com.
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
More information about the Tilecache
mailing list