[SOLVED] Clones error

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
User avatar
Ponny
Posts: 101
Joined: Wed Oct 10, 2007 3:02 am
Location: Mystic kingdom of Krakovo

[SOLVED] Clones error

Postby Ponny » Fri Dec 09, 2011 11:17 pm

Mijau

Use of clones is mission imposible. Because, Inskape "die" after every about 5 clones.

And another think.

If I hide original - and all his clones with him - after few operations on picture - I show hidden objects - all clones are gone forewer. There is only original.

civ-civ


Ponny
Last edited by Ponny on Sun Dec 11, 2011 7:45 am, edited 1 time in total.
Did you see the indigo Pony, when he came from other side wall of the night?

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: Clones error

Postby flamingolady » Sat Dec 10, 2011 9:21 am

I've had some success with it, but it seems to take up so much pc memory that I don't use it as much as I'd like. I now always keep the original object by itself in another file, that way if it crashes Inkscape, and it usually does, I won't lose my originals. I wonder/think it has more to do with me not having enough memory for graphics, than it's an Inkscape problem though.
Also, if I get it cloned as intended, I usually then export it as a png, then use the png in whatever else I'm drawing.
good luck to you,
dee

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Clones error

Postby brynn » Sat Dec 10, 2011 1:58 pm

Are you making 5 new clones from the original? Or clone once, then clone the clone, then clone the cloned clone, etc. (nested clones might be proper terminology?) I'm not sure, but I seem to recall that this cloning the clone is not advised. I don't know if it would cause Inkscape to crash, but if you're a little low on memory, I guess it might.

What is your operating system and Inkscape version?

I cannot reproduce that problem with hiding the clones, on Win7, 64-bit. And I can make clones to my heart's content, with 4 GB RAM. I can make a whole page full of clones, with Tiled Clones. And I can do it 4 or 5 times, before I start getting any slowdowns. Although I guess it may depend on how complex the clones are.

Do the clones have gradients, filters, blurs? My test was with a simple closed path with solid fill and stroke.

User avatar
Ponny
Posts: 101
Joined: Wed Oct 10, 2007 3:02 am
Location: Mystic kingdom of Krakovo

Re: Clones error

Postby Ponny » Sat Dec 10, 2011 9:11 pm

Mijau

I will answer on brynn's post, but let's nice by type.
- I made just clones from the original. I carefully watch, I made clones only from the original. I used the same object all the time.
- This original is made by 7 object. One has solid color, others has gradient. No filters, no blur, no transparency. All 7 groupped.

1. Made one clone and put in on his place manually.
2. Made 5 clones - all on top of original.
2. Then placed it manually on his places.

Then I heard sound - HD working much. - I was still able to save the file. Inkscape has become a bit slow. - After just 5 clones! - Then crash.

Last time I forgot to write the message, but this time I wrote all. There are two message boxes.

First:

Error

Glib-ERROR **: gmem.c136: failed to allocate 65536 bytes
aborting...
========================================================
When I closed firsd, appears second:

Microsoft Visual C++ Runtime Library

Runtime Error!

Program: C:\Program Files\Inkscape\Inscape.exe


This application has requested the Runtime to terminate it in a unusual way.
Please contact the application's support team for more information.

Ah, yes, the information:
CPU: Pentium IV 2GHz
RAM: 2 GB
Graphic: ATI Saphire Radeon 9600 SE - 128 MB video RAM

OS: Windows XP SP3 - all patches / updates (I'm not sure of the term)
Inscape: 0.48.1.2

I'm not using 0.48.2, because of problems with scroll through the painting with "object properties" window open. This problem was alrready reported her in topic: viewtopic.php?f=22&t=10705

Ah, yes, should I remove / reinstall InksCape?

civ-civ


Ponny
Did you see the indigo Pony, when he came from other side wall of the night?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Clones error

Postby ~suv » Sat Dec 10, 2011 10:14 pm

Ponny wrote:- This original is made by 7 object. One has solid color, others has gradient. No filters, no blur, no transparency. All 7 groupped.

1. Made one clone and put in on his place manually.
2. Made 5 clones - all on top of original.
2. Then placed it manually on his places.
Despite this being quite detailed as description, it does not mention the complexity or object type of the 7 objects inside the group.

Could you attach a sample SVG file with such an original, and another SVG file with clones you created (step 2)? This would allow others testing (the same thing) on other platforms, and with different versions of Inkscape.

I never experienced such crashes with - let's say - a group of 7 simple rectangles, and five clones of the original group, not with Inkscape 0.48.1 nor with 0.48.2 (that's with 32bit Inkscape on Mac OS X, with 2GB RAM). Could it be that the original group includes e.g. hidden or invisible objects, or its members are hugely complex paths (with tons of nodes), or do have (huge) vector- or bitmap-based custom pattern-fills? Or does any of the objects use a path effect? etc.

User avatar
Ponny
Posts: 101
Joined: Wed Oct 10, 2007 3:02 am
Location: Mystic kingdom of Krakovo

Re: Clones error

Postby Ponny » Sat Dec 10, 2011 10:46 pm

Well, here is a test file called "Clones - test 1a.svg". I wanted to reproduce this error in clear file. With just a original object. But no success. Error occurs only in complex file. So I put here complex file. But with zero clones for now.

In my case I want to replace with clones so much object, as is possible. That mean, all object in each " horizontal line".

