[go: up one dir, main page]

Rotating rectangle crashes Inkscape

Migrated from https://bugs.launchpad.net/inkscape/+bug/1765950

Inkscape 0.92.2 (5c3e80d3, 2017-08-06) on Ubuntu 17.10

Rotating a rectangle (by means of handles) crashes Inkscape. No error code is returned.

In attachment a stripped down SVG (error.svg) that manifest this problem. Rotate SLOWLY! Rotating fast is more difficult to make it happen: it is very position dependent, perhaps linked to some internal division by zero.

Removing the left circle and then rotating (file ok.svg attached to the next comment), it looks like there is no error.

ok.svg

error.svg

Alvin Penner (apenner) wrote on 2018-04-21:

thank you for taking the time to issue a report. problem not reproduced on Windows 10, Inkscape 0.92.3 (2405546, 2018-03-11)

Alessandro Pocaterra (alepoc69) wrote on 2018-04-22: inbox#4

Alvin, thank you for your very quick answer.

It is definitely related to snapping: I couldn't pinpoint which snapping is causing it (it could be a combination of them, because I couldn't find a single one that causes the issue. So it could be related to #1750817.

You gave me the idea to launch it from terminal, and after the crash there is indeed an error message. If you need any test on my side just ask.

inkscape: /build/inkscape-PiBboB/inkscape-0.92.2/src/2geom/elliptical-arc.cpp:573: void Geom::EllipticalArc::_filterIntersections(std::vector<Geom::Intersection<> >&, bool) const: Assertion `are_near(_ellipse.pointAt(t), i->point(), 1e-5)' failed.

Emergency save activated!

Emergency save document locations:
  /home/alex/Desktop/mappa frühlingsfest 2018/error.svg.2018_04_22_12_37_29.0.svg
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.

** (inkscape:3972): WARNING **: The snapmanager has been set up before, but unSetup() hasn't been called afterwards. It possibly held invalid pointers
inkscape: /build/inkscape-PiBboB/inkscape-0.92.2/src/2geom/elliptical-arc.cpp:573: void Geom::EllipticalArc::_filterIntersections(std::vector<Geom::Intersection<> >&, bool) const: Assertion `are_near(_ellipse.pointAt(t), i->point(), 1e-5)' failed.
Aborted (core dumped)