Is using vacuum defs safe?

General discussions about Inkscape.
perfectska04
Posts: 2
Joined: Sat Aug 16, 2008 1:09 pm

Is using vacuum defs safe?

Postby perfectska04 » Sat Aug 16, 2008 1:18 pm

Hi, this is probably a stupid newbie question, but when using the "for i in *.svg; do inkscape --vacuum-defs $i; done" command, I get the following error for a lot of files:

** (inkscape:XXXX): CRITICAL **: void Inkscape::GC::Anchored::release() const: assertion `_anchor' failed

I develop an icon set for GNOME, and I wanted to reduce the filesize by batch-applying vacuum defs, but I don't want to risk the above mentioned error damaging any of the files. Therefore, I'd like to know what the error means or if it's safe to ignore it.

I'm running inkscape 0.4.6 in Ubuntu 8.04. Thanks in advance!

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

--vacuum-defs is unsafe

Postby sas » Sat Aug 16, 2008 6:47 pm

According to bug 238511, Vacuum Defs on the command line isn't safe. I've just tested this, and it's true, so I would avoid using --vacuum-defs. This bug doesn't produce any error message (the error message you're seeing is probably bug 236816, which is unrelated).

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

Re: Is using vacuum defs safe?

Postby brynn » Sat Aug 16, 2008 11:35 pm

But it's safe to use from the File menu, right?

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Is using vacuum defs safe?

Postby sas » Sun Aug 17, 2008 12:52 am

brynn wrote:But it's safe to use from the File menu, right?

It appears to be. If you don't trust it, you could save under a different filename after doing Vacuum Defs, and check that the new file still looks the same before continuing.

User avatar
EarlyBlake
Posts: 302
Joined: Tue Jun 03, 2008 5:42 pm

Re: Is using vacuum defs safe?

Postby EarlyBlake » Sun Aug 17, 2008 6:10 pm

I haven't had any problems with it under Vista. I was playing around with :tool_tweak: on colors and ended up adding a few hundred gradients in a file. I did not notice it until I'd edit the rest of the image a lot. After I set what I wanted back to one gradient, Vacuum got the unused ones out. I edited the file for another week with out any problems.

perfectska04
Posts: 2
Joined: Sat Aug 16, 2008 1:09 pm

Re: --vacuum-defs is unsafe

Postby perfectska04 » Mon Aug 18, 2008 12:41 pm

sas wrote:According to bug 238511, Vacuum Defs on the command line isn't safe. I've just tested this, and it's true, so I would avoid using --vacuum-defs. This bug doesn't produce any error message (the error message you're seeing is probably bug 236816, which is unrelated).


Thanks for the info. This answers my question, I'll probably follow up on those bugs and wait until they are resolved. Again, thanks.


Return to “General Discussions”