Well, I tried to upload this test file. But I can't, because file is 783 Kb, but maximum is 256 KB. So I upload simpflied file - I removed top 7 of 9 lines of object for cloninig maybe. Now is file so simpflied - I dubt you can reproduce this error here.


Ponny
Attachments
Clones - test 1a.svg
(235.57 KiB) Downloaded 242 times
Did you see the indigo Pony, when he came from other side wall of the night?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Clones error

Postby ~suv » Sat Dec 10, 2011 10:55 pm

Ponny wrote:But I can't, because file is 783 Kb, but maximum is 256 KB.
Try to either zip the SVG file, and attach the ZIP archive, or save a copy as 'Compressed Inkscape SVG (*.svgz)' in Inkscape (which will also reduce the file size, because it creates a binary file compressed with gzip, which Inkscape can read and write) and attach the svgz file.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Clones error

Postby ~suv » Sat Dec 10, 2011 11:00 pm

Ponny wrote:Well, here is a test file called "Clones - test 1a.svg". I wanted to reproduce this error in clear file. With just a original object. But no success. Error occurs only in complex file. So I put here complex file. But with zero clones for now.

In my case I want to replace with clones so much object, as is possible. That mean, all object in each " horizontal line".

Well, I tried to upload this test file. But I can't, because file is 783 Kb, but maximum is 256 KB. So I upload simpflied file - I removed top 7 of 9 lines of object for cloninig maybe. Now is file so simpflied - I dubt you can reproduce this error here.


Honestly, I did not really understand what you want to replace with clones, or multiply with clones, based on the attached file: do you clone the second row of figures - i.e. the group (with 42 objects) - multiple times? Or could you show maybe with a screenhot what the planned original object / group is, and how it ought to be reused as clone?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Clones error

Postby ~suv » Sat Dec 10, 2011 11:31 pm

Many of your objects have a filter effect applied (feColorMatrix with 'Identity' matrix i.e. no visual effect), which slows down handling of multiple copies/clones to a large extent.

The message in the status line tells if a selected object has a filter effect applied, and you can remove filter effects from the current selection (works recursively on groups) with menu 'Filters > Remove Filters'.

Is the attached version of your file what you have in mind? Note that I
  1. removed the filter effects (which did not visually change how the objects are rendered)
  2. splitted the content on several layers (the background, and one for each row).
  3. the figures in both rows had minor differences in the position of the gradients - I went with the first one of each row as original.
Attachments
Ponny-Clones - test 1a-2.svg
(46.14 KiB) Downloaded 190 times

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Clones error

Postby ~suv » Sat Dec 10, 2011 11:57 pm

Another version with 8 rows in total, each on a separate layer and with its own original group: since I don't know how the original version would have been completed, you'd have to edit the paths inside each original group, and adjust the position of each row.

Memory consumption when working with the file has to a large extent been reduced to normal, after cleaning up the filter effects, and vacuuming the defs (at least twice, to get rid of all no longer referenced definitions). Adding new clones did not produce any crashes (no noticeable difference between 0.48.1 and 0.48.2, at least on Mac OS X).
Attachments
Ponny-Clones - test 1a-3.svg
(88.43 KiB) Downloaded 202 times

User avatar
Ponny
Posts: 101
Joined: Wed Oct 10, 2007 3:02 am
Location: Mystic kingdom of Krakovo

Re: Clones error

Postby Ponny » Sun Dec 11, 2011 2:44 am

Hoy-hoy

Two things I have to report.

First: I tested the more detailed this problematic file. Almost every object had filter. I don't know why. I did not use any filters on this "little mans" - groups with 7 grouped objects. I used only this: Extension / Color / Darker. But there is more objects for which I can't remember I used any filter or extension. OK, go on.

Then I removed all this "filters". Then I try again basic lesson. Producing clones. You know, all this little mans in each row has totally identical caracteristics. For example, each object in the row has the same colour gradient as other copies in same row. I planned to replace this copies with clones.
then I probably will not need to edit colour gradient for each object separately, but just for original.

Well, the result is no more crashes. I produced 10 (2 x 5) clones and place them manually with no problem. It seems that these problems have been guilty of too many "filters".

Thank you sooooo much for help. You gave me advice and suggestions on what to do, and I then solve the problem. Thank you and good night.

By the way. I thing this file now opens faster without all this "filters".

Now I put in complete file - with all objects - now compressed.

And I almost forgot this. A little bit about your test files. Explanation. These "rows" in fact are not real rows. Because this object should be places..... How to say..... a litle bit randomly....... Not as soldiers at the parade.

civ-civ

Ponny
Attachments
Clones - test 2a.svgz
(33.37 KiB) Downloaded 193 times
Did you see the indigo Pony, when he came from other side wall of the night?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Clones error

Postby ~suv » Sun Dec 11, 2011 3:09 am

Ponny wrote:By the way. I thing this file now opens faster without all this "filters".

Now I put in complete file - with all objects - now compressed.

Thanks for sharing the final version (without clones) :)

Hint: The objects in the group forming the third row are still filtered. I'd recommend to use 'File > Vacuum defs' on the file after having removed all filters: more than 100 unreferenced resources (filter and gradient definitions) are currently still stored in the file (in the <defs> section), plus three currently still in use. It will reduced the file size slightly.


Return to “Discuss Software Issues”