freezes and lags when copy-pasting bezier lines with end arrow

Bug #1665158 reported by jfernace
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Medium
Unassigned

Bug Description

I use a lot of arrows to draw diagrams, often copy-pasting or duplicating to make new ones of the same shape/curve. I've found that, over time, the speed of this action slows down considerably. It is now to a point where trying to do that action causes Inkscape to freeze and often crash (mostly "too many heap sections"). Opening of the svg file with these types of diagrams also takes a long time (~5-10 minutes) whereas a new document takes about a minute. Deleting these arrow-curves can also cause Inkscape to not respond.

I think this is probably related to Bug #1550902 (Marker list gets filled up with duplicates (inkscape = 0.91)) and Bug #1506026 (Performance regressions with auto-updating marker colors (Inkscape >= 0.91)). My list of used arrow heads in the marker list is large (over 100 at least). Attached is a file with such an issue.

Currently use Windows 10 64bit, Inkscape 0.92.0 r15299
I have replicated the issue using Inkscape 0.91 on Windows XP computer and Windows 10.
I do NOT see the issue when non-capped lines are copied/duplicated; only when it has an end cap (arrow).

Revision history for this message
jfernace (jfernace) wrote :
Revision history for this message
jfernace (jfernace) wrote :

Just found a workaround: If I copy and paste the entire schematic into a new file, the problem goes away. The marker list goes back to the default set without duplicates. Copy-pasting is smooth again. Interestingly, the file size drops from 3 MB to ~250 KB, indicating that some sort of memory build up is an issue (or can become one).

Revision history for this message
Mc (mc...) wrote :

You can also do "file->cleanup document"

Revision history for this message
jfernace (jfernace) wrote :

touché. That works better. Thanks!

su_v (suv-lp)
tags: added: markers performance
jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
Kristof Mulier (kmulier) wrote :

File > Cleanup does NOT work for me to solve the issue!

Revision history for this message
Hervé Renault (hr-d) wrote :

I'm hit by this bug when I *clone* a simple Bézier line with an end marker.

strace shows that Inkscape enters some kind of loop when I open the Shape and Stroke widget. CPU fan is spinning faster. Shape and Stroke widget becomes unresponsive. Only way I can stop it is to click into the document, then close the Shape and Stroke widget.

Tried Inkscape 0.92.3 and 0.92.4, same problem.

None of the above workarounds work:
Copy-pasting the entire drawing into a new file doesn't work.
Cleaning the document doesn't work either.

Only "workaround" is to copy-paste or duplicate instead of cloning, but it's not the same obviously.

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.