Tavmjong Bah wrote:
On Fri, 2006-05-19 at 00:57 -0300, bulia byak wrote:
I have committed the patch by Ulf Erikson that adds native PDF export (based on PS export code). It has many limitations but at least it's better than what we have now, because it does not require Ghostscript and, most importantly, handles transparency. Complex illustrations, such as this one:
I've tried to use this in the lastest SVN. I get an "Inkscape encountered an internal error and will close now." message. Running under gdb I get:
*** glibc detected *** /home/tavmjong/sandbox/bin/inkscape: munmap_chunk(): invalid pointer: 0x0b9fa47c ***
Output of 'where':
#6 0x083768d5 in PdfFile::end_page (this=0xba1f1f8, page=0xba243c0) at extension/internal/pdf-mini.h:315
Line 315 of pdf-mini.h reads "delete resources;", but since 'resources' was allocated with "new PdfXref[11]();" it must be "delete[] resources;". Such a fault is likely to cause memory corruption and/or a crash. Can someone able to reproduce this crash please try the fix and report back?