Crashes on invalid input data

Bug #320987 reported by Hermann Kraus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
theAdib

Bug Description

I have an (automatically generated) SVG file which contains the following line:
<circle cx="NaN" cy="NaN" r="0.9px" class="housenumber-node" layer="5"/>

When trying to open this file inkscape crashes instead of simply rejecting the file with an error message. The problem is the NaN value.

A minimum test case is attached.

I'm using Inkscape from the debian repositories, but I believe this is not a debian related bug, so I'm reporting it here.

inkscape --version
Inkscape 0.46 (Dec 31 2008)

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

running Win32 build 20539, I cannot reproduce this crash

Revision history for this message
theAdib (theadib) wrote :

confirmed on Ubuntu rev. 20571 . Adib.

Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
theAdib (theadib) wrote :

I put some try{}catch{} around the position where it crashes and put a g_warning.
But we need to have a solution for interactive and noninteractive work to inform user.

sp-object.cpp:1305 rev 20574

HTH, Adib.

theAdib (theadib)
Changed in inkscape:
assignee: nobody → theadib
Revision history for this message
theAdib (theadib) wrote :

put fix committed, No crash anymore. I will try to place a blueprint how to handle gracefully invalid data situations. theAdib.

Changed in inkscape:
status: Confirmed → Fix Committed
ScislaC (scislac)
Changed in inkscape:
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

Bug attachments

Remote bug watches

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