Inkscape 0.48 crash converting svg to pdf/tex

Bug #1465820 reported by Rui Pedro Cunha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
High
Unassigned

Bug Description

I have been using Inkscape to convert my images from svg/svgz to tex, so I can include them on Latex.
Now, I encountered a problem with the graphic attached.
The command I use is

inkscape -D -z --file=SVG_FILE_NAME --export-pdf=OUTPUT_FILE_NAME.pdf --export-latex

and it crashes with the message:

"terminate called after throwing an instance of 'Inkscape::Extension::Output::save_failed'

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.

Aborted (core dumped)"

=====
Information taken from SVG file:

Inkscape version:
   inkscape:version="0.48.4 r9939"

Original creator:
  <desc
     id="desc4">Matlab Figure Converted by PLOT2SVG written by Juerg Schwizer</desc>

Revision history for this message
Rui Pedro Cunha (gasoile) wrote :
Revision history for this message
su_v (suv-lp) wrote :
Download full text (4.8 KiB)

AFAICT triggered by one problematic SVG element (not created by Inkscape) with insanely huge coordinates:

          <polyline
             points="-19240000000000000702276078965829553688696424669028578348990269387743304133025544747741590434651045888.000,132.503 -19240000000000001248651704904315854884795085963143270842167192871157544485097784986808420648615936.000,132.503 -19240000000000000626153433164503988287677470556437078222987755308673872208973813360267435704320.000,132.503 -19240000000000001205113879351084965405532395599876617489337678636876692406261733399833083904.000,132.503 -19239999999999997134298242101687470045614953888192357022814780235450612894081045621637120.000,132.503 -19240000000000002517660392598327224244724526464272209934679778528352125920849940185088.000,132.503 -19239999999999996640392019159487749007315237493992723081782294414507325040262905856.000,132.503 -19239999999999997061641185833716495798987348228674452357362676016703770057506816.000,132.503 -19239999999999998964255830236360982040670465560610973743651020655530487054336.000,132.503 -19239999999999998863822202470174089819297834789288311086013333544105934848.000,132.503 -19240000000000001242255281894033597991452420926568164062296451173056512.000,132.503 -19239999999999998416716628422551015393250089618185606765246194647040.000,132.503 -19239999999999999819758200260217816868787529025817305634941435904.000,132.503 -19239999999999999682742421760445668287192075958665772542197760.000,132.503 -19240000000000002804846749554732908102192634129436383379456.000,132.503 -19240000000000000975488744987767728523090744576250478592.000,132.503 -19240000000000000720276969797063880925559789002424320.000,132.503 -19240000000000001135660718479850091207999495340032.000,132.503 -19239999999999998559794698816087947366698582016.000,132.503 -19239999999999998084425723730501921805434880.000,132.503 -19239999999999999438422641698886597476352.000,132.503 -19239999999999999381754243904450854912.000,132.503 -19239999999999997407952628017528832.000,132.503 -19240000000000002848300977881088.000,132.503 -19240000000000000772423024640.000,132.503 -19239999999999999312134144.000,132.503 -19240000000000002097152.000,132.503 -19240000000000000000.000,132.503 -19239999999999920.000,132.503 -19239999999921.438,132.503 -19239999921.440,132.503 -19239921.440,132.503 -19161.440,132.503 59.320,132.503 78.560,132.503 97.800,132.503 19318.560,132.503 19240078.560,132.503 19240000078.560,132.503 19240000000078.559,132.503 19240000000000080.000,132.503 19240000000000000000.000,132.503 19240000000000002097152.000,132.503 19239999999999999312134144.000,132.503 19240000000000000772423024640.000,132.503 19240000000000002848300977881088.000,132.503 19239999999999997407952628017528832.000,132.503 19239999999999999381754243904450854912.000,132.503 19239999999999999438422641698886597476352.000,132.503 19239999999999998084425723730501921805434880.000,132.503 19239999999999998559794698816087947366698582016.000,132.503 19240000000000001135660718479850091207999495340032.000,132.503 19240000000000000720276969797063880925559789002424320.000,132.503 19240000000000000975488744987767728523090744576250478592.000,132.503 1924000000000...

Read more...

tags: added: exporting pdf renderer-cairo
su_v (suv-lp)
description: updated
Revision history for this message
su_v (suv-lp) wrote :

On 2015-06-17 03:18 (+0200), ~suv wrote:
> This prevents the file to be opened at all in Inkscape 0.91 and
> trunk (new cairo-based renderer).

Similar observation with another PLOT2SVG-generated SVG file:
* Bug #888559 “Inkscape crashes on the attached file, which is fin...”
  https://bugs.launchpad.net/inkscape/+bug/888559
(see comments 5 and 6)

Revision history for this message
su_v (suv-lp) wrote :

Attached modified version of 'PI_controller_step_resp.svgz':
- opens ok with 0.48.5, 0.91, 0.91+devel r14202
  (without excessive memory usage in >= 0.91)
- exports to PDF ok (with or without --export-latex)
  using 0.48.5, 0.91 and 0.91+devel r14202

Modification (externally edited in vim) for testing:
Replaced the points of 'polyline31' with a diagonal line across the defined viewBox size:

          <polyline
             points="0,0 512,384"
             id="polyline31"
             stroke-dasharray="2.0,2.0"
             stroke-width="0.5pt"
             stroke="#000000"
             fill="none" />

Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Rui Pedro Cunha (gasoile) wrote :

Thanks! changing the svg worked well importing to latex!
But it would be cool if inkscape could correct this kind of anomalies on files...

Changed in inkscape:
status: Confirmed → Invalid
Revision history for this message
Jonathan Hofinger (jhofinger) wrote (last edit ):

Hi - thanks for reporting this bug, I've manually migrated the crash on open to Inkscape's new
bug tracker on GitLab, and closed it here.

Please feel free to file new bugs about the issues you're seeing at
http://inkscape.org/report.

Moved to: https://gitlab.com/inkscape/inbox/-/issues/6486
Closed by: https://gitlab.com/jhofinger

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.