Inkscape hangs when I try to paste group clone from clipboard

Asked by OVERD

Hello!
I`v encountered unexpected problem.
I have this file: http://sta.sh/020e0fd26m76
If you open it, you`ll see, that it contain the layer named "Character". What I need is to clone the group from this layer and move this clone to the layer above in the same place, apply a filter with "Color matrix" effect to make the clone completely white for using it as a mask for some light effects (with "Screen" or "Lighten" blend mode for this layer).
So, I press Alt+D to create the clone, Ctrl+X to cut it to clipboard, create a new layer above and try to paste it in the same place by pressing Ctrl+Alt+V. But after this step Inkscape hangs and stops responding. If I open Task Manager, I can see that CPU load remains consistent on the value about 30% (CPU:Core i5 2500/ RAM: 8Gb/ Win 8.1/ Inkscape 0.91 64-bit)

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
OVERD
Solved:
Last query:
Last reply:
Revision history for this message
OVERD (tyssoq) said :
#1

Can you reproduce that? Is this a bug or just very slow working?

Revision history for this message
Hachmann (marenhachmann) said :
#2

Hi OVERD,

I can reproduce this, with double your RAM and a slightly less efficient processor on Linux. Either it's really very slow (I waited for about two minutes) or it's bugged.

Regards,
 Maren

Revision history for this message
su_v (suv-lp) said :
#3

Does this work better?
1) add a new layer above the layer 'Char' (Ctrl+N)
2) select the group in layer 'Char' and clone it (Alt+D)
3) move the clone to the layer above (Shift+PageUp, or menu 'Layer > Move selection to Layer Above')

Revision history for this message
su_v (suv-lp) said :
#4

Or alternatively:
0) Optionally: hide layer 'BG'
1) add a new layer above the layer 'Char' (Ctrl+N)
2) select the group in layer 'Char' and clone it (Alt+D)
3) move the clone to the target layer using context menu 'Move to layer...' (or menu 'Layer > Move Selection to Layer...')

Both methods work ok and reasonable fast with Inkscape 0.91 r13725 on OS X 10.7.5, 8GB RAM (while at the same time compiling trunk on all 4 cores in the background).

Revision history for this message
su_v (suv-lp) said :
#5

AFAICT it's code which tries to merge similar/same gradients on paste, which seems to cause inkscape to hang (or take a very long time and many CPU cycles trying to sort the references out).

It can also be triggered by copy&pasting the group into the same layer. Pasting a clone however should not affect the gradient definitions referenced by paths inside groups of the original object (at least in my understanding) - not sure what is going on here.

Here's a reduced test case, which - with a little patience - does paste the clone (or a copy) of the (reduced) group:
https://dl.dropboxusercontent.com/u/65084033/irc/pinkie_reduced4-gradients-only.svg

If removing all gradients (Ctrl+F, select all path objects, assign flat fill color, save as, cleanup), the group copy&pastes quickly, as does any clone of it.

Revision history for this message
OVERD (tyssoq) said :
#6

Thank you, suv! All your methods work very good.