PDF rendering errors (cairo Context.restore without matching Context.save) #1790

Closed
craigds opened this Issue Apr 1, 2013 · 1 comment

Comments

Projects
None yet
3 participants

craigds commented Apr 1, 2013

test case: https://gist.github.com/craigds/961b3340aa46afc6c1ec

Traceback (most recent call last):
  File "./mapnik_pdf_test.py", line 39, in <module>
    page.render_map(m, "output.pdf")
  File "/usr/lib/pymodules/python2.6/mapnik/printing.py", line 613, in render_map
    render_map()
  File "/usr/lib/pymodules/python2.6/mapnik/printing.py", line 610, in render_map
    ctx.restore()
cairo.Error: Context.restore without matching Context.save
python: /build/buildd/cairo-1.8.10/src/cairo.c:218: cairo_destroy: Assertion `((*&(&cr->ref_count)->ref_count) > 0)' failed.
Aborted

with mapnik 2.1.0 and python-cairo 1.8.8-1 on ubuntu 10.04.4

cc @rcoup

rcoup was assigned Apr 1, 2013

Owner

springmeyer commented Feb 9, 2014

Pretty sure I fixed this in 86dfa07#diff-8bebdff030c2ae7fa18b66719ab9d236

springmeyer closed this Feb 9, 2014

springmeyer added this to the Mapnik 3.x milestone Feb 9, 2014

@Furcube Furcube pushed a commit to Furcube/mapnik that referenced this issue Oct 12, 2014

Ilya Danilyuk Applied fix for #1790
Updated deps
Fixed agg_conv_adaptor_vpgen.h to initialize variabled
a921e1c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment