In any case, bad data should be handled gracefully, not with a killer assertion.
The general rule is to be forgiving on input, strict on output.
bob
-----Original Message-----
From: Marco <mrcekets@...400...> Sent: Jun 26, 2008 11:12 AM To: Marco <mrcekets@...400...>, "Jon A. Cruz" <jon@...18...> Cc: "inkscape-devel@lists.sourceforge.net" inkscape-devel@lists.sourceforge.net, "lib2geom-devel@lists.sourceforge.net" lib2geom-devel@lists.sourceforge.net, njh <njh@...1927...> Subject: Re: [Inkscape-devel] Crash in 2geom ellipse parsing
On Thu, 26 Jun 2008 17:49:38 +0200, Marco <mrcekets@...400...> wrote:
On Thu, 26 Jun 2008 17:02:00 +0200, Jon A. Cruz <jon@...18...> wrote:
We've gotten bug #243232 that is due to an assertion in 2geom being triggered.
terminate called after throwing an instance of 'Geom::RangeError' what(): lib2geom exception: there is no ellipse that satisfies the given constraints (2geom/elliptical-arc.cpp:616)
https://bugs.launchpad.net/inkscape/+bug/243232
Can someone familiar with that area take a look?
Could it be a parsing error ? I tried to create EllipticalArc instances using the data presents in the path command that caused the assertion failure and all seem to work fine.
- Marco
No sorry I was wrong! There is really a problem with the passed data. The following line is the command that causes the assertion: "M 9.0625 10.21875 A 0.6384567 0.6384567 0 1 0 8.1875 11.15625"
I'm analizing the problem.
- Marco
-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel