terminate called after throwing an instance of 'std::length_error'

Bug #235383 reported by John McCabe-Dansted on 2008-05-28
This bug report is a duplicate of:  Bug #229412: Crash when importing certain PDFs. Edit Remove
Affects Status Importance Assigned to Milestone
inkscape (Ubuntu)

Bug Description

Binary package hint: inkscape

When I attempt to open a particular PDF (attached: thesisconsent.pdf), I get the PDF Import Settings window. When I click OK the following error appears on the console:

xp@CoreDuo-desktop:~$ inkscape thesisconsent.pdf terminate called after throwing an instance of 'std::length_error'
  what(): basic_string::append

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.

Other PDFs do not appear to cause this crash, and thesisconsent.pdf opens correctly in xpdf and evince.

ProblemType: Bug
Architecture: i386
Date: Wed May 28 11:02:12 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: inkscape 0.46-0ubuntu2
PackageArchitecture: i386
SourcePackage: inkscape
Uname: Linux 2.6.24-16-generic i686

John McCabe-Dansted (gmatht) wrote :
John McCabe-Dansted (gmatht) wrote :

Filtering the PDF through pdf2ps and then ps2pdf fixed the problem. However, inkscape was not the only program to dislike this pdf.

xp@CoreDuo-desktop:~$ pdfedit ~/thesisconsent.pdf
pdfedit: xrefwriter.cc:715: size_t pdfobjects::XRefWriter::getRevisionSize(unsigned int, bool) const: Assertion `revStart>prevEnd' failed.

xp@CoreDuo-desktop:~$ pdf2ps thesisconsent.pdf

   **** Warning: Fonts with Subtype = /TrueType should be embedded.
                 The following fonts were not embedded:

   **** This file had errors that were repaired or ignored.
   **** The file was produced by:
   **** >>>> Acrobat Distiller 7.0.5 (Windows) <<<<
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.

Thomas Wolfe (tomwolfe) wrote :

I am also having this problem, and your fix did work. Thank you.

However pdf2ps did not report any errors, but after running it through pdf2ps and then ps2pdf it opened fine in inkscape.

attached is the pdf which produced this crash for me.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers