Comment 0 for bug 167416

Revision history for this message
Hans Nieser (hnsr) wrote :

I have an SVG document, created with Inkscape (attached
as 1.svg), in which turning just about any path into a
pattern and then shrinking the pattern using any of the
transformation handles (horizontal/vertical/both)
results Inkscape using 100% CPU and a non-responsive
desktop (Gnome 2.12 in my case). Oddly enough, when I
create a new SVG document file I can't reproduce it as
easily. Also, sometimes it would just hang for a few
seconds but most of the time (seemingly) forever. I've
spent a few hours trying to narrow down what causes it
but this is the best I could do:

To reproduce:

- Open attached SVG document (1.svg).

- Use existing triangle, or create a new path, with or
without fill and/or stroke (any combination seems to
work) of any complexity. *

- Turn the path into a pattern (object(s) to pattern).

- Grab any of the scaling transformation handles on the
pattern and gradually shrink it until it hangs. **

* Actually, not all shapes seem to cause the hang, I
noticed that it doesn't happen on shapes where the
edges are curved outward and no nodes are touching the
bounding box. When I use a new SVG document and start
from scratch it seems almost impossible to cause the
hang, but occasionally it does hang.

** Although the hang occurs with the grid+snap turned
on, with certain shapes and complexities it seems to
only happen (or at least more easily) with snap turned off.

I've tested this with both .43 and latest from svn
(checked out April 9 2006 8:14 CEST)