[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] cairo null pointer
From: |
Florian Lohoff |
Subject: |
[Maposmatic-dev] cairo null pointer |
Date: |
Thu, 19 Sep 2013 10:41:00 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi,
i am trying to run render.py on a Debian/Wheezy with mapnik of yesterday
and get a "very helpful" error message of cairo. As the path implies
its the Debian/Wheezy cairo.
Too old cairo? Too new mapnik?
address@hidden:~/ocitysmap$ ./render.py -t "Rheda" --osmid=-78727 -L
de_DE.UTF-8 -l plain --orientation=landscape
DEBUG:ocitysmap:Reading OCitySMap configuration from
/home/maposmatic/.ocitysmap.conf...
DEBUG:ocitysmap:Found 1 Mapnik stylesheets.
DEBUG:ocitysmap:Looking up bounding box and contour of OSM ID -78727...
INFO:ocitysmap:Connecting to database maposmatic on localhost:5432 as
maposmatic...
DEBUG:ocitysmap:Configured statement timeout: 15min.
DEBUG:ocitysmap:Looking up bounding box and contour of OSM ID -78727...
DEBUG:ocitysmap:Map represents 13809x12052m, needs at least 233.1x203.5cm on
paper.
DEBUG:ocitysmap:Best fit is 239.0x224.8cm.
INFO:ocitysmap:Rendering with renderer plain in language: de_DE.UTF-8 (rtl:
False).
DEBUG:ocitysmap:Looking up bounding box and contour of OSM ID -78727...
DEBUG:ocitysmap:Looking up bounding box and contour of OSM ID -78727...
DEBUG:ocitysmap:Rendering in temporary directory /tmp/ocitysmapZzmCwL
INFO:ocitysmap:Rendering to PDF format...
INFO:ocitysmap:Getting streets...
DEBUG:ocitysmap:Got 662 streets.
INFO:ocitysmap:Getting amenities for Places of worship/place_of_worship...
DEBUG:ocitysmap:Got 9 amenities for Places of worship/place_of_worship.
INFO:ocitysmap:Getting amenities for Education/kindergarten...
DEBUG:ocitysmap:Got 13 amenities for Education/kindergarten.
INFO:ocitysmap:Getting amenities for Education/school...
DEBUG:ocitysmap:Got 33 amenities for Education/school.
INFO:ocitysmap:Getting amenities for Education/college...
DEBUG:ocitysmap:Got 33 amenities for Education/college.
INFO:ocitysmap:Getting amenities for Education/university...
DEBUG:ocitysmap:Got 33 amenities for Education/university.
INFO:ocitysmap:Getting amenities for Education/library...
DEBUG:ocitysmap:Got 34 amenities for Education/library.
INFO:ocitysmap:Getting amenities for Public buildings/townhall...
DEBUG:ocitysmap:Got 2 amenities for Public buildings/townhall.
INFO:ocitysmap:Getting amenities for Public buildings/post_office...
DEBUG:ocitysmap:Got 3 amenities for Public buildings/post_office.
INFO:ocitysmap:Getting amenities for Public buildings/public_building...
DEBUG:ocitysmap:Got 7 amenities for Public buildings/public_building.
INFO:ocitysmap:Getting amenities for Public buildings/police...
DEBUG:ocitysmap:Got 9 amenities for Public buildings/police.
DEBUG:ocitysmap:Got 2 villages for Villages.
DEBUG:ocitysmap:Corrected bounding box from BoundingBox(51.8980,8.1996
51.7896,8.4009) to BoundingBox(51.8982,8.1996 51.7895,8.4009), ratio: 1.14.
INFO:ocitysmap:MapCanvas rendering map on 6744x5896px.
DEBUG:ocitysmap:Created layer shade in PolyShapeFile
/tmp/ocitysmapZzmCwL/shade.shp.
DEBUG:ocitysmap:Added shape file /tmp/ocitysmapZzmCwL/shade.shp to map canvas
as layer shade.
INFO:ocitysmap:Laying out grid on 13809.1x12086.8m area...
INFO:ocitysmap:Using 250.0x250.0m grid (55.2365618296x48.3472078381 squares).
DEBUG:ocitysmap:Created layer grid in LineShapeFile
/tmp/ocitysmapZzmCwL/grid.shp.
DEBUG:ocitysmap:Added shape file /tmp/ocitysmapZzmCwL/grid.shp to map canvas as
layer grid.
DEBUG:ocitysmap:Creating CSV file citymap.csv...
INFO:ocitysmap:SinglePageRenderer rendering on 2390x2248mm paper at 72 dpi.
DEBUG:ocitysmap:Mapnik scale: 1/11864.514489
DEBUG:ocitysmap:Actual scale: 1/5856.905729
DEBUG:ocitysmap:Cleaning up /tmp/ocitysmapZzmCwL...
Traceback (most recent call last):
File "./render.py", line 243, in <module>
sys.exit(main())
File "./render.py", line 238, in main
options.output_prefix)
File "/home/maposmatic/ocitysmap/ocitysmap/__init__.py", line 462, in render
file_prefix)
File "/home/maposmatic/ocitysmap/ocitysmap/__init__.py", line 521, in
_render_one
renderer.render(surface, dpi, osm_date)
File
"/home/maposmatic/ocitysmap/ocitysmap/layoutlib/single_page_renderers.py", line
408, in render
ctx.restore()
cairo.Error: NULL pointer
python: /tmp/buildd/cairo-1.12.2/src/cairo.c:301: cairo_destroy: Assertion
`((*&(&cr->ref_count)->ref_count) > 0)' failed.
Aborted
--
Florian Lohoff address@hidden
signature.asc
Description: Digital signature
- [Maposmatic-dev] cairo null pointer,
Florian Lohoff <=