Crash on PDF convert with "Inkscape 0.46 (Oct 24 2008)"

Bug #328611 reported by Troels Liebe Bentsen
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Unassigned

Bug Description

When I try to convert my svg to a PDF with the new beta, it seqfaults, i have provided the svg and the image that makes this happen. You might have to correct the image path to get i working.

tlb@tlbc:~/git/casecompetition/cvbook$ inkscape-devel --export-area-canvas --export-pdf=pages/student-27.pdf pages/student-27.svg

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.
** Message: Error: Inkscape encountered an internal error and will close now.

Segmentation fault

Kind Regards
Troels.

Revision history for this message
Troels Liebe Bentsen (tlbdk) wrote :
Revision history for this message
theAdib (theadib) wrote :

Troels, I can not open the attachment. pls could you attach the svg uncompressed.
Which platform you are working on?
Thx, Adib.

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) wrote :

Troels,

I opened it looked at it and converted it. I tried to reproduce the bug to no avail here is the out put attached.

Revision history for this message
Troels Liebe Bentsen (tlbdk) wrote :

Sorry I'm using the development version of Inkscape 0.46+devel (Feb 2 2009), and it's only here it crashes, the version I pasted in the original bug report was from the stable version where the the conversion works fine.

My platform is 32bit Ubuntu Intrepid and the file I attached is a tar.gz, you can open it with 7zip, winrar og winzip if you are on windows.

The packages I'm using is:
https://launchpad.net/~inkscape-nightly/+archive/ppa

Regards Troels

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) wrote :

Troels,

My version is from a fresh compiled new release. Build 20697 newest svn update compiled in Ubuntu Intrepid with all added mods pdf enabled, added boost, and every thing else I was not able to reproduce. I even downloaded 46 + devel feb 2 2009 and tried the same result. Can you reproduce it every time? If you can do you know how to attach gdb and use it to dump the fault and post it here?
http://wiki.inkscape.org/wiki/index.php/CompilingInkscape.
Part of the testing is to use the one the person is referencing to.

Me saying I can not reproduce the seg fault is good or it could be bad. Maybe the pdf cario is at fault but we need the dump if possible.

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) wrote :

Troels,

Ok I have a way you might have it in /var/crash/ maybe turn on apport to make it go there. in a terminal type sudo nano /etc/default/apport and change enabled from "0" to "1", see if you get the crash that way?

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) wrote :

Troels,

Ok with out correcting the file for image properties I get a seg fault for you it is a forced one.

lajjr@lajjr-laptop:~/Download/pdf-convert-bug$ inkscape-devel --export-area-canvas --export-pdf=student-274.pdf student-27.svg

** (inkscape-devel:2878): WARNING **: <image xlink:href="/home/tlb/git/it-kartellet/code/drupal-5.x/files/participants/ERica.JPG"> did not resolve to a valid image file (base dir is /home/lajjr/Download/pdf-convert-bug), now trying sodipodi:absref="/home/tlb/git/it-kartellet/code/drupal-5.x/files/participants/ERica.JPG"

** (inkscape-devel:2878): WARNING **: Unable to open linked file: /home/tlb/git/it-kartellet/code/drupal-5.x/files/participants/ERica.JPG

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.
** Message: Error: Inkscape encountered an internal error and will close now.

Segmentation fault (core dumped)

Is this similar to one you get?

Are the properties for the image correct.

Revision history for this message
Troels Liebe Bentsen (tlbdk) wrote :

Hi Leo,

Thanks for the help,

More or less except that I don't get the resolve errors as the files are in the right location. I have made a new version of the tar.gz where the image is in the same dir so you don't need to change anything to get the crash.

The properties should be correct as i have about 90 other svg's where it works without a problem. I make all the SVG's from the same base template and i then do keyword replacement with XML::LibXML, all the other convert without problems, this is the first one that gets a crash.

I'm compiling a new version from SVN at the moment, so it will get back with the results of that when it's done.

Revision history for this message
Troels Liebe Bentsen (tlbdk) wrote :

Same result with svn r20697:

/usr/local/bin/inkscape --export-area-canvas --export-pdf=student-27.pdf student-27.svg

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.
** Message: Error: Inkscape encountered an internal error and will close now.

make: *** [svn] Segmentation fault

Revision history for this message
Alvin Penner (apenner) wrote :

running Win32 build 20655 from Feb 9, I get a crash with the attached svg file. I resolved the reference to the image and embedded the image, and still get a crash. The crash also occurs on .png output and .ps output.

Revision history for this message
Alvin Penner (apenner) wrote :

it looks like the image is not the problem. Attached is a reduced version of this file with no image which still crashes on output.
The problem appears to be some Non-Ascii text, such as :
 Enjoys traveling internationally, painting, and salsa dancing

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Joker Wild (lajjr-deactivatedaccount) wrote :

I believe the error is in the text if you save don't check the check box of text it completes fine it is the font style here is the pdf have it fixes it.

Revision history for this message
Troels Liebe Bentsen (tlbdk) wrote :

Yes I can confirm that, but i think it's all valid UTF8, so why the crash?

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) wrote :

Troels,

Was it completely made in Inkscape? If it was then it should convert. I will get it to crash set some breaks point to see what is going on. I will see if there is a easy fix. I will see about converting and the text.

Hope to have an answer for you.

But right now the crash is not set not sure where in the code it is crashing I will get set some break points to see.

try to use a different italicized fonts.

Revision history for this message
Troels Liebe Bentsen (tlbdk) wrote : Re: [Bug 328611] Re: Crash on PDF convert with "Inkscape 0.46 (Oct 24 2008)"

No it's not completely made in Inkscape I added the text with
XML::LibXML. But with your hints I'm now cleaning up the strings
before inserting them into the SVG, so Inkscape does not crash anymore
when i convert the new svg. So my problem is kind of solved. But I
guess the interesting point is why some "bad" text should make it
crash. If you need help with solving that one, let me know.

But thanks everybody for the help so far, I'm amazed every time how
quick I get responses :)

Regards Troels.

2009/2/15 Leo Albert Jackson Jr <email address hidden>:
> Troels,
>
> Was it completely made in Inkscape? If it was then it should convert. I
> will get it to crash set some breaks point to see what is going on. I
> will see if there is a easy fix. I will see about converting and the
> text.
>
> Hope to have an answer for you.
>
> But right now the crash is not set not sure where in the code it is
> crashing I will get set some break points to see.
>
> try to use a different italicized fonts.
>
> --
> Crash on PDF convert with "Inkscape 0.46 (Oct 24 2008)"
> https://bugs.launchpad.net/bugs/328611
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Inkscape: A Vector Drawing Tool: Confirmed
>
> Bug description:
> When I try to convert my svg to a PDF with the new beta, it seqfaults, i have provided the svg and the image that makes this happen. You might have to correct the image path to get i working.
>
> tlb@tlbc:~/git/casecompetition/cvbook$ inkscape-devel --export-area-canvas --export-pdf=pages/student-27.pdf pages/student-27.svg
>
> 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.
> ** Message: Error: Inkscape encountered an internal error and will close now.
>
> Segmentation fault
>
> Kind Regards
> Troels.
>

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) wrote :

Troels,

Well from what I can tell the import export of pdf has some issues, but some complete no problem some don't the images and text are converted to a new format from svg to pdf. Not the easiest of tasks.

Best Regards,
Leo

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) wrote :

I set gdb and attached the output of the seg fault

su_v (suv-lp)
tags: added: exporting
removed: export
Revision history for this message
su_v (suv-lp) wrote :

Could you please test again with the current stable release (0.48.1)? Based on the backtrace attached to comment #17 it is the same issue as Bug #564442 “PDF export: crash in 'CairoRenderContext::_showGlyphs'” which was fixed in trunk and for 0.48.1.

Changed in inkscape:
importance: Undecided → High
status: Confirmed → Incomplete
Revision history for this message
Cameron Thrash (joz-ennn) wrote :

I'm having the same problem and I just built Inkscape with the 0.48.1 release. It crashes on approximately 2% of the .svg files I try to convert (I'm doing hundreds at a time). No difference if I try to convert to a .png or a .pdf:

$ inkscape -f RAxML_bipartitions.250053.svg -A RAxML_bipartitions.250053.svg.pdf

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.
** Message: Error: Inkscape encountered an internal error and will close now.

Segmentation fault: 11

-------------------------------------------------------

Tried to run gdp but it ignored my -f input and kept saying I needed to use -f:

(gdb) run inkscape -f RAxML_bipartitions.250053.svg -A RAxML_bipartitions.250053.svg.pdf
Starting program: inkscape -f RAxML_bipartitions.250053.svg -A RAxML_bipartitions.250053.svg.pdf
No executable file specified.
Use the "file" or "exec-file" command.

Revision history for this message
ScislaC (scislac) wrote :

I can not reproduce this on Ubuntu 13.10 with either 0.48.4 or trunk r12812. Can anyone that previously could reproduce this still reproduce it with 0.48.4 or trunk?

Revision history for this message
jazzynico (jazzynico) wrote :

Tested with the file from comment #11.

Not reproduced on Crunchbang Waldorf (a Debian stable based distro.) with 0.48.3.1 and trunk revision 12816.
Not reproduced on Windows XP, Inkscape 0.48.4 and trunk revision 12812.

Inkscape shows a console message (** Message: Invalid glyph found, continuing...) but the PDF file is created as expected.

Revision history for this message
Alvin Penner (apenner) wrote :

not reproduced on Windows XP, Inkscape rev 12792, using either the file from comment 1 or the file from comment 11.
marking as Fix Released

Changed in inkscape:
status: Incomplete → Fix Committed
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.48.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.